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.009024/0.009024, allocations: 97.27 kB / 15.73 MB, free: 6.043 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.001671/0.001671, allocations: 194.3 kB / 16.68 MB, free: 5.973 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.389/1.389, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.1851/0.1851, allocations: 9.125 MB / 299.7 MB, free: 1.711 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001878/0.001878, allocations: 64.12 kB / 414.7 MB, free: 8.363 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3435/0.3454, allocations: 51.42 MB / 466.1 MB, free: 18.17 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CraneCrabTo3D): time 0.01544/0.3609, allocations: 14.38 MB / 480.5 MB, free: 7.938 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01106/0.372, allocations: 4.649 MB / 485.1 MB, free: 4.371 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003549/0.3756, allocations: 75.75 kB / 485.2 MB, free: 4.359 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003801/0.3794, allocations: 1.598 MB / 486.8 MB, free: 3.234 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008362/0.3879, allocations: 2.565 MB / 489.3 MB, free: 1.434 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001931/0.3898, allocations: 0.5783 MB / 489.9 MB, free: 1.039 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.009796/0.3997, allocations: 5.185 MB / 495.1 MB, free: 14.19 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005151/0.4048, allocations: 2.971 MB / 498.1 MB, free: 12.05 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003753/0.4086, allocations: 1.775 MB / 499.9 MB, free: 10.27 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00414/0.4128, allocations: 2.507 MB / 0.4906 GB, free: 7.75 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00135/0.4142, allocations: 384 kB / 0.491 GB, free: 7.375 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003417/0.4176, allocations: 1.182 MB / 0.4921 GB, free: 6.191 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00305/0.4207, allocations: 2.295 MB / 0.4943 GB, free: 3.891 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004513/0.4252, allocations: 2.811 MB / 0.4971 GB, free: 1.062 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0108/0.436, allocations: 8.809 MB / 0.5057 GB, free: 8.219 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.913e-06/0.4361, allocations: 0 / 0.5057 GB, free: 8.219 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.395e-06/0.4361, allocations: 0 / 0.5057 GB, free: 8.219 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000348/0.4364, allocations: 0 / 0.5057 GB, free: 8.219 MB / 382.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.01492/0.4514, allocations: 6.727 MB / 0.5123 GB, free: 1.402 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.344e-05/0.4514, allocations: 8.031 kB / 0.5123 GB, free: 1.395 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01282/0.4642, allocations: 3.433 MB / 0.5156 GB, free: 13.95 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006432/0.4707, allocations: 2.807 MB / 0.5184 GB, free: 11.09 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002349/0.471, allocations: 274.7 kB / 0.5186 GB, free: 10.82 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009053/0.4719, allocations: 355.7 kB / 0.519 GB, free: 10.47 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02505/0.4969, allocations: 14.03 MB / 0.5327 GB, free: 11.56 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002584/0.4972, allocations: 55.58 kB / 0.5327 GB, free: 11.5 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001377/0.4986, allocations: 171.8 kB / 0.5329 GB, free: 11.34 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005101/0.5037, allocations: 3.144 MB / 0.536 GB, free: 8.191 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02215/0.5259, allocations: 12.21 MB / 0.5479 GB, free: 11.97 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3697/0.8957, allocations: 51.88 MB / 0.5985 GB, free: 74.31 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01218/0.9079, allocations: 5.067 MB / 0.6035 GB, free: 73.15 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003457/0.9114, allocations: 1.802 MB / 0.6052 GB, free: 73.11 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01505/0.9265, allocations: 8.033 MB / 0.6131 GB, free: 69.93 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.926e-05/0.9266, allocations: 55.02 kB / 0.6131 GB, free: 69.88 MB / 462.1 MB Notification: Performance of pre-optimization done (n=242): time 9.668e-06/0.9266, allocations: 4.875 kB / 0.6131 GB, free: 69.88 MB / 462.1 MB Notification: Performance of matching and sorting (n=272): time 0.03532/0.9619, allocations: 14.72 MB / 0.6275 GB, free: 63.36 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.811e-05/0.9621, allocations: 158.8 kB / 0.6277 GB, free: 63.2 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007621/0.9697, allocations: 5.395 MB / 0.6329 GB, free: 61.36 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003339/0.9701, allocations: 60.61 kB / 0.633 GB, free: 61.3 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002129/0.9722, allocations: 4.262 MB / 0.6372 GB, free: 58.15 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001033/0.9732, allocations: 1.083 MB / 0.6382 GB, free: 57.36 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001808/0.9751, allocations: 1.651 MB / 0.6398 GB, free: 56.46 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 5.018e-05/0.9751, allocations: 305.1 kB / 0.6401 GB, free: 56.16 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003519/0.9786, allocations: 2.542 MB / 0.6426 GB, free: 54.95 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005352/0.984, allocations: 7.365 MB / 0.6498 GB, free: 47.17 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01009/0.9941, allocations: 10.75 MB / 0.6603 GB, free: 36.11 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002779/0.9945, allocations: 48 kB / 0.6603 GB, free: 36.06 MB / 462.1 MB Notification: Performance of matching and sorting (n=1086) (initialization): time 0.02563/1.02, allocations: 9.965 MB / 0.6701 GB, free: 26.09 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001925/1.02, allocations: 76 kB / 0.6702 GB, free: 26.02 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002952/1.021, allocations: 172 kB / 0.6703 GB, free: 25.85 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00125/1.022, allocations: 473.3 kB / 0.6708 GB, free: 25.38 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005784/1.028, allocations: 1.852 MB / 0.6726 GB, free: 23.53 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004477/1.032, allocations: 5.297 MB / 0.6777 GB, free: 17.95 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006085/1.038, allocations: 419.6 kB / 0.6781 GB, free: 17.54 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001231/1.04, allocations: 499.6 kB / 0.6786 GB, free: 17.05 MB / 462.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.004981/1.045, allocations: 2.844 MB / 0.6814 GB, free: 14.2 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001055/1.046, allocations: 480.8 kB / 0.6819 GB, free: 13.73 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004795/1.05, allocations: 2.983 MB / 0.6848 GB, free: 10.73 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.266e-05/1.051, allocations: 28 kB / 0.6848 GB, free: 10.7 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.346e-05/1.051, allocations: 5.312 kB / 0.6848 GB, free: 10.7 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.037e-05/1.051, allocations: 11.95 kB / 0.6848 GB, free: 10.69 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01771/1.068, allocations: 9.069 MB / 0.6937 GB, free: 1.492 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.14e-05/1.068, allocations: 8 kB / 0.6937 GB, free: 1.484 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001657/1.07, allocations: 383.4 kB / 0.694 GB, free: 1.109 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006591/1.071, allocations: 246.2 kB / 0.6943 GB, free: 0.8633 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003035/1.071, allocations: 55.27 kB / 0.6943 GB, free: 0.8125 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004924/1.076, allocations: 4.379 MB / 0.6986 GB, free: 12.16 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.265e-05/1.076, allocations: 11.94 kB / 0.6986 GB, free: 12.14 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009618/1.086, allocations: 5.673 MB / 0.7042 GB, free: 6.32 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001862/1.088, allocations: 0.5331 MB / 0.7047 GB, free: 5.766 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001175/1.089, allocations: 44 kB / 0.7047 GB, free: 5.723 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002386/1.091, allocations: 111.8 kB / 0.7048 GB, free: 5.613 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003991/1.092, allocations: 173 kB / 0.705 GB, free: 5.449 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001981/1.092, allocations: 76.47 kB / 0.7051 GB, free: 5.375 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.007339/1.099, allocations: 3.385 MB / 0.7084 GB, free: 2.004 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.81e-07/1.099, allocations: 0 / 0.7084 GB, free: 2.004 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.007655/1.107, allocations: 1.265 MB / 0.7096 GB, free: 0.7422 MB / 478.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.0007126/1.108, allocations: 186.7 kB / 0.7098 GB, free: 0.5508 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01093/1.119, allocations: 6.21 MB / 0.7159 GB, free: 10.35 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.003e-05/1.119, allocations: 0 / 0.7159 GB, free: 10.35 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002654/1.121, allocations: 1.807 MB / 0.7176 GB, free: 8.527 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005611/1.127, allocations: 0.6481 MB / 0.7182 GB, free: 7.891 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02777/1.155, allocations: 12.33 MB / 0.7303 GB, free: 11.45 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008096/1.163, allocations: 4.239 MB / 0.7344 GB, free: 7.184 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.006912/1.17, allocations: 2.709 MB / 0.7371 GB, free: 4.465 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001263/1.171, allocations: 335.3 kB / 0.7374 GB, free: 4.137 MB / 0.4981 GB Notification: Performance of SimCode: time 8.71e-07/1.171, allocations: 0 / 0.7374 GB, free: 4.137 MB / 0.4981 GB Notification: Performance of Templates: time 0.08074/1.252, allocations: 40.69 MB / 0.7771 GB, free: 11.76 MB / 0.545 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)