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.005941/0.005941, allocations: 99.81 kB / 15.73 MB, free: 6.055 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.001283/0.001283, allocations: 194.9 kB / 16.67 MB, free: 5.969 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.406/1.406, allocations: 222.9 MB / 240.4 MB, free: 4.172 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.1966/0.1966, allocations: 9.113 MB / 299.6 MB, free: 1.688 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001551/0.001551, allocations: 64.11 kB / 414.6 MB, free: 8.363 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3006/0.3022, allocations: 51.42 MB / 466.1 MB, free: 18.06 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.FreeBody): time 0.006625/0.3089, allocations: 5.845 MB / 471.9 MB, free: 13.93 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004307/0.3132, allocations: 2.015 MB / 473.9 MB, free: 12.58 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007221/0.3139, allocations: 24.81 kB / 474 MB, free: 12.57 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007621/0.3147, allocations: 266 kB / 474.2 MB, free: 12.46 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002525/0.3173, allocations: 1.122 MB / 475.3 MB, free: 11.95 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001421/0.3175, allocations: 33.77 kB / 475.4 MB, free: 11.93 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002184/0.3197, allocations: 1.895 MB / 477.3 MB, free: 11.06 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002679/0.3199, allocations: 151.7 kB / 477.4 MB, free: 10.99 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006927/0.3206, allocations: 0.6457 MB / 478.1 MB, free: 10.61 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00098/0.3216, allocations: 0.9869 MB / 479 MB, free: 10.02 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002753/0.3219, allocations: 182.1 kB / 479.2 MB, free: 10.02 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001195/0.3231, allocations: 0.7332 MB / 480 MB, free: 9.711 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008251/0.324, allocations: 0.9514 MB / 480.9 MB, free: 9.164 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008812/0.3248, allocations: 1.193 MB / 482.1 MB, free: 8.211 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003972/0.3288, allocations: 4.072 MB / 486.2 MB, free: 5.414 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.521e-06/0.3288, allocations: 3.984 kB / 486.2 MB, free: 5.41 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.3288, allocations: 0 / 486.2 MB, free: 5.41 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.873e-05/0.3289, allocations: 1.375 kB / 486.2 MB, free: 5.41 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.004861/0.3338, allocations: 2.641 MB / 488.8 MB, free: 3.418 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.875e-05/0.3338, allocations: 10.56 kB / 488.8 MB, free: 3.418 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006152/0.34, allocations: 1.696 MB / 490.5 MB, free: 2.508 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002219/0.3422, allocations: 1.079 MB / 491.6 MB, free: 1.711 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.922e-05/0.3423, allocations: 103.5 kB / 491.7 MB, free: 1.66 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002924/0.3426, allocations: 129 kB / 491.8 MB, free: 1.613 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008609/0.3512, allocations: 6.499 MB / 498.3 MB, free: 11.54 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.491e-05/0.3513, allocations: 15.94 kB / 498.3 MB, free: 11.52 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002118/0.3515, allocations: 67.88 kB / 498.4 MB, free: 11.45 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002671/0.3542, allocations: 1.621 MB / 0.4883 GB, free: 9.828 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01021/0.3644, allocations: 6.055 MB / 0.4942 GB, free: 3.758 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03011/0.3946, allocations: 18.18 MB / 0.512 GB, free: 1.246 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002895/0.3975, allocations: 1.547 MB / 0.5135 GB, free: 15.57 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000901/0.3984, allocations: 0.5382 MB / 0.514 GB, free: 15.03 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00486/0.4033, allocations: 2.152 MB / 0.5161 GB, free: 12.75 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.495e-05/0.4034, allocations: 38.98 kB / 0.5161 GB, free: 12.71 MB / 398.1 MB Notification: Performance of pre-optimization done (n=80): time 2.866e-06/0.4034, allocations: 0 / 0.5161 GB, free: 12.71 MB / 398.1 MB Notification: Performance of matching and sorting (n=80): time 0.003236/0.4066, allocations: 1.503 MB / 0.5176 GB, free: 11.2 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.657e-05/0.4067, allocations: 59.78 kB / 0.5177 GB, free: 11.13 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00357/0.4103, allocations: 2.015 MB / 0.5196 GB, free: 9.105 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.275e-05/0.4104, allocations: 37.7 kB / 0.5197 GB, free: 9.062 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00115/0.4115, allocations: 1.709 MB / 0.5213 GB, free: 7.336 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003164/0.4118, allocations: 341.4 kB / 0.5217 GB, free: 7 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008475/0.4127, allocations: 0.5679 MB / 0.5222 GB, free: 6.426 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001585/0.4129, allocations: 365.9 kB / 0.5226 GB, free: 6.062 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001564/0.4144, allocations: 0.9188 MB / 0.5235 GB, free: 5.141 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002837/0.4173, allocations: 2.581 MB / 0.526 GB, free: 1.73 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004532/0.4218, allocations: 3.714 MB / 0.5296 GB, free: 13.2 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.399e-05/0.4219, allocations: 24 kB / 0.5296 GB, free: 13.18 MB / 414.1 MB Notification: Performance of matching and sorting (n=360) (initialization): time 0.006034/0.4279, allocations: 3.426 MB / 0.533 GB, free: 9.746 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.567e-05/0.428, allocations: 28 kB / 0.533 GB, free: 9.719 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001097/0.4281, allocations: 60.28 kB / 0.5331 GB, free: 9.66 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001149/0.4283, allocations: 76 kB / 0.5331 GB, free: 9.586 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001903/0.4302, allocations: 0.6128 MB / 0.5337 GB, free: 8.973 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001238/0.4303, allocations: 131.4 kB / 0.5339 GB, free: 8.844 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00248/0.4328, allocations: 424.9 kB / 0.5343 GB, free: 8.426 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003011/0.4331, allocations: 168 kB / 0.5344 GB, free: 8.262 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.002479/0.4356, allocations: 1.317 MB / 0.5357 GB, free: 6.934 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003346/0.436, allocations: 154.9 kB / 0.5359 GB, free: 6.781 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001791/0.4378, allocations: 1.06 MB / 0.5369 GB, free: 5.707 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.822e-05/0.4379, allocations: 23.97 kB / 0.5369 GB, free: 5.684 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.576e-06/0.4379, allocations: 8 kB / 0.5369 GB, free: 5.676 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.518e-06/0.4379, allocations: 4 kB / 0.5369 GB, free: 5.672 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007112/0.445, allocations: 3.584 MB / 0.5404 GB, free: 2.016 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.074e-06/0.4451, allocations: 0 / 0.5404 GB, free: 2.016 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004749/0.4455, allocations: 103.9 kB / 0.5405 GB, free: 1.914 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.796e-06/0.4456, allocations: 4 kB / 0.5405 GB, free: 1.91 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.593e-05/0.4456, allocations: 19.98 kB / 0.5406 GB, free: 1.891 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.506e-06/0.4456, allocations: 7.938 kB / 0.5406 GB, free: 1.883 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.004e-06/0.4456, allocations: 0 / 0.5406 GB, free: 1.883 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002382/0.448, allocations: 1.745 MB / 0.5423 GB, free: 108 kB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006232/0.4487, allocations: 256.1 kB / 0.5425 GB, free: 15.83 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003036/0.449, allocations: 19.92 kB / 0.5425 GB, free: 15.81 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006043/0.4496, allocations: 31.97 kB / 0.5426 GB, free: 15.78 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.427e-05/0.4497, allocations: 32.39 kB / 0.5426 GB, free: 15.75 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.761e-05/0.4497, allocations: 27.98 kB / 0.5426 GB, free: 15.72 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002057/0.4518, allocations: 1.31 MB / 0.5439 GB, free: 14.42 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4518, allocations: 0 / 0.5439 GB, free: 14.42 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002709/0.4545, allocations: 0.6425 MB / 0.5445 GB, free: 13.77 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.0003472/0.4549, allocations: 142.8 kB / 0.5447 GB, free: 13.63 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003264/0.4582, allocations: 2.013 MB / 0.5466 GB, free: 11.63 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 7.373e-06/0.4582, allocations: 8.188 kB / 0.5466 GB, free: 11.62 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000646/0.4588, allocations: 474.4 kB / 0.5471 GB, free: 11.16 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001585/0.4604, allocations: 294.4 kB / 0.5474 GB, free: 10.88 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01034/0.4708, allocations: 5.002 MB / 0.5523 GB, free: 5.824 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003063/0.4739, allocations: 2.168 MB / 0.5544 GB, free: 3.625 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002394/0.4763, allocations: 0.8928 MB / 0.5552 GB, free: 2.727 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003789/0.4767, allocations: 111.4 kB / 0.5554 GB, free: 2.617 MB / 430.1 MB Notification: Performance of SimCode: time 1.533e-06/0.4767, allocations: 0 / 0.5554 GB, free: 2.617 MB / 430.1 MB Notification: Performance of Templates: time 0.03514/0.5118, allocations: 18.12 MB / 0.573 GB, free: 0.582 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)