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.001494/0.001494, allocations: 115.4 kB / 16.37 MB, free: 5.539 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.001626/0.001626, allocations: 187.5 kB / 17.3 MB, free: 5.184 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.322/1.322, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.0443/0.0443, allocations: 9.112 MB / 300.3 MB, free: 5.852 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001266/0.001266, allocations: 63.91 kB / 363.4 MB, free: 6.695 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2412/0.2425, allocations: 51.42 MB / 414.8 MB, free: 25.01 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.ControlledCraneCrab): time 0.01163/0.2542, allocations: 8.794 MB / 423.6 MB, free: 16.19 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00681/0.261, allocations: 2.671 MB / 426.3 MB, free: 13.51 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001927/0.263, allocations: 43.88 kB / 426.3 MB, free: 13.47 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001116/0.2641, allocations: 377.5 kB / 426.7 MB, free: 13.1 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002945/0.2672, allocations: 1.424 MB / 428.1 MB, free: 11.67 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00041/0.2676, allocations: 175.7 kB / 428.3 MB, free: 11.5 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002121/0.2698, allocations: 2.609 MB / 430.9 MB, free: 8.883 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008923/0.2707, allocations: 1.003 MB / 431.9 MB, free: 7.855 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007385/0.2714, allocations: 0.9337 MB / 432.8 MB, free: 6.918 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001103/0.2725, allocations: 1.343 MB / 434.2 MB, free: 5.57 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002508/0.2728, allocations: 240 kB / 434.4 MB, free: 5.336 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001106/0.2739, allocations: 0.8465 MB / 435.3 MB, free: 4.488 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007259/0.2746, allocations: 1.235 MB / 436.5 MB, free: 3.25 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009398/0.2756, allocations: 1.592 MB / 438.1 MB, free: 1.648 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004412/0.28, allocations: 5.049 MB / 443.1 MB, free: 12.58 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.521e-06/0.28, allocations: 0 / 443.1 MB, free: 12.58 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.28, allocations: 0 / 443.1 MB, free: 12.58 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.573e-05/0.2801, allocations: 0 / 443.1 MB, free: 12.58 MB / 318.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.008529/0.2887, allocations: 3.936 MB / 447.1 MB, free: 8.582 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.647e-05/0.2887, allocations: 12.03 kB / 447.1 MB, free: 8.57 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006198/0.2949, allocations: 1.771 MB / 448.8 MB, free: 6.793 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003224/0.2982, allocations: 1.406 MB / 450.3 MB, free: 5.344 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000123/0.2983, allocations: 160.1 kB / 450.4 MB, free: 5.188 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004155/0.2987, allocations: 207.9 kB / 450.6 MB, free: 4.984 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01264/0.3114, allocations: 7.997 MB / 458.6 MB, free: 12.62 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001297/0.3116, allocations: 23.81 kB / 458.6 MB, free: 12.6 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005043/0.3121, allocations: 91.88 kB / 458.7 MB, free: 12.51 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002933/0.315, allocations: 1.848 MB / 460.6 MB, free: 10.66 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01403/0.3291, allocations: 7.176 MB / 467.7 MB, free: 3.469 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03544/0.3646, allocations: 24.34 MB / 492.1 MB, free: 10.62 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005358/0.37, allocations: 2.398 MB / 494.5 MB, free: 8.109 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001306/0.3713, allocations: 0.8207 MB / 495.3 MB, free: 7.285 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007315/0.3787, allocations: 4.644 MB / 500 MB, free: 2.258 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.318e-05/0.3787, allocations: 39.56 kB / 500 MB, free: 2.211 MB / 366.1 MB Notification: Performance of pre-optimization done (n=131): time 6.532e-06/0.3787, allocations: 4 kB / 500 MB, free: 2.207 MB / 366.1 MB Notification: Performance of matching and sorting (n=153): time 0.01317/0.3919, allocations: 6.882 MB / 0.495 GB, free: 11.24 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.55e-05/0.392, allocations: 64.72 kB / 0.4951 GB, free: 11.17 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003875/0.3959, allocations: 2.663 MB / 0.4977 GB, free: 8.477 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002211/0.3962, allocations: 45.7 kB / 0.4977 GB, free: 8.426 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001418/0.3976, allocations: 2.105 MB / 0.4998 GB, free: 6.289 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005908/0.3982, allocations: 0.5744 MB / 0.5003 GB, free: 5.707 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009791/0.3992, allocations: 0.7782 MB / 0.5011 GB, free: 4.918 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001042/0.3993, allocations: 309.1 kB / 0.5014 GB, free: 4.613 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002113/0.4014, allocations: 1.292 MB / 0.5026 GB, free: 3.316 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.216/0.6174, allocations: 3.432 MB / 0.506 GB, free: 85.41 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00802/0.6255, allocations: 5.068 MB / 0.5109 GB, free: 81.64 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001545/0.6257, allocations: 27.69 kB / 0.511 GB, free: 81.64 MB / 382.1 MB Notification: Performance of matching and sorting (n=516) (initialization): time 0.01015/0.6359, allocations: 4.904 MB / 0.5158 GB, free: 79.89 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.691e-05/0.636, allocations: 40.22 kB / 0.5158 GB, free: 79.89 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001421/0.6361, allocations: 74.03 kB / 0.5159 GB, free: 79.89 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007146/0.6368, allocations: 310.3 kB / 0.5162 GB, free: 79.84 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00246/0.6393, allocations: 0.8565 MB / 0.517 GB, free: 79.73 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003429/0.6428, allocations: 3.658 MB / 0.5206 GB, free: 77.39 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002604/0.6454, allocations: 198 kB / 0.5208 GB, free: 77.33 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000316/0.6457, allocations: 233.2 kB / 0.521 GB, free: 77.3 MB / 382.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.001774/0.6475, allocations: 1.573 MB / 0.5225 GB, free: 76.54 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002648/0.6478, allocations: 224.4 kB / 0.5227 GB, free: 76.54 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002629/0.6504, allocations: 2.019 MB / 0.5247 GB, free: 75.77 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.514e-05/0.6505, allocations: 28.66 kB / 0.5247 GB, free: 75.77 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.512e-06/0.6505, allocations: 3.25 kB / 0.5247 GB, free: 75.77 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.043e-05/0.6505, allocations: 7.5 kB / 0.5247 GB, free: 75.77 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007611/0.6581, allocations: 5.691 MB / 0.5303 GB, free: 71.45 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.945e-06/0.6582, allocations: 0 / 0.5303 GB, free: 71.45 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007401/0.6589, allocations: 207.5 kB / 0.5305 GB, free: 71.28 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004885/0.6594, allocations: 212.2 kB / 0.5307 GB, free: 71.12 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.99e-05/0.6595, allocations: 27.38 kB / 0.5307 GB, free: 71.1 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0025/0.662, allocations: 2.947 MB / 0.5336 GB, free: 68.18 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.662, allocations: 0 / 0.5336 GB, free: 68.18 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003364/0.6654, allocations: 3.105 MB / 0.5366 GB, free: 65.14 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009206/0.6663, allocations: 454.1 kB / 0.5371 GB, free: 64.67 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002444/0.6666, allocations: 24 kB / 0.5371 GB, free: 64.65 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007205/0.6673, allocations: 63.92 kB / 0.5371 GB, free: 64.59 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000141/0.6675, allocations: 91.72 kB / 0.5372 GB, free: 64.5 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.529e-05/0.6676, allocations: 48.17 kB / 0.5373 GB, free: 64.45 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001896/0.6695, allocations: 1.716 MB / 0.539 GB, free: 62.72 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.6695, allocations: 0 / 0.539 GB, free: 62.72 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002506/0.672, allocations: 0.6923 MB / 0.5396 GB, free: 62.04 MB / 382.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.0003235/0.6723, allocations: 166.1 kB / 0.5398 GB, free: 61.88 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003983/0.6763, allocations: 3.171 MB / 0.5429 GB, free: 58.71 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/0.6763, allocations: 0 / 0.5429 GB, free: 58.71 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001094/0.6774, allocations: 1.036 MB / 0.5439 GB, free: 57.67 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001647/0.6791, allocations: 402.3 kB / 0.5443 GB, free: 57.3 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008872/0.688, allocations: 6.542 MB / 0.5507 GB, free: 50.71 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002071/0.6901, allocations: 2.58 MB / 0.5532 GB, free: 48.1 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002424/0.6925, allocations: 1.192 MB / 0.5544 GB, free: 46.9 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003649/0.6929, allocations: 171.4 kB / 0.5545 GB, free: 46.73 MB / 382.1 MB Notification: Performance of SimCode: time 8.82e-07/0.6929, allocations: 0 / 0.5545 GB, free: 46.73 MB / 382.1 MB Notification: Performance of Templates: time 0.03628/0.7292, allocations: 24.01 MB / 0.578 GB, free: 22.93 MB / 382.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 -s cvode -lv LOG_STATS > PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.pipe 2>&1)