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.001692/0.001692, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.00222/0.00222, allocations: 192.2 kB / 16.25 MB, free: 6.637 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.408/1.408, allocations: 222.9 MB / 239.9 MB, free: 4.531 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.1773/0.1773, allocations: 9.114 MB / 299.2 MB, free: 1.801 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001344/0.001345, allocations: 67.89 kB / 361.5 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1005/0.1018, allocations: 51.42 MB / 412.9 MB, free: 9.945 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.SpringDamperDemo): time 0.2043/0.3061, allocations: 19.4 MB / 432.3 MB, free: 33.65 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01127/0.3175, allocations: 4.578 MB / 436.9 MB, free: 31.68 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00701/0.3245, allocations: 62.12 kB / 436.9 MB, free: 31.67 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001423/0.326, allocations: 301.2 kB / 437.2 MB, free: 31.56 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003739/0.3298, allocations: 1.237 MB / 438.5 MB, free: 30.98 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005119/0.3303, allocations: 98.14 kB / 438.6 MB, free: 30.93 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002724/0.3331, allocations: 2.459 MB / 441 MB, free: 29.84 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009701/0.3341, allocations: 0.8165 MB / 441.8 MB, free: 29.5 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000932/0.335, allocations: 0.86 MB / 442.7 MB, free: 29.12 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001251/0.3363, allocations: 1.363 MB / 444.1 MB, free: 28.6 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003007/0.3366, allocations: 224.3 kB / 444.3 MB, free: 28.6 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001237/0.3378, allocations: 0.8237 MB / 445.1 MB, free: 28.41 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007894/0.3386, allocations: 1.215 MB / 446.3 MB, free: 27.95 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001009/0.3396, allocations: 1.547 MB / 447.9 MB, free: 26.8 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004434/0.3441, allocations: 4.741 MB / 452.6 MB, free: 24.93 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.039e-06/0.3441, allocations: 0 / 452.6 MB, free: 24.93 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.913e-06/0.3441, allocations: 0 / 452.6 MB, free: 24.93 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.578e-05/0.3442, allocations: 0 / 452.6 MB, free: 24.93 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.005742/0.35, allocations: 3.265 MB / 455.9 MB, free: 22.93 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.75e-05/0.35, allocations: 6.719 kB / 455.9 MB, free: 22.93 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006247/0.3563, allocations: 1.77 MB / 457.6 MB, free: 22.63 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002063/0.3584, allocations: 1.291 MB / 458.9 MB, free: 21.8 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.754e-05/0.3585, allocations: 146.4 kB / 459.1 MB, free: 21.73 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003224/0.3588, allocations: 187.8 kB / 459.3 MB, free: 21.66 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01191/0.3707, allocations: 8.057 MB / 467.3 MB, free: 18.09 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.301e-05/0.3708, allocations: 20.06 kB / 467.3 MB, free: 18.08 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002785/0.3711, allocations: 93.56 kB / 467.4 MB, free: 18.01 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003264/0.3744, allocations: 1.998 MB / 469.4 MB, free: 17.61 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01656/0.3909, allocations: 7.147 MB / 476.6 MB, free: 15.17 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03862/0.4296, allocations: 24.14 MB / 0.489 GB, free: 12.18 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005111/0.4348, allocations: 2.155 MB / 0.4911 GB, free: 9.891 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00117/0.436, allocations: 0.7219 MB / 0.4918 GB, free: 9.168 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00619/0.4422, allocations: 3.987 MB / 0.4957 GB, free: 4.836 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.583e-05/0.4423, allocations: 47.5 kB / 0.4957 GB, free: 4.781 MB / 366.1 MB Notification: Performance of pre-optimization done (n=114): time 3.687e-06/0.4423, allocations: 0 / 0.4957 GB, free: 4.781 MB / 366.1 MB Notification: Performance of matching and sorting (n=117): time 0.009649/0.4519, allocations: 4.381 MB / 0.5 GB, free: 352 kB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.071e-05/0.452, allocations: 60.41 kB / 0.5001 GB, free: 280 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003557/0.4556, allocations: 2.581 MB / 0.5026 GB, free: 13.66 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001022/0.4557, allocations: 41.7 kB / 0.5026 GB, free: 13.61 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00136/0.4571, allocations: 2.112 MB / 0.5047 GB, free: 11.47 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004098/0.4575, allocations: 462.1 kB / 0.5051 GB, free: 11.01 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001003/0.4585, allocations: 0.75 MB / 0.5059 GB, free: 10.25 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.926e-05/0.4586, allocations: 305.1 kB / 0.5061 GB, free: 9.953 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001941/0.4605, allocations: 1.163 MB / 0.5073 GB, free: 8.789 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003252/0.4638, allocations: 3.316 MB / 0.5105 GB, free: 4.41 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005635/0.4695, allocations: 4.792 MB / 0.5152 GB, free: 14.55 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.922e-05/0.4696, allocations: 27.94 kB / 0.5152 GB, free: 14.53 MB / 398.1 MB Notification: Performance of matching and sorting (n=487) (initialization): time 0.008928/0.4785, allocations: 4.438 MB / 0.5196 GB, free: 10.09 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.278e-05/0.4786, allocations: 36 kB / 0.5196 GB, free: 10.05 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001124/0.4787, allocations: 76 kB / 0.5197 GB, free: 9.98 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001361/0.4789, allocations: 104 kB / 0.5198 GB, free: 9.879 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003009/0.4819, allocations: 0.8383 MB / 0.5206 GB, free: 9.039 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001216/0.482, allocations: 151.9 kB / 0.5207 GB, free: 8.891 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002662/0.4847, allocations: 175.9 kB / 0.5209 GB, free: 8.719 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004066/0.4851, allocations: 236 kB / 0.5211 GB, free: 8.488 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.003188/0.4883, allocations: 1.569 MB / 0.5227 GB, free: 6.91 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004548/0.4888, allocations: 201.4 kB / 0.5229 GB, free: 6.711 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002701/0.4915, allocations: 1.414 MB / 0.5242 GB, free: 5.289 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000138/0.4916, allocations: 27.98 kB / 0.5243 GB, free: 5.262 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.086e-06/0.4916, allocations: 0 / 0.5243 GB, free: 5.262 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.26e-05/0.4917, allocations: 3.984 kB / 0.5243 GB, free: 5.258 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009026/0.5007, allocations: 4.786 MB / 0.5289 GB, free: 348 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.512e-05/0.5008, allocations: 8 kB / 0.5289 GB, free: 340 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008727/0.5017, allocations: 188.4 kB / 0.5291 GB, free: 152 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.422e-05/0.5017, allocations: 12 kB / 0.5291 GB, free: 140 kB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.644e-05/0.5018, allocations: 28 kB / 0.5292 GB, free: 112 kB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.52e-05/0.5018, allocations: 15.92 kB / 0.5292 GB, free: 96 kB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.89e-06/0.5018, allocations: 4 kB / 0.5292 GB, free: 92 kB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003605/0.5054, allocations: 2.358 MB / 0.5315 GB, free: 13.64 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007155/0.5061, allocations: 294.5 kB / 0.5318 GB, free: 13.33 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002641/0.5064, allocations: 27.98 kB / 0.5318 GB, free: 13.3 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007789/0.5072, allocations: 43.95 kB / 0.5318 GB, free: 13.26 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001672/0.5074, allocations: 76.39 kB / 0.5319 GB, free: 13.19 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.885e-05/0.5075, allocations: 43.98 kB / 0.5319 GB, free: 13.14 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002555/0.51, allocations: 1.655 MB / 0.5336 GB, free: 11.47 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.51, allocations: 0 / 0.5336 GB, free: 11.47 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002972/0.513, allocations: 0.621 MB / 0.5342 GB, free: 10.85 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.0004802/0.5135, allocations: 164.1 kB / 0.5343 GB, free: 10.68 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.005858/0.5194, allocations: 3.255 MB / 0.5375 GB, free: 7.441 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 9.618e-06/0.5194, allocations: 4 kB / 0.5375 GB, free: 7.438 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000955/0.5204, allocations: 0.6343 MB / 0.5381 GB, free: 6.801 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002263/0.5227, allocations: 372.5 kB / 0.5385 GB, free: 6.457 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0125/0.5352, allocations: 7.958 MB / 0.5463 GB, free: 14.41 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002796/0.538, allocations: 2.551 MB / 0.5487 GB, free: 11.83 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.003125/0.5412, allocations: 1.113 MB / 0.5498 GB, free: 10.71 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004645/0.5416, allocations: 167.4 kB / 0.55 GB, free: 10.55 MB / 430.1 MB Notification: Performance of SimCode: time 1.022e-06/0.5416, allocations: 0 / 0.55 GB, free: 10.55 MB / 430.1 MB Notification: Performance of Templates: time 0.04561/0.5873, allocations: 22.34 MB / 0.5718 GB, free: 4.363 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)