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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008993/0.0008993, allocations: 91.22 kB / 15.36 MB, free: 0.7383 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.005701/0.005701, allocations: 172.7 kB / 16.26 MB, free: 6.613 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.425/1.425, allocations: 223.3 MB / 240.3 MB, free: 5.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.1928/0.1928, allocations: 9.122 MB / 300.5 MB, free: 2.691 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004732/0.0004732, allocations: 8 kB / 363.7 MB, free: 12.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1544/0.1548, allocations: 52.42 MB / 416.1 MB, free: 8.176 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CraneCrabTo3D): time 0.2832/0.4381, allocations: 45.82 MB / 462 MB, free: 14.72 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02234/0.4605, allocations: 10.4 MB / 472.4 MB, free: 7.754 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01114/0.4716, allocations: 189.2 kB / 472.6 MB, free: 7.727 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00217/0.4739, allocations: 0.5601 MB / 473.1 MB, free: 7.52 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007388/0.4813, allocations: 2.408 MB / 475.5 MB, free: 6.48 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001951/0.4832, allocations: 0.5305 MB / 476.1 MB, free: 6.262 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.009943/0.4932, allocations: 7.147 MB / 483.2 MB, free: 4.051 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006248/0.4995, allocations: 3.322 MB / 486.5 MB, free: 2.668 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003645/0.5032, allocations: 1.454 MB / 488 MB, free: 2.121 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005017/0.5082, allocations: 2.5 MB / 490.5 MB, free: 1.328 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001686/0.5099, allocations: 206.2 kB / 490.7 MB, free: 1.328 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003843/0.5138, allocations: 1.088 MB / 491.8 MB, free: 1.059 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004166/0.518, allocations: 2.157 MB / 493.9 MB, free: 372 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006207/0.5242, allocations: 2.657 MB / 496.6 MB, free: 14.46 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01318/0.5374, allocations: 8.009 MB / 0.4928 GB, free: 10.31 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.5375, allocations: 0 / 0.4928 GB, free: 10.31 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.5375, allocations: 0 / 0.4928 GB, free: 10.31 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003266/0.5378, allocations: 0 / 0.4928 GB, free: 10.31 MB / 366.1 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.01586/0.5537, allocations: 5.432 MB / 0.4981 GB, free: 5.531 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.11e-05/0.5537, allocations: 12.59 kB / 0.4981 GB, free: 5.52 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0137/0.5674, allocations: 3.483 MB / 0.5015 GB, free: 2.023 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006147/0.5736, allocations: 2.759 MB / 0.5042 GB, free: 15.2 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002342/0.5739, allocations: 270.7 kB / 0.5044 GB, free: 14.94 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001125/0.575, allocations: 359.7 kB / 0.5048 GB, free: 14.59 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02289/0.5979, allocations: 14.03 MB / 0.5185 GB, free: 15.66 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001348/0.5981, allocations: 55.53 kB / 0.5185 GB, free: 15.61 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000534/0.5986, allocations: 175.8 kB / 0.5187 GB, free: 15.44 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00513/0.6038, allocations: 3.136 MB / 0.5218 GB, free: 12.3 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02426/0.628, allocations: 12.22 MB / 0.5337 GB, free: 72 kB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2815/0.9095, allocations: 52.08 MB / 0.5846 GB, free: 85.84 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01045/0.92, allocations: 5.077 MB / 0.5895 GB, free: 84.68 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002532/0.9226, allocations: 1.796 MB / 0.5913 GB, free: 84.64 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01359/0.9362, allocations: 8.012 MB / 0.5991 GB, free: 82.32 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.33e-05/0.9363, allocations: 57.45 kB / 0.5991 GB, free: 82.28 MB / 446.1 MB Notification: Performance of pre-optimization done (n=242): time 5.5e-06/0.9363, allocations: 0 / 0.5991 GB, free: 82.28 MB / 446.1 MB Notification: Performance of matching and sorting (n=272): time 0.03111/0.9674, allocations: 14.43 MB / 0.6132 GB, free: 77.53 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.277e-05/0.9675, allocations: 159.6 kB / 0.6134 GB, free: 77.38 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009507/0.9771, allocations: 5.369 MB / 0.6186 GB, free: 75.46 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004108/0.9775, allocations: 65.14 kB / 0.6187 GB, free: 75.4 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002374/0.9799, allocations: 4.094 MB / 0.6227 GB, free: 72.25 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001111/0.981, allocations: 1.035 MB / 0.6237 GB, free: 71.5 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001085/0.9821, allocations: 0.6894 MB / 0.6244 GB, free: 71.2 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.181e-05/0.9822, allocations: 309.6 kB / 0.6247 GB, free: 70.9 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004656/0.9868, allocations: 2.545 MB / 0.6272 GB, free: 70.09 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0082/0.9951, allocations: 7.364 MB / 0.6344 GB, free: 62.87 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01229/1.007, allocations: 10.76 MB / 0.6449 GB, free: 53.93 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002907/1.008, allocations: 49.45 kB / 0.6449 GB, free: 53.93 MB / 446.1 MB Notification: Performance of matching and sorting (n=1086) (initialization): time 0.02295/1.031, allocations: 9.936 MB / 0.6546 GB, free: 50.11 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001648/1.031, allocations: 80.53 kB / 0.6547 GB, free: 50.11 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003704/1.031, allocations: 170.1 kB / 0.6548 GB, free: 50.11 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001105/1.032, allocations: 474.8 kB / 0.6553 GB, free: 50.04 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006636/1.039, allocations: 1.847 MB / 0.6571 GB, free: 49.81 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004696/1.044, allocations: 4.889 MB / 0.6619 GB, free: 46.29 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007343/1.051, allocations: 415.5 kB / 0.6623 GB, free: 46.14 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001424/1.053, allocations: 498.8 kB / 0.6628 GB, free: 45.68 MB / 446.1 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.006082/1.059, allocations: 2.853 MB / 0.6655 GB, free: 43.17 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000944/1.06, allocations: 460 kB / 0.666 GB, free: 42.71 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004704/1.064, allocations: 2.972 MB / 0.6689 GB, free: 40.15 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.856e-05/1.064, allocations: 36 kB / 0.6689 GB, free: 40.12 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.505e-05/1.064, allocations: 4 kB / 0.6689 GB, free: 40.11 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.41e-05/1.065, allocations: 15.61 kB / 0.6689 GB, free: 40.11 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01629/1.081, allocations: 9.116 MB / 0.6778 GB, free: 32.5 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.972e-05/1.081, allocations: 8 kB / 0.6778 GB, free: 32.49 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001573/1.082, allocations: 382.9 kB / 0.6782 GB, free: 32.18 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006251/1.083, allocations: 247.1 kB / 0.6784 GB, free: 31.98 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001588/1.083, allocations: 51.12 kB / 0.6785 GB, free: 31.94 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003258/1.087, allocations: 4.042 MB / 0.6824 GB, free: 27.93 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.901e-06/1.087, allocations: 16 kB / 0.6825 GB, free: 27.91 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007198/1.094, allocations: 5.648 MB / 0.688 GB, free: 22.7 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001829/1.096, allocations: 0.5289 MB / 0.6885 GB, free: 22.17 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000707/1.096, allocations: 48 kB / 0.6885 GB, free: 22.12 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001685/1.098, allocations: 107.9 kB / 0.6886 GB, free: 22.02 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003229/1.098, allocations: 157.6 kB / 0.6888 GB, free: 21.86 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001643/1.099, allocations: 83.81 kB / 0.6889 GB, free: 21.78 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.006438/1.105, allocations: 3.384 MB / 0.6922 GB, free: 18.41 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.71e-07/1.105, allocations: 0 / 0.6922 GB, free: 18.41 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.007914/1.113, allocations: 1.262 MB / 0.6934 GB, free: 17.16 MB / 446.1 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.0006282/1.114, allocations: 190.4 kB / 0.6936 GB, free: 16.97 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.00966/1.123, allocations: 6.159 MB / 0.6996 GB, free: 10.82 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 9.318e-06/1.123, allocations: 0 / 0.6996 GB, free: 10.82 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002341/1.126, allocations: 1.814 MB / 0.7014 GB, free: 9 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008957/1.135, allocations: 0.6089 MB / 0.702 GB, free: 8.41 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02613/1.161, allocations: 15.1 MB / 0.7167 GB, free: 9.219 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008463/1.169, allocations: 4.239 MB / 0.7208 GB, free: 4.953 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.007897/1.177, allocations: 2.701 MB / 0.7235 GB, free: 2.242 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001075/1.178, allocations: 327.4 kB / 0.7238 GB, free: 1.922 MB / 462.1 MB Notification: Performance of SimCode: time 1.503e-06/1.178, allocations: 0 / 0.7238 GB, free: 1.922 MB / 462.1 MB Notification: Performance of Templates: time 0.08553/1.264, allocations: 42.92 MB / 0.7657 GB, free: 7.312 MB / 0.4981 GB 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)