Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.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.InvertedCraneCrab,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab") translateModel(PlanarMechanics.Examples.InvertedCraneCrab,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009976/0.0009978, allocations: 99.47 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.001171/0.001171, allocations: 177.3 kB / 15.95 MB, free: 216 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.338/1.338, allocations: 223.2 MB / 239.9 MB, free: 5.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1576/0.1576, allocations: 9.1 MB / 300.1 MB, free: 2.812 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003934/0.0003936, allocations: 8 kB / 363 MB, free: 13 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1318/0.1322, allocations: 52.42 MB / 415.4 MB, free: 8.527 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.InvertedCraneCrab): time 0.2037/0.336, allocations: 23.31 MB / 438.7 MB, free: 31.5 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01153/0.3475, allocations: 6.076 MB / 444.8 MB, free: 27.29 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00341/0.351, allocations: 98.94 kB / 444.9 MB, free: 27.28 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002521/0.3535, allocations: 1.123 MB / 446 MB, free: 26.91 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008927/0.3625, allocations: 3.471 MB / 449.5 MB, free: 25.21 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009472/0.3635, allocations: 133.1 kB / 449.6 MB, free: 25.14 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002077/0.3656, allocations: 1.414 MB / 451 MB, free: 24.45 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008847/0.3664, allocations: 0.8163 MB / 451.9 MB, free: 24.14 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006078/0.3671, allocations: 0.6671 MB / 452.5 MB, free: 23.91 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009101/0.368, allocations: 0.9734 MB / 453.5 MB, free: 23.57 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002256/0.3682, allocations: 132.9 kB / 453.6 MB, free: 23.57 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009816/0.3692, allocations: 0.6604 MB / 454.3 MB, free: 23.43 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007396/0.37, allocations: 1.028 MB / 455.3 MB, free: 23.07 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003917/0.3704, allocations: 0.6313 MB / 455.9 MB, free: 22.6 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002587/0.373, allocations: 3.66 MB / 459.6 MB, free: 21.77 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.976e-06/0.373, allocations: 0 / 459.6 MB, free: 21.77 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.695e-06/0.373, allocations: 0 / 459.6 MB, free: 21.77 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.684e-05/0.3731, allocations: 4 kB / 459.6 MB, free: 21.77 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: 1155 * Number of variables: 1155 Notification: Performance of Generate backend data structure: time 0.006902/0.38, allocations: 3.356 MB / 463 MB, free: 20.1 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.938e-05/0.38, allocations: 11.28 kB / 463 MB, free: 20.1 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007403/0.3874, allocations: 2.173 MB / 465.1 MB, free: 19.73 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003182/0.3906, allocations: 1.334 MB / 466.5 MB, free: 18.89 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001218/0.3908, allocations: 150 kB / 466.6 MB, free: 18.82 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005017/0.3913, allocations: 202 kB / 466.8 MB, free: 18.75 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01326/0.4046, allocations: 7.974 MB / 474.8 MB, free: 15.21 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.107e-05/0.4047, allocations: 23.92 kB / 474.8 MB, free: 15.2 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002849/0.405, allocations: 88.91 kB / 474.9 MB, free: 15.14 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003164/0.4081, allocations: 1.853 MB / 476.8 MB, free: 14.75 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01457/0.4227, allocations: 7.176 MB / 483.9 MB, free: 12.31 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03431/0.4571, allocations: 24.12 MB / 0.4962 GB, free: 6.352 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005133/0.4623, allocations: 2.364 MB / 0.4985 GB, free: 3.867 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001287/0.4636, allocations: 1.381 MB / 0.4998 GB, free: 2.27 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.426e-05/0.4636, allocations: 46.14 kB / 0.4999 GB, free: 2.219 MB / 366.1 MB Notification: Performance of pre-optimization done (n=150): time 3.737e-06/0.4636, allocations: 0 / 0.4999 GB, free: 2.219 MB / 366.1 MB Notification: Performance of matching and sorting (n=176): time 0.01877/0.4824, allocations: 8.263 MB / 0.5079 GB, free: 9.805 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.296e-05/0.4825, allocations: 68.72 kB / 0.508 GB, free: 9.727 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003651/0.4861, allocations: 2.521 MB / 0.5105 GB, free: 7.172 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001179/0.4863, allocations: 49.7 kB / 0.5105 GB, free: 7.117 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001339/0.4876, allocations: 2.02 MB / 0.5125 GB, free: 5.062 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005557/0.4882, allocations: 0.6437 MB / 0.5131 GB, free: 4.41 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001624/0.4884, allocations: 76 kB / 0.5132 GB, free: 4.336 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002695/0.4886, allocations: 482.6 kB / 0.5136 GB, free: 3.855 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002219/0.4909, allocations: 1.331 MB / 0.5149 GB, free: 2.52 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003741/0.4946, allocations: 3.445 MB / 0.5183 GB, free: 14.02 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0035/0.4981, allocations: 2.156 MB / 0.5204 GB, free: 11.87 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.173e-05/0.4982, allocations: 20 kB / 0.5204 GB, free: 11.85 MB / 398.1 MB Notification: Performance of matching and sorting (n=518) (initialization): time 0.0103/0.5085, allocations: 4.875 MB / 0.5252 GB, free: 6.965 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.056e-05/0.5086, allocations: 36 kB / 0.5252 GB, free: 6.93 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000107/0.5088, allocations: 76 kB / 0.5253 GB, free: 6.855 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005248/0.5093, allocations: 208.8 kB / 0.5255 GB, free: 6.648 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003443/0.5127, allocations: 0.9202 MB / 0.5264 GB, free: 5.727 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002312/0.5151, allocations: 2.149 MB / 0.5285 GB, free: 3.43 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002896/0.518, allocations: 211.9 kB / 0.5287 GB, free: 3.223 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004801/0.5185, allocations: 236 kB / 0.5289 GB, free: 2.992 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 337 * Number of states: 0 () * Number of discrete variables: 15 (prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],body1.sphereColor[3],body1.sphereColor[2],body1.sphereColor[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[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 (484): * Single equations (assignments): 479 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 8} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0026/0.5211, allocations: 1.562 MB / 0.5304 GB, free: 1.418 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003752/0.5215, allocations: 221.1 kB / 0.5306 GB, free: 1.199 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003968/0.5255, allocations: 2.356 MB / 0.5329 GB, free: 14.81 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001139/0.5256, allocations: 31.98 kB / 0.533 GB, free: 14.78 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.661e-06/0.5256, allocations: 0 / 0.533 GB, free: 14.78 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.418e-05/0.5256, allocations: 7.969 kB / 0.533 GB, free: 14.77 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01059/0.5362, allocations: 6.23 MB / 0.5391 GB, free: 8.375 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.054e-05/0.5363, allocations: 4 kB / 0.5391 GB, free: 8.371 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001087/0.5374, allocations: 275.6 kB / 0.5393 GB, free: 8.102 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002964/0.5377, allocations: 109.2 kB / 0.5394 GB, free: 7.992 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.354e-05/0.5378, allocations: 32 kB / 0.5395 GB, free: 7.961 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001807/0.5396, allocations: 1.905 MB / 0.5413 GB, free: 5.91 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.861e-06/0.5396, allocations: 11.94 kB / 0.5413 GB, free: 5.898 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005228/0.5448, allocations: 3.762 MB / 0.545 GB, free: 1.906 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007306/0.5456, allocations: 322.1 kB / 0.5453 GB, free: 1.57 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002643/0.5459, allocations: 27.94 kB / 0.5454 GB, free: 1.543 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009036/0.5468, allocations: 87.91 kB / 0.5454 GB, free: 1.457 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001936/0.547, allocations: 101.1 kB / 0.5455 GB, free: 1.359 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001031/0.5471, allocations: 55.98 kB / 0.5456 GB, free: 1.305 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002597/0.5497, allocations: 1.636 MB / 0.5472 GB, free: 15.65 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.5497, allocations: 0 / 0.5472 GB, free: 15.65 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003105/0.5528, allocations: 0.6797 MB / 0.5478 GB, free: 14.97 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 3 (revolute.phi,prismatic.s,prismatic.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 (143): * Single equations (assignments): 138 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 6} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003565/0.5532, allocations: 164.5 kB / 0.548 GB, free: 14.8 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.005199/0.5584, allocations: 3.24 MB / 0.5512 GB, free: 11.57 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.039e-06/0.5584, allocations: 0 / 0.5512 GB, free: 11.57 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001711/0.5602, allocations: 1.098 MB / 0.5522 GB, free: 10.46 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001782/0.562, allocations: 354 kB / 0.5526 GB, free: 10.12 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01365/0.5756, allocations: 7.86 MB / 0.5603 GB, free: 2.172 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003048/0.5787, allocations: 2.64 MB / 0.5628 GB, free: 15.5 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003275/0.582, allocations: 1.263 MB / 0.5641 GB, free: 14.23 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005557/0.5826, allocations: 175.4 kB / 0.5642 GB, free: 14.07 MB / 446.1 MB Notification: Performance of SimCode: time 1.223e-06/0.5826, allocations: 0 / 0.5642 GB, free: 14.07 MB / 446.1 MB Notification: Performance of Templates: time 0.2333/0.8159, allocations: 23.21 MB / 0.5869 GB, free: 115.2 MB / 446.1 MB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.makefile (rm -f PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.sim & ./PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.InvertedCraneCrab.pipe 2>&1)