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/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo", uses=false) Using package PlanarMechanics with version 1.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/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) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001263/0.001263, allocations: 173.9 kB / 7.648 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.492/1.492, allocations: 221.5 MB / 229.6 MB, free: 3.176 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009367/0.0009365, allocations: 93.39 kB / 280.5 MB, free: 1.16 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.04123/0.04123, allocations: 8.845 MB / 340.1 MB, free: 5.594 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 1.808e-05/1.808e-05, allocations: 4 kB / 398.8 MB, free: 66.98 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09931/0.09935, allocations: 52.39 MB / 451.2 MB, free: 14.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4078/0.5072, allocations: 89.54 MB / 0.528 GB, free: 3.68 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002781/0.5075, allocations: 72.59 kB / 0.5281 GB, free: 3.648 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1604/0.6679, allocations: 62.37 MB / 0.589 GB, free: 12.11 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.843e-06/0.668, allocations: 0 / 0.589 GB, free: 12.11 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001198/0.6681, allocations: 52 kB / 0.5891 GB, free: 12.06 MB / 410.7 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.01135/0.6795, allocations: 3.107 MB / 0.5921 GB, free: 8.895 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.247e-05/0.6796, allocations: 12.02 kB / 0.5921 GB, free: 8.883 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009925/0.6895, allocations: 1.946 MB / 0.594 GB, free: 6.93 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004793/0.6943, allocations: 1.747 MB / 0.5957 GB, free: 5.137 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001939/0.6946, allocations: 99.94 kB / 0.5958 GB, free: 5.039 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002017/0.6966, allocations: 175.9 kB / 0.596 GB, free: 4.867 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01056/0.7072, allocations: 5.267 MB / 0.6011 GB, free: 15.59 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01809/0.7253, allocations: 6.973 MB / 0.6079 GB, free: 8.246 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000112/0.7255, allocations: 23.78 kB / 0.608 GB, free: 8.223 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005557/0.726, allocations: 12 kB / 0.608 GB, free: 8.211 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001375/0.7274, allocations: 0.8687 MB / 0.6088 GB, free: 7.34 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03799/0.7654, allocations: 23.58 MB / 0.6318 GB, free: 15.21 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003342/0.7688, allocations: 2.244 MB / 0.634 GB, free: 12.86 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001057/0.7699, allocations: 0.7448 MB / 0.6348 GB, free: 12.11 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007003/0.7769, allocations: 4.18 MB / 0.6388 GB, free: 7.605 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.351e-05/0.777, allocations: 47.88 kB / 0.6389 GB, free: 7.551 MB / 458.7 MB Notification: Performance of pre-optimization done (n=131): time 4.138e-06/0.777, allocations: 0 / 0.6389 GB, free: 7.551 MB / 458.7 MB Notification: Performance of matching and sorting (n=153): time 0.01091/0.7879, allocations: 5.638 MB / 0.6444 GB, free: 1.828 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.225e-05/0.788, allocations: 68.66 kB / 0.6445 GB, free: 1.75 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2609/1.049, allocations: 1.912 MB / 0.6463 GB, free: 126.8 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003271/1.049, allocations: 26.61 kB / 0.6463 GB, free: 126.8 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001948/1.051, allocations: 2.172 MB / 0.6485 GB, free: 126.1 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005702/1.052, allocations: 0.556 MB / 0.649 GB, free: 125.9 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001857/1.052, allocations: 4.938 kB / 0.649 GB, free: 125.9 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003175/1.052, allocations: 0.5164 MB / 0.6495 GB, free: 125.6 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00202/1.054, allocations: 1.217 MB / 0.6507 GB, free: 125.5 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002783/1.057, allocations: 3.459 MB / 0.6541 GB, free: 122.6 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003007/1.06, allocations: 2.088 MB / 0.6561 GB, free: 122.6 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.668e-05/1.06, allocations: 25.88 kB / 0.6561 GB, free: 122.6 MB / 458.7 MB Notification: Performance of matching and sorting (n=538) (initialization): time 0.007827/1.068, allocations: 4.441 MB / 0.6605 GB, free: 122.4 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.152e-05/1.068, allocations: 38.91 kB / 0.6605 GB, free: 122.4 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001434/1.068, allocations: 82.81 kB / 0.6606 GB, free: 122.4 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008804/1.069, allocations: 308.4 kB / 0.6609 GB, free: 122.4 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003131/1.072, allocations: 0.9001 MB / 0.6618 GB, free: 122.3 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004816/1.077, allocations: 3.231 MB / 0.6649 GB, free: 120.9 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00347/1.081, allocations: 116 kB / 0.665 GB, free: 120.9 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007356/1.081, allocations: 252.5 kB / 0.6653 GB, free: 120.9 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 364 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (494): * Single equations (assignments): 489 * 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.0007195/1.082, allocations: 305.5 kB / 0.6656 GB, free: 120.7 MB / 458.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003224/1.085, allocations: 1.691 MB / 0.6672 GB, free: 120.5 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002645/1.086, allocations: 200.5 kB / 0.6674 GB, free: 120.3 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002535/1.088, allocations: 1.813 MB / 0.6692 GB, free: 120.2 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001078/1.088, allocations: 31.86 kB / 0.6692 GB, free: 120.2 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.739e-06/1.088, allocations: 0 / 0.6692 GB, free: 120.2 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.399e-05/1.088, allocations: 3.375 kB / 0.6692 GB, free: 120.2 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007588/1.096, allocations: 4.749 MB / 0.6739 GB, free: 119.6 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.128e-05/1.096, allocations: 4.75 kB / 0.6739 GB, free: 119.6 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007883/1.097, allocations: 202.6 kB / 0.6741 GB, free: 119.6 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004776/1.097, allocations: 195.2 kB / 0.6742 GB, free: 119.6 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.17e-05/1.097, allocations: 13.91 kB / 0.6743 GB, free: 119.6 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002524/1.1, allocations: 2.583 MB / 0.6768 GB, free: 118.4 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.644e-06/1.1, allocations: 11.61 kB / 0.6768 GB, free: 118.4 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003534/1.103, allocations: 3.026 MB / 0.6797 GB, free: 117.1 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008829/1.104, allocations: 431.9 kB / 0.6802 GB, free: 116.9 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002098/1.105, allocations: 11.47 kB / 0.6802 GB, free: 116.9 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000726/1.105, allocations: 42.56 kB / 0.6802 GB, free: 116.9 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001452/1.105, allocations: 86.84 kB / 0.6803 GB, free: 116.8 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.225e-05/1.106, allocations: 45.08 kB / 0.6803 GB, free: 116.8 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.001727/1.107, allocations: 1.286 MB / 0.6816 GB, free: 116.3 MB / 458.7 MB Notification: Performance of sort global known variables: time 3.21e-07/1.107, allocations: 0 / 0.6816 GB, free: 116.3 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.003512/1.111, allocations: 0.6 MB / 0.6822 GB, free: 116.3 MB / 458.7 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 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (112): * Single equations (assignments): 107 * 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.00369/1.115, allocations: 4.238 MB / 0.6863 GB, free: 113.8 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.004511/1.119, allocations: 2.952 MB / 0.6892 GB, free: 112.7 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 4.548e-06/1.119, allocations: 0 / 0.6892 GB, free: 112.7 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001191/1.12, allocations: 0.9582 MB / 0.6901 GB, free: 112.3 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001678/1.122, allocations: 231.7 kB / 0.6904 GB, free: 112.2 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01371/1.136, allocations: 6.112 MB / 0.6963 GB, free: 109.9 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002412/1.138, allocations: 2.661 MB / 0.6989 GB, free: 108.7 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.00308/1.141, allocations: 1.188 MB / 0.7001 GB, free: 108.6 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001567/1.143, allocations: 1.339 MB / 0.7014 GB, free: 107.5 MB / 458.7 MB Notification: Performance of SimCode: time 8.52e-07/1.143, allocations: 0 / 0.7014 GB, free: 107.5 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07196/1.215, allocations: 46.55 MB / 0.7468 GB, free: 73.78 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001386/1.215, allocations: 135.2 kB / 0.747 GB, free: 73.58 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.158/4.373, allocations: 0 / 0.747 GB, free: 73.58 MB / 458.7 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)