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.009488/0.009488, allocations: 101.7 kB / 15.73 MB, free: 5.586 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.001624/0.001624, allocations: 192.2 kB / 16.67 MB, free: 5.523 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.452/1.452, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.04485/0.04485, allocations: 9.14 MB / 299.7 MB, free: 5.863 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00128/0.00128, allocations: 63.89 kB / 414.6 MB, free: 21.15 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1095/0.1107, allocations: 51.45 MB / 466.1 MB, free: 1.684 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.CraneCrab): time 0.01024/0.121, allocations: 8.315 MB / 474.4 MB, free: 9.328 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005662/0.1267, allocations: 2.593 MB / 477 MB, free: 6.727 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00118/0.1279, allocations: 39.88 kB / 477 MB, free: 6.688 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008692/0.1288, allocations: 353.7 kB / 477.4 MB, free: 6.34 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003528/0.1324, allocations: 1.44 MB / 478.8 MB, free: 4.895 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004283/0.1329, allocations: 127.8 kB / 478.9 MB, free: 4.77 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003178/0.136, allocations: 2.502 MB / 481.4 MB, free: 2.262 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001764/0.1378, allocations: 0.897 MB / 482.3 MB, free: 1.336 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001989/0.1398, allocations: 0.8832 MB / 483.2 MB, free: 460 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0026/0.1424, allocations: 1.292 MB / 484.5 MB, free: 15.15 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006692/0.1431, allocations: 232 kB / 484.7 MB, free: 14.93 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00179/0.1449, allocations: 0.8425 MB / 485.6 MB, free: 14.08 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001131/0.1461, allocations: 1.2 MB / 486.8 MB, free: 12.88 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001737/0.1478, allocations: 1.546 MB / 488.3 MB, free: 11.32 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005662/0.1535, allocations: 4.952 MB / 493.3 MB, free: 6.355 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.712e-06/0.1535, allocations: 0 / 493.3 MB, free: 6.355 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.1535, allocations: 0 / 493.3 MB, free: 6.355 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000112/0.1537, allocations: 0 / 493.3 MB, free: 6.355 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: 1144 * Number of variables: 1144 Notification: Performance of Generate backend data structure: time 0.01042/0.1641, allocations: 3.83 MB / 497.1 MB, free: 2.461 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.583e-05/0.1642, allocations: 12.03 kB / 497.1 MB, free: 2.449 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006563/0.1707, allocations: 1.756 MB / 498.9 MB, free: 0.6875 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002671/0.1734, allocations: 1.349 MB / 0.4885 GB, free: 15.29 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001127/0.1736, allocations: 148 kB / 0.4886 GB, free: 15.15 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004127/0.174, allocations: 191.8 kB / 0.4888 GB, free: 14.96 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01318/0.1872, allocations: 7.909 MB / 0.4965 GB, free: 6.703 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.238e-05/0.1873, allocations: 19.81 kB / 0.4966 GB, free: 6.684 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003196/0.1876, allocations: 87.88 kB / 0.4967 GB, free: 6.598 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00274/0.1904, allocations: 1.856 MB / 0.4985 GB, free: 4.738 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.306/0.4964, allocations: 7.113 MB / 0.5054 GB, free: 39.22 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03931/0.5357, allocations: 23.82 MB / 0.5287 GB, free: 23.94 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005238/0.541, allocations: 2.381 MB / 0.531 GB, free: 22.48 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001277/0.5423, allocations: 0.8151 MB / 0.5318 GB, free: 22.08 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00657/0.5489, allocations: 4.584 MB / 0.5363 GB, free: 18.45 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.356e-05/0.549, allocations: 47.69 kB / 0.5363 GB, free: 18.39 MB / 382.1 MB Notification: Performance of pre-optimization done (n=129): time 4.018e-06/0.549, allocations: 3.938 kB / 0.5363 GB, free: 18.39 MB / 382.1 MB Notification: Performance of matching and sorting (n=153): time 0.01259/0.5616, allocations: 7.017 MB / 0.5432 GB, free: 14.28 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.716e-05/0.5617, allocations: 64.72 kB / 0.5432 GB, free: 14.21 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0027/0.5644, allocations: 2.581 MB / 0.5458 GB, free: 11.59 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.062e-05/0.5645, allocations: 49.53 kB / 0.5458 GB, free: 11.54 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008279/0.5653, allocations: 2.053 MB / 0.5478 GB, free: 9.484 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003408/0.5656, allocations: 0.5656 MB / 0.5484 GB, free: 8.922 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008346/0.5665, allocations: 0.7778 MB / 0.5491 GB, free: 8.141 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.336e-05/0.5665, allocations: 309.1 kB / 0.5494 GB, free: 7.836 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001665/0.5682, allocations: 1.272 MB / 0.5507 GB, free: 6.562 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002482/0.5707, allocations: 3.376 MB / 0.5539 GB, free: 2.164 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006707/0.5774, allocations: 4.999 MB / 0.5588 GB, free: 12.15 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001002/0.5776, allocations: 22.31 kB / 0.5589 GB, free: 12.13 MB / 398.1 MB Notification: Performance of matching and sorting (n=507) (initialization): time 0.009705/0.5873, allocations: 4.831 MB / 0.5636 GB, free: 7.297 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.048e-05/0.5874, allocations: 42.02 kB / 0.5636 GB, free: 7.258 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.396e-05/0.5875, allocations: 72 kB / 0.5637 GB, free: 7.188 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007654/0.5883, allocations: 311.2 kB / 0.564 GB, free: 6.883 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002427/0.5907, allocations: 0.8478 MB / 0.5648 GB, free: 6.035 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004581/0.5953, allocations: 3.642 MB / 0.5684 GB, free: 2.254 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00297/0.5983, allocations: 196 kB / 0.5685 GB, free: 2.062 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005065/0.5988, allocations: 236 kB / 0.5688 GB, free: 1.832 MB / 398.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.002584/0.6014, allocations: 1.546 MB / 0.5703 GB, free: 284 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003676/0.6018, allocations: 225.8 kB / 0.5705 GB, free: 56 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003459/0.6053, allocations: 2.001 MB / 0.5724 GB, free: 14.04 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001022/0.6054, allocations: 23.98 kB / 0.5725 GB, free: 14.02 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.306e-06/0.6054, allocations: 4 kB / 0.5725 GB, free: 14.01 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.592e-05/0.6054, allocations: 11.91 kB / 0.5725 GB, free: 14 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01119/0.6166, allocations: 5.645 MB / 0.578 GB, free: 8.262 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-05/0.6167, allocations: 4 kB / 0.578 GB, free: 8.258 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008957/0.6176, allocations: 203.7 kB / 0.5782 GB, free: 8.059 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006919/0.6183, allocations: 210.4 kB / 0.5784 GB, free: 7.852 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.71e-05/0.6184, allocations: 43.12 kB / 0.5784 GB, free: 7.812 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003504/0.6219, allocations: 2.949 MB / 0.5813 GB, free: 4.73 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.41e-06/0.6219, allocations: 7.984 kB / 0.5813 GB, free: 4.723 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00431/0.6262, allocations: 3.092 MB / 0.5843 GB, free: 1.574 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005478/0.6268, allocations: 302.3 kB / 0.5846 GB, free: 1.262 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000213/0.627, allocations: 24 kB / 0.5847 GB, free: 1.238 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007142/0.6277, allocations: 67.86 kB / 0.5847 GB, free: 1.172 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001407/0.6279, allocations: 80.83 kB / 0.5848 GB, free: 1.094 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.547e-05/0.628, allocations: 51.98 kB / 0.5849 GB, free: 1.043 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002387/0.6304, allocations: 1.667 MB / 0.5865 GB, free: 15.36 MB / 430.1 MB Notification: Performance of sort global known variables: time 3.31e-07/0.6304, allocations: 0 / 0.5865 GB, free: 15.36 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002716/0.6331, allocations: 0.6783 MB / 0.5871 GB, free: 14.69 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.000296/0.6334, allocations: 156.4 kB / 0.5873 GB, free: 14.53 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.005026/0.6384, allocations: 3.138 MB / 0.5904 GB, free: 11.4 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.989e-06/0.6385, allocations: 0 / 0.5904 GB, free: 11.4 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001581/0.6401, allocations: 1.035 MB / 0.5914 GB, free: 10.35 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001847/0.6419, allocations: 385.7 kB / 0.5917 GB, free: 9.984 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01182/0.6538, allocations: 6.405 MB / 0.598 GB, free: 3.547 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003762/0.6576, allocations: 2.558 MB / 0.6005 GB, free: 0.957 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.003394/0.661, allocations: 1.176 MB / 0.6016 GB, free: 15.77 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007005/0.6617, allocations: 167.3 kB / 0.6018 GB, free: 15.61 MB / 446.1 MB Notification: Performance of SimCode: time 1.222e-06/0.6617, allocations: 0 / 0.6018 GB, free: 15.61 MB / 446.1 MB Notification: Performance of Templates: time 0.04808/0.7098, allocations: 24.78 MB / 0.626 GB, free: 6.984 MB / 462.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)