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: translateModel(PlanarMechanics.GearComponents.Examples.SpurGear,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.GearComponents.Examples.SpurGear") translateModel(PlanarMechanics.GearComponents.Examples.SpurGear,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.GearComponents.Examples.SpurGear") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001174/0.001174, allocations: 103.9 kB / 16.35 MB, free: 6.289 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.001076/0.001076, allocations: 193.5 kB / 17.29 MB, free: 5.863 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.355/1.355, allocations: 222.9 MB / 241 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04413/0.04413, allocations: 9.124 MB / 300.3 MB, free: 5.875 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001983/0.001983, allocations: 63.89 kB / 363.4 MB, free: 6.727 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.275/0.277, allocations: 51.42 MB / 414.8 MB, free: 24.89 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.GearComponents.Examples.SpurGear): time 0.009418/0.2865, allocations: 12.93 MB / 427.7 MB, free: 11.91 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006348/0.2929, allocations: 3.576 MB / 431.3 MB, free: 8.328 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001561/0.2944, allocations: 55.94 kB / 431.4 MB, free: 8.273 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001401/0.2959, allocations: 0.7574 MB / 432.1 MB, free: 7.512 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003634/0.2996, allocations: 2.041 MB / 434.2 MB, free: 5.465 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00042/0.3, allocations: 151.8 kB / 434.3 MB, free: 5.316 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003744/0.3037, allocations: 4.095 MB / 438.4 MB, free: 1.211 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001869/0.3056, allocations: 1.978 MB / 440.4 MB, free: 15.21 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001826/0.3075, allocations: 1.4 MB / 441.8 MB, free: 13.8 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002632/0.3101, allocations: 2.016 MB / 443.8 MB, free: 11.78 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007828/0.3109, allocations: 316 kB / 444.1 MB, free: 11.47 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001681/0.3126, allocations: 0.8894 MB / 445 MB, free: 10.58 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001684/0.3143, allocations: 1.909 MB / 446.9 MB, free: 8.664 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002425/0.3167, allocations: 2.453 MB / 449.4 MB, free: 6.195 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007187/0.3239, allocations: 7.632 MB / 457 MB, free: 14.54 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.651e-06/0.324, allocations: 0 / 457 MB, free: 14.54 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.324, allocations: 0 / 457 MB, free: 14.54 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001831/0.3242, allocations: 4 kB / 457 MB, free: 14.54 MB / 334.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.02346/0.3476, allocations: 7.051 MB / 464 MB, free: 7.406 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.052e-05/0.3477, allocations: 16.02 kB / 464.1 MB, free: 7.391 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01131/0.359, allocations: 3.258 MB / 467.3 MB, free: 4.121 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005769/0.3648, allocations: 2.07 MB / 469.4 MB, free: 2.004 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002651/0.3651, allocations: 233.7 kB / 469.6 MB, free: 1.773 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001536/0.3667, allocations: 311.7 kB / 469.9 MB, free: 1.469 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02644/0.3931, allocations: 13.45 MB / 483.4 MB, free: 3.137 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002124/0.3934, allocations: 51.52 kB / 483.4 MB, free: 3.086 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001053/0.3944, allocations: 159.8 kB / 483.6 MB, free: 2.93 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004886/0.3993, allocations: 3.084 MB / 486.7 MB, free: 15.84 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02533/0.4247, allocations: 11.94 MB / 498.6 MB, free: 3.887 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2893/0.714, allocations: 47.8 MB / 0.5336 GB, free: 50.36 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01087/0.7249, allocations: 3.774 MB / 0.5373 GB, free: 48.41 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002085/0.7271, allocations: 1.391 MB / 0.5386 GB, free: 47.93 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01408/0.7412, allocations: 9.198 MB / 0.5476 GB, free: 41.27 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.664e-05/0.7412, allocations: 53.69 kB / 0.5477 GB, free: 41.22 MB / 382.1 MB Notification: Performance of pre-optimization done (n=202): time 6.883e-06/0.7413, allocations: 0 / 0.5477 GB, free: 41.22 MB / 382.1 MB Notification: Performance of matching and sorting (n=211): time 0.02136/0.7626, allocations: 10.25 MB / 0.5577 GB, free: 34.37 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.661e-05/0.7627, allocations: 153.8 kB / 0.5578 GB, free: 34.18 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008463/0.7712, allocations: 5.148 MB / 0.5629 GB, free: 29.04 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003234/0.7716, allocations: 53.17 kB / 0.5629 GB, free: 28.98 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002208/0.7738, allocations: 3.927 MB / 0.5667 GB, free: 25.06 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000987/0.7748, allocations: 0.8312 MB / 0.5675 GB, free: 24.24 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003437/0.7783, allocations: 1.598 MB / 0.5691 GB, free: 22.63 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.759e-05/0.7784, allocations: 308.1 kB / 0.5694 GB, free: 22.33 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003712/0.7821, allocations: 2.241 MB / 0.5716 GB, free: 20.09 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005648/0.7878, allocations: 7.323 MB / 0.5787 GB, free: 10.3 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01011/0.7979, allocations: 10.4 MB / 0.5889 GB, free: 13.39 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001953/0.7981, allocations: 56 kB / 0.589 GB, free: 13.34 MB / 398.1 MB Notification: Performance of matching and sorting (n=1044) (initialization): time 0.01816/0.8163, allocations: 9.183 MB / 0.5979 GB, free: 4.16 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001818/0.8165, allocations: 86.66 kB / 0.598 GB, free: 4.078 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003113/0.8168, allocations: 180.8 kB / 0.5982 GB, free: 3.902 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003628/0.8172, allocations: 236 kB / 0.5984 GB, free: 3.672 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005971/0.8232, allocations: 1.844 MB / 0.6002 GB, free: 1.824 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000419/0.8236, allocations: 354.5 kB / 0.6005 GB, free: 1.477 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006061/0.8297, allocations: 379.7 kB / 0.6009 GB, free: 1.105 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001449/0.8312, allocations: 0.496 MB / 0.6014 GB, free: 0.6094 MB / 398.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.00575/0.8369, allocations: 2.655 MB / 0.604 GB, free: 13.95 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001211/0.8382, allocations: 414.6 kB / 0.6044 GB, free: 13.54 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004783/0.843, allocations: 1.966 MB / 0.6063 GB, free: 11.56 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001312/0.8431, allocations: 35.98 kB / 0.6063 GB, free: 11.52 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.959e-05/0.8432, allocations: 3.938 kB / 0.6063 GB, free: 11.52 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.519e-05/0.8432, allocations: 11.97 kB / 0.6063 GB, free: 11.51 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01773/0.8609, allocations: 7.754 MB / 0.6139 GB, free: 3.555 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.038e-05/0.861, allocations: 12 kB / 0.6139 GB, free: 3.543 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001277/0.8623, allocations: 299.5 kB / 0.6142 GB, free: 3.25 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001811/0.8625, allocations: 36.86 kB / 0.6142 GB, free: 3.211 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002089/0.8627, allocations: 61.86 kB / 0.6143 GB, free: 3.152 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001375/0.8641, allocations: 1.39 MB / 0.6157 GB, free: 1.621 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.627e-05/0.8641, allocations: 24.16 kB / 0.6157 GB, free: 1.598 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007956/0.8721, allocations: 4.385 MB / 0.62 GB, free: 13.02 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002458/0.8746, allocations: 0.6751 MB / 0.6206 GB, free: 12.32 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001362/0.876, allocations: 54 kB / 0.6207 GB, free: 12.27 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002216/0.8782, allocations: 63.95 kB / 0.6207 GB, free: 12.21 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000299/0.8785, allocations: 150.2 kB / 0.6209 GB, free: 12.06 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001586/0.8787, allocations: 75.98 kB / 0.621 GB, free: 11.99 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.007031/0.8857, allocations: 3.218 MB / 0.6241 GB, free: 8.777 MB / 430.1 MB Notification: Performance of sort global known variables: time 4.41e-07/0.8858, allocations: 0 / 0.6241 GB, free: 8.777 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.008388/0.8942, allocations: 1.096 MB / 0.6252 GB, free: 7.688 MB / 430.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.0008035/0.895, allocations: 191.3 kB / 0.6254 GB, free: 7.496 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.01008/0.9051, allocations: 5.202 MB / 0.6304 GB, free: 2.344 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.428e-05/0.9051, allocations: 3.938 kB / 0.6304 GB, free: 2.34 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002183/0.9073, allocations: 1.237 MB / 0.6316 GB, free: 1.094 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004935/0.9123, allocations: 0.563 MB / 0.6322 GB, free: 0.5547 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02038/0.9327, allocations: 10.41 MB / 0.6424 GB, free: 5.945 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006135/0.9389, allocations: 3.779 MB / 0.646 GB, free: 2.137 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.006412/0.9453, allocations: 2.444 MB / 0.6484 GB, free: 15.68 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001132/0.9465, allocations: 311.4 kB / 0.6487 GB, free: 15.38 MB / 462.1 MB Notification: Performance of SimCode: time 1.052e-06/0.9465, allocations: 0 / 0.6487 GB, free: 15.38 MB / 462.1 MB Notification: Performance of Templates: time 0.0701/1.017, allocations: 29.83 MB / 0.6779 GB, free: 1.734 MB / 478.1 MB make -j1 -f PlanarMechanics_PlanarMechanics.GearComponents.Examples.SpurGear.makefile (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 & ./PlanarMechanics_PlanarMechanics.GearComponents.Examples.SpurGear -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > PlanarMechanics_PlanarMechanics.GearComponents.Examples.SpurGear.pipe 2>&1)