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.008297/0.008296, allocations: 100.7 kB / 15.73 MB, free: 6.039 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.001342/0.001342, allocations: 188.9 kB / 16.67 MB, free: 5.973 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.456/1.456, 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.181/0.181, allocations: 9.123 MB / 299.7 MB, free: 1.77 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001506/0.001506, allocations: 59.91 kB / 414.6 MB, free: 8.359 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3491/0.3506, allocations: 51.43 MB / 466.1 MB, free: 18.11 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.SpringDamperDemo): time 0.01018/0.3609, allocations: 8.181 MB / 474.3 MB, free: 12.3 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007133/0.3681, allocations: 2.514 MB / 476.8 MB, free: 10.59 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002194/0.3703, allocations: 28 kB / 476.8 MB, free: 10.59 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001706/0.372, allocations: 352.2 kB / 477.1 MB, free: 10.43 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005313/0.3774, allocations: 1.365 MB / 478.5 MB, free: 9.562 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007443/0.3782, allocations: 118.7 kB / 478.6 MB, free: 9.469 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004398/0.3826, allocations: 2.446 MB / 481.1 MB, free: 8.059 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001908/0.3846, allocations: 0.8008 MB / 481.9 MB, free: 7.508 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00245/0.387, allocations: 0.8573 MB / 482.7 MB, free: 7.004 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002892/0.3899, allocations: 1.269 MB / 484 MB, free: 6.223 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00115/0.3911, allocations: 222.2 kB / 484.2 MB, free: 6.223 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003082/0.3942, allocations: 0.8034 MB / 485 MB, free: 5.898 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002701/0.3969, allocations: 1.214 MB / 486.2 MB, free: 5.191 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002773/0.3997, allocations: 1.534 MB / 487.8 MB, free: 3.984 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007249/0.407, allocations: 4.967 MB / 492.7 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.704e-06/0.407, allocations: 0 / 492.7 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.407, allocations: 0 / 492.7 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001713/0.4072, allocations: 1.625 kB / 492.7 MB, free: 0.5625 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.01031/0.4175, allocations: 3.259 MB / 496 MB, free: 14.09 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.654e-05/0.4176, allocations: 8.031 kB / 496 MB, free: 14.08 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007029/0.4246, allocations: 1.767 MB / 497.8 MB, free: 12.3 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003591/0.4283, allocations: 1.302 MB / 499.1 MB, free: 10.96 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001347/0.4284, allocations: 147.8 kB / 499.2 MB, free: 10.81 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003949/0.4288, allocations: 180.2 kB / 499.4 MB, free: 10.64 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01431/0.4431, allocations: 8.061 MB / 0.4956 GB, free: 2.215 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.308e-05/0.4433, allocations: 23.78 kB / 0.4956 GB, free: 2.191 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002788/0.4436, allocations: 87.86 kB / 0.4957 GB, free: 2.105 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00333/0.4469, allocations: 2.004 MB / 0.4976 GB, free: 100 kB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01458/0.4615, allocations: 7.141 MB / 0.5046 GB, free: 8.945 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04245/0.504, allocations: 24.05 MB / 0.5281 GB, free: 408 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00495/0.509, allocations: 2.155 MB / 0.5302 GB, free: 14.12 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001229/0.5103, allocations: 0.7256 MB / 0.5309 GB, free: 13.39 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006633/0.5169, allocations: 3.98 MB / 0.5348 GB, free: 9.062 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.285e-05/0.517, allocations: 47.5 kB / 0.5348 GB, free: 9.008 MB / 414.1 MB Notification: Performance of pre-optimization done (n=114): time 3.276e-06/0.517, allocations: 0 / 0.5348 GB, free: 9.008 MB / 414.1 MB Notification: Performance of matching and sorting (n=117): time 0.01094/0.5279, allocations: 4.374 MB / 0.5391 GB, free: 4.574 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.61e-05/0.528, allocations: 68.34 kB / 0.5392 GB, free: 4.496 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006312/0.5343, allocations: 2.585 MB / 0.5417 GB, free: 1.879 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 9.281e-05/0.5345, allocations: 37.7 kB / 0.5417 GB, free: 1.836 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002188/0.5367, allocations: 2.112 MB / 0.5438 GB, free: 15.69 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006205/0.5373, allocations: 465.9 kB / 0.5442 GB, free: 15.23 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001387/0.5387, allocations: 0.7462 MB / 0.545 GB, free: 14.47 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001329/0.5388, allocations: 305.1 kB / 0.5452 GB, free: 14.17 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001971/0.5408, allocations: 1.174 MB / 0.5464 GB, free: 13 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003697/0.5445, allocations: 3.312 MB / 0.5496 GB, free: 8.625 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006441/0.551, allocations: 4.802 MB / 0.5543 GB, free: 2.766 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.258e-05/0.551, allocations: 24 kB / 0.5543 GB, free: 2.742 MB / 430.1 MB Notification: Performance of matching and sorting (n=487) (initialization): time 0.008595/0.5596, allocations: 4.427 MB / 0.5587 GB, free: 14.31 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.114e-05/0.5597, allocations: 36 kB / 0.5587 GB, free: 14.28 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001262/0.5599, allocations: 76 kB / 0.5588 GB, free: 14.2 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000112/0.56, allocations: 100 kB / 0.5589 GB, free: 14.11 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002717/0.5627, allocations: 0.8422 MB / 0.5597 GB, free: 13.26 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001612/0.5629, allocations: 151.4 kB / 0.5598 GB, free: 13.11 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002951/0.5659, allocations: 175.9 kB / 0.56 GB, free: 12.94 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004075/0.5663, allocations: 228.1 kB / 0.5602 GB, free: 12.72 MB / 446.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.003118/0.5694, allocations: 1.575 MB / 0.5618 GB, free: 11.13 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006053/0.57, allocations: 209.3 kB / 0.562 GB, free: 10.92 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002812/0.5728, allocations: 1.406 MB / 0.5633 GB, free: 9.504 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001325/0.573, allocations: 27.98 kB / 0.5634 GB, free: 9.477 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.185e-05/0.573, allocations: 0 / 0.5634 GB, free: 9.477 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.525e-05/0.573, allocations: 3.984 kB / 0.5634 GB, free: 9.473 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01097/0.584, allocations: 4.797 MB / 0.568 GB, free: 4.535 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.007e-05/0.5841, allocations: 8.125 kB / 0.5681 GB, free: 4.527 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008102/0.5849, allocations: 183.7 kB / 0.5682 GB, free: 4.348 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.318e-05/0.5849, allocations: 8 kB / 0.5682 GB, free: 4.34 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.378e-05/0.585, allocations: 36.05 kB / 0.5683 GB, free: 4.305 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.096e-05/0.585, allocations: 8 kB / 0.5683 GB, free: 4.297 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.714e-06/0.585, allocations: 11.94 kB / 0.5683 GB, free: 4.285 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003436/0.5884, allocations: 2.359 MB / 0.5706 GB, free: 1.836 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008153/0.5893, allocations: 290.4 kB / 0.5709 GB, free: 1.531 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004923/0.5898, allocations: 24 kB / 0.5709 GB, free: 1.508 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007989/0.5906, allocations: 55.92 kB / 0.5709 GB, free: 1.453 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001288/0.5907, allocations: 76.39 kB / 0.571 GB, free: 1.379 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.958e-05/0.5908, allocations: 40 kB / 0.5711 GB, free: 1.34 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002927/0.5937, allocations: 1.652 MB / 0.5727 GB, free: 15.67 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.5938, allocations: 8 kB / 0.5727 GB, free: 15.66 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003489/0.5973, allocations: 0.6172 MB / 0.5733 GB, free: 15.05 MB / 462.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.0003638/0.5976, allocations: 159 kB / 0.5734 GB, free: 14.88 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004537/0.6022, allocations: 2.624 MB / 0.576 GB, free: 12.28 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 5.21e-06/0.6022, allocations: 1.5 kB / 0.576 GB, free: 12.28 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009335/0.6031, allocations: 0.6412 MB / 0.5766 GB, free: 11.64 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002227/0.6054, allocations: 378.4 kB / 0.577 GB, free: 11.27 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01384/0.6192, allocations: 6.369 MB / 0.5832 GB, free: 4.809 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004868/0.6241, allocations: 2.559 MB / 0.5857 GB, free: 2.219 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003105/0.6273, allocations: 1.113 MB / 0.5868 GB, free: 1.102 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003957/0.6277, allocations: 163.4 kB / 0.5869 GB, free: 0.9414 MB / 462.1 MB Notification: Performance of SimCode: time 1.302e-06/0.6277, allocations: 0 / 0.5869 GB, free: 0.9414 MB / 462.1 MB Notification: Performance of Templates: time 0.3418/0.9696, allocations: 21.83 MB / 0.6083 GB, free: 105.9 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)