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.0009254/0.0009254, allocations: 89.73 kB / 15.06 MB, free: 1.098 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.001167/0.001167, allocations: 172.7 kB / 15.95 MB, free: 208 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.354/1.354, allocations: 223.3 MB / 240 MB, free: 5.449 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1-master/package.mo): time 0.2073/0.2073, allocations: 9.104 MB / 300.2 MB, free: 2.688 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003122/0.0003122, allocations: 12 kB / 363.2 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1046/0.1049, allocations: 52.44 MB / 415.6 MB, free: 8.445 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PlanarMechanics.Examples.ControlledCraneCrab): time 0.2088/0.3137, allocations: 24.85 MB / 440.5 MB, free: 30.22 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01172/0.3255, allocations: 5.894 MB / 446.4 MB, free: 26.13 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00545/0.331, allocations: 102.6 kB / 446.5 MB, free: 26.12 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003756/0.3347, allocations: 1.19 MB / 447.7 MB, free: 25.7 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01142/0.3462, allocations: 4.278 MB / 451.9 MB, free: 23.82 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001494/0.3477, allocations: 145 kB / 452.1 MB, free: 23.74 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003679/0.3514, allocations: 2.86 MB / 454.9 MB, free: 22.63 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00109/0.3525, allocations: 0.8561 MB / 455.8 MB, free: 22.32 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009602/0.3535, allocations: 0.8229 MB / 456.6 MB, free: 22.02 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001471/0.355, allocations: 1.306 MB / 457.9 MB, free: 21.6 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002538/0.3552, allocations: 132 kB / 458.1 MB, free: 21.59 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001248/0.3565, allocations: 0.6697 MB / 458.7 MB, free: 21.45 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008765/0.3574, allocations: 1.105 MB / 459.8 MB, free: 21.08 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005994/0.358, allocations: 0.6418 MB / 460.5 MB, free: 20.61 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002958/0.3609, allocations: 3.729 MB / 464.2 MB, free: 19.75 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.668e-06/0.361, allocations: 0 / 464.2 MB, free: 19.75 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.361, allocations: 0 / 464.2 MB, free: 19.75 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.27e-05/0.361, allocations: 4 kB / 464.2 MB, free: 19.75 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.006916/0.3679, allocations: 3.335 MB / 467.5 MB, free: 18.05 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.24e-05/0.368, allocations: 9 kB / 467.6 MB, free: 18.05 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008243/0.3688, allocations: 0.5407 MB / 468.1 MB, free: 17.78 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006183/0.375, allocations: 1.822 MB / 469.9 MB, free: 17.48 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002826/0.3779, allocations: 1.376 MB / 471.3 MB, free: 16.62 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001467/0.378, allocations: 155.2 kB / 471.4 MB, free: 16.55 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004971/0.3785, allocations: 199 kB / 471.6 MB, free: 16.48 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01275/0.3913, allocations: 7.99 MB / 479.6 MB, free: 12.91 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.447e-05/0.3914, allocations: 18.23 kB / 479.6 MB, free: 12.9 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003047/0.3917, allocations: 98.23 kB / 479.7 MB, free: 12.83 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003391/0.3951, allocations: 1.851 MB / 481.6 MB, free: 12.45 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01322/0.4084, allocations: 7.145 MB / 488.7 MB, free: 9.371 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02861/0.437, allocations: 24.44 MB / 0.5012 GB, free: 1.5 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004564/0.4416, allocations: 2.38 MB / 0.5035 GB, free: 15.01 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001153/0.4428, allocations: 0.8168 MB / 0.5043 GB, free: 14.19 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006119/0.4489, allocations: 4.653 MB / 0.5088 GB, free: 9.16 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.095e-05/0.449, allocations: 39.56 kB / 0.5089 GB, free: 9.113 MB / 382.1 MB Notification: Performance of pre-optimization done (n=131): time 3.086e-06/0.449, allocations: 0 / 0.5089 GB, free: 9.113 MB / 382.1 MB Notification: Performance of matching and sorting (n=153): time 0.01268/0.4617, allocations: 6.905 MB / 0.5156 GB, free: 2.117 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.566e-05/0.4617, allocations: 64.72 kB / 0.5157 GB, free: 2.043 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003402/0.4651, allocations: 2.656 MB / 0.5183 GB, free: 15.36 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 8.533e-05/0.4652, allocations: 45.7 kB / 0.5183 GB, free: 15.31 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001216/0.4665, allocations: 2.117 MB / 0.5204 GB, free: 13.16 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004099/0.4669, allocations: 0.5666 MB / 0.5209 GB, free: 12.59 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001488/0.467, allocations: 76 kB / 0.521 GB, free: 12.51 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002413/0.4673, allocations: 486.6 kB / 0.5215 GB, free: 12.03 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001892/0.4692, allocations: 1.276 MB / 0.5227 GB, free: 10.75 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003075/0.4723, allocations: 3.412 MB / 0.526 GB, free: 6.273 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002714/0.475, allocations: 2.11 MB / 0.5281 GB, free: 4.164 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.641e-05/0.475, allocations: 23.94 kB / 0.5281 GB, free: 4.141 MB / 398.1 MB Notification: Performance of matching and sorting (n=516) (initialization): time 0.007211/0.4823, allocations: 4.86 MB / 0.5329 GB, free: 15.27 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.534e-05/0.4823, allocations: 42.02 kB / 0.5329 GB, free: 15.23 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.643e-05/0.4824, allocations: 80.09 kB / 0.533 GB, free: 15.15 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007829/0.4832, allocations: 346.8 kB / 0.5333 GB, free: 14.81 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002346/0.4856, allocations: 0.8657 MB / 0.5342 GB, free: 13.95 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003961/0.4895, allocations: 3.344 MB / 0.5374 GB, free: 10.46 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002424/0.492, allocations: 207.9 kB / 0.5376 GB, free: 10.26 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003077/0.4923, allocations: 224 kB / 0.5378 GB, free: 10.04 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 (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.002364/0.4947, allocations: 1.563 MB / 0.5394 GB, free: 8.469 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002975/0.495, allocations: 233 kB / 0.5396 GB, free: 8.238 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00324/0.4982, allocations: 2.01 MB / 0.5415 GB, free: 6.215 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.617e-05/0.4983, allocations: 27.97 kB / 0.5416 GB, free: 6.188 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.012e-05/0.4984, allocations: 11.98 kB / 0.5416 GB, free: 6.176 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.891e-05/0.4984, allocations: 7.969 kB / 0.5416 GB, free: 6.168 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008748/0.5071, allocations: 5.726 MB / 0.5472 GB, free: 332 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.274e-06/0.5072, allocations: 0 / 0.5472 GB, free: 332 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007799/0.508, allocations: 203.8 kB / 0.5474 GB, free: 128 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006357/0.5086, allocations: 232.9 kB / 0.5476 GB, free: 15.89 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.368e-05/0.5087, allocations: 28 kB / 0.5476 GB, free: 15.87 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002981/0.5117, allocations: 2.722 MB / 0.5503 GB, free: 13.02 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.11e-06/0.5117, allocations: 3.953 kB / 0.5503 GB, free: 13.01 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004322/0.516, allocations: 3.083 MB / 0.5533 GB, free: 9.879 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008742/0.5169, allocations: 466.1 kB / 0.5537 GB, free: 9.402 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002258/0.5172, allocations: 27.98 kB / 0.5538 GB, free: 9.375 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006914/0.5179, allocations: 63.92 kB / 0.5538 GB, free: 9.312 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001397/0.518, allocations: 88.78 kB / 0.5539 GB, free: 9.227 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.217e-05/0.5181, allocations: 43.98 kB / 0.554 GB, free: 9.184 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002515/0.5206, allocations: 1.717 MB / 0.5556 GB, free: 7.453 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.5206, allocations: 0 / 0.5556 GB, free: 7.453 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002966/0.5236, allocations: 0.6836 MB / 0.5563 GB, free: 6.77 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 (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.00468/0.5283, allocations: 3.738 MB / 0.5599 GB, free: 2.965 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.005391/0.5337, allocations: 3.148 MB / 0.563 GB, free: 15.83 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.131e-06/0.5337, allocations: 0 / 0.563 GB, free: 15.83 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00158/0.5353, allocations: 1.036 MB / 0.564 GB, free: 14.78 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001969/0.5373, allocations: 383.9 kB / 0.5644 GB, free: 14.41 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2173/0.7546, allocations: 21.19 MB / 0.5851 GB, free: 105 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002489/0.7572, allocations: 2.599 MB / 0.5876 GB, free: 104.2 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.002642/0.7598, allocations: 1.186 MB / 0.5888 GB, free: 104.2 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001391/0.7612, allocations: 1.341 MB / 0.5901 GB, free: 104.2 MB / 446.1 MB Notification: Performance of SimCode: time 1.102e-06/0.7613, allocations: 0 / 0.5901 GB, free: 104.2 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07527/0.8365, allocations: 53.06 MB / 0.6419 GB, free: 76.93 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000122/0.8367, allocations: 208.4 kB / 0.6421 GB, free: 76.69 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.674/3.511, allocations: 0 / 0.6421 GB, free: 76.69 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: