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.001399/0.001399, allocations: 108.1 kB / 16.41 MB, free: 6.5 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.001387/0.001387, allocations: 188.1 kB / 17.34 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.276/1.276, 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.05736/0.05736, allocations: 9.106 MB / 300.3 MB, free: 5.836 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001154/0.001155, allocations: 67.89 kB / 415.3 MB, free: 21.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09289/0.09406, allocations: 51.44 MB / 466.7 MB, free: 1.688 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.FreeBody): time 0.007073/0.1012, allocations: 5.84 MB / 472.6 MB, free: 11.82 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003736/0.1049, allocations: 2.024 MB / 474.6 MB, free: 9.781 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005449/0.1055, allocations: 27.94 kB / 474.6 MB, free: 9.754 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005617/0.1061, allocations: 258.5 kB / 474.9 MB, free: 9.5 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002376/0.1085, allocations: 1.101 MB / 476 MB, free: 8.395 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001335/0.1087, allocations: 31.95 kB / 476 MB, free: 8.363 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001945/0.1106, allocations: 1.888 MB / 477.9 MB, free: 6.473 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002574/0.1109, allocations: 154.7 kB / 478.1 MB, free: 6.305 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008402/0.1117, allocations: 0.6459 MB / 478.7 MB, free: 5.656 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001116/0.1129, allocations: 0.9966 MB / 479.7 MB, free: 4.656 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002429/0.1131, allocations: 176 kB / 479.9 MB, free: 4.484 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001178/0.1143, allocations: 0.7333 MB / 480.6 MB, free: 3.75 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007376/0.1151, allocations: 0.9467 MB / 481.6 MB, free: 2.801 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001081/0.1161, allocations: 1.196 MB / 482.7 MB, free: 1.598 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003963/0.1201, allocations: 4.057 MB / 486.8 MB, free: 13.53 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.581e-06/0.1201, allocations: 0 / 486.8 MB, free: 13.53 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.033e-06/0.1202, allocations: 0 / 486.8 MB, free: 13.53 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.002e-05/0.1202, allocations: 4 kB / 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.004768/0.125, allocations: 2.571 MB / 489.4 MB, free: 10.89 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.674e-05/0.1251, allocations: 8.031 kB / 489.4 MB, free: 10.89 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006228/0.1313, allocations: 1.678 MB / 491.1 MB, free: 9.203 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001899/0.1332, allocations: 1.085 MB / 492.1 MB, free: 8.074 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.217e-05/0.1333, allocations: 102.8 kB / 492.2 MB, free: 7.973 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003015/0.1336, allocations: 132.2 kB / 492.4 MB, free: 7.844 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009563/0.1432, allocations: 6.501 MB / 498.9 MB, free: 1.109 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.352e-05/0.1433, allocations: 7.938 kB / 498.9 MB, free: 1.102 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003926/0.1437, allocations: 63.83 kB / 498.9 MB, free: 1.039 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002783/0.1465, allocations: 1.625 MB / 0.4888 GB, free: 15.41 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01115/0.1577, allocations: 6.043 MB / 0.4947 GB, free: 9.352 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2318/0.3895, allocations: 18.13 MB / 0.5124 GB, free: 30.64 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002375/0.392, allocations: 1.557 MB / 0.514 GB, free: 30.05 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007389/0.3927, allocations: 0.5314 MB / 0.5145 GB, free: 30.04 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00311/0.3958, allocations: 2.143 MB / 0.5166 GB, free: 29.15 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.935e-05/0.3959, allocations: 37.22 kB / 0.5166 GB, free: 29.11 MB / 382.1 MB Notification: Performance of pre-optimization done (n=80): time 2.374e-06/0.3959, allocations: 0 / 0.5166 GB, free: 29.11 MB / 382.1 MB Notification: Performance of matching and sorting (n=80): time 0.003046/0.3989, allocations: 1.495 MB / 0.5181 GB, free: 28.8 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.274e-05/0.399, allocations: 60.02 kB / 0.5181 GB, free: 28.74 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003031/0.402, allocations: 2.011 MB / 0.5201 GB, free: 27.96 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.787e-05/0.4021, allocations: 36.98 kB / 0.5201 GB, free: 27.92 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008899/0.403, allocations: 1.64 MB / 0.5217 GB, free: 26.66 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002204/0.4032, allocations: 331 kB / 0.522 GB, free: 26.43 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006508/0.4039, allocations: 0.5577 MB / 0.5226 GB, free: 26.15 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000102/0.404, allocations: 364.5 kB / 0.5229 GB, free: 25.82 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001386/0.4054, allocations: 0.9207 MB / 0.5238 GB, free: 25.52 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001877/0.4073, allocations: 2.578 MB / 0.5264 GB, free: 22.96 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003097/0.4104, allocations: 3.722 MB / 0.53 GB, free: 19.77 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.334e-05/0.4104, allocations: 21.53 kB / 0.53 GB, free: 19.76 MB / 382.1 MB Notification: Performance of matching and sorting (n=360) (initialization): time 0.004469/0.4149, allocations: 3.436 MB / 0.5334 GB, free: 18.41 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.896e-05/0.415, allocations: 31.47 kB / 0.5334 GB, free: 18.41 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.299e-05/0.415, allocations: 61.59 kB / 0.5335 GB, free: 18.41 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.717e-05/0.4151, allocations: 78.62 kB / 0.5335 GB, free: 18.41 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001516/0.4166, allocations: 0.6146 MB / 0.5341 GB, free: 18.33 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.499e-05/0.4167, allocations: 116.5 kB / 0.5342 GB, free: 18.3 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001885/0.4186, allocations: 414.8 kB / 0.5346 GB, free: 18.05 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001995/0.4188, allocations: 174.6 kB / 0.5348 GB, free: 18.03 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.001892/0.4207, allocations: 1.302 MB / 0.5361 GB, free: 17.37 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002285/0.4209, allocations: 154 kB / 0.5362 GB, free: 17.29 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001584/0.4225, allocations: 1.07 MB / 0.5373 GB, free: 16.88 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.734e-05/0.4226, allocations: 19.42 kB / 0.5373 GB, free: 16.88 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.131e-06/0.4226, allocations: 0 / 0.5373 GB, free: 16.88 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.945e-06/0.4226, allocations: 3.797 kB / 0.5373 GB, free: 16.88 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004654/0.4273, allocations: 3.588 MB / 0.5408 GB, free: 15.27 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.979e-06/0.4273, allocations: 0 / 0.5408 GB, free: 15.27 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004354/0.4277, allocations: 105.4 kB / 0.5409 GB, free: 15.25 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.43e-06/0.4278, allocations: 0 / 0.5409 GB, free: 15.25 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.12e-05/0.4278, allocations: 18.84 kB / 0.5409 GB, free: 15.24 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.079e-06/0.4278, allocations: 3.875 kB / 0.5409 GB, free: 15.24 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.335e-06/0.4278, allocations: 3.75 kB / 0.5409 GB, free: 15.24 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001775/0.4296, allocations: 1.735 MB / 0.5426 GB, free: 14.29 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003036/0.4299, allocations: 248 kB / 0.5429 GB, free: 14.07 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001673/0.4301, allocations: 15 kB / 0.5429 GB, free: 14.06 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004818/0.4306, allocations: 38.48 kB / 0.5429 GB, free: 14.04 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.724e-05/0.4307, allocations: 37.3 kB / 0.5429 GB, free: 14.02 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.992e-05/0.4307, allocations: 29.05 kB / 0.543 GB, free: 14.02 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001351/0.4321, allocations: 1.312 MB / 0.5442 GB, free: 12.74 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4321, allocations: 4 kB / 0.5443 GB, free: 12.74 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002003/0.4341, allocations: 0.626 MB / 0.5449 GB, free: 12.11 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.0002574/0.4344, allocations: 142.1 kB / 0.545 GB, free: 11.97 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002421/0.4368, allocations: 2.014 MB / 0.547 GB, free: 9.969 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.125e-06/0.4368, allocations: 192 / 0.547 GB, free: 9.969 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004776/0.4373, allocations: 474.5 kB / 0.5474 GB, free: 9.508 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001245/0.4386, allocations: 302.7 kB / 0.5477 GB, free: 9.234 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006436/0.445, allocations: 5.232 MB / 0.5528 GB, free: 3.977 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001503/0.4465, allocations: 2.185 MB / 0.5549 GB, free: 1.762 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004265/0.447, allocations: 159 kB / 0.5551 GB, free: 1.609 MB / 382.1 MB Notification: Performance of SimCode: time 7.51e-07/0.447, allocations: 0 / 0.5551 GB, free: 1.609 MB / 382.1 MB Notification: Performance of Templates: time 0.04395/0.4909, allocations: 31.23 MB / 0.5856 GB, free: 2.527 MB / 414.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)