Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.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.ControlledCraneCrab,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab") translateModel(PlanarMechanics.Examples.ControlledCraneCrab,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009958/0.0009959, allocations: 182 kB / 16.12 MB, free: 5.691 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.37/1.37, allocations: 223.3 MB / 240.1 MB, free: 9.988 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.0008653/0.0008658, allocations: 100.5 kB / 291.3 MB, free: 10.59 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.04192/0.04192, allocations: 8.943 MB / 351.4 MB, free: 14.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003383/0.0003383, allocations: 12.53 kB / 414.4 MB, free: 56.75 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09746/0.09782, allocations: 52.39 MB / 466.8 MB, free: 4.414 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3378/0.4357, allocations: 90 MB / 0.5437 GB, free: 11.53 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002375/0.436, allocations: 82.45 kB / 0.5438 GB, free: 11.49 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1654/0.6014, allocations: 63.31 MB / 0.6056 GB, free: 13.99 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.605e-06/0.6015, allocations: 0 / 0.6056 GB, free: 13.99 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0001872/0.6017, allocations: 56 kB / 0.6057 GB, free: 13.94 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: 1165 * Number of variables: 1165 Notification: Performance of Generate backend data structure: time 0.01316/0.6149, allocations: 3.102 MB / 0.6087 GB, free: 10.77 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.621e-05/0.6149, allocations: 8.031 kB / 0.6087 GB, free: 10.76 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009181/0.6241, allocations: 1.939 MB / 0.6106 GB, free: 8.816 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004633/0.6288, allocations: 1.786 MB / 0.6124 GB, free: 6.984 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002977/0.6291, allocations: 226.2 kB / 0.6126 GB, free: 6.762 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001833/0.631, allocations: 300.2 kB / 0.6129 GB, free: 6.469 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01969/0.6507, allocations: 7.572 MB / 0.6203 GB, free: 14.52 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002036/0.6509, allocations: 27.66 kB / 0.6203 GB, free: 14.49 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001562/0.6525, allocations: 135.9 kB / 0.6204 GB, free: 14.36 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001506/0.654, allocations: 0.8765 MB / 0.6213 GB, free: 13.48 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01531/0.6693, allocations: 7.036 MB / 0.6282 GB, free: 6.43 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2616/0.931, allocations: 24.34 MB / 0.6519 GB, free: 115.2 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005096/0.9361, allocations: 2.39 MB / 0.6543 GB, free: 114.6 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001369/0.9375, allocations: 0.8099 MB / 0.6551 GB, free: 114.6 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007787/0.9453, allocations: 4.627 MB / 0.6596 GB, free: 112.6 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.161e-05/0.9454, allocations: 41.33 kB / 0.6596 GB, free: 112.5 MB / 458.7 MB Notification: Performance of pre-optimization done (n=131): time 5.42e-06/0.9454, allocations: 1.062 kB / 0.6596 GB, free: 112.5 MB / 458.7 MB Notification: Performance of matching and sorting (n=153): time 0.01454/0.96, allocations: 6.799 MB / 0.6663 GB, free: 111.4 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.689e-05/0.9601, allocations: 65.19 kB / 0.6663 GB, free: 111.3 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004412/0.9645, allocations: 2.608 MB / 0.6689 GB, free: 111.1 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000243/0.9647, allocations: 45.23 kB / 0.6689 GB, free: 111 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001467/0.9662, allocations: 2.108 MB / 0.671 GB, free: 109.9 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005852/0.9668, allocations: 0.5706 MB / 0.6715 GB, free: 109.6 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001659/0.967, allocations: 76.25 kB / 0.6716 GB, free: 109.6 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001985/0.9672, allocations: 485 kB / 0.6721 GB, free: 109.3 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001887/0.9691, allocations: 1.258 MB / 0.6733 GB, free: 109.3 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002925/0.972, allocations: 3.391 MB / 0.6766 GB, free: 106.5 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00489/0.9769, allocations: 5.031 MB / 0.6815 GB, free: 103.8 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.351e-05/0.977, allocations: 21.97 kB / 0.6815 GB, free: 103.8 MB / 458.7 MB Notification: Performance of matching and sorting (n=514) (initialization): time 0.008183/0.9852, allocations: 4.825 MB / 0.6862 GB, free: 103.3 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.412e-05/0.9853, allocations: 39.59 kB / 0.6863 GB, free: 103.3 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.902e-05/0.9854, allocations: 73.72 kB / 0.6863 GB, free: 103.3 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007123/0.9861, allocations: 309.8 kB / 0.6866 GB, free: 103.3 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002679/0.9888, allocations: 0.855 MB / 0.6875 GB, free: 103.2 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003738/0.9926, allocations: 3.336 MB / 0.6907 GB, free: 101.2 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00373/0.9963, allocations: 190.2 kB / 0.6909 GB, free: 101.2 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005534/0.9969, allocations: 233.2 kB / 0.6911 GB, free: 101.1 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 340 * Number of states: 0 () * Number of discrete variables: 16 (revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],PID.I.local_reset,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 (470): * Single equations (assignments): 465 * Array equations: 4 * 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.002833/0.9997, allocations: 1.564 MB / 0.6927 GB, free: 100.3 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004885/1, allocations: 228 kB / 0.6929 GB, free: 100.2 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00312/1.003, allocations: 1.99 MB / 0.6948 GB, free: 99.45 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.481e-05/1.003, allocations: 33.98 kB / 0.6949 GB, free: 99.44 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.023e-06/1.003, allocations: 0 / 0.6949 GB, free: 99.44 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.529e-05/1.004, allocations: 10.67 kB / 0.6949 GB, free: 99.44 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009731/1.013, allocations: 5.673 MB / 0.7004 GB, free: 97.25 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.213e-05/1.013, allocations: 3.906 kB / 0.7004 GB, free: 97.25 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008202/1.014, allocations: 204.6 kB / 0.7006 GB, free: 97.23 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005069/1.015, allocations: 198.1 kB / 0.7008 GB, free: 97.19 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.352e-05/1.015, allocations: 27.09 kB / 0.7008 GB, free: 97.18 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002688/1.017, allocations: 2.7 MB / 0.7035 GB, free: 95.35 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.641e-06/1.017, allocations: 11.78 kB / 0.7035 GB, free: 95.34 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003856/1.021, allocations: 3.065 MB / 0.7065 GB, free: 94.04 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001141/1.022, allocations: 461.5 kB / 0.7069 GB, free: 93.74 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002295/1.023, allocations: 23.75 kB / 0.7069 GB, free: 93.73 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000738/1.023, allocations: 63.02 kB / 0.707 GB, free: 93.71 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001664/1.024, allocations: 88.47 kB / 0.7071 GB, free: 93.7 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.576e-05/1.024, allocations: 45.98 kB / 0.7071 GB, free: 93.69 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002435/1.026, allocations: 1.674 MB / 0.7088 GB, free: 93.05 MB / 458.7 MB Notification: Performance of sort global known variables: time 3.8e-07/1.026, allocations: 0 / 0.7088 GB, free: 93.05 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.003429/1.03, allocations: 0.6921 MB / 0.7094 GB, free: 92.97 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 6 (PID.I.y,PID.D.x,prismatic.s,prismatic.v,revolute.phi,revolute.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 (112): * Single equations (assignments): 107 * Array equations: 4 * 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.0004029/1.03, allocations: 173.4 kB / 0.7096 GB, free: 92.84 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.004744/1.035, allocations: 3.109 MB / 0.7126 GB, free: 91.71 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 5.521e-06/1.035, allocations: 0 / 0.7126 GB, free: 91.71 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001264/1.036, allocations: 1.019 MB / 0.7136 GB, free: 91.29 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002662/1.039, allocations: 385.6 kB / 0.714 GB, free: 91.15 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01272/1.052, allocations: 7.855 MB / 0.7217 GB, free: 86.91 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002556/1.054, allocations: 2.589 MB / 0.7242 GB, free: 85.15 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002929/1.057, allocations: 1.178 MB / 0.7253 GB, free: 84.41 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003917/1.057, allocations: 166.9 kB / 0.7255 GB, free: 84.26 MB / 458.7 MB Notification: Performance of SimCode: time 6.81e-07/1.057, allocations: 4 kB / 0.7255 GB, free: 84.25 MB / 458.7 MB Notification: Performance of Templates: time 0.04059/1.098, allocations: 24.33 MB / 0.7493 GB, free: 66.15 MB / 458.7 MB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.makefile (rm -f PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.sim & ./PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.pipe 2>&1)