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.001521/0.001521, allocations: 105.3 kB / 16.27 MB, free: 6.414 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.001739/0.00174, allocations: 190.1 kB / 17.2 MB, free: 5.949 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.313/1.313, allocations: 222.9 MB / 240.9 MB, free: 15.27 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04589/0.04589, allocations: 9.126 MB / 300.2 MB, free: 5.918 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001297/0.001297, allocations: 67.89 kB / 362.6 MB, free: 7.441 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1754/0.1767, allocations: 51.42 MB / 414 MB, free: 25.02 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CraneCrabTo3D): time 0.01017/0.1869, allocations: 14.39 MB / 428.4 MB, free: 10.57 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006532/0.1935, allocations: 4.647 MB / 433.1 MB, free: 5.91 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001419/0.1949, allocations: 75.81 kB / 433.1 MB, free: 5.836 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002265/0.1972, allocations: 1.595 MB / 434.7 MB, free: 4.234 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003806/0.2011, allocations: 2.571 MB / 437.3 MB, free: 1.656 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009072/0.202, allocations: 0.5732 MB / 437.9 MB, free: 1.082 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.005002/0.207, allocations: 5.171 MB / 443.1 MB, free: 11.9 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003243/0.2103, allocations: 2.975 MB / 446 MB, free: 8.871 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002203/0.2125, allocations: 1.771 MB / 447.8 MB, free: 7.094 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002848/0.2153, allocations: 2.511 MB / 450.3 MB, free: 4.574 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006813/0.216, allocations: 380 kB / 450.7 MB, free: 4.203 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002108/0.2181, allocations: 1.19 MB / 451.9 MB, free: 3.012 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001889/0.2201, allocations: 2.298 MB / 454.2 MB, free: 0.707 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002491/0.2226, allocations: 2.807 MB / 457 MB, free: 13.88 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007513/0.2301, allocations: 8.364 MB / 465.3 MB, free: 5.488 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.2301, allocations: 0 / 465.3 MB, free: 5.488 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.2301, allocations: 0 / 465.3 MB, free: 5.488 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001112/0.2302, allocations: 0 / 465.3 MB, free: 5.488 MB / 334.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.01215/0.2424, allocations: 6.562 MB / 471.9 MB, free: 14.85 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.696e-05/0.2424, allocations: 12.03 kB / 471.9 MB, free: 14.84 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01207/0.2545, allocations: 3.39 MB / 475.3 MB, free: 11.44 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004704/0.2592, allocations: 2.751 MB / 478.1 MB, free: 8.625 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001847/0.2594, allocations: 274.6 kB / 478.3 MB, free: 8.355 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006602/0.2601, allocations: 359.7 kB / 478.7 MB, free: 8.004 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01873/0.2788, allocations: 14.02 MB / 492.7 MB, free: 9.102 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001096/0.279, allocations: 63.38 kB / 492.8 MB, free: 9.039 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004858/0.2795, allocations: 175.7 kB / 492.9 MB, free: 8.867 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004688/0.2842, allocations: 3.14 MB / 496.1 MB, free: 5.719 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02082/0.305, allocations: 12.21 MB / 0.4964 GB, free: 9.504 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2086/0.5137, allocations: 52.05 MB / 0.5472 GB, free: 45.52 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009825/0.5235, allocations: 5.079 MB / 0.5522 GB, free: 42.41 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002289/0.5258, allocations: 1.803 MB / 0.5539 GB, free: 41.51 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0113/0.5372, allocations: 8.001 MB / 0.5617 GB, free: 34.21 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.519e-05/0.5372, allocations: 51.88 kB / 0.5618 GB, free: 34.15 MB / 382.1 MB Notification: Performance of pre-optimization done (n=242): time 4.288e-06/0.5372, allocations: 0 / 0.5618 GB, free: 34.15 MB / 382.1 MB Notification: Performance of matching and sorting (n=272): time 0.02457/0.5618, allocations: 14.45 MB / 0.5759 GB, free: 19.64 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.07e-05/0.5619, allocations: 154.5 kB / 0.576 GB, free: 19.46 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005147/0.567, allocations: 5.374 MB / 0.5813 GB, free: 14.09 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001129/0.5671, allocations: 61.7 kB / 0.5813 GB, free: 14.02 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001533/0.5687, allocations: 4.095 MB / 0.5853 GB, free: 9.926 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005669/0.5693, allocations: 1.034 MB / 0.5863 GB, free: 8.898 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00146/0.5707, allocations: 1.639 MB / 0.5879 GB, free: 7.25 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.392e-05/0.5708, allocations: 305.1 kB / 0.5882 GB, free: 6.949 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002968/0.5737, allocations: 2.542 MB / 0.5907 GB, free: 4.398 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00568/0.5794, allocations: 7.373 MB / 0.5979 GB, free: 10.63 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01183/0.5913, allocations: 10.76 MB / 0.6084 GB, free: 13.5 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.631e-05/0.5914, allocations: 48 kB / 0.6085 GB, free: 13.46 MB / 414.1 MB Notification: Performance of matching and sorting (n=1086) (initialization): time 0.01534/0.6067, allocations: 9.926 MB / 0.6182 GB, free: 3.52 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001096/0.6069, allocations: 76.09 kB / 0.6182 GB, free: 3.445 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002051/0.6071, allocations: 179.9 kB / 0.6184 GB, free: 3.27 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009822/0.6081, allocations: 466.1 kB / 0.6189 GB, free: 2.809 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005243/0.6133, allocations: 1.856 MB / 0.6207 GB, free: 0.9492 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005654/0.619, allocations: 5.295 MB / 0.6258 GB, free: 11.38 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004937/0.6239, allocations: 425.5 kB / 0.6262 GB, free: 10.96 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007757/0.6247, allocations: 492 kB / 0.6267 GB, free: 10.48 MB / 430.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.004094/0.6288, allocations: 2.85 MB / 0.6295 GB, free: 7.629 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007868/0.6296, allocations: 458 kB / 0.6299 GB, free: 7.176 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00494/0.6346, allocations: 2.979 MB / 0.6328 GB, free: 4.176 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.066e-05/0.6346, allocations: 33.89 kB / 0.6329 GB, free: 4.145 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.465e-05/0.6347, allocations: 4 kB / 0.6329 GB, free: 4.141 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.728e-05/0.6347, allocations: 7.969 kB / 0.6329 GB, free: 4.133 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01456/0.6493, allocations: 9.121 MB / 0.6418 GB, free: 10.89 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.38e-05/0.6493, allocations: 4 kB / 0.6418 GB, free: 10.88 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001639/0.651, allocations: 387.4 kB / 0.6422 GB, free: 10.5 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006896/0.6517, allocations: 237.7 kB / 0.6424 GB, free: 10.27 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001425/0.6518, allocations: 51.98 kB / 0.6424 GB, free: 10.21 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004332/0.6562, allocations: 4.378 MB / 0.6467 GB, free: 5.559 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.816e-06/0.6562, allocations: 16 kB / 0.6467 GB, free: 5.543 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007448/0.6636, allocations: 5.651 MB / 0.6523 GB, free: 15.74 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009588/0.6646, allocations: 0.5069 MB / 0.6527 GB, free: 15.21 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005148/0.6651, allocations: 51.91 kB / 0.6528 GB, free: 15.16 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001551/0.6667, allocations: 99.88 kB / 0.6529 GB, free: 15.07 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002969/0.667, allocations: 169.5 kB / 0.6531 GB, free: 14.9 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001455/0.6672, allocations: 76 kB / 0.6531 GB, free: 14.82 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004716/0.6719, allocations: 3.377 MB / 0.6564 GB, free: 11.46 MB / 462.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.6719, allocations: 0 / 0.6564 GB, free: 11.46 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.005231/0.6771, allocations: 1.259 MB / 0.6577 GB, free: 10.21 MB / 462.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.0003845/0.6775, allocations: 195.4 kB / 0.6578 GB, free: 10.02 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01398/0.6915, allocations: 8.714 MB / 0.6664 GB, free: 1.34 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.033e-06/0.6915, allocations: 4.812 kB / 0.6664 GB, free: 1.336 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002421/0.694, allocations: 1.809 MB / 0.6681 GB, free: 15.51 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003242/0.6972, allocations: 0.6505 MB / 0.6688 GB, free: 14.88 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01855/0.7158, allocations: 12.93 MB / 0.6814 GB, free: 1.832 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.1522/0.868, allocations: 4.234 MB / 0.6855 GB, free: 160.2 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001198/0.8692, allocations: 401.4 kB / 0.6859 GB, free: 160.2 MB / 478.1 MB Notification: Performance of SimCode: time 6.61e-07/0.8692, allocations: 0 / 0.6859 GB, free: 160.2 MB / 478.1 MB Notification: Performance of Templates: time 0.1143/0.9835, allocations: 130.8 MB / 0.8137 GB, free: 46.88 MB / 478.1 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)