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.0009012/0.0009011, allocations: 95.86 kB / 15.05 MB, free: 1.113 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.0009805/0.0009807, allocations: 181.3 kB / 15.95 MB, free: 220 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.365/1.365, allocations: 223.2 MB / 239.9 MB, free: 5.238 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1744/0.1744, allocations: 9.088 MB / 300.1 MB, free: 2.707 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003074/0.0003075, allocations: 8 kB / 363 MB, free: 13.02 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1077/0.108, allocations: 52.43 MB / 415.4 MB, free: 8.547 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.FreeBody): time 0.008852/0.1169, allocations: 8.096 MB / 423.5 MB, free: 432 kB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.2402/0.3572, allocations: 2.619 MB / 426.1 MB, free: 34.55 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001187/0.3584, allocations: 30.31 kB / 426.2 MB, free: 34.55 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008499/0.3593, allocations: 380.4 kB / 426.5 MB, free: 34.54 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003034/0.3623, allocations: 1.283 MB / 427.8 MB, free: 34.46 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001399/0.3625, allocations: 36.5 kB / 427.9 MB, free: 34.46 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001446/0.3639, allocations: 0.9879 MB / 428.8 MB, free: 34.43 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002382/0.3642, allocations: 151.6 kB / 429 MB, free: 34.38 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004745/0.3647, allocations: 477.2 kB / 429.5 MB, free: 34.3 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007852/0.3655, allocations: 0.7227 MB / 430.2 MB, free: 34.19 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001612/0.3656, allocations: 96 kB / 430.3 MB, free: 34.19 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008269/0.3665, allocations: 0.5768 MB / 430.9 MB, free: 34.18 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005309/0.367, allocations: 0.8061 MB / 431.7 MB, free: 34.09 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003551/0.3674, allocations: 0.4999 MB / 432.2 MB, free: 33.96 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002246/0.3696, allocations: 3.012 MB / 435.2 MB, free: 33.77 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.715e-06/0.3696, allocations: 3.938 kB / 435.2 MB, free: 33.76 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.866e-06/0.3696, allocations: 0 / 435.2 MB, free: 33.76 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.559e-05/0.3697, allocations: 0 / 435.2 MB, free: 33.76 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: 902 * Number of variables: 902 Notification: Performance of Generate backend data structure: time 0.003613/0.3733, allocations: 2.147 MB / 437.3 MB, free: 32.62 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.349e-05/0.3734, allocations: 9.312 kB / 437.3 MB, free: 32.62 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006802/0.3802, allocations: 2.074 MB / 439.4 MB, free: 32.46 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002297/0.3825, allocations: 1.066 MB / 440.5 MB, free: 32.04 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001006/0.3826, allocations: 100.5 kB / 440.6 MB, free: 32.04 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003304/0.383, allocations: 131.6 kB / 440.7 MB, free: 32.03 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008346/0.3913, allocations: 6.491 MB / 447.2 MB, free: 30.77 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.268e-05/0.3914, allocations: 14.73 kB / 447.2 MB, free: 30.77 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002623/0.3917, allocations: 63.73 kB / 447.3 MB, free: 30.75 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003062/0.3947, allocations: 1.628 MB / 448.9 MB, free: 30.42 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01186/0.4066, allocations: 6.024 MB / 454.9 MB, free: 28.31 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03003/0.4367, allocations: 18.19 MB / 473.1 MB, free: 17.12 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003003/0.4398, allocations: 1.556 MB / 474.7 MB, free: 16.18 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004372/0.4402, allocations: 360.1 kB / 475 MB, free: 15.89 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.287e-05/0.4403, allocations: 39.28 kB / 475.1 MB, free: 15.84 MB / 350.1 MB Notification: Performance of pre-optimization done (n=96): time 4.358e-06/0.4403, allocations: 0 / 475.1 MB, free: 15.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=96): time 0.004536/0.4448, allocations: 2.122 MB / 477.2 MB, free: 14.85 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.776e-05/0.4449, allocations: 58.88 kB / 477.2 MB, free: 14.79 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003596/0.4485, allocations: 1.937 MB / 479.2 MB, free: 14.03 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.585e-05/0.4486, allocations: 37.62 kB / 479.2 MB, free: 13.99 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009746/0.4496, allocations: 1.609 MB / 480.8 MB, free: 12.75 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003814/0.45, allocations: 375.9 kB / 481.2 MB, free: 12.49 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001128/0.4501, allocations: 51.69 kB / 481.2 MB, free: 12.45 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002684/0.4504, allocations: 493.7 kB / 481.7 MB, free: 12.06 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001692/0.4521, allocations: 0.9369 MB / 482.7 MB, free: 11.7 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002207/0.4543, allocations: 2.579 MB / 485.2 MB, free: 8.902 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002211/0.4565, allocations: 1.586 MB / 486.8 MB, free: 8.07 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.36e-05/0.4566, allocations: 16 kB / 486.8 MB, free: 8.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=366) (initialization): time 0.005464/0.462, allocations: 3.467 MB / 490.3 MB, free: 6.188 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.855e-05/0.4621, allocations: 32.78 kB / 490.3 MB, free: 6.156 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.632e-05/0.4622, allocations: 60 kB / 490.4 MB, free: 6.098 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.76e-05/0.4622, allocations: 88.73 kB / 490.5 MB, free: 6.012 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00164/0.4639, allocations: 0.6238 MB / 491.1 MB, free: 5.387 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.003e-05/0.464, allocations: 115.6 kB / 491.2 MB, free: 5.273 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00214/0.4661, allocations: 411.6 kB / 491.6 MB, free: 4.867 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002226/0.4664, allocations: 178.3 kB / 491.8 MB, free: 4.695 MB / 350.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 (340): * Single equations (assignments): 336 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00219/0.4686, allocations: 1.312 MB / 493.1 MB, free: 3.371 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002878/0.4688, allocations: 150 kB / 493.2 MB, free: 3.223 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001891/0.4707, allocations: 1.34 MB / 494.6 MB, free: 1.867 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.372e-05/0.4709, allocations: 19.98 kB / 494.6 MB, free: 1.848 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.644e-06/0.4709, allocations: 1.172 kB / 494.6 MB, free: 1.848 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.656e-06/0.4709, allocations: 3.984 kB / 494.6 MB, free: 1.844 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007617/0.4785, allocations: 4.012 MB / 498.6 MB, free: 13.75 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.895e-06/0.4786, allocations: 0 / 498.6 MB, free: 13.75 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005631/0.4791, allocations: 131.8 kB / 498.8 MB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.171e-05/0.4792, allocations: 4 kB / 498.8 MB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.496e-05/0.4792, allocations: 23.98 kB / 498.8 MB, free: 13.6 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.457e-06/0.4792, allocations: 4 kB / 498.8 MB, free: 13.59 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.278e-06/0.4792, allocations: 4.188 kB / 498.8 MB, free: 13.59 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002961/0.4822, allocations: 2.171 MB / 0.4892 GB, free: 11.29 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006449/0.4829, allocations: 270.8 kB / 0.4895 GB, free: 11.01 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001788/0.4831, allocations: 23.89 kB / 0.4895 GB, free: 10.98 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005347/0.4836, allocations: 35.95 kB / 0.4895 GB, free: 10.95 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.75e-05/0.4837, allocations: 48.45 kB / 0.4896 GB, free: 10.9 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.824e-05/0.4838, allocations: 30.48 kB / 0.4896 GB, free: 10.88 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.002124/0.4859, allocations: 1.282 MB / 0.4909 GB, free: 9.598 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.4859, allocations: 0 / 0.4909 GB, free: 9.598 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00292/0.4888, allocations: 0.6341 MB / 0.4915 GB, free: 8.961 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * 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 (68): * Single equations (assignments): 64 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003584/0.4892, allocations: 145.7 kB / 0.4916 GB, free: 8.809 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003674/0.4929, allocations: 2.089 MB / 0.4937 GB, free: 6.738 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.081e-06/0.4929, allocations: 256 / 0.4937 GB, free: 6.738 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008029/0.4937, allocations: 0.5384 MB / 0.4942 GB, free: 6.199 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001562/0.4953, allocations: 268.1 kB / 0.4944 GB, free: 5.945 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01076/0.5061, allocations: 6.167 MB / 0.5005 GB, free: 15.72 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003186/0.5093, allocations: 2.221 MB / 0.5026 GB, free: 13.47 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002751/0.5121, allocations: 0.94 MB / 0.5035 GB, free: 12.52 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004687/0.5126, allocations: 123.4 kB / 0.5037 GB, free: 12.41 MB / 382.1 MB Notification: Performance of SimCode: time 1.353e-06/0.5126, allocations: 4 kB / 0.5037 GB, free: 12.4 MB / 382.1 MB Notification: Performance of Templates: time 0.03459/0.5472, allocations: 16.41 MB / 0.5197 GB, free: 12.14 MB / 398.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)