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-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.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.001498/0.001498, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001416/0.001416, allocations: 191.9 kB / 16.25 MB, free: 6.621 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.39/1.39, allocations: 222.9 MB / 239.9 MB, free: 4.543 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.2145/0.2145, allocations: 9.12 MB / 299.2 MB, free: 1.84 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00236/0.002361, allocations: 55.91 kB / 361.4 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1421/0.1445, allocations: 51.44 MB / 412.9 MB, free: 9.938 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.PowerDistanceDemo): time 0.2227/0.3672, allocations: 44.37 MB / 457.3 MB, free: 16.86 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01736/0.3846, allocations: 9.252 MB / 466.5 MB, free: 10.5 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007392/0.392, allocations: 165.4 kB / 466.7 MB, free: 10.48 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00122/0.3933, allocations: 375.2 kB / 467 MB, free: 10.34 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003667/0.397, allocations: 1.529 MB / 468.6 MB, free: 9.613 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004193/0.3974, allocations: 158.7 kB / 468.7 MB, free: 9.52 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002504/0.3999, allocations: 3.129 MB / 471.9 MB, free: 8.133 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00103/0.401, allocations: 1.17 MB / 473 MB, free: 7.648 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009838/0.402, allocations: 1.127 MB / 474.1 MB, free: 7.145 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001332/0.4033, allocations: 1.754 MB / 475.9 MB, free: 6.453 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003442/0.4037, allocations: 291.3 kB / 476.2 MB, free: 6.453 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001335/0.405, allocations: 0.8948 MB / 477.1 MB, free: 6.27 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001071/0.4061, allocations: 1.527 MB / 478.6 MB, free: 5.668 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001279/0.4074, allocations: 1.964 MB / 480.6 MB, free: 4.23 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00636/0.4137, allocations: 5.801 MB / 486.4 MB, free: 1.914 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.524e-06/0.4138, allocations: 0.6094 kB / 486.4 MB, free: 1.914 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.4138, allocations: 5.312 kB / 486.4 MB, free: 1.91 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.000209/0.414, allocations: 0 / 486.4 MB, free: 1.91 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: 1467 * Number of variables: 1467 Notification: Performance of Generate backend data structure: time 0.01231/0.4263, allocations: 4.567 MB / 490.9 MB, free: 15.49 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.873e-05/0.4264, allocations: 8.438 kB / 491 MB, free: 15.49 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008745/0.4351, allocations: 1.905 MB / 492.9 MB, free: 15.14 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005166/0.4403, allocations: 1.583 MB / 494.4 MB, free: 14.15 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000297/0.4407, allocations: 190.9 kB / 494.6 MB, free: 14.05 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001532/0.4422, allocations: 254.8 kB / 494.9 MB, free: 13.96 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0178/0.46, allocations: 9.785 MB / 0.4928 GB, free: 8.477 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.867e-05/0.4602, allocations: 39.64 kB / 0.4929 GB, free: 8.438 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003666/0.4605, allocations: 115.8 kB / 0.493 GB, free: 8.324 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0037/0.4643, allocations: 2.299 MB / 0.4952 GB, free: 6.023 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01587/0.4801, allocations: 8.477 MB / 0.5035 GB, free: 13.54 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04558/0.5257, allocations: 30.71 MB / 0.5335 GB, free: 14.18 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006785/0.5326, allocations: 2.807 MB / 0.5362 GB, free: 11.25 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001827/0.5344, allocations: 1.045 MB / 0.5373 GB, free: 10.2 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009456/0.5439, allocations: 5.839 MB / 0.543 GB, free: 3.875 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.645e-05/0.544, allocations: 43.88 kB / 0.543 GB, free: 3.824 MB / 414.1 MB Notification: Performance of pre-optimization done (n=159): time 3.627e-06/0.544, allocations: 0 / 0.543 GB, free: 3.824 MB / 414.1 MB Notification: Performance of matching and sorting (n=181): time 0.01773/0.5617, allocations: 8.221 MB / 0.551 GB, free: 11.53 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.541e-05/0.5618, allocations: 68.72 kB / 0.5511 GB, free: 11.45 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004438/0.5662, allocations: 3.182 MB / 0.5542 GB, free: 8.25 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001294/0.5664, allocations: 45.7 kB / 0.5542 GB, free: 8.199 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001698/0.5681, allocations: 2.605 MB / 0.5568 GB, free: 5.559 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000598/0.5687, allocations: 0.6747 MB / 0.5574 GB, free: 4.875 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001294/0.57, allocations: 0.9839 MB / 0.5584 GB, free: 3.879 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001123/0.5701, allocations: 313 kB / 0.5587 GB, free: 3.57 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002537/0.5727, allocations: 1.563 MB / 0.5602 GB, free: 2 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004387/0.5771, allocations: 4.357 MB / 0.5645 GB, free: 12.26 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007701/0.5848, allocations: 6.381 MB / 0.5707 GB, free: 4.508 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.062e-05/0.5849, allocations: 28 kB / 0.5707 GB, free: 4.48 MB / 446.1 MB Notification: Performance of matching and sorting (n=642) (initialization): time 0.2187/0.8036, allocations: 6.029 MB / 0.5766 GB, free: 122.9 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.897e-05/0.8037, allocations: 45.78 kB / 0.5767 GB, free: 122.9 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001438/0.8039, allocations: 96.75 kB / 0.5768 GB, free: 122.9 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008239/0.8047, allocations: 353.3 kB / 0.5771 GB, free: 122.9 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003541/0.8083, allocations: 1.089 MB / 0.5782 GB, free: 122.9 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004024/0.8123, allocations: 3.701 MB / 0.5818 GB, free: 121.4 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00417/0.8165, allocations: 249.8 kB / 0.582 GB, free: 121.4 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005706/0.8171, allocations: 295.6 kB / 0.5823 GB, free: 121.4 MB / 446.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.00341/0.8205, allocations: 1.882 MB / 0.5841 GB, free: 121.2 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000447/0.821, allocations: 271 kB / 0.5844 GB, free: 121.2 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003884/0.8249, allocations: 2.431 MB / 0.5868 GB, free: 120.3 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001728/0.825, allocations: 42.38 kB / 0.5868 GB, free: 120.3 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.217e-06/0.8251, allocations: 6.219 kB / 0.5868 GB, free: 120.3 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.898e-05/0.8251, allocations: 10.69 kB / 0.5868 GB, free: 120.3 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0108/0.8359, allocations: 6.887 MB / 0.5936 GB, free: 117.8 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.093e-05/0.8359, allocations: 7.125 kB / 0.5936 GB, free: 117.8 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009897/0.8369, allocations: 261.5 kB / 0.5938 GB, free: 117.8 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005581/0.8375, allocations: 217.8 kB / 0.594 GB, free: 117.8 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.911e-05/0.8376, allocations: 42.7 kB / 0.5941 GB, free: 117.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00268/0.8403, allocations: 2.947 MB / 0.5969 GB, free: 115.8 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.212e-06/0.8403, allocations: 13.59 kB / 0.597 GB, free: 115.8 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005005/0.8453, allocations: 3.731 MB / 0.6006 GB, free: 114.4 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007593/0.8461, allocations: 349.8 kB / 0.6009 GB, free: 114.3 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003541/0.8465, allocations: 27.88 kB / 0.601 GB, free: 114.3 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001002/0.8475, allocations: 83.7 kB / 0.601 GB, free: 114.3 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001894/0.8477, allocations: 109 kB / 0.6011 GB, free: 114.2 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000101/0.8478, allocations: 53.92 kB / 0.6012 GB, free: 114.2 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002954/0.8508, allocations: 2.026 MB / 0.6032 GB, free: 113.5 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.8508, allocations: 0 / 0.6032 GB, free: 113.5 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004176/0.855, allocations: 0.8482 MB / 0.604 GB, free: 113.4 MB / 446.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.0004499/0.8554, allocations: 163 kB / 0.6042 GB, free: 113.3 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01234/0.8678, allocations: 5.475 MB / 0.6095 GB, free: 112.1 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.393e-05/0.8678, allocations: 4.125 kB / 0.6095 GB, free: 112.1 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002467/0.8703, allocations: 1.207 MB / 0.6107 GB, free: 111.6 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003015/0.8733, allocations: 465.5 kB / 0.6111 GB, free: 111.5 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01666/0.89, allocations: 9.842 MB / 0.6207 GB, free: 105.9 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002969/0.893, allocations: 3.009 MB / 0.6237 GB, free: 104.7 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004282/0.8973, allocations: 1.435 MB / 0.6251 GB, free: 104.5 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00061/0.898, allocations: 210.1 kB / 0.6253 GB, free: 104.5 MB / 446.1 MB Notification: Performance of SimCode: time 9.91e-07/0.898, allocations: 3.828 kB / 0.6253 GB, free: 104.5 MB / 446.1 MB Notification: Performance of Templates: time 0.04522/0.9432, allocations: 30.41 MB / 0.655 GB, free: 79.95 MB / 446.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 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.PowerDistanceDemo.pipe 2>&1)