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.001148/0.001148, 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.008871/0.008871, allocations: 172.2 kB / 16.27 MB, free: 6.66 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.515/1.515, allocations: 223.3 MB / 240.3 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0-master/package.mo): time 0.2045/0.2045, allocations: 9.112 MB / 300.5 MB, free: 2.719 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004952/0.0004952, allocations: 8 kB / 363.7 MB, free: 12.71 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1306/0.1311, allocations: 52.43 MB / 416.2 MB, free: 8.234 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.ControlledCraneCrab): time 0.2691/0.4003, allocations: 26.65 MB / 442.8 MB, free: 27.19 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01516/0.4155, allocations: 6.146 MB / 448.9 MB, free: 24.48 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00558/0.4212, allocations: 103.4 kB / 449 MB, free: 24.46 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001168/0.4224, allocations: 304.5 kB / 449.3 MB, free: 24.35 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00354/0.4259, allocations: 1.333 MB / 450.7 MB, free: 23.74 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004662/0.4264, allocations: 147.7 kB / 450.8 MB, free: 23.66 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003399/0.4298, allocations: 3.586 MB / 454.4 MB, free: 22.41 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00127/0.4311, allocations: 0.8782 MB / 455.3 MB, free: 22.07 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001122/0.4322, allocations: 0.7743 MB / 456.1 MB, free: 21.77 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001472/0.4337, allocations: 1.324 MB / 457.4 MB, free: 21.31 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003177/0.434, allocations: 129.4 kB / 457.5 MB, free: 21.31 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001299/0.4353, allocations: 0.7789 MB / 458.3 MB, free: 21.11 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008204/0.4362, allocations: 1.144 MB / 459.4 MB, free: 20.71 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001012/0.4372, allocations: 1.516 MB / 460.9 MB, free: 19.62 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003631/0.4408, allocations: 4.569 MB / 465.5 MB, free: 18.21 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.068e-06/0.4409, allocations: 0 / 465.5 MB, free: 18.21 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.4409, allocations: 0 / 465.5 MB, free: 18.21 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001013/0.441, allocations: 0 / 465.5 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.007499/0.4485, allocations: 3.293 MB / 468.8 MB, free: 16.53 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.756e-05/0.4485, allocations: 13.66 kB / 468.8 MB, free: 16.53 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007192/0.4557, allocations: 1.815 MB / 470.6 MB, free: 16.23 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003843/0.4596, allocations: 1.387 MB / 472 MB, free: 15.36 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001837/0.4598, allocations: 155 kB / 472.2 MB, free: 15.29 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005784/0.4604, allocations: 211.8 kB / 472.4 MB, free: 15.2 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01498/0.4754, allocations: 8.004 MB / 480.4 MB, free: 11.63 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001044/0.4755, allocations: 22.12 kB / 480.4 MB, free: 11.62 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003422/0.4759, allocations: 93.31 kB / 480.5 MB, free: 11.56 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003678/0.4796, allocations: 1.853 MB / 482.4 MB, free: 11.18 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01668/0.4963, allocations: 7.172 MB / 489.5 MB, free: 8.73 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03459/0.5309, allocations: 24.45 MB / 0.5019 GB, free: 1.016 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005165/0.5361, allocations: 2.39 MB / 0.5043 GB, free: 14.51 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001239/0.5374, allocations: 0.8246 MB / 0.5051 GB, free: 13.68 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006803/0.5442, allocations: 4.645 MB / 0.5096 GB, free: 8.66 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.104e-05/0.5443, allocations: 47.56 kB / 0.5097 GB, free: 8.605 MB / 382.1 MB Notification: Performance of pre-optimization done (n=131): time 3.978e-06/0.5443, allocations: 4 kB / 0.5097 GB, free: 8.602 MB / 382.1 MB Notification: Performance of matching and sorting (n=153): time 0.01422/0.5585, allocations: 6.876 MB / 0.5164 GB, free: 1.637 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.354e-05/0.5586, allocations: 64.72 kB / 0.5164 GB, free: 1.562 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004321/0.5629, allocations: 2.663 MB / 0.519 GB, free: 14.87 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001056/0.5631, allocations: 45.69 kB / 0.5191 GB, free: 14.82 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001391/0.5645, allocations: 2.109 MB / 0.5211 GB, free: 12.68 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004773/0.5649, allocations: 0.5745 MB / 0.5217 GB, free: 12.1 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004098/0.5654, allocations: 326.4 kB / 0.522 GB, free: 11.77 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001165/0.5655, allocations: 309.1 kB / 0.5223 GB, free: 11.46 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002336/0.5678, allocations: 1.292 MB / 0.5236 GB, free: 10.17 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003883/0.5717, allocations: 3.435 MB / 0.5269 GB, free: 5.672 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006168/0.5779, allocations: 5.085 MB / 0.5319 GB, free: 15.54 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.405e-05/0.578, allocations: 20 kB / 0.5319 GB, free: 15.52 MB / 414.1 MB Notification: Performance of matching and sorting (n=516) (initialization): time 0.008523/0.5865, allocations: 4.9 MB / 0.5367 GB, free: 10.62 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.364e-05/0.5866, allocations: 39.94 kB / 0.5367 GB, free: 10.58 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.833e-05/0.5867, allocations: 72.88 kB / 0.5368 GB, free: 10.51 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007328/0.5874, allocations: 312.6 kB / 0.5371 GB, free: 10.2 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002534/0.59, allocations: 0.8578 MB / 0.5379 GB, free: 9.34 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004204/0.5942, allocations: 3.358 MB / 0.5412 GB, free: 5.844 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00252/0.5967, allocations: 199.9 kB / 0.5414 GB, free: 5.648 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003079/0.5971, allocations: 228 kB / 0.5416 GB, free: 5.426 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.002544/0.5996, allocations: 1.566 MB / 0.5431 GB, free: 3.848 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003396/0.6, allocations: 229 kB / 0.5434 GB, free: 3.621 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003322/0.6033, allocations: 2.021 MB / 0.5453 GB, free: 1.582 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001019/0.6034, allocations: 23.98 kB / 0.5454 GB, free: 1.559 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.534e-06/0.6034, allocations: 4 kB / 0.5454 GB, free: 1.555 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.452e-05/0.6034, allocations: 7.969 kB / 0.5454 GB, free: 1.547 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008944/0.6124, allocations: 5.736 MB / 0.551 GB, free: 11.7 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.155e-06/0.6124, allocations: 288 / 0.551 GB, free: 11.7 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008286/0.6133, allocations: 203.7 kB / 0.5512 GB, free: 11.5 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006099/0.6139, allocations: 208.7 kB / 0.5514 GB, free: 11.29 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.84e-05/0.614, allocations: 24 kB / 0.5514 GB, free: 11.27 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003105/0.6171, allocations: 2.718 MB / 0.554 GB, free: 8.422 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.619e-06/0.6171, allocations: 4 kB / 0.5541 GB, free: 8.418 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004633/0.6217, allocations: 3.111 MB / 0.5571 GB, free: 5.258 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00111/0.6229, allocations: 466 kB / 0.5575 GB, free: 4.781 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002411/0.6231, allocations: 24 kB / 0.5576 GB, free: 4.758 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008079/0.6239, allocations: 59.92 kB / 0.5576 GB, free: 4.699 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000184/0.6241, allocations: 96.75 kB / 0.5577 GB, free: 4.602 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.377e-05/0.6242, allocations: 40 kB / 0.5577 GB, free: 4.562 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.003037/0.6273, allocations: 1.724 MB / 0.5594 GB, free: 2.824 MB / 430.1 MB Notification: Performance of sort global known variables: time 7.92e-07/0.6273, allocations: 0 / 0.5594 GB, free: 2.824 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.00353/0.6308, allocations: 0.6875 MB / 0.5601 GB, free: 2.137 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.0005022/0.6314, allocations: 159 kB / 0.5603 GB, free: 1.969 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.006147/0.6375, allocations: 3.169 MB / 0.5633 GB, free: 14.81 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.21e-06/0.6375, allocations: 0 / 0.5633 GB, free: 14.81 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001585/0.6391, allocations: 1.028 MB / 0.5644 GB, free: 13.77 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002975/0.6421, allocations: 389 kB / 0.5647 GB, free: 13.39 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0118/0.6539, allocations: 8.245 MB / 0.5728 GB, free: 5.094 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002631/0.6566, allocations: 2.588 MB / 0.5753 GB, free: 2.469 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002914/0.6595, allocations: 1.181 MB / 0.5765 GB, free: 1.281 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004034/0.6599, allocations: 171.4 kB / 0.5766 GB, free: 1.113 MB / 446.1 MB Notification: Performance of SimCode: time 6.21e-07/0.66, allocations: 0 / 0.5766 GB, free: 1.113 MB / 446.1 MB Notification: Performance of Templates: time 0.2455/0.9054, allocations: 24.68 MB / 0.6007 GB, free: 119.3 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)