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.001547/0.001547, allocations: 174.6 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.376/1.376, allocations: 221.4 MB / 234.6 MB, free: 14.39 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001022/0.001022, allocations: 86.89 kB / 285.6 MB, free: 12.97 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.04021/0.04021, allocations: 8.838 MB / 345.3 MB, free: 1.293 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.13e-05/3.132e-05, allocations: 7.984 kB / 405.7 MB, free: 61.28 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09556/0.09561, allocations: 52.39 MB / 458.1 MB, free: 8.953 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3651/0.4608, allocations: 89.89 MB / 0.5351 GB, free: 11.89 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000193/0.461, allocations: 71.22 kB / 0.5352 GB, free: 11.86 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1906/0.6517, allocations: 63.87 MB / 0.5975 GB, free: 2.074 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.104e-06/0.6517, allocations: 0 / 0.5975 GB, free: 2.074 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001303/0.6519, allocations: 52 kB / 0.5976 GB, free: 2.023 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.01164/0.6635, allocations: 3.106 MB / 0.6006 GB, free: 14.86 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.117e-05/0.6636, allocations: 8.031 kB / 0.6006 GB, free: 14.85 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002367/0.666, allocations: 0.5856 MB / 0.6012 GB, free: 14.25 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009819/0.6758, allocations: 1.942 MB / 0.6031 GB, free: 12.3 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005907/0.6818, allocations: 1.754 MB / 0.6048 GB, free: 10.5 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002981/0.6821, allocations: 229.8 kB / 0.605 GB, free: 10.27 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001953/0.6841, allocations: 295.9 kB / 0.6053 GB, free: 9.98 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01956/0.7037, allocations: 7.51 MB / 0.6126 GB, free: 2.094 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.00016/0.7039, allocations: 27.7 kB / 0.6127 GB, free: 2.066 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001368/0.7052, allocations: 139.9 kB / 0.6128 GB, free: 1.93 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001638/0.7069, allocations: 0.8649 MB / 0.6136 GB, free: 1.062 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01603/0.7229, allocations: 6.955 MB / 0.6204 GB, free: 10.1 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06516/0.7881, allocations: 24.36 MB / 0.6442 GB, free: 1.238 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3017/1.09, allocations: 2.347 MB / 0.6465 GB, free: 122.3 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001666/1.092, allocations: 0.7893 MB / 0.6473 GB, free: 122.3 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009811/1.101, allocations: 4.647 MB / 0.6518 GB, free: 120.3 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.438e-05/1.102, allocations: 42.62 kB / 0.6519 GB, free: 120.2 MB / 458.7 MB Notification: Performance of pre-optimization done (n=131): time 4.609e-06/1.102, allocations: 0 / 0.6519 GB, free: 120.2 MB / 458.7 MB Notification: Performance of matching and sorting (n=153): time 0.01495/1.117, allocations: 6.116 MB / 0.6578 GB, free: 119.2 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.509e-05/1.117, allocations: 65.81 kB / 0.6579 GB, free: 119.1 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005063/1.122, allocations: 2.324 MB / 0.6602 GB, free: 118.9 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002402/1.122, allocations: 44.2 kB / 0.6602 GB, free: 118.8 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00173/1.124, allocations: 2.107 MB / 0.6623 GB, free: 117.8 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007568/1.124, allocations: 0.5717 MB / 0.6628 GB, free: 117.4 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002107/1.125, allocations: 76.08 kB / 0.6629 GB, free: 117.4 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0003023/1.125, allocations: 476.9 kB / 0.6634 GB, free: 117.1 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002367/1.127, allocations: 1.216 MB / 0.6645 GB, free: 117.1 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003346/1.131, allocations: 3.345 MB / 0.6678 GB, free: 114.4 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003004/1.134, allocations: 2.05 MB / 0.6698 GB, free: 114.4 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.969e-05/1.134, allocations: 31.42 kB / 0.6698 GB, free: 114.4 MB / 458.7 MB Notification: Performance of matching and sorting (n=514) (initialization): time 0.007341/1.141, allocations: 4.732 MB / 0.6745 GB, free: 114 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.53e-05/1.141, allocations: 41.12 kB / 0.6745 GB, free: 114 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.151e-05/1.141, allocations: 73.09 kB / 0.6746 GB, free: 114 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007124/1.142, allocations: 312.2 kB / 0.6749 GB, free: 114 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002386/1.144, allocations: 0.8614 MB / 0.6757 GB, free: 113.9 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003816/1.148, allocations: 3.319 MB / 0.679 GB, free: 112.1 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003481/1.152, allocations: 187.5 kB / 0.6791 GB, free: 112 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004684/1.152, allocations: 231 kB / 0.6794 GB, free: 112 MB / 458.7 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (470): * Single equations (assignments): 465 * 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.0005771/1.153, allocations: 393.9 kB / 0.6797 GB, free: 111.7 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004633/1.153, allocations: 229.3 kB / 0.6799 GB, free: 111.5 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003062/1.156, allocations: 1.95 MB / 0.6818 GB, free: 110.8 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001047/1.157, allocations: 28.5 kB / 0.6819 GB, free: 110.8 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.988e-06/1.157, allocations: 3.969 kB / 0.6819 GB, free: 110.8 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.234e-05/1.157, allocations: 3.281 kB / 0.6819 GB, free: 110.8 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009727/1.166, allocations: 5.629 MB / 0.6874 GB, free: 108.7 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.015e-05/1.166, allocations: 3.875 kB / 0.6874 GB, free: 108.7 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008365/1.167, allocations: 205.9 kB / 0.6876 GB, free: 108.6 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000522/1.168, allocations: 199.2 kB / 0.6878 GB, free: 108.6 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.507e-05/1.168, allocations: 30.14 kB / 0.6878 GB, free: 108.6 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002714/1.171, allocations: 2.698 MB / 0.6904 GB, free: 106.8 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.569e-06/1.171, allocations: 7.688 kB / 0.6904 GB, free: 106.8 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004202/1.175, allocations: 3.181 MB / 0.6935 GB, free: 105.3 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00149/1.176, allocations: 460.8 kB / 0.694 GB, free: 105 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002511/1.177, allocations: 27.05 kB / 0.694 GB, free: 105 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008095/1.177, allocations: 63.64 kB / 0.6941 GB, free: 105 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001808/1.178, allocations: 89.66 kB / 0.6942 GB, free: 104.9 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.431e-05/1.178, allocations: 40.59 kB / 0.6942 GB, free: 104.9 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002449/1.18, allocations: 1.642 MB / 0.6958 GB, free: 104.3 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.3e-07/1.18, allocations: 0 / 0.6958 GB, free: 104.3 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.003711/1.184, allocations: 0.7034 MB / 0.6965 GB, free: 104.2 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.004138/1.188, allocations: 4.378 MB / 0.7008 GB, free: 101.6 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.004581/1.193, allocations: 3.048 MB / 0.7037 GB, free: 100.5 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 5.19e-06/1.193, allocations: 1.062 kB / 0.7037 GB, free: 100.5 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001213/1.194, allocations: 0.9919 MB / 0.7047 GB, free: 100.1 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001974/1.196, allocations: 374.6 kB / 0.7051 GB, free: 99.97 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01292/1.209, allocations: 6.327 MB / 0.7112 GB, free: 97.23 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002242/1.211, allocations: 2.661 MB / 0.7138 GB, free: 95.12 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002872/1.214, allocations: 1.179 MB / 0.715 GB, free: 94.38 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00186/1.216, allocations: 1.344 MB / 0.7163 GB, free: 93.14 MB / 458.7 MB Notification: Performance of SimCode: time 1.102e-06/1.216, allocations: 0 / 0.7163 GB, free: 93.14 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07438/1.29, allocations: 53.23 MB / 0.7683 GB, free: 47.29 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001323/1.29, allocations: 169.9 kB / 0.7685 GB, free: 47.06 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.433/4.723, allocations: 0 / 0.7685 GB, free: 47.06 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)