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.001223/0.001228, allocations: 120.3 kB / 16.42 MB, free: 6.496 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.001152/0.001152, allocations: 183.9 kB / 17.35 MB, free: 5.762 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.331/1.331, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.0458/0.0458, allocations: 9.116 MB / 300.3 MB, free: 5.836 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001216/0.001216, allocations: 63.89 kB / 415.3 MB, free: 21.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08656/0.08779, allocations: 51.44 MB / 466.8 MB, free: 1.66 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.GearComponents.Examples.SpurGear): time 0.01332/0.1012, allocations: 12.92 MB / 479.7 MB, free: 4.676 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008135/0.1093, allocations: 3.571 MB / 483.3 MB, free: 1.094 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001929/0.1113, allocations: 59.88 kB / 483.3 MB, free: 1.035 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002162/0.1135, allocations: 0.7535 MB / 484.1 MB, free: 284 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00519/0.1187, allocations: 2.038 MB / 486.1 MB, free: 14.23 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007104/0.1195, allocations: 147.8 kB / 486.3 MB, free: 14.08 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005347/0.1248, allocations: 4.098 MB / 490.4 MB, free: 9.977 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003065/0.1279, allocations: 1.986 MB / 492.3 MB, free: 7.961 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002304/0.1302, allocations: 1.408 MB / 493.7 MB, free: 6.547 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002848/0.1331, allocations: 2.016 MB / 495.8 MB, free: 4.523 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009848/0.1341, allocations: 316 kB / 496.1 MB, free: 4.215 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002166/0.1363, allocations: 0.8895 MB / 497 MB, free: 3.324 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002028/0.1383, allocations: 1.901 MB / 498.9 MB, free: 1.418 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002391/0.1407, allocations: 2.461 MB / 0.4896 GB, free: 14.94 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007248/0.148, allocations: 7.651 MB / 0.497 GB, free: 7.266 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.578e-06/0.148, allocations: 0 / 0.497 GB, free: 7.266 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.674e-06/0.148, allocations: 0 / 0.497 GB, free: 7.266 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001441/0.1482, allocations: 0 / 0.497 GB, free: 7.266 MB / 382.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.02453/0.1727, allocations: 7.051 MB / 0.5039 GB, free: 144 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.486e-05/0.1728, allocations: 8.031 kB / 0.5039 GB, free: 136 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.2154/0.3882, allocations: 3.257 MB / 0.5071 GB, free: 41.97 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004067/0.3923, allocations: 2.064 MB / 0.5091 GB, free: 41.27 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000204/0.3925, allocations: 238.2 kB / 0.5094 GB, free: 41.24 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000946/0.3934, allocations: 314.3 kB / 0.5097 GB, free: 41.18 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02017/0.4136, allocations: 13.45 MB / 0.5228 GB, free: 34.53 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.437e-05/0.4137, allocations: 59.08 kB / 0.5229 GB, free: 34.49 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004697/0.4142, allocations: 156.7 kB / 0.523 GB, free: 34.45 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004108/0.4183, allocations: 3.089 MB / 0.526 GB, free: 33.22 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0198/0.4381, allocations: 11.93 MB / 0.5377 GB, free: 21.38 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05241/0.4906, allocations: 47.8 MB / 0.5844 GB, free: 4.398 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01195/0.5026, allocations: 3.78 MB / 0.5881 GB, free: 372 kB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002432/0.5051, allocations: 1.375 MB / 0.5894 GB, free: 14.98 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01336/0.5184, allocations: 9.206 MB / 0.5984 GB, free: 5.02 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.067e-05/0.5185, allocations: 55.5 kB / 0.5984 GB, free: 4.957 MB / 430.1 MB Notification: Performance of pre-optimization done (n=202): time 5.691e-06/0.5185, allocations: 0 / 0.5984 GB, free: 4.957 MB / 430.1 MB Notification: Performance of matching and sorting (n=211): time 0.01934/0.5379, allocations: 10.24 MB / 0.6084 GB, free: 10.59 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.019e-05/0.538, allocations: 153.8 kB / 0.6086 GB, free: 10.4 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006712/0.5447, allocations: 5.144 MB / 0.6136 GB, free: 5.258 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002217/0.5449, allocations: 53.69 kB / 0.6137 GB, free: 5.199 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002581/0.5475, allocations: 3.932 MB / 0.6175 GB, free: 1.211 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008862/0.5484, allocations: 0.8256 MB / 0.6183 GB, free: 384 kB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001821/0.5503, allocations: 1.602 MB / 0.6199 GB, free: 14.76 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001157/0.5504, allocations: 309.1 kB / 0.6202 GB, free: 14.45 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003341/0.5537, allocations: 2.245 MB / 0.6224 GB, free: 12.2 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007194/0.5609, allocations: 7.323 MB / 0.6295 GB, free: 2.344 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01134/0.5723, allocations: 10.39 MB / 0.6397 GB, free: 5.434 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001121/0.5724, allocations: 52 kB / 0.6397 GB, free: 5.383 MB / 478.1 MB Notification: Performance of matching and sorting (n=1044) (initialization): time 0.01556/0.588, allocations: 9.184 MB / 0.6487 GB, free: 12.19 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001412/0.5882, allocations: 84 kB / 0.6488 GB, free: 12.11 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002719/0.5885, allocations: 180 kB / 0.6489 GB, free: 11.93 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002548/0.5887, allocations: 236.8 kB / 0.6492 GB, free: 11.7 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005454/0.5942, allocations: 1.845 MB / 0.651 GB, free: 9.855 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002899/0.5945, allocations: 354.7 kB / 0.6513 GB, free: 9.508 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004843/0.5993, allocations: 371.6 kB / 0.6516 GB, free: 9.145 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008589/0.6002, allocations: 0.4921 MB / 0.6521 GB, free: 8.652 MB / 494.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.004128/0.6043, allocations: 2.655 MB / 0.6547 GB, free: 5.984 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007605/0.6051, allocations: 418.5 kB / 0.6551 GB, free: 5.57 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003662/0.6088, allocations: 1.96 MB / 0.657 GB, free: 3.598 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.508e-05/0.6088, allocations: 15.91 kB / 0.657 GB, free: 3.582 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.44e-06/0.6088, allocations: 3.938 kB / 0.6571 GB, free: 3.578 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001312/0.6102, allocations: 0.6634 MB / 0.6577 GB, free: 2.891 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006517/0.6108, allocations: 35.98 kB / 0.6577 GB, free: 2.855 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001469/0.6123, allocations: 60 kB / 0.6578 GB, free: 2.797 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002127/0.6125, allocations: 97.17 kB / 0.6579 GB, free: 2.703 MB / 494.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.003821/0.6164, allocations: 2.432 MB / 0.6603 GB, free: 268 kB / 494.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.005234/0.6216, allocations: 4.032 MB / 0.6642 GB, free: 12.21 MB / 0.4981 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.001251/0.6229, allocations: 0.9395 MB / 0.6651 GB, free: 11.27 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.005526/0.6284, allocations: 3.206 MB / 0.6682 GB, free: 8.074 MB / 0.4981 GB Notification: Performance of Backend: time 1.643e-06/0.6284, allocations: 0 / 0.6682 GB, free: 8.074 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.008803/0.6372, allocations: 4.493 MB / 0.6726 GB, free: 3.621 MB / 0.4981 GB Notification: Performance of SimCode: time 0.01879/0.656, allocations: 10.52 MB / 0.6829 GB, free: 9.051 MB / 0.5137 GB Notification: Performance of Templates: time 0.3054/0.9615, allocations: 46.92 MB / 0.7287 GB, free: 173.2 MB / 0.5294 GB 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 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.GearComponents.Examples.SpurGear.pipe 2>&1)