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-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.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.0009981/0.0009983, allocations: 98.27 kB / 15.36 MB, free: 0.7344 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.007954/0.007954, allocations: 169.9 kB / 16.27 MB, free: 6.652 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.431/1.431, allocations: 223.3 MB / 240.3 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.189/0.189, allocations: 9.121 MB / 300.5 MB, free: 2.676 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000367/0.0003671, allocations: 12 kB / 363.7 MB, free: 12.66 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1266/0.127, allocations: 52.43 MB / 416.2 MB, free: 8.184 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.ControlledCraneCrab): time 0.2365/0.3635, allocations: 26.64 MB / 442.8 MB, free: 27.14 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01486/0.3784, allocations: 6.136 MB / 448.9 MB, free: 24.44 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006446/0.3849, allocations: 102.2 kB / 449 MB, free: 24.43 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001241/0.3861, allocations: 310.1 kB / 449.3 MB, free: 24.31 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004452/0.3906, allocations: 1.333 MB / 450.7 MB, free: 23.7 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009253/0.3916, allocations: 156.4 kB / 450.8 MB, free: 23.61 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004981/0.3966, allocations: 3.577 MB / 454.4 MB, free: 22.37 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001817/0.3984, allocations: 0.8851 MB / 455.3 MB, free: 22.03 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00188/0.4003, allocations: 0.7758 MB / 456.1 MB, free: 21.72 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002052/0.4024, allocations: 1.328 MB / 457.4 MB, free: 21.26 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006511/0.403, allocations: 130 kB / 457.5 MB, free: 21.26 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001805/0.4049, allocations: 0.7716 MB / 458.3 MB, free: 21.07 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001346/0.4062, allocations: 1.15 MB / 459.4 MB, free: 20.67 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002017/0.4083, allocations: 1.51 MB / 460.9 MB, free: 19.57 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004692/0.413, allocations: 4.574 MB / 465.5 MB, free: 18.17 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.376e-06/0.413, allocations: 0 / 465.5 MB, free: 18.17 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.413, allocations: 0 / 465.5 MB, free: 18.17 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001882/0.4132, allocations: 0 / 465.5 MB, free: 18.17 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: 1165 * Number of variables: 1165 Notification: Performance of Generate backend data structure: time 0.008235/0.4215, allocations: 3.297 MB / 468.8 MB, free: 16.48 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.818e-05/0.4215, allocations: 12.56 kB / 468.8 MB, free: 16.48 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007447/0.429, allocations: 1.812 MB / 470.6 MB, free: 16.18 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002986/0.432, allocations: 1.389 MB / 472 MB, free: 15.31 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001753/0.4322, allocations: 151.1 kB / 472.2 MB, free: 15.24 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008889/0.4331, allocations: 211 kB / 472.4 MB, free: 15.16 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01419/0.4473, allocations: 7.999 MB / 480.4 MB, free: 11.59 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000131/0.4474, allocations: 22.97 kB / 480.4 MB, free: 11.58 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005917/0.448, allocations: 100.8 kB / 480.5 MB, free: 11.51 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003487/0.4515, allocations: 1.85 MB / 482.4 MB, free: 11.13 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01739/0.4689, allocations: 7.17 MB / 489.5 MB, free: 8.688 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03801/0.507, allocations: 24.46 MB / 0.5019 GB, free: 0.9805 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005455/0.5125, allocations: 2.382 MB / 0.5043 GB, free: 14.48 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00157/0.5141, allocations: 0.8252 MB / 0.5051 GB, free: 13.66 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007439/0.5216, allocations: 4.657 MB / 0.5096 GB, free: 8.621 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.562e-05/0.5216, allocations: 43.56 kB / 0.5097 GB, free: 8.57 MB / 382.1 MB Notification: Performance of pre-optimization done (n=131): time 3.576e-06/0.5216, allocations: 0 / 0.5097 GB, free: 8.57 MB / 382.1 MB Notification: Performance of matching and sorting (n=153): time 0.01445/0.5361, allocations: 6.877 MB / 0.5164 GB, free: 1.605 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.666e-05/0.5362, allocations: 64.72 kB / 0.5164 GB, free: 1.531 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004693/0.5409, allocations: 2.663 MB / 0.519 GB, free: 14.84 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001496/0.541, allocations: 49.7 kB / 0.5191 GB, free: 14.79 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001575/0.5426, allocations: 2.105 MB / 0.5211 GB, free: 12.65 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005847/0.5432, allocations: 0.5706 MB / 0.5217 GB, free: 12.07 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005713/0.5438, allocations: 330.4 kB / 0.522 GB, free: 11.74 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.275e-05/0.5439, allocations: 305.1 kB / 0.5223 GB, free: 11.44 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002325/0.5462, allocations: 1.292 MB / 0.5236 GB, free: 10.14 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003776/0.55, allocations: 3.439 MB / 0.5269 GB, free: 5.641 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006601/0.5566, allocations: 5.09 MB / 0.5319 GB, free: 15.51 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.989e-05/0.5567, allocations: 20 kB / 0.5319 GB, free: 15.49 MB / 414.1 MB Notification: Performance of matching and sorting (n=516) (initialization): time 0.009285/0.566, allocations: 4.889 MB / 0.5367 GB, free: 10.59 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.406e-05/0.5661, allocations: 36 kB / 0.5367 GB, free: 10.56 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001161/0.5663, allocations: 76 kB / 0.5368 GB, free: 10.48 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007942/0.5671, allocations: 308.6 kB / 0.5371 GB, free: 10.18 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002882/0.57, allocations: 0.8617 MB / 0.5379 GB, free: 9.316 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004477/0.5745, allocations: 3.36 MB / 0.5412 GB, free: 5.816 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0029/0.5774, allocations: 204.2 kB / 0.5414 GB, free: 5.617 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005344/0.5779, allocations: 228 kB / 0.5416 GB, free: 5.395 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.002869/0.5808, allocations: 1.566 MB / 0.5431 GB, free: 3.816 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004344/0.5813, allocations: 232.9 kB / 0.5434 GB, free: 3.586 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003665/0.5849, allocations: 2.014 MB / 0.5453 GB, free: 1.555 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001123/0.5851, allocations: 27.98 kB / 0.5454 GB, free: 1.527 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.283e-05/0.5851, allocations: 4 kB / 0.5454 GB, free: 1.523 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.76e-05/0.5851, allocations: 7.969 kB / 0.5454 GB, free: 1.516 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01147/0.5966, allocations: 5.732 MB / 0.551 GB, free: 11.67 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.318e-05/0.5966, allocations: 4 kB / 0.551 GB, free: 11.66 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000885/0.5975, allocations: 203.7 kB / 0.5512 GB, free: 11.46 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006217/0.5982, allocations: 208.9 kB / 0.5514 GB, free: 11.26 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001106/0.5983, allocations: 28 kB / 0.5514 GB, free: 11.23 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003321/0.6016, allocations: 2.718 MB / 0.5541 GB, free: 8.387 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.168e-06/0.6017, allocations: 0 / 0.5541 GB, free: 8.387 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004855/0.6065, allocations: 3.107 MB / 0.5571 GB, free: 5.23 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001089/0.6076, allocations: 466 kB / 0.5575 GB, free: 4.754 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005196/0.6082, allocations: 24 kB / 0.5576 GB, free: 4.73 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001082/0.6093, allocations: 67.92 kB / 0.5576 GB, free: 4.664 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001893/0.6095, allocations: 92.75 kB / 0.5577 GB, free: 4.57 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001098/0.6096, allocations: 43.98 kB / 0.5577 GB, free: 4.527 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003445/0.613, allocations: 1.716 MB / 0.5594 GB, free: 2.797 MB / 430.1 MB Notification: Performance of sort global known variables: time 3.2e-07/0.613, allocations: 0 / 0.5594 GB, free: 2.797 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.003569/0.6166, allocations: 0.6953 MB / 0.5601 GB, free: 2.102 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.0004728/0.6171, allocations: 163 kB / 0.5603 GB, free: 1.93 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.006306/0.6234, allocations: 3.159 MB / 0.5633 GB, free: 14.78 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.524e-06/0.6235, allocations: 0 / 0.5633 GB, free: 14.78 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001767/0.6253, allocations: 1.033 MB / 0.5644 GB, free: 13.73 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003899/0.6292, allocations: 385.4 kB / 0.5647 GB, free: 13.36 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01349/0.6427, allocations: 8.248 MB / 0.5728 GB, free: 5.059 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003475/0.6462, allocations: 2.589 MB / 0.5753 GB, free: 2.434 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003279/0.6495, allocations: 1.185 MB / 0.5765 GB, free: 1.242 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005294/0.65, allocations: 171.4 kB / 0.5766 GB, free: 1.074 MB / 446.1 MB Notification: Performance of SimCode: time 7.21e-07/0.6501, allocations: 0 / 0.5766 GB, free: 1.074 MB / 446.1 MB Notification: Performance of Templates: time 0.2437/0.8937, allocations: 24.67 MB / 0.6007 GB, free: 119.2 MB / 446.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)