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.001333/0.001333, allocations: 99.23 kB / 15.05 MB, free: 1.105 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.00154/0.00154, allocations: 177.3 kB / 15.94 MB, free: 228 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.397/1.397, allocations: 223.2 MB / 239.9 MB, free: 5.297 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1463/0.1463, allocations: 9.094 MB / 300.1 MB, free: 2.777 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003281/0.0003282, allocations: 11.98 kB / 363 MB, free: 12.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1225/0.1228, allocations: 52.42 MB / 415.4 MB, free: 8.512 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CraneCrabTo3D): time 0.265/0.3878, allocations: 40.21 MB / 455.6 MB, free: 19.4 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02107/0.4089, allocations: 10.32 MB / 465.9 MB, free: 12.35 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009002/0.418, allocations: 189.4 kB / 466.1 MB, free: 12.32 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00679/0.4248, allocations: 1.992 MB / 468.1 MB, free: 11.68 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01888/0.4437, allocations: 6.149 MB / 474.3 MB, free: 8.738 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002807/0.4466, allocations: 0.5089 MB / 474.8 MB, free: 8.535 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006217/0.4528, allocations: 2.937 MB / 477.7 MB, free: 7.254 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004687/0.4575, allocations: 3.021 MB / 480.7 MB, free: 6.055 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002472/0.46, allocations: 1.322 MB / 482.1 MB, free: 5.602 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003017/0.463, allocations: 1.825 MB / 483.9 MB, free: 5.012 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001067/0.4641, allocations: 206.8 kB / 484.1 MB, free: 5.012 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002483/0.4666, allocations: 0.8855 MB / 485 MB, free: 4.84 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003376/0.47, allocations: 1.962 MB / 486.9 MB, free: 4.188 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003248/0.4733, allocations: 1.103 MB / 488 MB, free: 3.391 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01083/0.4841, allocations: 6.541 MB / 494.6 MB, free: 1.121 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.4842, allocations: 0 / 494.6 MB, free: 1.121 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.236e-06/0.4842, allocations: 0 / 494.6 MB, free: 1.121 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0004273/0.4846, allocations: 1.344 kB / 494.6 MB, free: 1.121 MB / 350.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.02099/0.5056, allocations: 5.616 MB / 0.4885 GB, free: 13.35 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.052e-05/0.5057, allocations: 13.88 kB / 0.4885 GB, free: 13.35 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01711/0.5228, allocations: 4.136 MB / 0.4925 GB, free: 10.71 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009292/0.5321, allocations: 2.806 MB / 0.4953 GB, free: 7.844 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003004/0.5325, allocations: 277.1 kB / 0.4955 GB, free: 7.574 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002405/0.5349, allocations: 355.7 kB / 0.4959 GB, free: 7.227 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0309/0.5658, allocations: 14.06 MB / 0.5096 GB, free: 8.281 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002391/0.5661, allocations: 51.53 kB / 0.5096 GB, free: 8.23 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001554/0.5677, allocations: 175.8 kB / 0.5098 GB, free: 8.059 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.005684/0.5734, allocations: 3.144 MB / 0.5129 GB, free: 4.91 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02608/0.5995, allocations: 12.23 MB / 0.5248 GB, free: 8.676 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08477/0.6843, allocations: 52.09 MB / 0.5757 GB, free: 3.258 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2821/0.9664, allocations: 5.126 MB / 0.5807 GB, free: 120.2 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.016/0.9825, allocations: 7.284 MB / 0.5878 GB, free: 118.6 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.419e-05/0.9826, allocations: 63 kB / 0.5879 GB, free: 118.6 MB / 446.1 MB Notification: Performance of pre-optimization done (n=242): time 8.285e-06/0.9826, allocations: 0 / 0.5879 GB, free: 118.6 MB / 446.1 MB Notification: Performance of matching and sorting (n=272): time 0.03267/1.015, allocations: 15 MB / 0.6025 GB, free: 112.2 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.304e-05/1.015, allocations: 153 kB / 0.6027 GB, free: 112.1 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008156/1.024, allocations: 5.481 MB / 0.608 GB, free: 110.1 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000535/1.024, allocations: 65.8 kB / 0.6081 GB, free: 110 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002622/1.027, allocations: 4.091 MB / 0.6121 GB, free: 106.9 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001391/1.028, allocations: 1.031 MB / 0.6131 GB, free: 106.1 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004694/1.029, allocations: 166.1 kB / 0.6132 GB, free: 106 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0004458/1.029, allocations: 0.6563 MB / 0.6139 GB, free: 105.6 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004419/1.034, allocations: 2.506 MB / 0.6163 GB, free: 104.8 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007882/1.041, allocations: 7.298 MB / 0.6235 GB, free: 97.48 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009848/1.051, allocations: 4.285 MB / 0.6276 GB, free: 95.74 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003747/1.052, allocations: 47.38 kB / 0.6277 GB, free: 95.74 MB / 446.1 MB Notification: Performance of matching and sorting (n=1082) (initialization): time 0.02867/1.08, allocations: 9.833 MB / 0.6373 GB, free: 91.93 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001473/1.081, allocations: 87.25 kB / 0.6374 GB, free: 91.92 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002902/1.081, allocations: 170.2 kB / 0.6375 GB, free: 91.92 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001247/1.082, allocations: 0.5093 MB / 0.638 GB, free: 91.86 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007393/1.09, allocations: 1.846 MB / 0.6398 GB, free: 91.63 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005556/1.095, allocations: 4.986 MB / 0.6447 GB, free: 88.06 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007711/1.103, allocations: 413.8 kB / 0.6451 GB, free: 87.9 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001824/1.105, allocations: 495 kB / 0.6456 GB, free: 87.43 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 (1004): * Single equations (assignments): 994 * 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.007656/1.112, allocations: 2.849 MB / 0.6484 GB, free: 84.92 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001456/1.114, allocations: 465.9 kB / 0.6488 GB, free: 84.46 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005101/1.119, allocations: 2.954 MB / 0.6517 GB, free: 81.92 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.106e-05/1.119, allocations: 31.28 kB / 0.6517 GB, free: 81.89 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.123e-05/1.119, allocations: 8 kB / 0.6517 GB, free: 81.88 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.051e-05/1.119, allocations: 15.58 kB / 0.6517 GB, free: 81.88 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01714/1.136, allocations: 9.117 MB / 0.6606 GB, free: 74.27 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-05/1.136, allocations: 4 kB / 0.6606 GB, free: 74.27 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001563/1.138, allocations: 380.6 kB / 0.661 GB, free: 73.95 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006722/1.139, allocations: 270.2 kB / 0.6613 GB, free: 73.74 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001445/1.139, allocations: 51.7 kB / 0.6613 GB, free: 73.7 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003202/1.142, allocations: 4.131 MB / 0.6653 GB, free: 69.62 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.821e-06/1.142, allocations: 11.94 kB / 0.6654 GB, free: 69.61 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007333/1.149, allocations: 6.699 MB / 0.6719 GB, free: 63.17 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002238/1.152, allocations: 0.5293 MB / 0.6724 GB, free: 62.64 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005282/1.152, allocations: 50.84 kB / 0.6725 GB, free: 62.6 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001504/1.154, allocations: 108.6 kB / 0.6726 GB, free: 62.52 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002865/1.154, allocations: 155 kB / 0.6727 GB, free: 62.42 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001408/1.154, allocations: 80.78 kB / 0.6728 GB, free: 62.35 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.005747/1.16, allocations: 3.454 MB / 0.6762 GB, free: 59.29 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.8e-07/1.16, allocations: 0 / 0.6762 GB, free: 59.29 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00891/1.169, allocations: 1.277 MB / 0.6774 GB, free: 58.02 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.0007319/1.17, allocations: 216.9 kB / 0.6776 GB, free: 57.81 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01017/1.18, allocations: 6.117 MB / 0.6836 GB, free: 51.71 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.379e-05/1.18, allocations: 4 kB / 0.6836 GB, free: 51.71 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002333/1.182, allocations: 1.805 MB / 0.6854 GB, free: 49.89 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003454/1.186, allocations: 0.5778 MB / 0.6859 GB, free: 49.33 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02606/1.212, allocations: 14.42 MB / 0.7 GB, free: 34.81 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006796/1.219, allocations: 4.355 MB / 0.7043 GB, free: 30.43 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.006874/1.225, allocations: 2.709 MB / 0.7069 GB, free: 27.71 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009721/1.226, allocations: 335.4 kB / 0.7072 GB, free: 27.38 MB / 446.1 MB Notification: Performance of SimCode: time 1.022e-06/1.226, allocations: 0 / 0.7072 GB, free: 27.38 MB / 446.1 MB Notification: Performance of Templates: time 0.3046/1.531, allocations: 42.66 MB / 0.7489 GB, free: 115.6 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)