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.005016/0.005016, allocations: 99.77 kB / 15.73 MB, free: 6.012 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.001238/0.001238, allocations: 193.5 kB / 16.67 MB, free: 5.93 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.351/1.351, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.6.0/package.mo): time 0.04727/0.04727, allocations: 9.116 MB / 299.7 MB, free: 5.82 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0018/0.0018, allocations: 67.89 kB / 414.1 MB, free: 21.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09486/0.09667, allocations: 51.44 MB / 465.6 MB, free: 2.164 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.ControlledCraneCrab): time 0.01051/0.1072, allocations: 8.778 MB / 474.4 MB, free: 9.336 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005924/0.1132, allocations: 2.682 MB / 477 MB, free: 6.648 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001067/0.1143, allocations: 35.94 kB / 477.1 MB, free: 6.613 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008828/0.1152, allocations: 369.5 kB / 477.4 MB, free: 6.25 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003583/0.1188, allocations: 1.424 MB / 478.9 MB, free: 4.82 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005732/0.1194, allocations: 183.7 kB / 479 MB, free: 4.641 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003873/0.1233, allocations: 2.625 MB / 481.7 MB, free: 2.012 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001559/0.1249, allocations: 0.9842 MB / 482.7 MB, free: 1 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001594/0.1265, allocations: 0.9337 MB / 483.6 MB, free: 64 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002175/0.1287, allocations: 1.339 MB / 484.9 MB, free: 14.72 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004929/0.1292, allocations: 240 kB / 485.2 MB, free: 14.48 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001696/0.1309, allocations: 0.8465 MB / 486 MB, free: 13.64 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001322/0.1322, allocations: 1.239 MB / 487.2 MB, free: 12.39 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001828/0.134, allocations: 1.6 MB / 488.8 MB, free: 10.79 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006469/0.1405, allocations: 5.097 MB / 493.9 MB, free: 5.668 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.601e-06/0.1406, allocations: 0 / 493.9 MB, free: 5.668 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.434e-06/0.1406, allocations: 0 / 493.9 MB, free: 5.668 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001124/0.1407, allocations: 0 / 493.9 MB, free: 5.668 MB / 366.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.009656/0.1503, allocations: 4.035 MB / 498 MB, free: 1.562 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.45e-05/0.1504, allocations: 15.97 kB / 498 MB, free: 1.547 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007567/0.1512, allocations: 0.5351 MB / 498.5 MB, free: 1 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006859/0.158, allocations: 1.797 MB / 0.4886 GB, free: 15.2 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002993/0.1611, allocations: 1.422 MB / 0.49 GB, free: 13.73 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001646/0.1612, allocations: 160.1 kB / 0.4901 GB, free: 13.58 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004838/0.1617, allocations: 199.8 kB / 0.4903 GB, free: 13.38 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01388/0.1756, allocations: 7.997 MB / 0.4981 GB, free: 5.02 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.21e-05/0.1757, allocations: 23.77 kB / 0.4982 GB, free: 4.996 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002865/0.176, allocations: 99.86 kB / 0.4983 GB, free: 4.898 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003202/0.1792, allocations: 1.848 MB / 0.5001 GB, free: 3.047 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2268/0.4061, allocations: 7.165 MB / 0.5071 GB, free: 38.82 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02989/0.436, allocations: 24.4 MB / 0.5309 GB, free: 22.95 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004498/0.4405, allocations: 2.395 MB / 0.5332 GB, free: 21.46 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001011/0.4416, allocations: 0.8205 MB / 0.534 GB, free: 21.06 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005236/0.4468, allocations: 4.648 MB / 0.5386 GB, free: 17.46 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.747e-05/0.4469, allocations: 51.11 kB / 0.5386 GB, free: 17.41 MB / 382.1 MB Notification: Performance of pre-optimization done (n=131): time 3.156e-06/0.4469, allocations: 0 / 0.5386 GB, free: 17.41 MB / 382.1 MB Notification: Performance of matching and sorting (n=153): time 0.01123/0.4581, allocations: 6.972 MB / 0.5454 GB, free: 12.08 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.564e-05/0.4582, allocations: 68.72 kB / 0.5455 GB, free: 12 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002659/0.4608, allocations: 2.684 MB / 0.5481 GB, free: 9.293 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.116e-05/0.4609, allocations: 45.7 kB / 0.5482 GB, free: 9.242 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007283/0.4616, allocations: 2.191 MB / 0.5503 GB, free: 7.059 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002773/0.4619, allocations: 0.6 MB / 0.5509 GB, free: 6.465 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007455/0.4627, allocations: 0.7879 MB / 0.5516 GB, free: 5.668 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.252e-05/0.4627, allocations: 305.1 kB / 0.5519 GB, free: 5.367 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001557/0.4643, allocations: 1.292 MB / 0.5532 GB, free: 4.07 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002257/0.4665, allocations: 3.436 MB / 0.5566 GB, free: 15.58 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006393/0.4729, allocations: 5.08 MB / 0.5615 GB, free: 9.457 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.487e-05/0.473, allocations: 24 kB / 0.5615 GB, free: 9.434 MB / 398.1 MB Notification: Performance of matching and sorting (n=516) (initialization): time 0.008894/0.4819, allocations: 4.917 MB / 0.5663 GB, free: 4.512 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.215e-05/0.482, allocations: 36 kB / 0.5664 GB, free: 4.477 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.164e-05/0.4821, allocations: 76 kB / 0.5664 GB, free: 4.402 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008998/0.483, allocations: 335.7 kB / 0.5668 GB, free: 4.074 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002749/0.4858, allocations: 0.8616 MB / 0.5676 GB, free: 3.211 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004869/0.4906, allocations: 3.655 MB / 0.5712 GB, free: 15.42 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002804/0.4935, allocations: 200.3 kB / 0.5714 GB, free: 15.23 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004405/0.4939, allocations: 232 kB / 0.5716 GB, free: 15 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.002609/0.4965, allocations: 1.576 MB / 0.5731 GB, free: 13.41 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000411/0.497, allocations: 238.4 kB / 0.5734 GB, free: 13.18 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003468/0.5004, allocations: 2.018 MB / 0.5753 GB, free: 11.14 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001037/0.5006, allocations: 31.98 kB / 0.5754 GB, free: 11.11 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.021e-06/0.5006, allocations: 1.312 kB / 0.5754 GB, free: 11.11 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.411e-05/0.5006, allocations: 11.97 kB / 0.5754 GB, free: 11.1 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009335/0.5099, allocations: 5.685 MB / 0.5809 GB, free: 5.332 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.2e-05/0.51, allocations: 12 kB / 0.5809 GB, free: 5.32 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008367/0.5108, allocations: 195.8 kB / 0.5811 GB, free: 5.129 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006932/0.5115, allocations: 240.8 kB / 0.5814 GB, free: 4.891 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.641e-05/0.5116, allocations: 31.14 kB / 0.5814 GB, free: 4.863 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003592/0.5152, allocations: 2.948 MB / 0.5843 GB, free: 1.777 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.933e-06/0.5152, allocations: 4 kB / 0.5843 GB, free: 1.773 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00475/0.52, allocations: 3.121 MB / 0.5873 GB, free: 14.61 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009816/0.521, allocations: 459.5 kB / 0.5877 GB, free: 14.14 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002697/0.5213, allocations: 24 kB / 0.5878 GB, free: 14.11 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007883/0.5221, allocations: 67.86 kB / 0.5878 GB, free: 14.05 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001951/0.5223, allocations: 88.81 kB / 0.5879 GB, free: 13.96 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.775e-05/0.5224, allocations: 41.03 kB / 0.588 GB, free: 13.92 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002835/0.5252, allocations: 1.732 MB / 0.5897 GB, free: 12.18 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.5252, allocations: 0 / 0.5897 GB, free: 12.18 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002838/0.5281, allocations: 0.6893 MB / 0.5903 GB, free: 11.49 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.005244/0.5333, allocations: 3.764 MB / 0.594 GB, free: 7.668 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.005726/0.5391, allocations: 3.186 MB / 0.5971 GB, free: 4.492 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.978e-06/0.5391, allocations: 0 / 0.5971 GB, free: 4.492 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001562/0.5407, allocations: 1.036 MB / 0.5981 GB, free: 3.445 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002158/0.5428, allocations: 415.9 kB / 0.5985 GB, free: 3.055 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04429/0.5871, allocations: 28.05 MB / 0.6259 GB, free: 4.246 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003018/0.5902, allocations: 2.595 MB / 0.6284 GB, free: 1.617 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002645/0.5929, allocations: 1.192 MB / 0.6296 GB, free: 428 kB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001793/0.5947, allocations: 1.342 MB / 0.6309 GB, free: 15.1 MB / 478.1 MB Notification: Performance of SimCode: time 6.82e-07/0.5947, allocations: 0 / 0.6309 GB, free: 15.1 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09646/0.6911, allocations: 48.15 MB / 0.6779 GB, free: 15.17 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.06/16.75, allocations: 18.78 kB / 0.678 GB, free: 15.16 MB / 0.5137 GB (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)