Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.FreeBody.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.Examples.FreeBody,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.FreeBody") translateModel(PlanarMechanics.Examples.FreeBody,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.FreeBody") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001052/0.001052, allocations: 104 kB / 16.41 MB, free: 6.016 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.001075/0.001075, allocations: 192.3 kB / 17.34 MB, free: 5.609 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.32/1.32, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.06548/0.06548, allocations: 9.11 MB / 300.3 MB, free: 5.828 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001259/0.001259, allocations: 71.88 kB / 415.3 MB, free: 21.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09801/0.09928, allocations: 51.43 MB / 466.7 MB, free: 1.68 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.FreeBody): time 0.006828/0.1061, allocations: 5.838 MB / 472.6 MB, free: 11.81 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003959/0.1101, allocations: 2.028 MB / 474.6 MB, free: 9.773 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006567/0.1108, allocations: 23.94 kB / 474.6 MB, free: 9.75 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006288/0.1115, allocations: 262.5 kB / 474.9 MB, free: 9.492 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002274/0.1138, allocations: 1.098 MB / 476 MB, free: 8.391 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000136/0.1139, allocations: 35.89 kB / 476 MB, free: 8.355 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001947/0.1159, allocations: 1.882 MB / 477.9 MB, free: 6.473 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002625/0.1162, allocations: 158.7 kB / 478.1 MB, free: 6.301 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007371/0.1169, allocations: 0.6497 MB / 478.7 MB, free: 5.648 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001049/0.118, allocations: 0.9888 MB / 479.7 MB, free: 4.656 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002493/0.1182, allocations: 180 kB / 479.9 MB, free: 4.48 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001166/0.1194, allocations: 0.7333 MB / 480.6 MB, free: 3.746 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007318/0.1202, allocations: 0.9506 MB / 481.6 MB, free: 2.793 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009242/0.1211, allocations: 1.188 MB / 482.7 MB, free: 1.598 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003926/0.125, allocations: 4.06 MB / 486.8 MB, free: 13.52 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.675e-06/0.125, allocations: 0 / 486.8 MB, free: 13.52 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.1251, allocations: 3.938 kB / 486.8 MB, free: 13.52 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.48e-05/0.1251, allocations: 0 / 486.8 MB, free: 13.52 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 902 * Number of variables: 902 Notification: Performance of Generate backend data structure: time 0.004975/0.1301, allocations: 2.571 MB / 489.4 MB, free: 10.89 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.124e-05/0.1302, allocations: 12.03 kB / 489.4 MB, free: 10.88 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005927/0.1361, allocations: 1.674 MB / 491.1 MB, free: 9.199 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002177/0.1383, allocations: 1.085 MB / 492.1 MB, free: 8.07 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.316e-05/0.1384, allocations: 98.8 kB / 492.2 MB, free: 7.973 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002876/0.1387, allocations: 140.2 kB / 492.4 MB, free: 7.836 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009614/0.1483, allocations: 6.497 MB / 498.9 MB, free: 1.105 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.778e-05/0.1485, allocations: 11.88 kB / 498.9 MB, free: 1.094 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002532/0.1487, allocations: 59.89 kB / 498.9 MB, free: 1.035 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002896/0.1516, allocations: 1.625 MB / 0.4888 GB, free: 15.41 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0106/0.1622, allocations: 6.047 MB / 0.4947 GB, free: 9.344 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2721/0.4344, allocations: 18.13 MB / 0.5125 GB, free: 22.18 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002591/0.4371, allocations: 1.553 MB / 0.514 GB, free: 21.58 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008347/0.4379, allocations: 0.5278 MB / 0.5145 GB, free: 21.57 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003659/0.4416, allocations: 2.14 MB / 0.5166 GB, free: 20.69 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.637e-05/0.4416, allocations: 37.56 kB / 0.5166 GB, free: 20.65 MB / 382.1 MB Notification: Performance of pre-optimization done (n=80): time 2.915e-06/0.4416, allocations: 0 / 0.5166 GB, free: 20.65 MB / 382.1 MB Notification: Performance of matching and sorting (n=80): time 0.003213/0.4449, allocations: 1.493 MB / 0.5181 GB, free: 20.52 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.393e-05/0.4449, allocations: 62.36 kB / 0.5181 GB, free: 20.46 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003373/0.4483, allocations: 2.013 MB / 0.5201 GB, free: 20.21 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.325e-05/0.4484, allocations: 35.77 kB / 0.5201 GB, free: 20.18 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009738/0.4494, allocations: 1.65 MB / 0.5217 GB, free: 19.17 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00031/0.4497, allocations: 321.1 kB / 0.522 GB, free: 18.99 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007414/0.4505, allocations: 0.5633 MB / 0.5226 GB, free: 18.85 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001157/0.4506, allocations: 363.8 kB / 0.5229 GB, free: 18.52 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001526/0.4521, allocations: 0.9184 MB / 0.5238 GB, free: 18.21 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002315/0.4544, allocations: 2.574 MB / 0.5264 GB, free: 15.66 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00361/0.4581, allocations: 3.73 MB / 0.53 GB, free: 12.68 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.295e-05/0.4581, allocations: 16.44 kB / 0.53 GB, free: 12.68 MB / 382.1 MB Notification: Performance of matching and sorting (n=360) (initialization): time 0.005062/0.4632, allocations: 3.429 MB / 0.5334 GB, free: 11.63 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.695e-05/0.4633, allocations: 40.08 kB / 0.5334 GB, free: 11.62 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.211e-05/0.4633, allocations: 57.44 kB / 0.5335 GB, free: 11.62 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.161e-05/0.4634, allocations: 77.41 kB / 0.5335 GB, free: 11.62 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001552/0.465, allocations: 0.612 MB / 0.5341 GB, free: 11.55 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.132e-05/0.465, allocations: 117.5 kB / 0.5342 GB, free: 11.52 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00204/0.4671, allocations: 411.4 kB / 0.5346 GB, free: 11.27 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001968/0.4673, allocations: 175 kB / 0.5348 GB, free: 11.25 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 266 * Number of states: 0 () * Number of discrete variables: 3 (body.sphereColor[3],body.sphereColor[2],body.sphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (334): * Single equations (assignments): 330 * Array equations: 4 * 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.001587/0.4689, allocations: 1.306 MB / 0.5361 GB, free: 10.59 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002049/0.4691, allocations: 154.8 kB / 0.5362 GB, free: 10.5 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00147/0.4706, allocations: 1.071 MB / 0.5373 GB, free: 10.09 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.045e-05/0.4707, allocations: 20.98 kB / 0.5373 GB, free: 10.09 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.991e-06/0.4707, allocations: 0.5469 kB / 0.5373 GB, free: 10.09 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.514e-06/0.4707, allocations: 3.797 kB / 0.5373 GB, free: 10.09 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005006/0.4757, allocations: 3.574 MB / 0.5408 GB, free: 8.688 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.042e-06/0.4758, allocations: 3.969 kB / 0.5408 GB, free: 8.688 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004386/0.4762, allocations: 109.3 kB / 0.5409 GB, free: 8.676 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.303e-06/0.4762, allocations: 3.75 kB / 0.5409 GB, free: 8.676 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.311e-05/0.4763, allocations: 23.05 kB / 0.5409 GB, free: 8.664 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.512e-06/0.4763, allocations: 3.562 kB / 0.5409 GB, free: 8.664 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.865e-06/0.4763, allocations: 1.125 kB / 0.5409 GB, free: 8.664 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001896/0.4782, allocations: 1.741 MB / 0.5426 GB, free: 7.891 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003753/0.4786, allocations: 244.2 kB / 0.5428 GB, free: 7.688 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001588/0.4787, allocations: 14.75 kB / 0.5429 GB, free: 7.68 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004782/0.4792, allocations: 33.16 kB / 0.5429 GB, free: 7.672 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001018/0.4793, allocations: 39.16 kB / 0.5429 GB, free: 7.664 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.799e-05/0.4794, allocations: 28.33 kB / 0.543 GB, free: 7.66 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001463/0.4809, allocations: 1.313 MB / 0.5442 GB, free: 7.168 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.4809, allocations: 0 / 0.5442 GB, free: 7.168 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002217/0.4831, allocations: 0.6258 MB / 0.5449 GB, free: 6.832 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (body.r[1],body.r[2],body.v[1],body.v[2],body.phi,body.w) * 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 (55): * Single equations (assignments): 51 * Array equations: 4 * 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 Backend phase and start with SimCode phase: time 0.0002939/0.4834, allocations: 139.6 kB / 0.545 GB, free: 6.695 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002932/0.4864, allocations: 2.029 MB / 0.547 GB, free: 4.793 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.887e-06/0.4864, allocations: 0 / 0.547 GB, free: 4.793 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005054/0.4869, allocations: 478.4 kB / 0.5474 GB, free: 4.328 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001254/0.4882, allocations: 290.7 kB / 0.5477 GB, free: 4.059 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007369/0.4955, allocations: 5.234 MB / 0.5528 GB, free: 14.8 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002148/0.4977, allocations: 2.189 MB / 0.5549 GB, free: 12.57 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005638/0.4983, allocations: 151.4 kB / 0.5551 GB, free: 12.43 MB / 398.1 MB Notification: Performance of SimCode: time 1.333e-06/0.4983, allocations: 3.609 kB / 0.5551 GB, free: 12.43 MB / 398.1 MB Notification: Performance of Templates: time 0.04913/0.5475, allocations: 31.22 MB / 0.5856 GB, free: 13.36 MB / 430.1 MB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.FreeBody.makefile (rm -f PlanarMechanics_PlanarMechanics.Examples.FreeBody.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.FreeBody.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.FreeBody.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.FreeBody.sim & ./PlanarMechanics_PlanarMechanics.Examples.FreeBody -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.FreeBody.pipe 2>&1)