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-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.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.001113/0.001113, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.00136/0.00136, allocations: 191.1 kB / 16.14 MB, free: 6.703 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.464/1.464, allocations: 222.9 MB / 239.8 MB, free: 4.617 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.1766/0.1766, allocations: 9.118 MB / 299.1 MB, free: 1.945 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001271/0.001271, allocations: 59.91 kB / 361.3 MB, free: 13.6 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1093/0.1106, allocations: 51.44 MB / 412.7 MB, free: 10.12 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CraneCrab): time 0.2485/0.3591, allocations: 27.04 MB / 439.7 MB, free: 28.91 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.013/0.3722, allocations: 6.079 MB / 445.8 MB, free: 25.28 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006837/0.379, allocations: 98.28 kB / 445.9 MB, free: 25.27 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001472/0.3805, allocations: 300.2 kB / 446.2 MB, free: 25.16 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004028/0.3846, allocations: 1.31 MB / 447.5 MB, free: 24.56 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006685/0.3853, allocations: 114.9 kB / 447.6 MB, free: 24.49 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004099/0.3895, allocations: 3.463 MB / 451.1 MB, free: 23.31 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001527/0.391, allocations: 0.8202 MB / 451.9 MB, free: 23 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001375/0.3924, allocations: 0.7538 MB / 452.7 MB, free: 22.7 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001631/0.3941, allocations: 1.305 MB / 454 MB, free: 22.25 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005088/0.3946, allocations: 132.9 kB / 454.1 MB, free: 22.25 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001638/0.3962, allocations: 0.7744 MB / 454.9 MB, free: 22.07 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001076/0.3973, allocations: 1.123 MB / 456 MB, free: 21.68 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001539/0.3989, allocations: 1.464 MB / 457.5 MB, free: 20.64 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004613/0.4035, allocations: 4.565 MB / 462 MB, free: 18.87 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.095e-06/0.4036, allocations: 4 kB / 462 MB, free: 18.86 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.4036, allocations: 0 / 462 MB, free: 18.86 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001933/0.4038, allocations: 0 / 462 MB, free: 18.86 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.01025/0.414, allocations: 3.83 MB / 465.9 MB, free: 16.85 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.342e-05/0.4141, allocations: 9.562 kB / 465.9 MB, free: 16.85 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006598/0.4207, allocations: 1.764 MB / 467.6 MB, free: 16.56 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003571/0.4243, allocations: 1.334 MB / 469 MB, free: 15.72 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000203/0.4246, allocations: 148.2 kB / 469.1 MB, free: 15.65 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001071/0.4256, allocations: 197.8 kB / 469.3 MB, free: 15.57 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01476/0.4404, allocations: 7.903 MB / 477.2 MB, free: 12.07 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.655e-05/0.4405, allocations: 26.64 kB / 477.2 MB, free: 12.05 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003613/0.4409, allocations: 92.56 kB / 477.3 MB, free: 11.99 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003166/0.4441, allocations: 1.844 MB / 479.2 MB, free: 11.61 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01614/0.4602, allocations: 7.124 MB / 486.3 MB, free: 9.188 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03956/0.4998, allocations: 23.9 MB / 0.4982 GB, free: 2.684 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005684/0.5056, allocations: 2.384 MB / 0.5006 GB, free: 184 kB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001459/0.5071, allocations: 0.8203 MB / 0.5014 GB, free: 15.36 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008274/0.5154, allocations: 4.597 MB / 0.5059 GB, free: 10.38 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.903e-05/0.5155, allocations: 47.56 kB / 0.5059 GB, free: 10.33 MB / 382.1 MB Notification: Performance of pre-optimization done (n=129): time 5.109e-06/0.5155, allocations: 0 / 0.5059 GB, free: 10.33 MB / 382.1 MB Notification: Performance of matching and sorting (n=153): time 0.01639/0.5319, allocations: 7.005 MB / 0.5127 GB, free: 3.23 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.857e-05/0.532, allocations: 64.72 kB / 0.5128 GB, free: 3.152 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004222/0.5362, allocations: 2.584 MB / 0.5153 GB, free: 0.5352 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002383/0.5365, allocations: 53.64 kB / 0.5154 GB, free: 488 kB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001511/0.538, allocations: 2.047 MB / 0.5174 GB, free: 14.39 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006852/0.5387, allocations: 0.5706 MB / 0.5179 GB, free: 13.82 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001201/0.5399, allocations: 0.774 MB / 0.5187 GB, free: 13.04 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.68e-05/0.54, allocations: 309.1 kB / 0.519 GB, free: 12.73 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002203/0.5422, allocations: 1.276 MB / 0.5202 GB, free: 11.45 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003912/0.5462, allocations: 3.382 MB / 0.5235 GB, free: 7.051 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006546/0.5527, allocations: 4.988 MB / 0.5284 GB, free: 1.043 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.56e-05/0.5529, allocations: 20 kB / 0.5284 GB, free: 1.023 MB / 398.1 MB Notification: Performance of matching and sorting (n=507) (initialization): time 0.01166/0.5645, allocations: 4.828 MB / 0.5331 GB, free: 12.18 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.246e-05/0.5646, allocations: 36 kB / 0.5332 GB, free: 12.15 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001168/0.5648, allocations: 76 kB / 0.5333 GB, free: 12.07 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00087/0.5656, allocations: 305.7 kB / 0.5335 GB, free: 11.77 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003084/0.5687, allocations: 0.8499 MB / 0.5344 GB, free: 10.92 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004493/0.5733, allocations: 3.353 MB / 0.5376 GB, free: 7.441 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003152/0.5764, allocations: 192 kB / 0.5378 GB, free: 7.254 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006691/0.5771, allocations: 236 kB / 0.5381 GB, free: 7.023 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 333 * 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 (463): * Single equations (assignments): 458 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,17,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003213/0.5804, allocations: 1.554 MB / 0.5396 GB, free: 5.457 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005645/0.5809, allocations: 217.2 kB / 0.5398 GB, free: 5.242 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003777/0.5847, allocations: 1.993 MB / 0.5417 GB, free: 3.23 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000107/0.5849, allocations: 27.98 kB / 0.5418 GB, free: 3.203 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.533e-06/0.5849, allocations: 3.938 kB / 0.5418 GB, free: 3.199 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.685e-05/0.5849, allocations: 11.91 kB / 0.5418 GB, free: 3.188 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01102/0.5959, allocations: 5.692 MB / 0.5473 GB, free: 13.38 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.366e-06/0.596, allocations: 0 / 0.5473 GB, free: 13.38 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008802/0.5968, allocations: 203.7 kB / 0.5475 GB, free: 13.18 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007019/0.5976, allocations: 216.9 kB / 0.5477 GB, free: 12.96 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001039/0.5977, allocations: 27.98 kB / 0.5478 GB, free: 12.93 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003409/0.6011, allocations: 2.73 MB / 0.5504 GB, free: 10.07 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.47e-06/0.6011, allocations: 4 kB / 0.5504 GB, free: 10.07 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004962/0.6061, allocations: 3.083 MB / 0.5534 GB, free: 6.926 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008758/0.607, allocations: 298.4 kB / 0.5537 GB, free: 6.613 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004128/0.6074, allocations: 31.92 kB / 0.5537 GB, free: 6.582 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008933/0.6083, allocations: 67.91 kB / 0.5538 GB, free: 6.516 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002045/0.6086, allocations: 88.73 kB / 0.5539 GB, free: 6.43 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.973e-05/0.6087, allocations: 43.98 kB / 0.5539 GB, free: 6.387 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002961/0.6116, allocations: 1.675 MB / 0.5556 GB, free: 4.695 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.213e-06/0.6117, allocations: 0 / 0.5556 GB, free: 4.695 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003571/0.6152, allocations: 0.6758 MB / 0.5562 GB, free: 4.02 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * 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 (113): * Single equations (assignments): 108 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(2,15,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004851/0.6158, allocations: 163.1 kB / 0.5564 GB, free: 3.852 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.005848/0.6216, allocations: 3.12 MB / 0.5594 GB, free: 0.7422 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 8.957e-06/0.6217, allocations: 0.5625 kB / 0.5594 GB, free: 0.7422 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001728/0.6234, allocations: 1.027 MB / 0.5604 GB, free: 15.7 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002333/0.6258, allocations: 369.4 kB / 0.5608 GB, free: 15.34 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01285/0.6386, allocations: 7.964 MB / 0.5686 GB, free: 7.328 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003441/0.6421, allocations: 2.559 MB / 0.5711 GB, free: 4.734 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003101/0.6452, allocations: 1.176 MB / 0.5722 GB, free: 3.551 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004562/0.6457, allocations: 163.4 kB / 0.5724 GB, free: 3.395 MB / 446.1 MB Notification: Performance of SimCode: time 5.14e-06/0.6457, allocations: 0 / 0.5724 GB, free: 3.395 MB / 446.1 MB Notification: Performance of Templates: time 0.2439/0.8897, allocations: 24.35 MB / 0.5962 GB, free: 122.2 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)