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.005485/0.005485, allocations: 169.3 kB / 15.11 MB, free: 5.977 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.204/1.204, allocations: 223.2 MB / 239 MB, free: 1.789 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.0008744/0.0008745, allocations: 106.7 kB / 290.2 MB, free: 13.93 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PlanarMechanics 1.5.1/package.mo): time 0.0391/0.0391, allocations: 8.944 MB / 350.3 MB, free: 2.066 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002951/0.0002952, allocations: 8.156 kB / 413.2 MB, free: 88.65 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07792/0.07824, allocations: 52.4 MB / 465.6 MB, free: 41.59 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2749/0.3532, allocations: 89.93 MB / 0.5425 GB, free: 16.31 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001701/0.3534, allocations: 78 kB / 0.5426 GB, free: 16.31 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.136/0.4894, allocations: 63.81 MB / 0.6049 GB, free: 10.98 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.066e-06/0.4894, allocations: 7.984 kB / 0.6049 GB, free: 10.98 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001222/0.4895, allocations: 54.03 kB / 0.605 GB, free: 10.93 MB / 378.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.01096/0.5005, allocations: 3.205 MB / 0.6081 GB, free: 7.918 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.113e-05/0.5005, allocations: 12.03 kB / 0.6081 GB, free: 7.906 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001947/0.5025, allocations: 0.5805 MB / 0.6087 GB, free: 7.527 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008515/0.511, allocations: 1.946 MB / 0.6106 GB, free: 5.574 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004634/0.5157, allocations: 1.752 MB / 0.6123 GB, free: 4.238 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002008/0.5159, allocations: 227.9 kB / 0.6125 GB, free: 4.086 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001132/0.517, allocations: 310.4 kB / 0.6128 GB, free: 3.859 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01353/0.5306, allocations: 7.571 MB / 0.6202 GB, free: 14.11 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001056/0.5307, allocations: 23.78 kB / 0.6202 GB, free: 14.09 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006312/0.5314, allocations: 135.8 kB / 0.6204 GB, free: 13.96 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001221/0.5326, allocations: 0.8688 MB / 0.6212 GB, free: 13.09 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01156/0.5442, allocations: 7.067 MB / 0.6281 GB, free: 6.008 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0315/0.5757, allocations: 24.36 MB / 0.6519 GB, free: 13.15 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004776/0.5805, allocations: 2.394 MB / 0.6542 GB, free: 10.64 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007216/0.5877, allocations: 4.648 MB / 0.6588 GB, free: 5.613 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.854e-05/0.5878, allocations: 43.56 kB / 0.6588 GB, free: 5.562 MB / 426.7 MB Notification: Performance of pre-optimization done (n=131): time 3.988e-06/0.5878, allocations: 0 / 0.6588 GB, free: 5.562 MB / 426.7 MB Notification: Performance of matching and sorting (n=153): time 0.01324/0.6011, allocations: 7.144 MB / 0.6658 GB, free: 14.26 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.451e-05/0.6011, allocations: 64.72 kB / 0.6658 GB, free: 14.18 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003979/0.6051, allocations: 2.355 MB / 0.6681 GB, free: 11.8 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 7.998e-05/0.6052, allocations: 45.7 kB / 0.6682 GB, free: 11.75 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001494/0.6067, allocations: 2.105 MB / 0.6702 GB, free: 9.617 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004784/0.6072, allocations: 0.5667 MB / 0.6708 GB, free: 9.043 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002192/0.6074, allocations: 79.98 kB / 0.6709 GB, free: 8.965 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002916/0.6077, allocations: 478.6 kB / 0.6713 GB, free: 8.488 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002017/0.6098, allocations: 1.257 MB / 0.6726 GB, free: 7.227 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003206/0.613, allocations: 3.385 MB / 0.6759 GB, free: 2.781 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002835/0.6158, allocations: 2.07 MB / 0.6779 GB, free: 0.7109 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.821e-05/0.6159, allocations: 20 kB / 0.6779 GB, free: 0.6914 MB / 442.7 MB Notification: Performance of matching and sorting (n=514) (initialization): time 0.007326/0.6232, allocations: 4.833 MB / 0.6826 GB, free: 11.85 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.661e-05/0.6233, allocations: 40.09 kB / 0.6827 GB, free: 11.81 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.913e-05/0.6234, allocations: 76.84 kB / 0.6827 GB, free: 11.74 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006955/0.6241, allocations: 316.6 kB / 0.683 GB, free: 11.43 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002436/0.6265, allocations: 0.8539 MB / 0.6839 GB, free: 10.57 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003939/0.6305, allocations: 3.42 MB / 0.6872 GB, free: 7.012 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002305/0.6328, allocations: 191.9 kB / 0.6874 GB, free: 6.824 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002994/0.6331, allocations: 224 kB / 0.6876 GB, free: 6.605 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 () * Number of clocked 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.002542/0.6356, allocations: 1.577 MB / 0.6892 GB, free: 5.016 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004149/0.6361, allocations: 229 kB / 0.6894 GB, free: 4.789 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003261/0.6393, allocations: 1.99 MB / 0.6913 GB, free: 2.789 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000103/0.6394, allocations: 23.98 kB / 0.6913 GB, free: 2.766 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.175e-05/0.6395, allocations: 4 kB / 0.6913 GB, free: 2.762 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.152e-05/0.6395, allocations: 3.984 kB / 0.6913 GB, free: 2.758 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1911/0.8305, allocations: 5.672 MB / 0.6969 GB, free: 113.9 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.816e-06/0.8306, allocations: 2.344 kB / 0.6969 GB, free: 113.9 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008628/0.8315, allocations: 205 kB / 0.6971 GB, free: 113.9 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005074/0.832, allocations: 198.2 kB / 0.6973 GB, free: 113.9 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.342e-05/0.8321, allocations: 29.88 kB / 0.6973 GB, free: 113.9 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002501/0.8346, allocations: 2.778 MB / 0.7 GB, free: 112.7 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/0.8346, allocations: 5.219 kB / 0.7 GB, free: 112.7 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003628/0.8382, allocations: 3.228 MB / 0.7032 GB, free: 112.2 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001057/0.8393, allocations: 468.9 kB / 0.7036 GB, free: 112.1 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003432/0.8397, allocations: 29.08 kB / 0.7036 GB, free: 112.1 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008725/0.8405, allocations: 59.23 kB / 0.7037 GB, free: 112.1 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001506/0.8407, allocations: 88.22 kB / 0.7038 GB, free: 112.1 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.324e-05/0.8408, allocations: 44.84 kB / 0.7038 GB, free: 112.1 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.00214/0.8429, allocations: 1.672 MB / 0.7055 GB, free: 112 MB / 458.7 MB Notification: Performance of sort global known variables: time 2.6e-07/0.843, allocations: 3.625 kB / 0.7055 GB, free: 112 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002582/0.8455, allocations: 0.6953 MB / 0.7061 GB, free: 112 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 () * Number of clocked 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.004583/0.8501, allocations: 4.437 MB / 0.7105 GB, free: 110.4 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.004194/0.8543, allocations: 3.121 MB / 0.7135 GB, free: 110.3 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.8544, allocations: 0 / 0.7135 GB, free: 110.3 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001487/0.8558, allocations: 1.018 MB / 0.7145 GB, free: 110.1 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001437/0.8573, allocations: 360.8 kB / 0.7149 GB, free: 110.1 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03812/0.8954, allocations: 72.07 MB / 0.7852 GB, free: 49.4 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002524/0.898, allocations: 2.657 MB / 0.7878 GB, free: 48.21 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.002731/0.9007, allocations: 1.186 MB / 0.789 GB, free: 48.12 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001483/0.9022, allocations: 1.34 MB / 0.7903 GB, free: 47.04 MB / 458.7 MB Notification: Performance of SimCode: time 1.543e-06/0.9023, allocations: 3.062 kB / 0.7903 GB, free: 47.04 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06845/0.9707, allocations: 52.95 MB / 0.842 GB, free: 14.34 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001401/0.9709, allocations: 194.4 kB / 0.8422 GB, free: 14.11 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.914/3.885, allocations: 0 / 0.8422 GB, free: 14.11 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)