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/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo", uses=false) Using package PlanarMechanics with version 1.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/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) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.007495/0.007494, allocations: 171.4 kB / 15.11 MB, free: 5.977 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.517/1.517, allocations: 223.2 MB / 239 MB, free: 1.797 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008891/0.0008891, allocations: 110.6 kB / 290.2 MB, free: 13.93 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.04123/0.04123, allocations: 8.936 MB / 350.3 MB, free: 2.07 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003266/0.0003266, allocations: 8.719 kB / 413.1 MB, free: 88.59 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09401/0.09436, allocations: 52.39 MB / 465.5 MB, free: 41.71 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3741/0.4685, allocations: 96.44 MB / 0.5488 GB, free: 16.21 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002816/0.4689, allocations: 85.12 kB / 0.5489 GB, free: 16.21 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2581/0.7269, allocations: 109.2 MB / 0.6555 GB, free: 9.984 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.444e-06/0.727, allocations: 0 / 0.6555 GB, free: 9.984 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002599/0.7273, allocations: 99.92 kB / 0.6556 GB, free: 9.887 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2088 * Number of variables: 2088 Notification: Performance of Generate backend data structure: time 0.02148/0.7488, allocations: 4.923 MB / 0.6604 GB, free: 4.891 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.793e-05/0.7488, allocations: 8.031 kB / 0.6604 GB, free: 4.883 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01762/0.7665, allocations: 3.71 MB / 0.6641 GB, free: 1.16 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01013/0.7766, allocations: 2.857 MB / 0.6669 GB, free: 14.25 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005923/0.7773, allocations: 398.3 kB / 0.6672 GB, free: 13.86 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003728/0.781, allocations: 0.5114 MB / 0.6677 GB, free: 13.35 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04501/0.826, allocations: 14.1 MB / 0.6815 GB, free: 14.05 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004671/0.8266, allocations: 55.5 kB / 0.6816 GB, free: 14 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00415/0.8308, allocations: 255.8 kB / 0.6818 GB, free: 13.75 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003282/0.8341, allocations: 1.598 MB / 0.6834 GB, free: 12.15 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3095/1.144, allocations: 12.34 MB / 0.6954 GB, free: 84.6 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07418/1.218, allocations: 57.78 MB / 0.7518 GB, free: 51.46 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009236/1.227, allocations: 3.902 MB / 0.7557 GB, free: 50.21 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01379/1.241, allocations: 6.835 MB / 0.7623 GB, free: 47.04 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.84e-05/1.241, allocations: 48.09 kB / 0.7624 GB, free: 47 MB / 458.7 MB Notification: Performance of pre-optimization done (n=206): time 5.951e-06/1.241, allocations: 6.375 kB / 0.7624 GB, free: 47 MB / 458.7 MB Notification: Performance of matching and sorting (n=228): time 0.02448/1.266, allocations: 12.32 MB / 0.7744 GB, free: 42.08 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.216e-05/1.266, allocations: 154.2 kB / 0.7746 GB, free: 41.92 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009364/1.275, allocations: 4.779 MB / 0.7792 GB, free: 40.13 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004632/1.276, allocations: 53.92 kB / 0.7793 GB, free: 40.08 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003089/1.279, allocations: 4.099 MB / 0.7833 GB, free: 36.93 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001234/1.28, allocations: 0.8884 MB / 0.7842 GB, free: 36.29 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000458/1.28, allocations: 163.6 kB / 0.7843 GB, free: 36.17 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0004091/1.281, allocations: 0.6543 MB / 0.785 GB, free: 35.71 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003614/1.284, allocations: 2.452 MB / 0.7873 GB, free: 34.9 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006179/1.291, allocations: 7.552 MB / 0.7947 GB, free: 27.19 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006713/1.297, allocations: 4.346 MB / 0.799 GB, free: 25.64 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001204/1.298, allocations: 51.06 kB / 0.799 GB, free: 25.64 MB / 458.7 MB Notification: Performance of matching and sorting (n=1076) (initialization): time 0.01991/1.317, allocations: 9.85 MB / 0.8086 GB, free: 21.92 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001463/1.318, allocations: 84.84 kB / 0.8087 GB, free: 21.92 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003156/1.318, allocations: 182.4 kB / 0.8089 GB, free: 21.92 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009658/1.319, allocations: 480.6 kB / 0.8093 GB, free: 21.87 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006222/1.325, allocations: 1.846 MB / 0.8111 GB, free: 21.64 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004154/1.329, allocations: 3.617 MB / 0.8147 GB, free: 19.41 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007683/1.337, allocations: 412.3 kB / 0.8151 GB, free: 19.26 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002089/1.339, allocations: 0.5041 MB / 0.8156 GB, free: 19.2 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 832 * Number of states: 0 () * Number of discrete variables: 44 (distance.arrow.arrowLine.twoHeadedArrow,distance.arrow.headAtOrigin,distance.arrowColor[3],distance.arrowColor[2],distance.arrowColor[1],distance.world.gravityArrowColor[3],distance.world.gravityArrowColor[2],distance.world.gravityArrowColor[1],distance.world.axisColor_x[3],distance.world.axisColor_x[2],distance.world.axisColor_x[1],distance.world.groundColor[3],distance.world.groundColor[2],distance.world.groundColor[1],distance.world.gravitySphereColor[3],distance.world.gravitySphereColor[2],distance.world.gravitySphereColor[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 (1007): * Single equations (assignments): 998 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 17} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007317/1.347, allocations: 2.895 MB / 0.8184 GB, free: 17.77 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001208/1.348, allocations: 427.4 kB / 0.8188 GB, free: 17.54 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004573/1.352, allocations: 2.443 MB / 0.8212 GB, free: 16.59 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000141/1.353, allocations: 40.75 kB / 0.8212 GB, free: 16.59 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.147e-05/1.353, allocations: 3.75 kB / 0.8212 GB, free: 16.59 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.825e-05/1.353, allocations: 15.06 kB / 0.8212 GB, free: 16.58 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01847/1.371, allocations: 8.11 MB / 0.8292 GB, free: 10.89 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.666e-05/1.371, allocations: 12.03 kB / 0.8292 GB, free: 10.88 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001276/1.372, allocations: 290.2 kB / 0.8295 GB, free: 10.64 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005499/1.373, allocations: 204.2 kB / 0.8296 GB, free: 10.49 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001323/1.373, allocations: 45.52 kB / 0.8297 GB, free: 10.45 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00257/1.376, allocations: 2.79 MB / 0.8324 GB, free: 7.801 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.488e-06/1.376, allocations: 6.734 kB / 0.8324 GB, free: 7.797 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006397/1.382, allocations: 5.439 MB / 0.8377 GB, free: 2.695 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001781/1.384, allocations: 0.5102 MB / 0.8382 GB, free: 2.188 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005145/1.385, allocations: 37.19 kB / 0.8383 GB, free: 2.156 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001374/1.386, allocations: 92.86 kB / 0.8384 GB, free: 2.094 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002157/1.386, allocations: 118.7 kB / 0.8385 GB, free: 2.012 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001286/1.386, allocations: 69.69 kB / 0.8385 GB, free: 1.949 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.006503/1.393, allocations: 3.386 MB / 0.8418 GB, free: 15.37 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.7e-07/1.393, allocations: 0 / 0.8418 GB, free: 15.37 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.008475/1.401, allocations: 1.213 MB / 0.843 GB, free: 14.17 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * 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 (162): * Single equations (assignments): 153 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 15} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000649/1.402, allocations: 183.7 kB / 0.8432 GB, free: 13.99 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.01155/1.414, allocations: 5.801 MB / 0.8489 GB, free: 8.855 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.151e-05/1.414, allocations: 0 / 0.8489 GB, free: 8.855 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002474/1.416, allocations: 1.455 MB / 0.8503 GB, free: 7.555 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003452/1.42, allocations: 0.5354 MB / 0.8508 GB, free: 7.105 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02731/1.447, allocations: 13.45 MB / 0.8639 GB, free: 10.67 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007458/1.454, allocations: 4.171 MB / 0.868 GB, free: 7.488 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.007392/1.462, allocations: 2.531 MB / 0.8705 GB, free: 5.914 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001049/1.463, allocations: 311.2 kB / 0.8708 GB, free: 5.621 MB / 490.7 MB Notification: Performance of SimCode: time 1.583e-06/1.463, allocations: 0 / 0.8708 GB, free: 5.621 MB / 490.7 MB Notification: Performance of Templates: time 0.3528/1.816, allocations: 38.88 MB / 0.9088 GB, free: 104.5 MB / 490.7 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)