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/package.mo", uses=false) Using package PlanarMechanics with version 1.6.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/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.001226/0.001227, allocations: 103.7 kB / 16.41 MB, free: 6.016 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.00133/0.00133, allocations: 192.3 kB / 17.34 MB, free: 5.609 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.356/1.356, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04614/0.04614, allocations: 9.117 MB / 300.3 MB, free: 5.812 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001162/0.001162, allocations: 63.91 kB / 415.3 MB, free: 21.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08077/0.08194, allocations: 51.44 MB / 466.7 MB, free: 1.66 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CraneCrabTo3D): time 0.01459/0.09657, allocations: 14.38 MB / 481.1 MB, free: 3.211 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009475/0.1061, allocations: 4.637 MB / 485.8 MB, free: 14.56 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002453/0.1086, allocations: 75.81 kB / 485.8 MB, free: 14.48 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003621/0.1122, allocations: 1.599 MB / 487.4 MB, free: 12.88 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006236/0.1185, allocations: 2.572 MB / 490 MB, free: 10.3 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0017/0.1202, allocations: 0.5771 MB / 490.6 MB, free: 9.719 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.007414/0.1277, allocations: 5.185 MB / 495.8 MB, free: 4.523 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003988/0.1317, allocations: 2.964 MB / 498.7 MB, free: 1.504 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002896/0.1346, allocations: 1.786 MB / 0.4888 GB, free: 15.71 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003356/0.138, allocations: 2.507 MB / 0.4912 GB, free: 13.2 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00107/0.1391, allocations: 384 kB / 0.4916 GB, free: 12.82 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00267/0.1418, allocations: 1.186 MB / 0.4928 GB, free: 11.63 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00257/0.1444, allocations: 2.295 MB / 0.495 GB, free: 9.332 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004008/0.1484, allocations: 2.815 MB / 0.4978 GB, free: 6.5 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2213/0.3697, allocations: 8.759 MB / 0.5063 GB, free: 15.44 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.577e-06/0.3697, allocations: 0.75 kB / 0.5063 GB, free: 15.44 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.314e-06/0.3697, allocations: 1.219 kB / 0.5063 GB, free: 15.44 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003726/0.3701, allocations: 0 / 0.5063 GB, free: 15.44 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.01984/0.39, allocations: 6.562 MB / 0.5127 GB, free: 13.1 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.605e-05/0.39, allocations: 8.781 kB / 0.5127 GB, free: 13.1 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01365/0.4037, allocations: 3.396 MB / 0.516 GB, free: 12.73 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007918/0.4117, allocations: 2.783 MB / 0.5188 GB, free: 12.07 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003035/0.412, allocations: 278.8 kB / 0.519 GB, free: 12.06 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002151/0.4141, allocations: 360.9 kB / 0.5194 GB, free: 12.05 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02492/0.4391, allocations: 14.03 MB / 0.5331 GB, free: 7.379 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001624/0.4393, allocations: 52.69 kB / 0.5331 GB, free: 7.371 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000832/0.4401, allocations: 176.6 kB / 0.5333 GB, free: 7.312 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004381/0.4445, allocations: 3.137 MB / 0.5363 GB, free: 6.316 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02169/0.4662, allocations: 12.21 MB / 0.5483 GB, free: 11.79 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07206/0.5383, allocations: 51.79 MB / 0.5988 GB, free: 7.434 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01159/0.55, allocations: 5.078 MB / 0.6038 GB, free: 2.137 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00306/0.5531, allocations: 1.809 MB / 0.6056 GB, free: 332 kB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01537/0.5685, allocations: 8.003 MB / 0.6134 GB, free: 8.062 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.988e-05/0.5686, allocations: 59.88 kB / 0.6134 GB, free: 7.996 MB / 462.1 MB Notification: Performance of pre-optimization done (n=242): time 6.001e-06/0.5686, allocations: 0 / 0.6134 GB, free: 7.996 MB / 462.1 MB Notification: Performance of matching and sorting (n=272): time 0.03324/0.6018, allocations: 14.43 MB / 0.6275 GB, free: 9.551 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.873e-05/0.6019, allocations: 157.5 kB / 0.6277 GB, free: 9.367 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008053/0.61, allocations: 5.375 MB / 0.6329 GB, free: 4 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004398/0.6105, allocations: 65.69 kB / 0.633 GB, free: 3.93 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002888/0.6134, allocations: 4.089 MB / 0.637 GB, free: 15.85 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001253/0.6146, allocations: 1.036 MB / 0.638 GB, free: 14.82 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002506/0.6172, allocations: 1.641 MB / 0.6396 GB, free: 13.17 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.504e-05/0.6173, allocations: 301.1 kB / 0.6399 GB, free: 12.87 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004184/0.6215, allocations: 2.55 MB / 0.6424 GB, free: 10.31 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007647/0.6291, allocations: 7.363 MB / 0.6496 GB, free: 0.6445 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01295/0.6421, allocations: 10.76 MB / 0.6601 GB, free: 4.191 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001689/0.6423, allocations: 48 kB / 0.6601 GB, free: 4.145 MB / 0.4981 GB Notification: Performance of matching and sorting (n=1086) (initialization): time 0.01917/0.6615, allocations: 9.933 MB / 0.6698 GB, free: 10.43 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001767/0.6617, allocations: 76.97 kB / 0.6699 GB, free: 10.35 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002708/0.662, allocations: 172 kB / 0.6701 GB, free: 10.18 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001119/0.6631, allocations: 476 kB / 0.6705 GB, free: 9.715 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006216/0.6694, allocations: 1.84 MB / 0.6723 GB, free: 7.871 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005743/0.6751, allocations: 5.299 MB / 0.6775 GB, free: 2.285 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005912/0.6811, allocations: 421.1 kB / 0.6779 GB, free: 1.875 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001269/0.6824, allocations: 498.5 kB / 0.6784 GB, free: 1.391 MB / 0.5137 GB 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.005324/0.6877, allocations: 2.842 MB / 0.6811 GB, free: 14.54 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001023/0.6888, allocations: 465.9 kB / 0.6816 GB, free: 14.08 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005684/0.6944, allocations: 2.967 MB / 0.6845 GB, free: 11.09 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.196e-05/0.6945, allocations: 33.8 kB / 0.6845 GB, free: 11.06 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.262e-05/0.6946, allocations: 4 kB / 0.6845 GB, free: 11.06 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.834e-05/0.6946, allocations: 11.95 kB / 0.6845 GB, free: 11.05 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01813/0.7127, allocations: 9.071 MB / 0.6934 GB, free: 1.852 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.38e-05/0.7128, allocations: 8 kB / 0.6934 GB, free: 1.844 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00171/0.7145, allocations: 379.5 kB / 0.6938 GB, free: 1.473 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007145/0.7152, allocations: 249.4 kB / 0.694 GB, free: 1.223 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002459/0.7155, allocations: 49.09 kB / 0.694 GB, free: 1.176 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004282/0.7198, allocations: 4.377 MB / 0.6983 GB, free: 12.53 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.085e-06/0.7198, allocations: 11.94 kB / 0.6983 GB, free: 12.52 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008023/0.7279, allocations: 5.652 MB / 0.7038 GB, free: 6.707 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00143/0.7293, allocations: 0.503 MB / 0.7043 GB, free: 6.18 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001002/0.7303, allocations: 44 kB / 0.7044 GB, free: 6.137 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002061/0.7324, allocations: 119.8 kB / 0.7045 GB, free: 6.02 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003617/0.7328, allocations: 157.6 kB / 0.7046 GB, free: 5.867 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001893/0.733, allocations: 79.89 kB / 0.7047 GB, free: 5.793 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.005939/0.7389, allocations: 3.385 MB / 0.708 GB, free: 2.422 MB / 0.545 GB Notification: Performance of sort global known variables: time 4.31e-07/0.739, allocations: 1.094 kB / 0.708 GB, free: 2.422 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.006999/0.746, allocations: 1.258 MB / 0.7093 GB, free: 1.164 MB / 0.545 GB 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.000599/0.7466, allocations: 190.5 kB / 0.7094 GB, free: 0.9727 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.2082/0.9548, allocations: 6.193 MB / 0.7155 GB, free: 199.4 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.046e-05/0.9549, allocations: 1 kB / 0.7155 GB, free: 199.4 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.00294/0.9578, allocations: 1.805 MB / 0.7172 GB, free: 198.7 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003887/0.9617, allocations: 0.6454 MB / 0.7179 GB, free: 198.4 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02105/0.9828, allocations: 12.79 MB / 0.7304 GB, free: 192.8 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004781/0.9876, allocations: 4.236 MB / 0.7345 GB, free: 191.3 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00134/0.989, allocations: 402.7 kB / 0.7349 GB, free: 191.2 MB / 0.545 GB Notification: Performance of SimCode: time 1.173e-06/0.989, allocations: 0 / 0.7349 GB, free: 191.2 MB / 0.545 GB Notification: Performance of Templates: time 0.1444/1.133, allocations: 131.8 MB / 0.8636 GB, free: 63.02 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)