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: "" <> buildModelFMU(PlanarMechanics.Examples.ControlledCraneCrab,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_ControlledCraneCrab",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PlanarMechanics.Examples.ControlledCraneCrab,fileNamePrefix="PlanarMechanics_PlanarMechanics_Examples_ControlledCraneCrab",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001168/0.001168, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001495/0.001495, allocations: 195.8 kB / 16.53 MB, free: 6.664 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.367/1.367, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.1444/0.1444, allocations: 9.109 MB / 299.5 MB, free: 1.809 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001132/0.001132, allocations: 59.91 kB / 362 MB, free: 12.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08562/0.08677, allocations: 51.43 MB / 413.5 MB, free: 9.465 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.ControlledCraneCrab): time 0.008891/0.09569, allocations: 8.807 MB / 422.3 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.1467/0.2424, allocations: 2.653 MB / 424.9 MB, free: 36.32 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005139/0.243, allocations: 39.38 kB / 425 MB, free: 36.32 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000557/0.2436, allocations: 382.6 kB / 425.3 MB, free: 36.32 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001805/0.2454, allocations: 1.421 MB / 426.8 MB, free: 36.22 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002713/0.2457, allocations: 176.4 kB / 426.9 MB, free: 36.21 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001464/0.2472, allocations: 2.612 MB / 429.5 MB, free: 35.8 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007041/0.2479, allocations: 0.9843 MB / 430.5 MB, free: 35.69 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005635/0.2484, allocations: 0.9396 MB / 431.5 MB, free: 35.42 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008889/0.2493, allocations: 1.342 MB / 432.8 MB, free: 34.94 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002433/0.2496, allocations: 238.8 kB / 433 MB, free: 34.94 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009023/0.2505, allocations: 0.8443 MB / 433.9 MB, free: 34.79 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005626/0.2511, allocations: 1.228 MB / 435.1 MB, free: 34.31 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007169/0.2518, allocations: 1.598 MB / 436.7 MB, free: 33.14 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002446/0.2543, allocations: 4.835 MB / 441.5 MB, free: 31.36 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.257e-06/0.2543, allocations: 0 / 441.5 MB, free: 31.36 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.2543, allocations: 0 / 441.5 MB, free: 31.36 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.092e-05/0.2543, allocations: 0 / 441.5 MB, free: 31.36 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.008324/0.2626, allocations: 3.945 MB / 445.5 MB, free: 29.38 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.606e-05/0.2627, allocations: 13.66 kB / 445.5 MB, free: 29.38 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009648/0.2637, allocations: 0.5405 MB / 446 MB, free: 29.13 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00671/0.2704, allocations: 1.777 MB / 447.8 MB, free: 28.84 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002448/0.2729, allocations: 1.401 MB / 449.2 MB, free: 27.97 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001009/0.273, allocations: 160 kB / 449.4 MB, free: 27.93 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003891/0.2734, allocations: 208.2 kB / 449.6 MB, free: 27.88 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009161/0.2826, allocations: 7.995 MB / 457.6 MB, free: 24.42 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.588e-05/0.2827, allocations: 28.75 kB / 457.6 MB, free: 24.4 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002511/0.2829, allocations: 90.89 kB / 457.7 MB, free: 24.37 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002632/0.2856, allocations: 1.85 MB / 459.5 MB, free: 24 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01171/0.2973, allocations: 7.169 MB / 466.7 MB, free: 21.55 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02514/0.3225, allocations: 24.43 MB / 491.1 MB, free: 4.656 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003848/0.3263, allocations: 2.399 MB / 493.5 MB, free: 2.152 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009181/0.3273, allocations: 0.8267 MB / 494.4 MB, free: 1.328 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00643/0.3337, allocations: 4.647 MB / 499 MB, free: 12.33 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.554e-05/0.3338, allocations: 43.56 kB / 499.1 MB, free: 12.28 MB / 366.1 MB Notification: Performance of pre-optimization done (n=131): time 4.559e-06/0.3338, allocations: 0 / 499.1 MB, free: 12.28 MB / 366.1 MB Notification: Performance of matching and sorting (n=153): time 0.01572/0.3495, allocations: 6.916 MB / 0.4941 GB, free: 5.297 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.392e-05/0.3497, allocations: 68.7 kB / 0.4942 GB, free: 5.219 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004842/0.3545, allocations: 2.679 MB / 0.4968 GB, free: 2.512 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001223/0.3547, allocations: 45.7 kB / 0.4968 GB, free: 2.461 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001448/0.3561, allocations: 2.109 MB / 0.4989 GB, free: 356 kB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005415/0.3567, allocations: 0.5679 MB / 0.4995 GB, free: 15.78 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001163/0.3578, allocations: 0.786 MB / 0.5002 GB, free: 14.98 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.232e-05/0.3579, allocations: 305.1 kB / 0.5005 GB, free: 14.68 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002033/0.36, allocations: 1.292 MB / 0.5018 GB, free: 13.39 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003412/0.3634, allocations: 3.435 MB / 0.5051 GB, free: 8.891 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006081/0.3695, allocations: 5.086 MB / 0.5101 GB, free: 2.758 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.787e-05/0.3696, allocations: 27.94 kB / 0.5101 GB, free: 2.73 MB / 382.1 MB Notification: Performance of matching and sorting (n=516) (initialization): time 0.008337/0.3779, allocations: 4.901 MB / 0.5149 GB, free: 13.83 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.777e-05/0.378, allocations: 36 kB / 0.515 GB, free: 13.8 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001159/0.3781, allocations: 76 kB / 0.515 GB, free: 13.72 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009053/0.3791, allocations: 336 kB / 0.5153 GB, free: 13.39 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002526/0.3816, allocations: 0.8656 MB / 0.5162 GB, free: 12.53 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004446/0.3861, allocations: 3.649 MB / 0.5198 GB, free: 8.738 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002426/0.3885, allocations: 203.7 kB / 0.5199 GB, free: 8.539 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003832/0.3889, allocations: 232 kB / 0.5202 GB, free: 8.312 MB / 398.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.002289/0.3912, allocations: 1.58 MB / 0.5217 GB, free: 6.723 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003665/0.3916, allocations: 221.1 kB / 0.5219 GB, free: 6.504 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003193/0.3948, allocations: 2.014 MB / 0.5239 GB, free: 4.477 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001001/0.3949, allocations: 31.92 kB / 0.5239 GB, free: 4.445 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.047e-06/0.3949, allocations: 4 kB / 0.5239 GB, free: 4.441 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.307e-05/0.3949, allocations: 7.969 kB / 0.5239 GB, free: 4.434 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009162/0.4041, allocations: 5.729 MB / 0.5295 GB, free: 14.62 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.877e-06/0.4041, allocations: 4 kB / 0.5295 GB, free: 14.61 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008397/0.405, allocations: 203.7 kB / 0.5297 GB, free: 14.41 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006548/0.4056, allocations: 232.8 kB / 0.5299 GB, free: 14.18 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.07e-05/0.4057, allocations: 26.73 kB / 0.53 GB, free: 14.16 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003343/0.4091, allocations: 2.952 MB / 0.5329 GB, free: 11.07 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.364e-06/0.4091, allocations: 11.95 kB / 0.5329 GB, free: 11.05 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004517/0.4136, allocations: 3.101 MB / 0.5359 GB, free: 7.906 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001185/0.4148, allocations: 454.1 kB / 0.5363 GB, free: 7.441 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007022/0.4156, allocations: 24 kB / 0.5363 GB, free: 7.418 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001252/0.4168, allocations: 70.03 kB / 0.5364 GB, free: 7.352 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001893/0.417, allocations: 80.89 kB / 0.5365 GB, free: 7.27 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.248e-05/0.4171, allocations: 47.92 kB / 0.5365 GB, free: 7.223 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.00329/0.4204, allocations: 1.728 MB / 0.5382 GB, free: 5.48 MB / 414.1 MB Notification: Performance of sort global known variables: time 2e-07/0.4204, allocations: 0 / 0.5382 GB, free: 5.48 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.003185/0.4236, allocations: 0.69 MB / 0.5389 GB, free: 4.793 MB / 414.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.004775/0.4284, allocations: 3.741 MB / 0.5426 GB, free: 0.9922 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00715/0.4356, allocations: 4.439 MB / 0.5469 GB, free: 12.57 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.831e-06/0.4356, allocations: 0 / 0.5469 GB, free: 12.57 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001491/0.4371, allocations: 1.033 MB / 0.5479 GB, free: 11.52 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002077/0.4392, allocations: 411 kB / 0.5483 GB, free: 11.14 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03784/0.477, allocations: 30.47 MB / 0.578 GB, free: 8.574 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0034/0.4805, allocations: 2.591 MB / 0.5806 GB, free: 5.953 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.003043/0.4835, allocations: 1.188 MB / 0.5817 GB, free: 4.758 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002373/0.4859, allocations: 1.339 MB / 0.583 GB, free: 3.418 MB / 462.1 MB Notification: Performance of SimCode: time 2.465e-06/0.4859, allocations: 0 / 0.583 GB, free: 3.418 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2237/0.7096, allocations: 49.02 MB / 0.6309 GB, free: 130.6 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.94/11.65, allocations: 14.72 kB / 0.6309 GB, free: 130.6 MB / 462.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PlanarMechanics_PlanarMechanics_Examples_ControlledCraneCrab_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 PlanarMechanics_PlanarMechanics_Examples_ControlledCraneCrab.fmu > PlanarMechanics_PlanarMechanics.Examples.ControlledCraneCrab.pipe 2>&1)