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-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.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.001142/0.001142, allocations: 111.3 kB / 15.24 MB, free: 0.6484 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.00113/0.00113, allocations: 199.5 kB / 16.14 MB, free: 6.09 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.404/1.404, allocations: 222.9 MB / 239.8 MB, free: 4.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.1735/0.1735, allocations: 9.111 MB / 299.1 MB, free: 1.84 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001248/0.001248, allocations: 67.91 kB / 361.3 MB, free: 13.48 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09161/0.09288, allocations: 51.44 MB / 412.7 MB, free: 10 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.SpringDamperDemo): time 0.2032/0.2961, allocations: 19.4 MB / 432.1 MB, free: 33.67 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009838/0.306, allocations: 4.61 MB / 436.7 MB, free: 31.7 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00395/0.31, allocations: 67.59 kB / 436.8 MB, free: 31.69 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001018/0.3111, allocations: 296.7 kB / 437.1 MB, free: 31.58 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003398/0.3146, allocations: 1.248 MB / 438.3 MB, free: 31 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004661/0.315, allocations: 90.78 kB / 438.4 MB, free: 30.95 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003154/0.3182, allocations: 3.426 MB / 441.8 MB, free: 29.79 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001336/0.3196, allocations: 0.731 MB / 442.6 MB, free: 29.52 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001492/0.3211, allocations: 0.7321 MB / 443.3 MB, free: 29.23 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00177/0.3229, allocations: 1.269 MB / 444.6 MB, free: 28.79 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005203/0.3234, allocations: 130.8 kB / 444.7 MB, free: 28.79 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001525/0.3249, allocations: 0.7535 MB / 445.4 MB, free: 28.61 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009074/0.3259, allocations: 1.129 MB / 446.6 MB, free: 28.22 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009836/0.3268, allocations: 1.451 MB / 448 MB, free: 27.18 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003068/0.3299, allocations: 4.579 MB / 452.6 MB, free: 25.38 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.3299, allocations: 0 / 452.6 MB, free: 25.38 MB / 350.1 MB Notification: Performance of FrontEnd: time 8.32e-07/0.33, allocations: 0 / 452.6 MB, free: 25.38 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.87e-05/0.33, allocations: 0 / 452.6 MB, free: 25.38 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: 1172 * Number of variables: 1172 Notification: Performance of Generate backend data structure: time 0.004951/0.335, allocations: 3.26 MB / 455.9 MB, free: 23.39 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.493e-05/0.335, allocations: 10.06 kB / 455.9 MB, free: 23.39 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005803/0.3408, allocations: 1.767 MB / 457.6 MB, free: 23.09 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001823/0.3427, allocations: 1.298 MB / 458.9 MB, free: 22.26 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.137e-05/0.3428, allocations: 142.8 kB / 459.1 MB, free: 22.19 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003154/0.3431, allocations: 179.4 kB / 459.3 MB, free: 22.13 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009677/0.3528, allocations: 8.064 MB / 467.3 MB, free: 18.55 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.735e-05/0.3529, allocations: 25 kB / 467.3 MB, free: 18.54 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002568/0.3531, allocations: 88.45 kB / 467.4 MB, free: 18.47 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003359/0.3565, allocations: 2.002 MB / 469.4 MB, free: 18.07 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.014/0.3705, allocations: 7.141 MB / 476.6 MB, free: 15.63 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03313/0.4037, allocations: 24.14 MB / 0.489 GB, free: 12.08 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004215/0.4079, allocations: 2.15 MB / 0.4911 GB, free: 9.801 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001066/0.409, allocations: 0.7219 MB / 0.4918 GB, free: 9.078 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005434/0.4145, allocations: 3.995 MB / 0.4957 GB, free: 4.738 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.121e-05/0.4145, allocations: 47.5 kB / 0.4957 GB, free: 4.684 MB / 366.1 MB Notification: Performance of pre-optimization done (n=114): time 4.398e-06/0.4145, allocations: 0 / 0.4957 GB, free: 4.684 MB / 366.1 MB Notification: Performance of matching and sorting (n=117): time 0.009376/0.4239, allocations: 4.373 MB / 0.5 GB, free: 260 kB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.288e-05/0.424, allocations: 60.41 kB / 0.5001 GB, free: 188 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003877/0.4279, allocations: 2.585 MB / 0.5026 GB, free: 13.57 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.351e-05/0.428, allocations: 45.69 kB / 0.5026 GB, free: 13.52 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001499/0.4295, allocations: 2.112 MB / 0.5047 GB, free: 11.37 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003409/0.4298, allocations: 458.1 kB / 0.5051 GB, free: 10.92 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009178/0.4308, allocations: 0.7539 MB / 0.5059 GB, free: 10.16 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.15e-05/0.4309, allocations: 301.1 kB / 0.5062 GB, free: 9.859 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001817/0.4327, allocations: 1.171 MB / 0.5073 GB, free: 8.688 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0032/0.4359, allocations: 3.312 MB / 0.5105 GB, free: 4.312 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005243/0.4412, allocations: 4.792 MB / 0.5152 GB, free: 14.46 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.871e-05/0.4412, allocations: 20 kB / 0.5152 GB, free: 14.44 MB / 398.1 MB Notification: Performance of matching and sorting (n=487) (initialization): time 0.007593/0.4488, allocations: 4.427 MB / 0.5196 GB, free: 10.01 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.19e-05/0.4489, allocations: 44.03 kB / 0.5196 GB, free: 9.969 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.67e-05/0.449, allocations: 80 kB / 0.5197 GB, free: 9.891 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.898e-05/0.4491, allocations: 100 kB / 0.5198 GB, free: 9.793 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002409/0.4515, allocations: 0.8422 MB / 0.5206 GB, free: 8.949 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001131/0.4516, allocations: 151.6 kB / 0.5207 GB, free: 8.801 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002314/0.454, allocations: 175.9 kB / 0.5209 GB, free: 8.629 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002959/0.4543, allocations: 232 kB / 0.5211 GB, free: 8.402 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.002576/0.4569, allocations: 1.578 MB / 0.5227 GB, free: 6.816 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003836/0.4572, allocations: 205.3 kB / 0.5229 GB, free: 6.613 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002537/0.4598, allocations: 1.41 MB / 0.5242 GB, free: 5.195 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000137/0.4599, allocations: 27.98 kB / 0.5243 GB, free: 5.168 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.243e-06/0.46, allocations: 0 / 0.5243 GB, free: 5.168 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.242e-05/0.46, allocations: 8.266 kB / 0.5243 GB, free: 5.16 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007877/0.4679, allocations: 4.781 MB / 0.5289 GB, free: 252 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.298e-06/0.4679, allocations: 4 kB / 0.5289 GB, free: 248 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008107/0.4687, allocations: 187.6 kB / 0.5291 GB, free: 60 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.153e-05/0.4687, allocations: 8 kB / 0.5291 GB, free: 52 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.901e-05/0.4688, allocations: 35.97 kB / 0.5292 GB, free: 16 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.191e-05/0.4688, allocations: 11.94 kB / 0.5292 GB, free: 4 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.973e-05/0.4688, allocations: 8.047 kB / 0.5292 GB, free: 15.99 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003169/0.472, allocations: 2.358 MB / 0.5315 GB, free: 13.55 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004775/0.4725, allocations: 294.5 kB / 0.5318 GB, free: 13.24 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002407/0.4728, allocations: 24 kB / 0.5318 GB, free: 13.21 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007566/0.4735, allocations: 47.95 kB / 0.5318 GB, free: 13.17 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001179/0.4737, allocations: 76.38 kB / 0.5319 GB, free: 13.09 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.793e-05/0.4737, allocations: 47.98 kB / 0.532 GB, free: 13.05 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002297/0.476, allocations: 1.652 MB / 0.5336 GB, free: 11.38 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4761, allocations: 0 / 0.5336 GB, free: 11.38 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002491/0.4786, allocations: 0.621 MB / 0.5342 GB, free: 10.76 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.0003152/0.4789, allocations: 173 kB / 0.5343 GB, free: 10.58 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003851/0.4827, allocations: 2.604 MB / 0.5369 GB, free: 7.992 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.038e-06/0.4828, allocations: 0 / 0.5369 GB, free: 7.992 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008737/0.4836, allocations: 0.6364 MB / 0.5375 GB, free: 7.352 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001745/0.4854, allocations: 357.7 kB / 0.5378 GB, free: 7.008 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01163/0.497, allocations: 7.94 MB / 0.5456 GB, free: 14.98 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002659/0.4997, allocations: 2.563 MB / 0.5481 GB, free: 12.39 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.002875/0.5026, allocations: 1.113 MB / 0.5492 GB, free: 11.27 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000467/0.5031, allocations: 167.4 kB / 0.5493 GB, free: 11.11 MB / 430.1 MB Notification: Performance of SimCode: time 9.52e-07/0.5031, allocations: 4 kB / 0.5494 GB, free: 11.11 MB / 430.1 MB Notification: Performance of Templates: time 0.04429/0.5474, allocations: 21.59 MB / 0.5704 GB, free: 5.664 MB / 446.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)