Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.GearComponents.Examples.SpurGear.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo", uses=false) Using package PlanarMechanics with version 1.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PlanarMechanics.GearComponents.Examples.SpurGear,fileNamePrefix="PlanarMechanics_PlanarMechanics_GearComponents_Examples_SpurGear",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.GearComponents.Examples.SpurGear,fileNamePrefix="PlanarMechanics_PlanarMechanics_GearComponents_Examples_SpurGear",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001125/0.001126, allocations: 115.3 kB / 15.34 MB, free: 0.5156 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001166/0.001166, allocations: 190.4 kB / 16.25 MB, free: 6.633 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.321/1.321, allocations: 222.9 MB / 239.9 MB, free: 4.52 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1543/0.1543, allocations: 9.104 MB / 299.2 MB, free: 1.82 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001299/0.001299, allocations: 59.89 kB / 361.5 MB, free: 13.31 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0948/0.09611, allocations: 51.44 MB / 413 MB, free: 9.832 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.GearComponents.Examples.SpurGear): time 0.1942/0.2904, allocations: 31.55 MB / 444.5 MB, free: 25.76 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01485/0.3053, allocations: 7.032 MB / 451.5 MB, free: 21.17 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007039/0.3123, allocations: 114.1 kB / 451.7 MB, free: 21.16 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00258/0.315, allocations: 0.6653 MB / 452.3 MB, free: 20.89 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005431/0.3205, allocations: 1.896 MB / 454.2 MB, free: 20.02 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008563/0.3213, allocations: 131.9 kB / 454.3 MB, free: 19.94 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005061/0.3264, allocations: 4.146 MB / 458.5 MB, free: 18.2 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002466/0.3289, allocations: 2.071 MB / 460.6 MB, free: 17.34 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001966/0.3309, allocations: 1.41 MB / 462 MB, free: 16.72 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002094/0.333, allocations: 2.227 MB / 464.2 MB, free: 15.91 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005385/0.3335, allocations: 319.1 kB / 464.5 MB, free: 15.91 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001924/0.3355, allocations: 0.9034 MB / 465.4 MB, free: 15.72 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001506/0.337, allocations: 1.921 MB / 467.3 MB, free: 15 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002311/0.3393, allocations: 2.49 MB / 469.8 MB, free: 13.18 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00984/0.3492, allocations: 7.289 MB / 477.1 MB, free: 10.34 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.163e-06/0.3492, allocations: 0.75 kB / 477.1 MB, free: 10.34 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.3492, allocations: 3.938 kB / 477.1 MB, free: 10.33 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0002948/0.3495, allocations: 1.219 kB / 477.1 MB, free: 10.33 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1948 * Number of variables: 1948 Notification: Performance of Generate backend data structure: time 0.02849/0.378, allocations: 7.06 MB / 484.2 MB, free: 7.219 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.848e-05/0.3781, allocations: 10.19 kB / 484.2 MB, free: 7.219 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002515/0.3806, allocations: 0.8783 MB / 485.1 MB, free: 6.793 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01209/0.3927, allocations: 3.265 MB / 488.3 MB, free: 5.652 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005802/0.3986, allocations: 2.066 MB / 490.4 MB, free: 4.219 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003228/0.3989, allocations: 234.2 kB / 490.6 MB, free: 4.105 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002057/0.401, allocations: 312.5 kB / 490.9 MB, free: 3.988 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.026/0.427, allocations: 13.44 MB / 0.4926 GB, free: 8.348 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001588/0.4272, allocations: 55.52 kB / 0.4926 GB, free: 8.293 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008046/0.428, allocations: 157.4 kB / 0.4928 GB, free: 8.141 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00545/0.4335, allocations: 3.088 MB / 0.4958 GB, free: 5.051 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02544/0.459, allocations: 11.94 MB / 0.5074 GB, free: 9.098 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0664/0.5254, allocations: 47.96 MB / 0.5543 GB, free: 7.891 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01229/0.5377, allocations: 3.775 MB / 0.558 GB, free: 3.855 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002549/0.5403, allocations: 1.384 MB / 0.5593 GB, free: 2.461 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01431/0.5546, allocations: 9.217 MB / 0.5683 GB, free: 8.5 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.692e-05/0.5547, allocations: 55.55 kB / 0.5684 GB, free: 8.438 MB / 446.1 MB Notification: Performance of pre-optimization done (n=202): time 5.43e-06/0.5547, allocations: 0 / 0.5684 GB, free: 8.438 MB / 446.1 MB Notification: Performance of matching and sorting (n=211): time 0.2307/0.7854, allocations: 10.24 MB / 0.5784 GB, free: 127.3 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.666e-05/0.7855, allocations: 148.6 kB / 0.5785 GB, free: 127.2 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006461/0.792, allocations: 5.143 MB / 0.5835 GB, free: 126.4 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002646/0.7923, allocations: 52.2 kB / 0.5836 GB, free: 126.3 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001721/0.794, allocations: 3.937 MB / 0.5874 GB, free: 123.3 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006707/0.7947, allocations: 0.8308 MB / 0.5882 GB, free: 122.7 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001711/0.7964, allocations: 1.602 MB / 0.5898 GB, free: 121.9 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.793e-05/0.7965, allocations: 304.3 kB / 0.5901 GB, free: 121.6 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002974/0.7995, allocations: 2.241 MB / 0.5923 GB, free: 120.9 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00468/0.8042, allocations: 7.322 MB / 0.5994 GB, free: 113.4 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008618/0.8128, allocations: 10.38 MB / 0.6096 GB, free: 104.1 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000163/0.813, allocations: 50.81 kB / 0.6096 GB, free: 104.1 MB / 446.1 MB Notification: Performance of matching and sorting (n=1044) (initialization): time 0.01523/0.8282, allocations: 9.183 MB / 0.6186 GB, free: 100.5 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001309/0.8284, allocations: 88.12 kB / 0.6187 GB, free: 100.5 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002854/0.8287, allocations: 184 kB / 0.6188 GB, free: 100.5 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003002/0.829, allocations: 236.8 kB / 0.6191 GB, free: 100.5 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005662/0.8347, allocations: 1.839 MB / 0.6209 GB, free: 100.3 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002751/0.835, allocations: 354.2 kB / 0.6212 GB, free: 100.2 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005376/0.8404, allocations: 377.9 kB / 0.6216 GB, free: 100.1 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009561/0.8413, allocations: 0.4941 MB / 0.622 GB, free: 100 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 823 * Number of states: 0 () * Number of discrete variables: 24 (world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],gearB_Bearing.cylinderColor[3],gearB_Bearing.cylinderColor[2],gearB_Bearing.cylinderColor[1],gearB.sphereColor[3],gearB.sphereColor[2],gearB.sphereColor[1],gearA.sphereColor[3],gearA.sphereColor[2],gearA.sphereColor[1],gearA_Bearing.cylinderColor[3],gearA_Bearing.cylinderColor[2],gearA_Bearing.cylinderColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (994): * Single equations (assignments): 987 * Array equations: 7 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004779/0.8461, allocations: 2.65 MB / 0.6246 GB, free: 98.73 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008073/0.8469, allocations: 423 kB / 0.625 GB, free: 98.5 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003108/0.85, allocations: 1.961 MB / 0.627 GB, free: 97.74 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001134/0.8502, allocations: 34 kB / 0.627 GB, free: 97.74 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.303e-05/0.8502, allocations: 1.031 kB / 0.627 GB, free: 97.74 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.62e-05/0.8502, allocations: 11.98 kB / 0.627 GB, free: 97.74 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01117/0.8614, allocations: 7.776 MB / 0.6346 GB, free: 94.63 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.95e-05/0.8615, allocations: 11.69 kB / 0.6346 GB, free: 94.63 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001055/0.8625, allocations: 302.2 kB / 0.6349 GB, free: 94.6 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001298/0.8627, allocations: 43.86 kB / 0.6349 GB, free: 94.59 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001061/0.8628, allocations: 54.44 kB / 0.635 GB, free: 94.57 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007302/0.8635, allocations: 1.384 MB / 0.6363 GB, free: 93.16 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.086e-05/0.8635, allocations: 23.11 kB / 0.6364 GB, free: 93.16 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004679/0.8682, allocations: 4.385 MB / 0.6406 GB, free: 90.34 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001667/0.8699, allocations: 0.6712 MB / 0.6413 GB, free: 89.69 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007136/0.8706, allocations: 50.14 kB / 0.6413 GB, free: 89.65 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001473/0.8721, allocations: 74.97 kB / 0.6414 GB, free: 89.59 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002691/0.8724, allocations: 151.6 kB / 0.6416 GB, free: 89.48 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001279/0.8725, allocations: 73.11 kB / 0.6416 GB, free: 89.42 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.005439/0.878, allocations: 3.217 MB / 0.6448 GB, free: 86.75 MB / 446.1 MB Notification: Performance of sort global known variables: time 4.41e-07/0.878, allocations: 5.312 kB / 0.6448 GB, free: 86.75 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.007684/0.8857, allocations: 1.098 MB / 0.6458 GB, free: 85.66 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 59 * Number of states: 2 (constantSpeed.phi,gearB.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (163): * Single equations (assignments): 155 * Array equations: 7 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.005234/0.8909, allocations: 5.078 MB / 0.6508 GB, free: 80.77 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.008926/0.8999, allocations: 6.09 MB / 0.6568 GB, free: 75.32 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.351e-05/0.8999, allocations: 0 / 0.6568 GB, free: 75.32 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001655/0.9016, allocations: 1.231 MB / 0.658 GB, free: 74.21 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003678/0.9053, allocations: 0.5694 MB / 0.6585 GB, free: 73.75 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07813/0.9835, allocations: 65.08 MB / 0.7221 GB, free: 15.54 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004056/0.9876, allocations: 3.767 MB / 0.7257 GB, free: 11.75 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.005591/0.9932, allocations: 2.463 MB / 0.7282 GB, free: 9.289 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002702/0.9959, allocations: 2.21 MB / 0.7303 GB, free: 7.078 MB / 462.1 MB Notification: Performance of SimCode: time 7.42e-07/0.9959, allocations: 0 / 0.7303 GB, free: 7.078 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3003/1.296, allocations: 76.29 MB / 0.8048 GB, free: 129.7 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000173/1.296, allocations: 227.8 kB / 0.805 GB, free: 129.4 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.964/5.261, allocations: 0 / 0.805 GB, free: 129.4 MB / 478.1 MB (rm -f PlanarMechanics_PlanarMechanics.GearComponents.Examples.SpurGear.pipe ; mkfifo PlanarMechanics_PlanarMechanics.GearComponents.Examples.SpurGear.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.GearComponents.Examples.SpurGear.pipe >> ../files/PlanarMechanics_PlanarMechanics.GearComponents.Examples.SpurGear.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_GearComponents_Examples_SpurGear_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_GearComponents_Examples_SpurGear.fmu > PlanarMechanics_PlanarMechanics.GearComponents.Examples.SpurGear.pipe 2>&1)