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.001095/0.001095, allocations: 183.4 kB / 15.98 MB, free: 5.77 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.26/1.26, allocations: 222.9 MB / 239.6 MB, free: 11 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.0009486/0.0009485, allocations: 111.4 kB / 289.9 MB, free: 10.95 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.0425/0.0425, allocations: 8.943 MB / 349 MB, free: 48 kB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009584/0.0009585, allocations: 55.3 kB / 411.1 MB, free: 57.09 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07454/0.07551, allocations: 51.39 MB / 462.5 MB, free: 5.75 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CraneCrabTo3D): time 0.1971/0.2727, allocations: 47.06 MB / 0.4976 GB, free: 2.395 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.0233/0.296, allocations: 10.47 MB / 0.5078 GB, free: 11.36 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009001/0.3051, allocations: 190 kB / 0.508 GB, free: 11.33 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003165/0.3083, allocations: 1.524 MB / 0.5095 GB, free: 10.34 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005584/0.3139, allocations: 2.407 MB / 0.5119 GB, free: 8.684 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001155/0.3151, allocations: 0.5231 MB / 0.5124 GB, free: 8.34 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.006928/0.322, allocations: 7.206 MB / 0.5194 GB, free: 2.895 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003518/0.3255, allocations: 2.821 MB / 0.5222 GB, free: 52 kB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002394/0.328, allocations: 1.545 MB / 0.5237 GB, free: 14.5 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003904/0.3319, allocations: 2.628 MB / 0.5262 GB, free: 11.86 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001094/0.333, allocations: 248 kB / 0.5265 GB, free: 11.62 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002908/0.3359, allocations: 1.127 MB / 0.5276 GB, free: 10.49 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002573/0.3385, allocations: 2.197 MB / 0.5297 GB, free: 8.289 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003443/0.342, allocations: 2.709 MB / 0.5324 GB, free: 5.562 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008319/0.3503, allocations: 8.196 MB / 0.5404 GB, free: 13.34 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.981e-06/0.3503, allocations: 0 / 0.5404 GB, free: 13.34 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.433e-06/0.3503, allocations: 0 / 0.5404 GB, free: 13.34 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0002188/0.3506, allocations: 0 / 0.5404 GB, free: 13.34 MB / 362.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.01527/0.3658, allocations: 6.567 MB / 0.5468 GB, free: 6.699 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.045e-05/0.3659, allocations: 12.03 kB / 0.5468 GB, free: 6.688 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01233/0.3782, allocations: 3.386 MB / 0.5501 GB, free: 3.289 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005964/0.3842, allocations: 2.759 MB / 0.5528 GB, free: 480 kB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001864/0.3845, allocations: 270.7 kB / 0.5531 GB, free: 208 kB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007879/0.3853, allocations: 359.7 kB / 0.5534 GB, free: 15.85 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02039/0.4056, allocations: 14.02 MB / 0.5671 GB, free: 0.9453 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00021/0.4059, allocations: 51.53 kB / 0.5671 GB, free: 0.8945 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001175/0.4071, allocations: 179.8 kB / 0.5673 GB, free: 0.7188 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004983/0.4121, allocations: 3.144 MB / 0.5704 GB, free: 13.57 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02197/0.4341, allocations: 12.2 MB / 0.5823 GB, free: 1.359 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06926/0.5034, allocations: 52.07 MB / 0.6331 GB, free: 11.94 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01073/0.5142, allocations: 5.076 MB / 0.6381 GB, free: 6.633 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002713/0.5169, allocations: 1.798 MB / 0.6399 GB, free: 4.824 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1943/0.7112, allocations: 7.998 MB / 0.6477 GB, free: 151.1 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.375e-05/0.7113, allocations: 59.77 kB / 0.6477 GB, free: 151.1 MB / 458.7 MB Notification: Performance of pre-optimization done (n=242): time 4.94e-06/0.7113, allocations: 0 / 0.6477 GB, free: 151.1 MB / 458.7 MB Notification: Performance of matching and sorting (n=272): time 0.03064/0.7419, allocations: 14.43 MB / 0.6618 GB, free: 145 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.42e-05/0.742, allocations: 156.3 kB / 0.662 GB, free: 144.8 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006677/0.7487, allocations: 5.373 MB / 0.6672 GB, free: 142.9 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002899/0.749, allocations: 65.59 kB / 0.6673 GB, free: 142.9 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00179/0.7508, allocations: 4.097 MB / 0.6713 GB, free: 139.7 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007162/0.7515, allocations: 1.041 MB / 0.6723 GB, free: 139 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001486/0.753, allocations: 1.634 MB / 0.6739 GB, free: 138.2 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 5.764e-05/0.7531, allocations: 301.1 kB / 0.6742 GB, free: 137.9 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002939/0.756, allocations: 2.547 MB / 0.6767 GB, free: 137.1 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004991/0.761, allocations: 7.367 MB / 0.6838 GB, free: 129.8 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007932/0.769, allocations: 10.75 MB / 0.6944 GB, free: 118.3 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.046e-05/0.7691, allocations: 56.62 kB / 0.6944 GB, free: 118.2 MB / 458.7 MB Notification: Performance of matching and sorting (n=1086) (initialization): time 0.01184/0.7809, allocations: 9.934 MB / 0.7041 GB, free: 109.1 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.159e-05/0.781, allocations: 80 kB / 0.7042 GB, free: 109 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001251/0.7812, allocations: 168.9 kB / 0.7043 GB, free: 108.9 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007962/0.782, allocations: 469.5 kB / 0.7048 GB, free: 108.4 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004452/0.7864, allocations: 1.848 MB / 0.7066 GB, free: 106.6 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003967/0.7904, allocations: 4.896 MB / 0.7114 GB, free: 101.4 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00521/0.7956, allocations: 413.1 kB / 0.7118 GB, free: 101 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008158/0.7965, allocations: 496 kB / 0.7122 GB, free: 100.5 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 772 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1008): * Single equations (assignments): 998 * Array equations: 8 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,17,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.004621/0.8011, allocations: 2.855 MB / 0.715 GB, free: 97.66 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00104/0.8021, allocations: 465.8 kB / 0.7155 GB, free: 97.2 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004742/0.8069, allocations: 2.967 MB / 0.7184 GB, free: 94.2 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.772e-05/0.807, allocations: 35.14 kB / 0.7184 GB, free: 94.18 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.694e-05/0.807, allocations: 4 kB / 0.7184 GB, free: 94.17 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.955e-05/0.807, allocations: 15.95 kB / 0.7184 GB, free: 94.16 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01624/0.8233, allocations: 9.111 MB / 0.7273 GB, free: 84.93 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.979e-05/0.8233, allocations: 12.16 kB / 0.7273 GB, free: 84.92 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001469/0.8248, allocations: 379.4 kB / 0.7277 GB, free: 84.55 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005916/0.8254, allocations: 245.9 kB / 0.7279 GB, free: 84.3 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001661/0.8256, allocations: 51.2 kB / 0.728 GB, free: 84.26 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002965/0.8285, allocations: 4.036 MB / 0.7319 GB, free: 79.96 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.781e-06/0.8286, allocations: 11.94 kB / 0.7319 GB, free: 79.95 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02799/0.8566, allocations: 19.17 MB / 0.7507 GB, free: 60.21 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001315/0.8579, allocations: 0.511 MB / 0.7512 GB, free: 59.67 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001218/0.8592, allocations: 55.53 kB / 0.7512 GB, free: 59.62 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002281/0.8615, allocations: 107.9 kB / 0.7513 GB, free: 59.52 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004757/0.862, allocations: 161.6 kB / 0.7515 GB, free: 59.36 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002321/0.8622, allocations: 79.94 kB / 0.7515 GB, free: 59.28 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.005694/0.8679, allocations: 3.377 MB / 0.7548 GB, free: 55.91 MB / 458.7 MB Notification: Performance of sort global known variables: time 3.41e-07/0.8679, allocations: 480 / 0.7548 GB, free: 55.91 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.007571/0.8755, allocations: 1.592 MB / 0.7564 GB, free: 54.33 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 31 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (207): * Single equations (assignments): 199 * Array equations: 6 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(2,15,100.0%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005329/0.876, allocations: 196.7 kB / 0.7566 GB, free: 54.14 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.008415/0.8845, allocations: 6.166 MB / 0.7626 GB, free: 47.98 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.247e-05/0.8845, allocations: 1.875 kB / 0.7626 GB, free: 47.98 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002092/0.8866, allocations: 1.798 MB / 0.7644 GB, free: 46.16 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004177/0.8908, allocations: 0.6024 MB / 0.7649 GB, free: 45.57 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02326/0.9141, allocations: 16.94 MB / 0.7815 GB, free: 28.48 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006098/0.9202, allocations: 4.325 MB / 0.7857 GB, free: 24.13 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.006876/0.9271, allocations: 2.705 MB / 0.7883 GB, free: 21.41 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001138/0.9283, allocations: 335.4 kB / 0.7887 GB, free: 21.09 MB / 458.7 MB Notification: Performance of SimCode: time 7.71e-07/0.9283, allocations: 3.938 kB / 0.7887 GB, free: 21.08 MB / 458.7 MB Notification: Performance of Templates: time 0.272/1.2, allocations: 46.89 MB / 0.8345 GB, free: 137.2 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)