Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.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.ControlledCraneCrab,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab") translateModel(PlanarMechanics.Examples.ControlledCraneCrab,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001468/0.001468, allocations: 109.9 kB / 16.41 MB, free: 6.492 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.001524/0.001525, allocations: 185.5 kB / 17.34 MB, free: 5.766 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.372/1.372, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04866/0.04866, allocations: 9.112 MB / 300.3 MB, free: 5.84 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001185/0.001185, allocations: 71.89 kB / 415.3 MB, free: 21.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08924/0.09044, allocations: 51.43 MB / 466.7 MB, free: 1.688 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.ControlledCraneCrab): time 0.01052/0.101, allocations: 8.786 MB / 475.5 MB, free: 8.855 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005885/0.1069, allocations: 2.682 MB / 478.2 MB, free: 6.164 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001494/0.1085, allocations: 35.94 kB / 478.2 MB, free: 6.129 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001273/0.1098, allocations: 369.5 kB / 478.6 MB, free: 5.766 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003881/0.1137, allocations: 1.424 MB / 480 MB, free: 4.336 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007452/0.1145, allocations: 179.7 kB / 480.2 MB, free: 4.16 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003934/0.1184, allocations: 2.621 MB / 482.8 MB, free: 1.535 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001812/0.1202, allocations: 0.9802 MB / 483.8 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001847/0.1221, allocations: 0.9532 MB / 484.8 MB, free: 15.57 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002183/0.1243, allocations: 1.339 MB / 486.1 MB, free: 14.23 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008121/0.1251, allocations: 240 kB / 486.3 MB, free: 13.99 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002088/0.1272, allocations: 0.8426 MB / 487.2 MB, free: 13.15 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001948/0.1292, allocations: 1.239 MB / 488.4 MB, free: 11.91 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002961/0.1322, allocations: 1.596 MB / 490 MB, free: 10.3 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006942/0.1391, allocations: 5.076 MB / 495.1 MB, free: 5.207 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.1392, allocations: 0 / 495.1 MB, free: 5.207 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.264e-06/0.1392, allocations: 0 / 495.1 MB, free: 5.207 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001838/0.1394, allocations: 0 / 495.1 MB, free: 5.207 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: 1165 * Number of variables: 1165 Notification: Performance of Generate backend data structure: time 0.01059/0.15, allocations: 3.939 MB / 499 MB, free: 1.203 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.438e-05/0.15, allocations: 12.02 kB / 499 MB, free: 1.191 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006439/0.1565, allocations: 1.775 MB / 0.4891 GB, free: 15.41 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002878/0.1594, allocations: 1.402 MB / 0.4904 GB, free: 13.96 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001368/0.1595, allocations: 152.1 kB / 0.4906 GB, free: 13.82 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004505/0.16, allocations: 211.9 kB / 0.4908 GB, free: 13.61 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0123/0.1723, allocations: 7.99 MB / 0.4986 GB, free: 5.254 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.156e-05/0.1724, allocations: 27.8 kB / 0.4986 GB, free: 5.227 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002811/0.1727, allocations: 95.86 kB / 0.4987 GB, free: 5.133 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002881/0.1756, allocations: 1.844 MB / 0.5005 GB, free: 3.285 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2685/0.4441, allocations: 7.175 MB / 0.5075 GB, free: 38.98 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03411/0.4782, allocations: 24.34 MB / 0.5313 GB, free: 23.03 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004478/0.4828, allocations: 2.388 MB / 0.5336 GB, free: 21.54 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000989/0.4838, allocations: 0.8221 MB / 0.5344 GB, free: 21.14 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005921/0.4897, allocations: 4.637 MB / 0.539 GB, free: 17.47 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.325e-05/0.4898, allocations: 46.36 kB / 0.539 GB, free: 17.42 MB / 382.1 MB Notification: Performance of pre-optimization done (n=131): time 3.196e-06/0.4898, allocations: 6.625 kB / 0.539 GB, free: 17.42 MB / 382.1 MB Notification: Performance of matching and sorting (n=153): time 0.01203/0.5018, allocations: 6.874 MB / 0.5457 GB, free: 12.21 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.437e-05/0.5019, allocations: 72.59 kB / 0.5458 GB, free: 12.13 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002917/0.5048, allocations: 2.663 MB / 0.5484 GB, free: 9.438 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.777e-05/0.5049, allocations: 45.7 kB / 0.5484 GB, free: 9.387 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008422/0.5058, allocations: 2.108 MB / 0.5505 GB, free: 7.273 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000324/0.5061, allocations: 0.5729 MB / 0.551 GB, free: 6.707 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008294/0.5069, allocations: 0.782 MB / 0.5518 GB, free: 5.914 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.169e-05/0.507, allocations: 305.1 kB / 0.5521 GB, free: 5.613 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001543/0.5085, allocations: 1.292 MB / 0.5534 GB, free: 4.316 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002382/0.5109, allocations: 3.432 MB / 0.5567 GB, free: 15.82 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006145/0.5171, allocations: 5.082 MB / 0.5617 GB, free: 9.703 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.79e-05/0.5172, allocations: 24 kB / 0.5617 GB, free: 9.68 MB / 398.1 MB Notification: Performance of matching and sorting (n=516) (initialization): time 0.008432/0.5256, allocations: 4.904 MB / 0.5665 GB, free: 4.77 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.648e-05/0.5257, allocations: 38.81 kB / 0.5665 GB, free: 4.734 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.889e-05/0.5258, allocations: 76 kB / 0.5666 GB, free: 4.66 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007264/0.5265, allocations: 311.8 kB / 0.5669 GB, free: 4.355 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00272/0.5293, allocations: 0.8672 MB / 0.5677 GB, free: 3.488 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004735/0.534, allocations: 3.64 MB / 0.5713 GB, free: 15.71 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002753/0.5368, allocations: 195.8 kB / 0.5715 GB, free: 15.52 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003967/0.5372, allocations: 239.9 kB / 0.5717 GB, free: 15.29 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 340 * Number of states: 0 () * Number of discrete variables: 16 (revolute.cylinderColor[3],revolute.cylinderColor[2],revolute.cylinderColor[1],prismatic.boxColor[3],prismatic.boxColor[2],prismatic.boxColor[1],PID.I.local_reset,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 (472): * Single equations (assignments): 467 * 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.002506/0.5397, allocations: 1.577 MB / 0.5733 GB, free: 13.7 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004665/0.5402, allocations: 221.1 kB / 0.5735 GB, free: 13.48 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003627/0.5438, allocations: 2.017 MB / 0.5754 GB, free: 11.45 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001049/0.5439, allocations: 31.98 kB / 0.5755 GB, free: 11.41 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.154e-05/0.544, allocations: 11.62 kB / 0.5755 GB, free: 11.41 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.341e-05/0.544, allocations: 3.984 kB / 0.5755 GB, free: 11.4 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009933/0.5539, allocations: 5.684 MB / 0.581 GB, free: 5.637 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.863e-06/0.554, allocations: 0 / 0.581 GB, free: 5.637 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008659/0.5548, allocations: 207.7 kB / 0.5812 GB, free: 5.434 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005577/0.5554, allocations: 209 kB / 0.5814 GB, free: 5.227 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001199/0.5555, allocations: 27.98 kB / 0.5815 GB, free: 5.199 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003266/0.5588, allocations: 2.945 MB / 0.5843 GB, free: 2.113 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.5588, allocations: 4.062 kB / 0.5843 GB, free: 2.109 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00461/0.5634, allocations: 3.097 MB / 0.5874 GB, free: 14.96 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001022/0.5645, allocations: 458 kB / 0.5878 GB, free: 14.5 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002415/0.5647, allocations: 28 kB / 0.5878 GB, free: 14.47 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007724/0.5655, allocations: 67.86 kB / 0.5879 GB, free: 14.4 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001531/0.5657, allocations: 80.83 kB / 0.588 GB, free: 14.32 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.825e-05/0.5658, allocations: 51.98 kB / 0.588 GB, free: 14.27 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002494/0.5683, allocations: 1.713 MB / 0.5897 GB, free: 12.55 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5683, allocations: 4 kB / 0.5897 GB, free: 12.54 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002842/0.5711, allocations: 0.6926 MB / 0.5904 GB, free: 11.86 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 6 (PID.I.y,PID.D.x,prismatic.s,prismatic.v,revolute.phi,revolute.w) * 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.0003314/0.5715, allocations: 157.6 kB / 0.5905 GB, free: 11.7 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004971/0.5764, allocations: 3.171 MB / 0.5936 GB, free: 8.539 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.859e-06/0.5765, allocations: 0 / 0.5936 GB, free: 8.539 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001448/0.5779, allocations: 1.036 MB / 0.5946 GB, free: 7.488 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001919/0.5798, allocations: 419.8 kB / 0.595 GB, free: 7.094 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01135/0.5912, allocations: 6.895 MB / 0.6018 GB, free: 156 kB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002786/0.594, allocations: 2.595 MB / 0.6043 GB, free: 13.52 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007151/0.5948, allocations: 207.4 kB / 0.6045 GB, free: 13.32 MB / 446.1 MB Notification: Performance of SimCode: time 9.42e-07/0.5948, allocations: 0 / 0.6045 GB, free: 13.32 MB / 446.1 MB Notification: Performance of Templates: time 0.07515/0.6699, allocations: 57.31 MB / 0.6605 GB, free: 4.117 MB / 494.1 MB make -j1 -f PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.makefile (rm -f PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.pipe ; mkfifo PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.pipe ; head -c 1048576 < PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.pipe >> ../files/PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.sim & ./PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab -abortSlowSimulation -alarm=480 -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.pipe 2>&1)