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.5.1-master/package.mo", uses=false) Using package PlanarMechanics with version 1.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1-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: "" <> 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.00115/0.00115, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.001437/0.001437, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.482/1.482, allocations: 223.2 MB / 239.9 MB, free: 5.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1-master/package.mo): time 0.1744/0.1744, allocations: 9.098 MB / 300.1 MB, free: 2.758 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003272/0.0003274, allocations: 8 kB / 363.1 MB, free: 12.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1262/0.1266, allocations: 52.43 MB / 415.5 MB, free: 8.457 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.ControlledCraneCrab): time 0.2621/0.3888, allocations: 23.43 MB / 439 MB, free: 31.26 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01558/0.4044, allocations: 6.146 MB / 445.1 MB, free: 27 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006436/0.4109, allocations: 99.5 kB / 445.2 MB, free: 26.99 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00586/0.4168, allocations: 1.132 MB / 446.3 MB, free: 26.62 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01393/0.4307, allocations: 3.486 MB / 449.8 MB, free: 24.91 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001783/0.4326, allocations: 149.4 kB / 450 MB, free: 24.83 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003636/0.4362, allocations: 1.472 MB / 451.4 MB, free: 24.1 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001179/0.4374, allocations: 0.8568 MB / 452.3 MB, free: 23.79 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009125/0.4383, allocations: 0.7027 MB / 453 MB, free: 23.53 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001036/0.4394, allocations: 1.001 MB / 454 MB, free: 23.17 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002924/0.4397, allocations: 128.3 kB / 454.1 MB, free: 23.17 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001472/0.4412, allocations: 0.6588 MB / 454.8 MB, free: 23.04 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008011/0.442, allocations: 1.035 MB / 455.8 MB, free: 22.68 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004744/0.4425, allocations: 0.646 MB / 456.5 MB, free: 22.2 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003135/0.4456, allocations: 3.724 MB / 460.2 MB, free: 21.35 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.968e-06/0.4456, allocations: 4 kB / 460.2 MB, free: 21.34 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.4456, allocations: 0 / 460.2 MB, free: 21.34 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.73e-05/0.4457, allocations: 0 / 460.2 MB, free: 21.34 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.008885/0.4546, allocations: 3.394 MB / 463.6 MB, free: 19.65 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.997e-05/0.4547, allocations: 9.031 kB / 463.6 MB, free: 19.65 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001579/0.4563, allocations: 0.5416 MB / 464.1 MB, free: 19.38 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007972/0.4642, allocations: 2.18 MB / 466.3 MB, free: 19 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004273/0.4685, allocations: 1.374 MB / 467.7 MB, free: 18.14 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001458/0.4687, allocations: 153.1 kB / 467.8 MB, free: 18.07 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007192/0.4694, allocations: 204.6 kB / 468 MB, free: 18 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01647/0.4859, allocations: 8.006 MB / 476 MB, free: 14.43 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.339e-05/0.4861, allocations: 18.77 kB / 476.1 MB, free: 14.42 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003342/0.4864, allocations: 97.98 kB / 476.2 MB, free: 14.35 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.004054/0.4905, allocations: 1.85 MB / 478 MB, free: 13.97 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01871/0.5092, allocations: 7.172 MB / 485.2 MB, free: 11.52 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04015/0.5494, allocations: 24.43 MB / 0.4977 GB, free: 4.863 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00553/0.555, allocations: 2.371 MB / 0.5 GB, free: 2.379 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001399/0.5564, allocations: 1.382 MB / 0.5013 GB, free: 0.7812 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.372e-05/0.5565, allocations: 47.88 kB / 0.5014 GB, free: 0.7266 MB / 366.1 MB Notification: Performance of pre-optimization done (n=153): time 3.967e-06/0.5565, allocations: 0 / 0.5014 GB, free: 0.7266 MB / 366.1 MB Notification: Performance of matching and sorting (n=175): time 0.01815/0.5746, allocations: 8.041 MB / 0.5092 GB, free: 8.535 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.348e-05/0.5747, allocations: 64.72 kB / 0.5093 GB, free: 8.457 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00386/0.5786, allocations: 2.571 MB / 0.5118 GB, free: 5.852 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002213/0.5788, allocations: 53.7 kB / 0.5119 GB, free: 5.793 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001534/0.5804, allocations: 2.055 MB / 0.5139 GB, free: 3.707 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006804/0.581, allocations: 0.6359 MB / 0.5145 GB, free: 3.062 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001644/0.5812, allocations: 80 kB / 0.5146 GB, free: 2.984 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002822/0.5815, allocations: 474.8 kB / 0.515 GB, free: 2.512 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002303/0.5838, allocations: 1.308 MB / 0.5163 GB, free: 1.199 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003788/0.5876, allocations: 3.431 MB / 0.5196 GB, free: 12.71 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003394/0.591, allocations: 2.138 MB / 0.5217 GB, free: 10.57 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.033e-05/0.5911, allocations: 20 kB / 0.5217 GB, free: 10.55 MB / 398.1 MB Notification: Performance of matching and sorting (n=522) (initialization): time 0.00927/0.6004, allocations: 4.943 MB / 0.5266 GB, free: 5.602 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.181e-05/0.6005, allocations: 36 kB / 0.5266 GB, free: 5.566 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001169/0.6006, allocations: 76 kB / 0.5267 GB, free: 5.492 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009267/0.6015, allocations: 345 kB / 0.527 GB, free: 5.152 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00321/0.6047, allocations: 0.8773 MB / 0.5279 GB, free: 4.273 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004671/0.6094, allocations: 3.428 MB / 0.5312 GB, free: 0.7148 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003566/0.613, allocations: 203.8 kB / 0.5314 GB, free: 0.5156 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005856/0.6136, allocations: 232.1 kB / 0.5316 GB, free: 296 kB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 339 * 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 (478): * Single equations (assignments): 473 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 17} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003447/0.6171, allocations: 1.566 MB / 0.5332 GB, free: 14.71 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004766/0.6176, allocations: 229.1 kB / 0.5334 GB, free: 14.48 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004182/0.6218, allocations: 2.403 MB / 0.5357 GB, free: 12.05 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001066/0.6219, allocations: 31.97 kB / 0.5358 GB, free: 12.02 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.137e-06/0.6219, allocations: 7.953 kB / 0.5358 GB, free: 12.01 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.765e-05/0.6219, allocations: 7.969 kB / 0.5358 GB, free: 12 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01173/0.6337, allocations: 6.338 MB / 0.542 GB, free: 5.504 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.263e-05/0.6337, allocations: 4 kB / 0.542 GB, free: 5.5 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000908/0.6346, allocations: 243.6 kB / 0.5422 GB, free: 5.262 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006425/0.6353, allocations: 237.2 kB / 0.5424 GB, free: 5.027 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.303e-05/0.6354, allocations: 36.05 kB / 0.5425 GB, free: 4.992 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003355/0.6387, allocations: 2.804 MB / 0.5452 GB, free: 2.059 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.444e-06/0.6388, allocations: 8 kB / 0.5452 GB, free: 2.051 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005633/0.6444, allocations: 3.87 MB / 0.549 GB, free: 13.93 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001335/0.6458, allocations: 490 kB / 0.5494 GB, free: 13.43 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000282/0.6461, allocations: 28 kB / 0.5495 GB, free: 13.4 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008365/0.6469, allocations: 71.92 kB / 0.5495 GB, free: 13.33 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002114/0.6471, allocations: 108.7 kB / 0.5496 GB, free: 13.23 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001013/0.6472, allocations: 51.98 kB / 0.5497 GB, free: 13.18 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002932/0.6502, allocations: 1.673 MB / 0.5513 GB, free: 11.49 MB / 430.1 MB Notification: Performance of sort global known variables: time 3.3e-07/0.6502, allocations: 0 / 0.5513 GB, free: 11.49 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.004228/0.6544, allocations: 0.6992 MB / 0.552 GB, free: 10.79 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * 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 (132): * Single equations (assignments): 127 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(2,100.0%) 15} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.008152/0.6626, allocations: 5.883 MB / 0.5578 GB, free: 4.719 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.006855/0.6695, allocations: 3.268 MB / 0.5609 GB, free: 1.461 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.145e-05/0.6696, allocations: 4.062 kB / 0.5609 GB, free: 1.457 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001795/0.6714, allocations: 1.122 MB / 0.562 GB, free: 332 kB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002467/0.6738, allocations: 367 kB / 0.5624 GB, free: 15.97 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.285/0.9588, allocations: 72.41 MB / 0.6331 GB, free: 56.45 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004006/0.9629, allocations: 2.671 MB / 0.6357 GB, free: 55.67 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.003345/0.9663, allocations: 1.243 MB / 0.6369 GB, free: 55.59 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002188/0.9685, allocations: 1.347 MB / 0.6382 GB, free: 55.57 MB / 446.1 MB Notification: Performance of SimCode: time 3.286e-06/0.9686, allocations: 0 / 0.6382 GB, free: 55.57 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09709/1.066, allocations: 53.58 MB / 0.6906 GB, free: 27.14 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002436/1.066, allocations: 210.6 kB / 0.6908 GB, free: 26.89 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.122/4.188, allocations: 0 / 0.6908 GB, free: 26.89 MB / 446.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/linux/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) Environment - environmentSimulation: