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.001086/0.001086, allocations: 86.56 kB / 15.06 MB, free: 1.09 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.001273/0.001273, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.47/1.47, allocations: 223.3 MB / 240 MB, free: 5.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.211/0.211, allocations: 9.115 MB / 300.2 MB, free: 2.789 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004437/0.0004438, allocations: 11.94 kB / 363.1 MB, free: 12.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1285/0.129, allocations: 52.42 MB / 415.5 MB, free: 8.516 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CraneCrabTo3D): time 0.2886/0.4177, allocations: 42.66 MB / 458.2 MB, free: 17.63 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.03169/0.4494, allocations: 9.905 MB / 468.1 MB, free: 10.86 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01546/0.465, allocations: 191.5 kB / 468.3 MB, free: 10.84 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007993/0.473, allocations: 2.144 MB / 470.4 MB, free: 10.08 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02773/0.5008, allocations: 7.241 MB / 477.7 MB, free: 6.992 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004027/0.5048, allocations: 0.5063 MB / 478.2 MB, free: 6.797 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01245/0.5173, allocations: 5.671 MB / 483.8 MB, free: 4.812 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00928/0.5266, allocations: 3.037 MB / 486.9 MB, free: 3.605 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005756/0.5324, allocations: 1.575 MB / 488.5 MB, free: 3.09 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007254/0.5397, allocations: 2.482 MB / 490.9 MB, free: 2.336 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002183/0.5419, allocations: 205.7 kB / 491.1 MB, free: 2.336 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004379/0.5463, allocations: 0.9103 MB / 492.1 MB, free: 2.148 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006152/0.5525, allocations: 2.091 MB / 494.1 MB, free: 1.5 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003985/0.5565, allocations: 1.101 MB / 495.2 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01228/0.5688, allocations: 6.539 MB / 0.49 GB, free: 12.51 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.493e-06/0.5689, allocations: 0 / 0.49 GB, free: 12.51 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.5689, allocations: 0 / 0.49 GB, free: 12.51 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0004588/0.5693, allocations: 1.75 kB / 0.49 GB, free: 12.51 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.0183/0.5876, allocations: 5.496 MB / 0.4954 GB, free: 8.02 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.604e-05/0.5877, allocations: 8.031 kB / 0.4954 GB, free: 8.012 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01301/0.6007, allocations: 3.48 MB / 0.4988 GB, free: 4.52 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007316/0.6081, allocations: 2.708 MB / 0.5014 GB, free: 1.75 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002842/0.6084, allocations: 272.9 kB / 0.5017 GB, free: 1.484 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00173/0.6102, allocations: 359.7 kB / 0.502 GB, free: 1.133 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02847/0.6386, allocations: 14 MB / 0.5157 GB, free: 2.242 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001407/0.6388, allocations: 55.53 kB / 0.5158 GB, free: 2.188 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005715/0.6394, allocations: 175.8 kB / 0.5159 GB, free: 2.016 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004725/0.6441, allocations: 3.14 MB / 0.519 GB, free: 14.88 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02729/0.6714, allocations: 12.16 MB / 0.5309 GB, free: 2.707 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3599/1.031, allocations: 52.06 MB / 0.5817 GB, free: 105.7 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01069/1.042, allocations: 5.053 MB / 0.5867 GB, free: 104.5 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002964/1.045, allocations: 1.802 MB / 0.5884 GB, free: 104.5 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01382/1.059, allocations: 8.016 MB / 0.5962 GB, free: 102.2 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.553e-05/1.059, allocations: 61.41 kB / 0.5963 GB, free: 102.2 MB / 446.1 MB Notification: Performance of pre-optimization done (n=242): time 6.583e-06/1.059, allocations: 0 / 0.5963 GB, free: 102.2 MB / 446.1 MB Notification: Performance of matching and sorting (n=272): time 0.03012/1.089, allocations: 14.41 MB / 0.6104 GB, free: 97.45 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.906e-05/1.089, allocations: 153.1 kB / 0.6105 GB, free: 97.29 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009622/1.099, allocations: 5.344 MB / 0.6157 GB, free: 95.38 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005675/1.1, allocations: 64.36 kB / 0.6158 GB, free: 95.32 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003308/1.103, allocations: 4.098 MB / 0.6198 GB, free: 92.16 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001533/1.104, allocations: 1.035 MB / 0.6208 GB, free: 91.41 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004481/1.105, allocations: 161.1 kB / 0.621 GB, free: 91.29 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0005002/1.105, allocations: 0.6575 MB / 0.6216 GB, free: 90.83 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004699/1.11, allocations: 2.515 MB / 0.6241 GB, free: 90.03 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008835/1.119, allocations: 7.331 MB / 0.6312 GB, free: 82.8 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009435/1.128, allocations: 4.3 MB / 0.6354 GB, free: 81.22 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003118/1.129, allocations: 49.12 kB / 0.6355 GB, free: 81.22 MB / 446.1 MB Notification: Performance of matching and sorting (n=1086) (initialization): time 0.02373/1.153, allocations: 9.86 MB / 0.6451 GB, free: 77.4 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000174/1.153, allocations: 79.44 kB / 0.6452 GB, free: 77.4 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002791/1.153, allocations: 170.8 kB / 0.6453 GB, free: 77.4 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001084/1.154, allocations: 496.9 kB / 0.6458 GB, free: 77.33 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006433/1.161, allocations: 1.848 MB / 0.6476 GB, free: 77.11 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00566/1.166, allocations: 4.884 MB / 0.6524 GB, free: 73.57 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008854/1.175, allocations: 413.7 kB / 0.6528 GB, free: 73.44 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002067/1.177, allocations: 493.6 kB / 0.6532 GB, free: 73.38 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 17,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.009488/1.187, allocations: 2.859 MB / 0.656 GB, free: 72.02 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001557/1.188, allocations: 458.8 kB / 0.6565 GB, free: 71.77 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00682/1.195, allocations: 2.96 MB / 0.6594 GB, free: 69.95 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.819e-05/1.195, allocations: 30.44 kB / 0.6594 GB, free: 69.92 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.937e-05/1.195, allocations: 11.89 kB / 0.6594 GB, free: 69.91 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.402e-05/1.195, allocations: 13.38 kB / 0.6594 GB, free: 69.91 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02541/1.221, allocations: 9.095 MB / 0.6683 GB, free: 62.31 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.224e-05/1.221, allocations: 8.125 kB / 0.6683 GB, free: 62.3 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001622/1.222, allocations: 388.1 kB / 0.6687 GB, free: 61.98 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006297/1.223, allocations: 243.3 kB / 0.6689 GB, free: 61.79 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002986/1.223, allocations: 55.5 kB / 0.669 GB, free: 61.74 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003397/1.227, allocations: 4.028 MB / 0.6729 GB, free: 57.75 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.745e-06/1.227, allocations: 11.94 kB / 0.6729 GB, free: 57.74 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007356/1.234, allocations: 5.636 MB / 0.6784 GB, free: 52.54 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002113/1.236, allocations: 0.5245 MB / 0.6789 GB, free: 52.02 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001469/1.238, allocations: 47.66 kB / 0.679 GB, free: 51.97 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001713/1.24, allocations: 112.4 kB / 0.6791 GB, free: 51.9 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002996/1.24, allocations: 158.5 kB / 0.6792 GB, free: 51.79 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001365/1.24, allocations: 72 kB / 0.6793 GB, free: 51.72 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.005846/1.246, allocations: 3.362 MB / 0.6826 GB, free: 48.96 MB / 446.1 MB Notification: Performance of sort global known variables: time 3.11e-07/1.246, allocations: 0 / 0.6826 GB, free: 48.96 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.009478/1.255, allocations: 1.265 MB / 0.6838 GB, free: 47.71 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(2,100.0%) 15,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006138/1.256, allocations: 193.7 kB / 0.684 GB, free: 47.52 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0101/1.266, allocations: 6.127 MB / 0.69 GB, free: 41.82 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.138e-05/1.266, allocations: 4 kB / 0.69 GB, free: 41.81 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002351/1.269, allocations: 1.787 MB / 0.6917 GB, free: 40.01 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003977/1.273, allocations: 0.6019 MB / 0.6923 GB, free: 39.43 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02352/1.296, allocations: 14.49 MB / 0.7065 GB, free: 24.84 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004939/1.301, allocations: 4.232 MB / 0.7106 GB, free: 20.58 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.006248/1.307, allocations: 2.701 MB / 0.7132 GB, free: 17.87 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009123/1.308, allocations: 339.4 kB / 0.7136 GB, free: 17.54 MB / 446.1 MB Notification: Performance of SimCode: time 1.222e-06/1.308, allocations: 0 / 0.7136 GB, free: 17.54 MB / 446.1 MB Notification: Performance of Templates: time 0.3444/1.653, allocations: 41.98 MB / 0.7546 GB, free: 110.2 MB / 462.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)