Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo.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.SpringDamperDemo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo") translateModel(PlanarMechanics.Examples.SpringDamperDemo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001274/0.001274, allocations: 106.1 kB / 16.41 MB, free: 6.496 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.001305/0.001305, allocations: 185.5 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.265/1.265, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04229/0.04229, allocations: 9.129 MB / 300.3 MB, free: 5.828 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001168/0.001168, allocations: 59.91 kB / 415.3 MB, free: 21.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08817/0.08935, allocations: 51.45 MB / 466.7 MB, free: 1.664 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.SpringDamperDemo): time 0.008512/0.0979, allocations: 8.18 MB / 474.9 MB, free: 9.441 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004766/0.1027, allocations: 2.514 MB / 477.4 MB, free: 6.91 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001067/0.1038, allocations: 28 kB / 477.5 MB, free: 6.883 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001062/0.1049, allocations: 353.7 kB / 477.8 MB, free: 6.535 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003286/0.1082, allocations: 1.319 MB / 479.1 MB, free: 5.211 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005581/0.1088, allocations: 123.7 kB / 479.3 MB, free: 5.09 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003181/0.112, allocations: 2.44 MB / 481.7 MB, free: 2.645 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001277/0.1133, allocations: 0.8055 MB / 482.5 MB, free: 1.816 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001458/0.1148, allocations: 0.8598 MB / 483.4 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001993/0.1168, allocations: 1.257 MB / 484.6 MB, free: 15.69 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006744/0.1175, allocations: 227.9 kB / 484.8 MB, free: 15.46 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001864/0.1194, allocations: 0.8113 MB / 485.7 MB, free: 14.66 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001423/0.1208, allocations: 1.204 MB / 486.9 MB, free: 13.45 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002276/0.1231, allocations: 1.545 MB / 488.4 MB, free: 11.89 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005775/0.1289, allocations: 4.951 MB / 493.4 MB, free: 6.926 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.1289, allocations: 0 / 493.4 MB, free: 6.926 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.1289, allocations: 0 / 493.4 MB, free: 6.926 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001292/0.1291, allocations: 0 / 493.4 MB, free: 6.926 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: 1172 * Number of variables: 1172 Notification: Performance of Generate backend data structure: time 0.007633/0.1367, allocations: 3.257 MB / 496.6 MB, free: 3.605 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.955e-05/0.1368, allocations: 12.03 kB / 496.6 MB, free: 3.594 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007023/0.1438, allocations: 1.771 MB / 498.4 MB, free: 1.816 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002673/0.1465, allocations: 1.294 MB / 499.7 MB, free: 488 kB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001418/0.1467, allocations: 147.8 kB / 499.8 MB, free: 340 kB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007623/0.1475, allocations: 184.2 kB / 0.4883 GB, free: 156 kB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01344/0.1609, allocations: 8.061 MB / 0.4962 GB, free: 7.73 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.065e-05/0.161, allocations: 19.88 kB / 0.4962 GB, free: 7.711 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006277/0.1617, allocations: 87.86 kB / 0.4963 GB, free: 7.625 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003498/0.1652, allocations: 2.004 MB / 0.4982 GB, free: 5.617 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.218/0.3832, allocations: 7.135 MB / 0.5052 GB, free: 39.33 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03092/0.4142, allocations: 24.07 MB / 0.5287 GB, free: 23.99 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003935/0.4182, allocations: 2.149 MB / 0.5308 GB, free: 22.6 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001012/0.4192, allocations: 0.7243 MB / 0.5315 GB, free: 22.24 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004477/0.4237, allocations: 3.984 MB / 0.5354 GB, free: 18.91 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.181e-05/0.4238, allocations: 43.44 kB / 0.5354 GB, free: 18.86 MB / 382.1 MB Notification: Performance of pre-optimization done (n=114): time 3.256e-06/0.4238, allocations: 0 / 0.5354 GB, free: 18.86 MB / 382.1 MB Notification: Performance of matching and sorting (n=117): time 0.00771/0.4315, allocations: 4.381 MB / 0.5397 GB, free: 16.48 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.595e-05/0.4315, allocations: 60.03 kB / 0.5398 GB, free: 16.42 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002675/0.4342, allocations: 2.58 MB / 0.5423 GB, free: 15.01 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.976e-05/0.4343, allocations: 43.66 kB / 0.5423 GB, free: 14.97 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007624/0.4351, allocations: 2.118 MB / 0.5444 GB, free: 13.11 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002324/0.4353, allocations: 457 kB / 0.5448 GB, free: 12.74 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007085/0.436, allocations: 0.7504 MB / 0.5456 GB, free: 12.3 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.298e-05/0.4361, allocations: 303.2 kB / 0.5459 GB, free: 12 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001422/0.4375, allocations: 1.166 MB / 0.547 GB, free: 10.89 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002043/0.4396, allocations: 3.325 MB / 0.5502 GB, free: 6.508 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003609/0.4432, allocations: 4.792 MB / 0.5549 GB, free: 0.6602 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.797e-05/0.4432, allocations: 20 kB / 0.5549 GB, free: 0.6406 MB / 382.1 MB Notification: Performance of matching and sorting (n=487) (initialization): time 0.007001/0.4502, allocations: 4.427 MB / 0.5593 GB, free: 12.22 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.638e-05/0.4503, allocations: 44.91 kB / 0.5593 GB, free: 12.18 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001186/0.4505, allocations: 80 kB / 0.5594 GB, free: 12.1 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000201/0.4507, allocations: 100 kB / 0.5595 GB, free: 12 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002518/0.4532, allocations: 0.846 MB / 0.5603 GB, free: 11.15 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001277/0.4533, allocations: 151.4 kB / 0.5604 GB, free: 11 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002309/0.4557, allocations: 175.9 kB / 0.5606 GB, free: 10.83 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003505/0.456, allocations: 228 kB / 0.5608 GB, free: 10.61 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 345 * Number of states: 0 () * Number of discrete variables: 21 (fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],springDamper.color_b[3],springDamper.color_b[2],springDamper.color_b[1],springDamper.color_a[3],springDamper.color_a[2],springDamper.color_a[1],springDamper.color[3],springDamper.color[2],springDamper.color[1],springDamper.colorConnector_b[3],springDamper.colorConnector_b[2],springDamper.colorConnector_b[1],springDamper.colorConnector_a[3],springDamper.colorConnector_a[2],springDamper.colorConnector_a[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (459): * Single equations (assignments): 454 * Array equations: 5 * 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.002372/0.4584, allocations: 1.572 MB / 0.5624 GB, free: 9.027 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004216/0.4588, allocations: 209.2 kB / 0.5626 GB, free: 8.82 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002449/0.4613, allocations: 1.41 MB / 0.5639 GB, free: 7.402 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001267/0.4614, allocations: 23.98 kB / 0.564 GB, free: 7.379 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.035e-05/0.4614, allocations: 0 / 0.564 GB, free: 7.379 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.173e-05/0.4615, allocations: 11.98 kB / 0.564 GB, free: 7.367 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008975/0.4705, allocations: 4.784 MB / 0.5686 GB, free: 2.477 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.847e-05/0.4705, allocations: 11.98 kB / 0.5687 GB, free: 2.465 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008378/0.4714, allocations: 184.4 kB / 0.5688 GB, free: 2.285 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.779e-05/0.4714, allocations: 8 kB / 0.5688 GB, free: 2.277 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.377e-05/0.4715, allocations: 35.98 kB / 0.5689 GB, free: 2.242 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.274e-05/0.4715, allocations: 8 kB / 0.5689 GB, free: 2.234 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.715e-06/0.4715, allocations: 7.938 kB / 0.5689 GB, free: 2.227 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003362/0.4749, allocations: 2.363 MB / 0.5712 GB, free: 15.78 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006314/0.4756, allocations: 290.5 kB / 0.5715 GB, free: 15.47 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004837/0.476, allocations: 27.83 kB / 0.5715 GB, free: 15.45 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000986/0.477, allocations: 47.78 kB / 0.5716 GB, free: 15.41 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000129/0.4772, allocations: 72.45 kB / 0.5716 GB, free: 15.34 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.941e-05/0.4773, allocations: 39.98 kB / 0.5717 GB, free: 15.3 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002964/0.4803, allocations: 1.663 MB / 0.5733 GB, free: 13.62 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.4803, allocations: 0 / 0.5733 GB, free: 13.62 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003025/0.4833, allocations: 0.6146 MB / 0.5739 GB, free: 13.01 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * 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 (93): * Single equations (assignments): 88 * Array equations: 5 * 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.0003873/0.4837, allocations: 161.4 kB / 0.574 GB, free: 12.85 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004389/0.4881, allocations: 2.638 MB / 0.5766 GB, free: 10.23 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 7.454e-06/0.4881, allocations: 0 / 0.5766 GB, free: 10.23 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009462/0.4891, allocations: 0.6377 MB / 0.5772 GB, free: 9.594 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002228/0.4913, allocations: 377.3 kB / 0.5776 GB, free: 9.238 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01241/0.5037, allocations: 6.732 MB / 0.5842 GB, free: 2.434 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003631/0.5074, allocations: 2.559 MB / 0.5867 GB, free: 15.84 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000749/0.5082, allocations: 203.4 kB / 0.5869 GB, free: 15.64 MB / 430.1 MB Notification: Performance of SimCode: time 1.133e-06/0.5082, allocations: 0 / 0.5869 GB, free: 15.64 MB / 430.1 MB Notification: Performance of Templates: time 0.05634/0.5646, allocations: 39.92 MB / 0.6258 GB, free: 7.848 MB / 462.1 MB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo.makefile (rm -f PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo.sim & ./PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.SpringDamperDemo.pipe 2>&1)