Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.CraneCrab.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.CraneCrab,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.CraneCrab") translateModel(PlanarMechanics.Examples.CraneCrab,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.CraneCrab") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001184/0.001184, 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.001566/0.001566, 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.395/1.395, allocations: 223.2 MB / 239.9 MB, free: 5.453 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1755/0.1755, allocations: 9.087 MB / 300.1 MB, free: 2.73 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003509/0.000351, allocations: 16 kB / 363 MB, free: 13.01 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1129/0.1132, allocations: 52.42 MB / 415.4 MB, free: 8.547 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CraneCrab): time 0.2117/0.325, allocations: 23 MB / 438.4 MB, free: 31.89 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01082/0.3359, allocations: 6.056 MB / 444.5 MB, free: 27.69 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004505/0.3404, allocations: 99.25 kB / 444.6 MB, free: 27.68 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002609/0.343, allocations: 1.119 MB / 445.7 MB, free: 27.32 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009164/0.3522, allocations: 3.464 MB / 449.1 MB, free: 25.62 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000969/0.3532, allocations: 123.1 kB / 449.3 MB, free: 25.55 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002367/0.3556, allocations: 1.391 MB / 450.7 MB, free: 24.87 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009077/0.3565, allocations: 0.7972 MB / 451.5 MB, free: 24.57 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006761/0.3572, allocations: 0.6591 MB / 452.1 MB, free: 24.33 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001036/0.3583, allocations: 0.9576 MB / 453.1 MB, free: 24 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002796/0.3585, allocations: 129 kB / 453.2 MB, free: 24 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001048/0.3596, allocations: 0.657 MB / 453.9 MB, free: 23.87 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006755/0.3603, allocations: 1.027 MB / 454.9 MB, free: 23.5 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004154/0.3607, allocations: 0.6244 MB / 455.5 MB, free: 23.04 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002754/0.3635, allocations: 3.636 MB / 459.1 MB, free: 22.21 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.026e-06/0.3635, allocations: 0 / 459.1 MB, free: 22.21 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.3635, allocations: 0 / 459.1 MB, free: 22.21 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.161e-05/0.3636, allocations: 0 / 459.1 MB, free: 22.21 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: 1144 * Number of variables: 1144 Notification: Performance of Generate backend data structure: time 0.007168/0.3708, allocations: 3.302 MB / 462.4 MB, free: 20.57 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.911e-05/0.3708, allocations: 9.344 kB / 462.5 MB, free: 20.57 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007493/0.3783, allocations: 2.165 MB / 464.6 MB, free: 20.21 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00311/0.3815, allocations: 1.33 MB / 466 MB, free: 19.38 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001074/0.3816, allocations: 146.5 kB / 466.1 MB, free: 19.3 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006036/0.3822, allocations: 193.8 kB / 466.3 MB, free: 19.23 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01441/0.3966, allocations: 7.913 MB / 474.2 MB, free: 15.72 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.357e-05/0.3968, allocations: 22.12 kB / 474.2 MB, free: 15.71 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003104/0.3971, allocations: 96.23 kB / 474.3 MB, free: 15.64 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00324/0.4003, allocations: 1.85 MB / 476.2 MB, free: 15.26 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01585/0.4162, allocations: 7.119 MB / 483.3 MB, free: 12.84 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0319/0.4481, allocations: 23.88 MB / 0.4953 GB, free: 7.426 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005246/0.4534, allocations: 2.371 MB / 0.4976 GB, free: 4.941 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001316/0.4548, allocations: 1.378 MB / 0.4989 GB, free: 3.348 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.953e-05/0.4548, allocations: 43.56 kB / 0.499 GB, free: 3.297 MB / 366.1 MB Notification: Performance of pre-optimization done (n=151): time 4.007e-06/0.4548, allocations: 0 / 0.499 GB, free: 3.297 MB / 366.1 MB Notification: Performance of matching and sorting (n=175): time 0.01836/0.4732, allocations: 8.187 MB / 0.507 GB, free: 10.94 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.965e-05/0.4733, allocations: 64.72 kB / 0.507 GB, free: 10.87 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003567/0.4768, allocations: 2.496 MB / 0.5095 GB, free: 8.336 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001432/0.477, allocations: 45.7 kB / 0.5095 GB, free: 8.285 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001357/0.4784, allocations: 1.997 MB / 0.5115 GB, free: 6.254 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00059/0.479, allocations: 0.632 MB / 0.5121 GB, free: 5.613 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001589/0.4791, allocations: 76 kB / 0.5122 GB, free: 5.539 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002673/0.4794, allocations: 482.6 kB / 0.5126 GB, free: 5.059 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002063/0.4815, allocations: 1.292 MB / 0.5139 GB, free: 3.762 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003353/0.4848, allocations: 3.37 MB / 0.5172 GB, free: 15.35 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00302/0.4879, allocations: 2.121 MB / 0.5192 GB, free: 13.23 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.035e-05/0.4879, allocations: 20 kB / 0.5193 GB, free: 13.21 MB / 398.1 MB Notification: Performance of matching and sorting (n=513) (initialization): time 0.007916/0.4958, allocations: 4.866 MB / 0.524 GB, free: 8.344 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.313e-05/0.4959, allocations: 36 kB / 0.524 GB, free: 8.309 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.892e-05/0.496, allocations: 76.23 kB / 0.5241 GB, free: 8.234 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008422/0.4969, allocations: 352.6 kB / 0.5245 GB, free: 7.887 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002727/0.4996, allocations: 0.858 MB / 0.5253 GB, free: 7.027 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004289/0.5039, allocations: 3.425 MB / 0.5286 GB, free: 3.465 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002684/0.5066, allocations: 207.8 kB / 0.5288 GB, free: 3.262 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003828/0.507, allocations: 232 kB / 0.5291 GB, free: 3.035 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 332 * 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 (469): * Single equations (assignments): 464 * 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 {(2,100.0%) 17} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002492/0.5095, allocations: 1.548 MB / 0.5306 GB, free: 1.477 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003148/0.5098, allocations: 229.1 kB / 0.5308 GB, free: 1.25 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003713/0.5136, allocations: 2.371 MB / 0.5331 GB, free: 14.85 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001013/0.5137, allocations: 31.98 kB / 0.5331 GB, free: 14.82 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.562e-06/0.5137, allocations: 0 / 0.5331 GB, free: 14.82 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.767e-05/0.5137, allocations: 7.969 kB / 0.5331 GB, free: 14.81 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01053/0.5243, allocations: 6.366 MB / 0.5394 GB, free: 8.277 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.26e-05/0.5243, allocations: 8 kB / 0.5394 GB, free: 8.27 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008981/0.5252, allocations: 235.6 kB / 0.5396 GB, free: 8.039 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006624/0.5259, allocations: 240.9 kB / 0.5398 GB, free: 7.801 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001001/0.526, allocations: 43.97 kB / 0.5399 GB, free: 7.758 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003219/0.5292, allocations: 2.808 MB / 0.5426 GB, free: 4.82 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.352e-06/0.5292, allocations: 12 kB / 0.5426 GB, free: 4.809 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005115/0.5344, allocations: 3.869 MB / 0.5464 GB, free: 0.6523 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007415/0.5351, allocations: 314.2 kB / 0.5467 GB, free: 332 kB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002611/0.5354, allocations: 39.97 kB / 0.5467 GB, free: 292 kB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008108/0.5362, allocations: 67.94 kB / 0.5468 GB, free: 224 kB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001867/0.5364, allocations: 116.6 kB / 0.5469 GB, free: 108 kB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.641e-05/0.5365, allocations: 55.98 kB / 0.547 GB, free: 52 kB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002461/0.539, allocations: 1.619 MB / 0.5485 GB, free: 14.41 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.9e-07/0.539, allocations: 0 / 0.5485 GB, free: 14.41 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003073/0.5421, allocations: 0.6875 MB / 0.5492 GB, free: 13.72 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 25 * Number of states: 4 (revolute.phi,revolute.w,damper1D.s_rel,damper1D.v_rel) * 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 (132): * Single equations (assignments): 127 * 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 {(2,100.0%) 15} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003692/0.5425, allocations: 170.7 kB / 0.5494 GB, free: 13.55 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.005354/0.5478, allocations: 3.224 MB / 0.5525 GB, free: 10.34 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 8.235e-06/0.5479, allocations: 192 / 0.5525 GB, free: 10.34 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001765/0.5496, allocations: 1.122 MB / 0.5536 GB, free: 9.199 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001807/0.5515, allocations: 356 kB / 0.554 GB, free: 8.859 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01315/0.5646, allocations: 7.937 MB / 0.5617 GB, free: 0.8281 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003066/0.5677, allocations: 2.631 MB / 0.5643 GB, free: 14.16 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003205/0.571, allocations: 1.235 MB / 0.5655 GB, free: 12.92 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004319/0.5714, allocations: 167.4 kB / 0.5656 GB, free: 12.76 MB / 446.1 MB Notification: Performance of SimCode: time 8.71e-07/0.5714, allocations: 0 / 0.5656 GB, free: 12.76 MB / 446.1 MB Notification: Performance of Templates: time 0.2206/0.7921, allocations: 24.01 MB / 0.5891 GB, free: 117.9 MB / 446.1 MB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.CraneCrab.makefile (rm -f PlanarMechanics_PlanarMechanics.Examples.CraneCrab.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.CraneCrab.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.CraneCrab.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.CraneCrab.sim & ./PlanarMechanics_PlanarMechanics.Examples.CraneCrab -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.CraneCrab.pipe 2>&1)