Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.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.PowerDistanceDemo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo") translateModel(PlanarMechanics.Examples.PowerDistanceDemo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001194/0.001194, allocations: 100.3 kB / 16.36 MB, free: 6.012 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.00116/0.00116, allocations: 193.3 kB / 17.3 MB, free: 5.617 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.381/1.381, allocations: 222.9 MB / 241 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04426/0.04426, allocations: 9.115 MB / 300.3 MB, free: 5.879 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001324/0.001325, allocations: 59.91 kB / 363.4 MB, free: 6.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2348/0.2362, allocations: 51.42 MB / 414.8 MB, free: 24.89 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PowerDistanceDemo): time 0.009225/0.2454, allocations: 10.7 MB / 425.5 MB, free: 14.16 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006096/0.2516, allocations: 2.949 MB / 428.5 MB, free: 11.2 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001577/0.2532, allocations: 47.88 kB / 428.5 MB, free: 11.15 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001031/0.2542, allocations: 456.8 kB / 428.9 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004077/0.2584, allocations: 1.653 MB / 430.6 MB, free: 9.043 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000456/0.2589, allocations: 183.7 kB / 430.8 MB, free: 8.863 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003079/0.262, allocations: 3.114 MB / 433.9 MB, free: 5.746 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001259/0.2632, allocations: 1.145 MB / 435 MB, free: 4.578 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001164/0.2644, allocations: 1.121 MB / 436.2 MB, free: 3.453 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001244/0.2657, allocations: 1.615 MB / 437.8 MB, free: 1.832 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002984/0.266, allocations: 299.9 kB / 438.1 MB, free: 1.539 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001274/0.2673, allocations: 0.8817 MB / 438.9 MB, free: 0.6562 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001079/0.2683, allocations: 1.515 MB / 440.5 MB, free: 15.14 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001681/0.27, allocations: 1.953 MB / 442.4 MB, free: 13.17 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006154/0.2762, allocations: 6.058 MB / 448.5 MB, free: 7.094 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.085e-06/0.2762, allocations: 0 / 448.5 MB, free: 7.094 MB / 318.1 MB Notification: Performance of FrontEnd: time 4.629e-06/0.2763, allocations: 0 / 448.5 MB, free: 7.094 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001651/0.2764, allocations: 4 kB / 448.5 MB, free: 7.09 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1467 * Number of variables: 1467 Notification: Performance of Generate backend data structure: time 0.01196/0.2884, allocations: 4.565 MB / 453 MB, free: 2.457 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.308e-05/0.2885, allocations: 8.031 kB / 453 MB, free: 2.449 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006983/0.2955, allocations: 1.906 MB / 455 MB, free: 0.5352 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003673/0.2992, allocations: 1.577 MB / 456.5 MB, free: 14.91 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001689/0.2993, allocations: 193.1 kB / 456.7 MB, free: 14.72 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006916/0.3001, allocations: 259.7 kB / 457 MB, free: 14.46 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01495/0.315, allocations: 9.792 MB / 466.8 MB, free: 4.211 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.39e-05/0.3151, allocations: 31.72 kB / 466.8 MB, free: 4.18 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000322/0.3155, allocations: 119.8 kB / 466.9 MB, free: 4.062 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003315/0.3188, allocations: 2.295 MB / 469.2 MB, free: 1.766 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01529/0.3341, allocations: 8.466 MB / 477.7 MB, free: 9.289 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04326/0.3774, allocations: 30.58 MB / 0.4963 GB, free: 10.02 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00676/0.3842, allocations: 2.799 MB / 0.4991 GB, free: 7.109 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001813/0.3861, allocations: 1.053 MB / 0.5001 GB, free: 6.059 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1967/0.5828, allocations: 5.822 MB / 0.5058 GB, free: 87.95 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.61e-05/0.5829, allocations: 49.12 kB / 0.5058 GB, free: 87.91 MB / 382.1 MB Notification: Performance of pre-optimization done (n=159): time 4.759e-06/0.5829, allocations: 0 / 0.5058 GB, free: 87.91 MB / 382.1 MB Notification: Performance of matching and sorting (n=181): time 0.01603/0.5989, allocations: 8.212 MB / 0.5139 GB, free: 85.39 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.86e-05/0.599, allocations: 75 kB / 0.5139 GB, free: 85.32 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003644/0.6026, allocations: 3.191 MB / 0.517 GB, free: 84.12 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.396e-05/0.6028, allocations: 50.36 kB / 0.5171 GB, free: 84.07 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009117/0.6037, allocations: 2.598 MB / 0.5196 GB, free: 82.08 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003252/0.604, allocations: 0.6858 MB / 0.5203 GB, free: 81.58 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009017/0.6049, allocations: 0.9768 MB / 0.5212 GB, free: 81.1 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.535e-05/0.605, allocations: 306 kB / 0.5215 GB, free: 80.8 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001922/0.6069, allocations: 1.568 MB / 0.5231 GB, free: 80.29 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002774/0.6097, allocations: 4.36 MB / 0.5273 GB, free: 76.02 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004794/0.6145, allocations: 6.374 MB / 0.5336 GB, free: 68.76 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.37e-05/0.6145, allocations: 28 kB / 0.5336 GB, free: 68.73 MB / 382.1 MB Notification: Performance of matching and sorting (n=642) (initialization): time 0.007675/0.6222, allocations: 6.034 MB / 0.5395 GB, free: 63.05 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.135e-05/0.6223, allocations: 48 kB / 0.5395 GB, free: 63 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.584e-05/0.6223, allocations: 99.94 kB / 0.5396 GB, free: 62.91 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006864/0.623, allocations: 343.8 kB / 0.5399 GB, free: 62.57 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00265/0.6257, allocations: 1.092 MB / 0.541 GB, free: 61.48 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003368/0.6291, allocations: 3.698 MB / 0.5446 GB, free: 57.64 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003591/0.6327, allocations: 243.9 kB / 0.5449 GB, free: 57.41 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003855/0.6331, allocations: 292 kB / 0.5451 GB, free: 57.12 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 446 * Number of states: 0 () * Number of discrete variables: 30 (distance.arrowColor[3],distance.arrowColor[2],distance.arrowColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],damper.color_b[3],damper.color_b[2],damper.color_b[1],damper.color_a[3],damper.color_a[2],damper.color_a[1],damper.colorConnector_b[3],damper.colorConnector_b[2],damper.colorConnector_b[1],damper.colorConnector_a[3],damper.colorConnector_a[2],damper.colorConnector_a[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],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 (597): * Single equations (assignments): 591 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,17,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002825/0.6359, allocations: 1.892 MB / 0.547 GB, free: 55.22 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005155/0.6364, allocations: 284.4 kB / 0.5473 GB, free: 54.94 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003317/0.6398, allocations: 2.41 MB / 0.5496 GB, free: 52.51 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001555/0.6399, allocations: 47.56 kB / 0.5497 GB, free: 52.47 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.323e-06/0.6399, allocations: 3.938 kB / 0.5497 GB, free: 52.46 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.416e-05/0.64, allocations: 11.97 kB / 0.5497 GB, free: 52.45 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009761/0.6497, allocations: 6.852 MB / 0.5564 GB, free: 45.52 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.173e-06/0.6498, allocations: 4.062 kB / 0.5564 GB, free: 45.51 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009037/0.6507, allocations: 267.6 kB / 0.5566 GB, free: 45.25 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004964/0.6512, allocations: 210.9 kB / 0.5568 GB, free: 45.04 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.484e-05/0.6513, allocations: 39.98 kB / 0.5569 GB, free: 45 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002414/0.6537, allocations: 2.938 MB / 0.5597 GB, free: 41.93 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.279e-06/0.6537, allocations: 15.83 kB / 0.5597 GB, free: 41.91 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004277/0.658, allocations: 3.738 MB / 0.5634 GB, free: 38.11 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007105/0.6587, allocations: 349.6 kB / 0.5637 GB, free: 37.75 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002931/0.659, allocations: 28 kB / 0.5637 GB, free: 37.72 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000907/0.6599, allocations: 79.84 kB / 0.5638 GB, free: 37.64 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001562/0.6601, allocations: 109.1 kB / 0.5639 GB, free: 37.54 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.404e-05/0.6602, allocations: 55.81 kB / 0.564 GB, free: 37.49 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002293/0.6625, allocations: 2.029 MB / 0.566 GB, free: 35.46 MB / 382.1 MB Notification: Performance of sort global known variables: time 3.2e-07/0.6625, allocations: 0 / 0.566 GB, free: 35.46 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003248/0.6658, allocations: 0.8463 MB / 0.5668 GB, free: 34.61 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 4 (revolute.phi,revolute.w,prismatic.s,prismatic.v) * 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 (143): * Single equations (assignments): 137 * Array equations: 5 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002884/0.6661, allocations: 170.5 kB / 0.567 GB, free: 34.45 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004633/0.6707, allocations: 3.859 MB / 0.5707 GB, free: 30.61 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.567e-06/0.6707, allocations: 0 / 0.5707 GB, free: 30.61 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001306/0.672, allocations: 1.196 MB / 0.5719 GB, free: 29.39 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001713/0.6738, allocations: 464.3 kB / 0.5723 GB, free: 28.96 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01511/0.6889, allocations: 7.851 MB / 0.58 GB, free: 21.05 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003952/0.6929, allocations: 3.007 MB / 0.5829 GB, free: 18.01 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.004717/0.6976, allocations: 1.424 MB / 0.5843 GB, free: 16.58 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007174/0.6984, allocations: 215.4 kB / 0.5845 GB, free: 16.37 MB / 382.1 MB Notification: Performance of SimCode: time 8.32e-07/0.6984, allocations: 3.938 kB / 0.5845 GB, free: 16.37 MB / 382.1 MB Notification: Performance of Templates: time 0.05493/0.7533, allocations: 25.95 MB / 0.6099 GB, free: 6.699 MB / 398.1 MB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.makefile (rm -f PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.sim & ./PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.pipe 2>&1)