Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.CraneCrabTo3D.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.CraneCrabTo3D,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.CraneCrabTo3D") translateModel(PlanarMechanics.Examples.CraneCrabTo3D,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.CraneCrabTo3D") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009407/0.0009406, allocations: 174.8 kB / 12.73 MB, free: 2.59 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.156/1.156, allocations: 221.4 MB / 234.6 MB, free: 14.43 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008286/0.0008286, allocations: 94.7 kB / 285.6 MB, free: 12.98 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.03874/0.03874, allocations: 8.83 MB / 345.3 MB, free: 1.301 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 1.932e-05/1.934e-05, allocations: 0 / 405.6 MB, free: 61.39 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06772/0.06775, allocations: 52.39 MB / 457.9 MB, free: 9.047 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3011/0.3689, allocations: 101.7 MB / 0.5465 GB, free: 320 kB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001724/0.3691, allocations: 70.41 kB / 0.5466 GB, free: 288 kB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4684/0.8374, allocations: 119.9 MB / 0.6637 GB, free: 100.6 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.984e-06/0.8375, allocations: 0 / 0.6637 GB, free: 100.6 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001858/0.8377, allocations: 99.19 kB / 0.6638 GB, free: 100.6 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2075 * Number of variables: 2075 Notification: Performance of Generate backend data structure: time 0.01223/0.8499, allocations: 5.33 MB / 0.669 GB, free: 98.46 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.411e-05/0.85, allocations: 7.781 kB / 0.669 GB, free: 98.46 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01453/0.8645, allocations: 3.9 MB / 0.6728 GB, free: 98.08 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01115/0.8757, allocations: 4.952 MB / 0.6777 GB, free: 97.45 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002636/0.876, allocations: 407.8 kB / 0.6781 GB, free: 97.43 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001733/0.8777, allocations: 0.5161 MB / 0.6786 GB, free: 97.43 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01889/0.8966, allocations: 13.9 MB / 0.6921 GB, free: 94.36 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001411/0.8968, allocations: 68.66 kB / 0.6922 GB, free: 94.35 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007038/0.8975, allocations: 261.2 kB / 0.6925 GB, free: 94.35 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001545/0.8991, allocations: 1.539 MB / 0.694 GB, free: 94.33 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01698/0.916, allocations: 12.02 MB / 0.7057 GB, free: 92.46 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05382/0.9699, allocations: 58.89 MB / 0.7632 GB, free: 46.22 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008718/0.9787, allocations: 5.044 MB / 0.7681 GB, free: 41.55 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001973/0.9807, allocations: 1.768 MB / 0.7699 GB, free: 39.95 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01166/0.9923, allocations: 7.999 MB / 0.7777 GB, free: 32.95 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.573e-05/0.9924, allocations: 55.81 kB / 0.7777 GB, free: 32.89 MB / 458.7 MB Notification: Performance of pre-optimization done (n=239): time 7.063e-06/0.9924, allocations: 4 kB / 0.7777 GB, free: 32.88 MB / 458.7 MB Notification: Performance of matching and sorting (n=269): time 0.02197/1.014, allocations: 13.04 MB / 0.7905 GB, free: 21.05 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.098e-05/1.014, allocations: 154.5 kB / 0.7906 GB, free: 20.86 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005059/1.02, allocations: 4.689 MB / 0.7952 GB, free: 16.18 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001509/1.02, allocations: 61.7 kB / 0.7952 GB, free: 16.11 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001537/1.021, allocations: 4.117 MB / 0.7993 GB, free: 12 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006325/1.022, allocations: 1.02 MB / 0.8003 GB, free: 10.98 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002742/1.022, allocations: 160 kB / 0.8004 GB, free: 10.83 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003302/1.023, allocations: 0.6648 MB / 0.8011 GB, free: 10.16 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002883/1.025, allocations: 2.394 MB / 0.8034 GB, free: 7.758 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004531/1.03, allocations: 7.174 MB / 0.8104 GB, free: 14.2 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005596/1.036, allocations: 4.218 MB / 0.8145 GB, free: 9.98 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.615e-05/1.036, allocations: 48 kB / 0.8146 GB, free: 9.934 MB / 474.7 MB Notification: Performance of matching and sorting (n=1069) (initialization): time 0.01659/1.052, allocations: 9.597 MB / 0.8239 GB, free: 336 kB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.44e-05/1.052, allocations: 76 kB / 0.824 GB, free: 260 kB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000146/1.053, allocations: 171 kB / 0.8242 GB, free: 92 kB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.2228/1.275, allocations: 476.8 kB / 0.8246 GB, free: 101 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006191/1.282, allocations: 1.851 MB / 0.8264 GB, free: 101 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00516/1.287, allocations: 4.802 MB / 0.8311 GB, free: 98.39 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006075/1.293, allocations: 452.6 kB / 0.8316 GB, free: 98.39 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001124/1.294, allocations: 490.4 kB / 0.832 GB, free: 98.39 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 773 * Number of states: 0 () * Number of discrete variables: 36 (fixedRotation3D.color[3],fixedRotation3D.color[2],fixedRotation3D.color[1],body3D.sphereColor[3],body3D.sphereColor[2],body3D.sphereColor[1],prismatic3D.boxColor[3],prismatic3D.boxColor[2],prismatic3D.boxColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1001): * Single equations (assignments): 993 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 17,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001018/1.295, allocations: 0.7122 MB / 0.8327 GB, free: 98.27 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006811/1.296, allocations: 459.1 kB / 0.8332 GB, free: 98.27 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004802/1.301, allocations: 2.897 MB / 0.836 GB, free: 98.12 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.174e-05/1.301, allocations: 35.83 kB / 0.836 GB, free: 98.11 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.267e-05/1.301, allocations: 8 kB / 0.836 GB, free: 98.11 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.015e-05/1.301, allocations: 14.8 kB / 0.836 GB, free: 98.11 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01479/1.315, allocations: 8.942 MB / 0.8448 GB, free: 97.35 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.522e-05/1.316, allocations: 7.922 kB / 0.8448 GB, free: 97.35 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001433/1.317, allocations: 378.8 kB / 0.8452 GB, free: 97.35 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005223/1.317, allocations: 238.6 kB / 0.8454 GB, free: 97.33 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001405/1.318, allocations: 49.84 kB / 0.8454 GB, free: 97.33 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0029/1.321, allocations: 4.002 MB / 0.8493 GB, free: 94.84 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.973e-06/1.321, allocations: 12.91 kB / 0.8493 GB, free: 94.84 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005995/1.327, allocations: 6.48 MB / 0.8557 GB, free: 93.02 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001221/1.328, allocations: 0.5331 MB / 0.8562 GB, free: 92.77 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004775/1.328, allocations: 44.59 kB / 0.8562 GB, free: 92.77 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001574/1.33, allocations: 119.6 kB / 0.8564 GB, free: 92.77 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002548/1.33, allocations: 155.1 kB / 0.8565 GB, free: 92.77 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000135/1.33, allocations: 79.03 kB / 0.8566 GB, free: 92.77 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.005064/1.335, allocations: 3.274 MB / 0.8598 GB, free: 92.56 MB / 474.7 MB Notification: Performance of sort global known variables: time 4.11e-07/1.335, allocations: 0 / 0.8598 GB, free: 92.56 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.006746/1.342, allocations: 1.261 MB / 0.861 GB, free: 92.56 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * Number of states: 6 (revolute.phi,revolute.w,damper1D.s_rel,damper1D.v_rel,prismatic3D.s,prismatic3D.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (204): * Single equations (assignments): 196 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 15,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004542/1.343, allocations: 196.7 kB / 0.8612 GB, free: 92.47 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.007912/1.351, allocations: 5.942 MB / 0.867 GB, free: 91.96 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 9.799e-06/1.351, allocations: 2.938 kB / 0.867 GB, free: 91.96 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002024/1.353, allocations: 1.769 MB / 0.8687 GB, free: 91.39 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002826/1.355, allocations: 0.5838 MB / 0.8693 GB, free: 91.16 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01538/1.371, allocations: 10.04 MB / 0.8791 GB, free: 87.53 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003786/1.375, allocations: 4.353 MB / 0.8833 GB, free: 86.01 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.00709/1.382, allocations: 2.704 MB / 0.886 GB, free: 85.96 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007592/1.383, allocations: 331 kB / 0.8863 GB, free: 85.95 MB / 474.7 MB Notification: Performance of SimCode: time 9.82e-07/1.383, allocations: 0 / 0.8863 GB, free: 85.95 MB / 474.7 MB Notification: Performance of Templates: time 0.06473/1.447, allocations: 42.08 MB / 0.9274 GB, free: 66.3 MB / 474.7 MB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.CraneCrabTo3D.makefile (rm -f PlanarMechanics_PlanarMechanics.Examples.CraneCrabTo3D.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.CraneCrabTo3D.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.CraneCrabTo3D.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.CraneCrabTo3D.sim & ./PlanarMechanics_PlanarMechanics.Examples.CraneCrabTo3D -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.CraneCrabTo3D.pipe 2>&1)