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.001458/0.001458, allocations: 111.3 kB / 15.23 MB, free: 0.6562 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.001842/0.001842, allocations: 195.5 kB / 16.14 MB, free: 6.668 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.492/1.492, allocations: 222.9 MB / 239.8 MB, free: 4.605 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.2086/0.2086, allocations: 9.114 MB / 299.1 MB, free: 1.895 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001259/0.001259, allocations: 63.91 kB / 361.3 MB, free: 13.59 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1207/0.122, allocations: 51.43 MB / 412.7 MB, free: 10.12 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.ControlledCraneCrab): time 0.2302/0.3523, allocations: 27.49 MB / 440.2 MB, free: 28.68 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01299/0.3653, allocations: 6.169 MB / 446.4 MB, free: 24.91 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006461/0.3718, allocations: 105.2 kB / 446.5 MB, free: 24.89 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001636/0.3736, allocations: 315.3 kB / 446.8 MB, free: 24.77 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005716/0.3793, allocations: 1.326 MB / 448.1 MB, free: 24.17 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001018/0.3804, allocations: 151.2 kB / 448.3 MB, free: 24.08 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00442/0.3848, allocations: 3.579 MB / 451.8 MB, free: 22.84 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002005/0.3869, allocations: 0.9036 MB / 452.7 MB, free: 22.49 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001642/0.3885, allocations: 0.7982 MB / 453.5 MB, free: 22.17 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002041/0.3906, allocations: 1.347 MB / 454.9 MB, free: 21.7 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006141/0.3912, allocations: 140.1 kB / 455 MB, free: 21.7 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001715/0.393, allocations: 0.7842 MB / 455.8 MB, free: 21.51 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001199/0.3942, allocations: 1.141 MB / 456.9 MB, free: 21.11 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001936/0.3961, allocations: 1.506 MB / 458.4 MB, free: 20.04 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004668/0.4008, allocations: 4.678 MB / 463.1 MB, free: 18.21 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.347e-06/0.4008, allocations: 0.5625 kB / 463.1 MB, free: 18.21 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.4009, allocations: 0 / 463.1 MB, free: 18.21 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001701/0.401, allocations: 0 / 463.1 MB, free: 18.21 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.01038/0.4114, allocations: 3.939 MB / 467.1 MB, free: 16.14 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.939e-05/0.4115, allocations: 9.875 kB / 467.1 MB, free: 16.14 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006579/0.4181, allocations: 1.773 MB / 468.8 MB, free: 15.84 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003277/0.4214, allocations: 1.391 MB / 470.2 MB, free: 14.97 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001653/0.4216, allocations: 155.2 kB / 470.4 MB, free: 14.89 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008801/0.4225, allocations: 205 kB / 470.6 MB, free: 14.82 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01494/0.4374, allocations: 8.003 MB / 478.6 MB, free: 11.25 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000133/0.4376, allocations: 22.16 kB / 478.6 MB, free: 11.24 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005829/0.4382, allocations: 97.7 kB / 478.7 MB, free: 11.17 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003498/0.4417, allocations: 1.855 MB / 480.6 MB, free: 10.79 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01535/0.4571, allocations: 7.173 MB / 487.7 MB, free: 8.344 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04087/0.498, allocations: 24.44 MB / 0.5002 GB, free: 0.6719 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005405/0.5034, allocations: 2.386 MB / 0.5025 GB, free: 14.17 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001411/0.5049, allocations: 0.8246 MB / 0.5033 GB, free: 13.34 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008837/0.5137, allocations: 4.649 MB / 0.5079 GB, free: 8.32 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.283e-05/0.5138, allocations: 47.55 kB / 0.5079 GB, free: 8.266 MB / 382.1 MB Notification: Performance of pre-optimization done (n=131): time 6.673e-06/0.5138, allocations: 0 / 0.5079 GB, free: 8.266 MB / 382.1 MB Notification: Performance of matching and sorting (n=153): time 0.01523/0.5291, allocations: 6.872 MB / 0.5146 GB, free: 1.305 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.932e-05/0.5292, allocations: 64.72 kB / 0.5147 GB, free: 1.23 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005083/0.5343, allocations: 2.667 MB / 0.5173 GB, free: 14.53 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003666/0.5347, allocations: 45.7 kB / 0.5173 GB, free: 14.48 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001864/0.5366, allocations: 2.113 MB / 0.5194 GB, free: 12.34 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000914/0.5375, allocations: 0.5744 MB / 0.5199 GB, free: 11.76 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001367/0.5389, allocations: 0.782 MB / 0.5207 GB, free: 10.96 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001442/0.539, allocations: 309.1 kB / 0.521 GB, free: 10.66 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002411/0.5415, allocations: 1.292 MB / 0.5223 GB, free: 9.363 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00425/0.5457, allocations: 3.428 MB / 0.5256 GB, free: 4.875 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007566/0.5534, allocations: 5.08 MB / 0.5306 GB, free: 14.75 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.477e-05/0.5535, allocations: 20 kB / 0.5306 GB, free: 14.73 MB / 414.1 MB Notification: Performance of matching and sorting (n=516) (initialization): time 0.01136/0.5649, allocations: 4.903 MB / 0.5354 GB, free: 9.824 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.858e-05/0.565, allocations: 38.66 kB / 0.5354 GB, free: 9.789 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001074/0.5651, allocations: 80 kB / 0.5355 GB, free: 9.711 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008403/0.566, allocations: 309.1 kB / 0.5358 GB, free: 9.406 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003149/0.5691, allocations: 0.8655 MB / 0.5366 GB, free: 8.539 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004631/0.5738, allocations: 3.355 MB / 0.5399 GB, free: 5.043 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003361/0.5772, allocations: 195.9 kB / 0.5401 GB, free: 4.852 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008068/0.578, allocations: 232 kB / 0.5403 GB, free: 4.625 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.003677/0.5817, allocations: 1.562 MB / 0.5418 GB, free: 3.051 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000724/0.5825, allocations: 233 kB / 0.5421 GB, free: 2.82 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004127/0.5866, allocations: 2.021 MB / 0.544 GB, free: 0.7812 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001098/0.5868, allocations: 24.05 kB / 0.5441 GB, free: 0.7578 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.155e-05/0.5868, allocations: 8 kB / 0.5441 GB, free: 0.75 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.484e-05/0.5868, allocations: 7.969 kB / 0.5441 GB, free: 0.7422 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01268/0.5995, allocations: 5.726 MB / 0.5497 GB, free: 10.9 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.021e-05/0.5995, allocations: 0 / 0.5497 GB, free: 10.9 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008744/0.6004, allocations: 199.8 kB / 0.5499 GB, free: 10.7 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006428/0.6011, allocations: 216.5 kB / 0.5501 GB, free: 10.49 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001395/0.6012, allocations: 24 kB / 0.5501 GB, free: 10.46 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003585/0.6048, allocations: 2.714 MB / 0.5527 GB, free: 7.625 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.689e-05/0.6049, allocations: 8.016 kB / 0.5527 GB, free: 7.617 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005378/0.6102, allocations: 3.107 MB / 0.5558 GB, free: 4.461 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001346/0.6116, allocations: 450.1 kB / 0.5562 GB, free: 4 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006552/0.6123, allocations: 24 kB / 0.5562 GB, free: 3.977 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001298/0.6136, allocations: 63.92 kB / 0.5563 GB, free: 3.914 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002604/0.6139, allocations: 100.7 kB / 0.5564 GB, free: 3.812 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001126/0.614, allocations: 40 kB / 0.5564 GB, free: 3.773 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003939/0.618, allocations: 1.716 MB / 0.5581 GB, free: 2.043 MB / 430.1 MB Notification: Performance of sort global known variables: time 6.11e-07/0.618, allocations: 0 / 0.5581 GB, free: 2.043 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.004404/0.6224, allocations: 0.6953 MB / 0.5588 GB, free: 1.348 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.0006001/0.6231, allocations: 155 kB / 0.5589 GB, free: 1.184 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.006979/0.6301, allocations: 3.16 MB / 0.562 GB, free: 14.03 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.583e-05/0.6301, allocations: 4 kB / 0.562 GB, free: 14.03 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00227/0.6324, allocations: 1.025 MB / 0.563 GB, free: 12.99 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003461/0.6359, allocations: 389.5 kB / 0.5634 GB, free: 12.62 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01685/0.6528, allocations: 8.15 MB / 0.5713 GB, free: 4.414 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004468/0.6573, allocations: 2.588 MB / 0.5739 GB, free: 1.793 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003959/0.6613, allocations: 1.185 MB / 0.575 GB, free: 0.6016 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006702/0.662, allocations: 167.4 kB / 0.5752 GB, free: 448 kB / 446.1 MB Notification: Performance of SimCode: time 1.022e-06/0.662, allocations: 0 / 0.5752 GB, free: 448 kB / 446.1 MB Notification: Performance of Templates: time 0.2292/0.8913, allocations: 24.94 MB / 0.5995 GB, free: 121.8 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)