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-master/package.mo", uses=false) Using package PlanarMechanics with version 1.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/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.006516/0.006516, allocations: 101.1 kB / 15.73 MB, free: 6.043 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.001136/0.001136, allocations: 190.6 kB / 16.67 MB, free: 5.977 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.436/1.436, allocations: 222.9 MB / 240.4 MB, free: 4.156 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.2317/0.2317, allocations: 9.118 MB / 299.6 MB, free: 1.766 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002042/0.002042, allocations: 63.89 kB / 414.6 MB, free: 8.355 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3517/0.3538, allocations: 51.43 MB / 466.1 MB, free: 18.16 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.FreeBody): time 0.006837/0.3607, allocations: 5.84 MB / 471.9 MB, free: 14.04 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00411/0.3648, allocations: 2.02 MB / 473.9 MB, free: 12.68 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007977/0.3656, allocations: 24.19 kB / 474 MB, free: 12.68 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006302/0.3663, allocations: 262.2 kB / 474.2 MB, free: 12.57 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002654/0.369, allocations: 1.126 MB / 475.3 MB, free: 12.05 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001547/0.3692, allocations: 35.73 kB / 475.4 MB, free: 12.03 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00238/0.3716, allocations: 1.889 MB / 477.3 MB, free: 11.06 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002654/0.3719, allocations: 151.7 kB / 477.4 MB, free: 10.99 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009571/0.3728, allocations: 0.6495 MB / 478.1 MB, free: 10.61 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001033/0.3739, allocations: 0.9919 MB / 479.1 MB, free: 10.02 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003167/0.3742, allocations: 177 kB / 479.2 MB, free: 10.02 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001377/0.3756, allocations: 0.7367 MB / 480 MB, free: 9.707 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008581/0.3764, allocations: 0.9479 MB / 480.9 MB, free: 9.164 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001059/0.3775, allocations: 1.193 MB / 482.1 MB, free: 8.211 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005023/0.3825, allocations: 4.062 MB / 486.2 MB, free: 5.426 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.464e-06/0.3826, allocations: 0 / 486.2 MB, free: 5.426 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.304e-06/0.3826, allocations: 0 / 486.2 MB, free: 5.426 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001113/0.3827, allocations: 0 / 486.2 MB, free: 5.426 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.00601/0.3887, allocations: 2.572 MB / 488.7 MB, free: 3.508 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.971e-05/0.3888, allocations: 13.28 kB / 488.8 MB, free: 3.504 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006267/0.3951, allocations: 1.677 MB / 490.4 MB, free: 2.613 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00275/0.3978, allocations: 1.082 MB / 491.5 MB, free: 1.812 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000122/0.398, allocations: 103.2 kB / 491.6 MB, free: 1.762 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003638/0.3983, allocations: 129.2 kB / 491.7 MB, free: 1.715 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009246/0.4076, allocations: 6.496 MB / 498.2 MB, free: 11.62 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.715e-05/0.4077, allocations: 15.94 kB / 498.2 MB, free: 11.61 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002137/0.4079, allocations: 67.81 kB / 498.3 MB, free: 11.54 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002558/0.4105, allocations: 1.625 MB / 499.9 MB, free: 9.91 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01123/0.4217, allocations: 6.047 MB / 0.4941 GB, free: 3.848 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03278/0.4545, allocations: 18.14 MB / 0.5118 GB, free: 1.371 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003162/0.4577, allocations: 1.539 MB / 0.5133 GB, free: 15.7 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009794/0.4588, allocations: 0.5344 MB / 0.5139 GB, free: 15.17 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004397/0.4632, allocations: 2.139 MB / 0.516 GB, free: 12.9 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.033e-05/0.4633, allocations: 35 kB / 0.516 GB, free: 12.86 MB / 398.1 MB Notification: Performance of pre-optimization done (n=80): time 3.527e-06/0.4633, allocations: 0 / 0.516 GB, free: 12.86 MB / 398.1 MB Notification: Performance of matching and sorting (n=80): time 0.003295/0.4666, allocations: 1.498 MB / 0.5174 GB, free: 11.36 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.775e-05/0.4667, allocations: 63.78 kB / 0.5175 GB, free: 11.28 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004/0.4707, allocations: 2.011 MB / 0.5195 GB, free: 9.262 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.96e-05/0.4708, allocations: 29.7 kB / 0.5195 GB, free: 9.227 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001375/0.4721, allocations: 1.654 MB / 0.5211 GB, free: 7.547 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003881/0.4725, allocations: 327.8 kB / 0.5214 GB, free: 7.223 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001021/0.4736, allocations: 0.5635 MB / 0.522 GB, free: 6.652 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001961/0.4738, allocations: 361.9 kB / 0.5223 GB, free: 6.293 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001796/0.4756, allocations: 0.9227 MB / 0.5232 GB, free: 5.367 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002976/0.4786, allocations: 2.574 MB / 0.5257 GB, free: 1.965 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004837/0.4834, allocations: 3.722 MB / 0.5294 GB, free: 13.42 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.204e-05/0.4835, allocations: 16 kB / 0.5294 GB, free: 13.41 MB / 414.1 MB Notification: Performance of matching and sorting (n=360) (initialization): time 0.006735/0.4903, allocations: 3.433 MB / 0.5327 GB, free: 9.973 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.966e-05/0.4903, allocations: 28.09 kB / 0.5328 GB, free: 9.945 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001102/0.4905, allocations: 63.94 kB / 0.5328 GB, free: 9.883 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.575e-05/0.4906, allocations: 79.94 kB / 0.5329 GB, free: 9.805 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002052/0.4926, allocations: 0.6082 MB / 0.5335 GB, free: 9.195 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001218/0.4928, allocations: 120 kB / 0.5336 GB, free: 9.078 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002537/0.4953, allocations: 415.6 kB / 0.534 GB, free: 8.668 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003704/0.4957, allocations: 176 kB / 0.5342 GB, free: 8.496 MB / 414.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.002577/0.4983, allocations: 1.309 MB / 0.5355 GB, free: 7.176 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003703/0.4987, allocations: 150 kB / 0.5356 GB, free: 7.027 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002535/0.5012, allocations: 1.06 MB / 0.5366 GB, free: 5.953 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001126/0.5013, allocations: 19.98 kB / 0.5367 GB, free: 5.934 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.72e-05/0.5014, allocations: 7.875 kB / 0.5367 GB, free: 5.926 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.226e-05/0.5014, allocations: 0 / 0.5367 GB, free: 5.926 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009343/0.5107, allocations: 3.591 MB / 0.5402 GB, free: 2.262 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.183e-05/0.5108, allocations: 0 / 0.5402 GB, free: 2.262 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005247/0.5113, allocations: 103.9 kB / 0.5403 GB, free: 2.16 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.212e-05/0.5114, allocations: 4 kB / 0.5403 GB, free: 2.156 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.089e-05/0.5114, allocations: 19.98 kB / 0.5403 GB, free: 2.137 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.334e-05/0.5115, allocations: 7.938 kB / 0.5403 GB, free: 2.129 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.5115, allocations: 0 / 0.5403 GB, free: 2.129 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002692/0.5142, allocations: 1.736 MB / 0.542 GB, free: 368 kB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006592/0.5148, allocations: 247 kB / 0.5422 GB, free: 100 kB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004382/0.5153, allocations: 11.98 kB / 0.5422 GB, free: 88 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000768/0.5161, allocations: 35.97 kB / 0.5423 GB, free: 52 kB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.086e-05/0.5162, allocations: 36.33 kB / 0.5423 GB, free: 16 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.828e-05/0.5163, allocations: 27.98 kB / 0.5423 GB, free: 15.99 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002745/0.519, allocations: 1.31 MB / 0.5436 GB, free: 14.68 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.519, allocations: 0 / 0.5436 GB, free: 14.68 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003253/0.5223, allocations: 0.634 MB / 0.5442 GB, free: 14.05 MB / 430.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.0004366/0.5227, allocations: 139.1 kB / 0.5444 GB, free: 13.9 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004071/0.5268, allocations: 2.013 MB / 0.5463 GB, free: 11.9 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.031e-06/0.5268, allocations: 0.5625 kB / 0.5463 GB, free: 11.9 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000738/0.5276, allocations: 486.4 kB / 0.5468 GB, free: 11.43 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002122/0.5297, allocations: 291.2 kB / 0.5471 GB, free: 11.15 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01127/0.541, allocations: 4.917 MB / 0.5519 GB, free: 6.188 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0037/0.5448, allocations: 2.168 MB / 0.554 GB, free: 3.988 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002643/0.5474, allocations: 0.8889 MB / 0.5549 GB, free: 3.094 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004735/0.5479, allocations: 111.4 kB / 0.555 GB, free: 2.984 MB / 430.1 MB Notification: Performance of SimCode: time 1.153e-06/0.5479, allocations: 4 kB / 0.555 GB, free: 2.98 MB / 430.1 MB Notification: Performance of Templates: time 0.03969/0.5876, allocations: 18.12 MB / 0.5727 GB, free: 0.9375 MB / 446.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)