Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheelSetPulling.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) 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(Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheelSetPulling,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_RollingWheelSetPulling",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheelSetPulling,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_RollingWheelSetPulling",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.001821/0.001821, allocations: 180.4 kB / 16.38 MB, free: 5.766 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.334/1.334, allocations: 223.2 MB / 240.3 MB, free: 10.18 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.0008738/0.0008737, allocations: 94.83 kB / 291.5 MB, free: 10.72 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002717/0.0002717, allocations: 7.984 kB / 351.2 MB, free: 15.02 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2559/0.2561, allocations: 50.4 MB / 401.6 MB, free: 32.56 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.134/0.3902, allocations: 104.7 MB / 0.4944 GB, free: 7.723 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003018/0.3906, allocations: 95.94 kB / 0.4945 GB, free: 7.629 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5314/0.922, allocations: 122.4 MB / 0.6141 GB, free: 14.32 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.695e-06/0.922, allocations: 4 kB / 0.6141 GB, free: 14.32 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.000486/0.9225, allocations: 127.9 kB / 0.6142 GB, free: 14.19 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2047 * Number of variables: 2047 Notification: Performance of Generate backend data structure: time 0.0254/0.948, allocations: 6.6 MB / 0.6206 GB, free: 7.508 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.745e-05/0.948, allocations: 8.031 kB / 0.6206 GB, free: 7.5 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005265/0.9533, allocations: 1.03 MB / 0.6216 GB, free: 6.461 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01441/0.9677, allocations: 2.761 MB / 0.6243 GB, free: 3.688 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0202/0.988, allocations: 7.285 MB / 0.6315 GB, free: 12.34 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005522/0.9886, allocations: 460 kB / 0.6319 GB, free: 11.89 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00343/0.992, allocations: 0.5895 MB / 0.6325 GB, free: 11.3 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03951/1.032, allocations: 15.71 MB / 0.6478 GB, free: 10.38 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003465/1.032, allocations: 79.25 kB / 0.6479 GB, free: 10.3 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001936/1.034, allocations: 287.9 kB / 0.6482 GB, free: 10.02 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002255/1.036, allocations: 1.462 MB / 0.6496 GB, free: 8.551 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3028/1.339, allocations: 13.6 MB / 0.6629 GB, free: 62.9 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07918/1.418, allocations: 68.77 MB / 0.73 GB, free: 27.56 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01838/1.437, allocations: 7.663 MB / 0.7375 GB, free: 24.88 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0217/1.458, allocations: 14.35 MB / 0.7515 GB, free: 17.66 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01614/1.475, allocations: 5.644 MB / 0.757 GB, free: 16.3 MB / 426.7 MB Notification: Performance of pre-optimization done (n=292): time 1.037e-05/1.475, allocations: 0 / 0.757 GB, free: 16.3 MB / 426.7 MB Notification: Performance of matching and sorting (n=388): time 0.1819/1.657, allocations: 57.22 MB / 0.8129 GB, free: 8.176 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001826/1.657, allocations: 244.2 kB / 0.8131 GB, free: 7.887 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008781/1.666, allocations: 4.548 MB / 0.8176 GB, free: 3.344 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001575/1.667, allocations: 85.73 kB / 0.8177 GB, free: 3.258 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004924/1.672, allocations: 4.025 MB / 0.8216 GB, free: 15.24 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002835/1.675, allocations: 1.422 MB / 0.823 GB, free: 13.83 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008678/1.676, allocations: 165.6 kB / 0.8231 GB, free: 13.67 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0005299/1.676, allocations: 0.6533 MB / 0.8238 GB, free: 13.01 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007171/1.684, allocations: 4.635 MB / 0.8283 GB, free: 8.363 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3231/2.007, allocations: 8.915 MB / 0.837 GB, free: 101.6 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01168/2.018, allocations: 6.366 MB / 0.8432 GB, free: 101.5 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0003159/2.019, allocations: 42.69 kB / 0.8433 GB, free: 101.5 MB / 474.7 MB Notification: Performance of matching and sorting (n=1075) (initialization): time 0.04547/2.064, allocations: 19.33 MB / 0.8622 GB, free: 100.8 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001332/2.064, allocations: 69.38 kB / 0.8622 GB, free: 100.8 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002032/2.065, allocations: 150.2 kB / 0.8624 GB, free: 100.8 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01784/2.083, allocations: 6.585 MB / 0.8688 GB, free: 100.8 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006415/2.089, allocations: 1.806 MB / 0.8706 GB, free: 100.6 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04495/2.134, allocations: 37.17 MB / 0.9069 GB, free: 87.98 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007938/2.142, allocations: 0.588 MB / 0.9074 GB, free: 87.85 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002206/2.144, allocations: 0.4951 MB / 0.9079 GB, free: 87.78 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 680 * Number of states: 0 () * Number of discrete variables: 59 ($whenCondition1,$PRE.combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEvent,$PRE.combiTimeTable.nextTimeEventScaled,combiTimeTable.nextTimeEventScaled,shape.color[3],shape.color[2],shape.color[1],fixedTranslation.color[3],fixedTranslation.color[2],fixedTranslation.color[1],body.sphereColor[3],body.sphereColor[2],body.sphereColor[1],wheelSet.wheelSetJoint.revolute2.cylinderColor[3],wheelSet.wheelSetJoint.revolute2.cylinderColor[2],wheelSet.wheelSetJoint.revolute2.cylinderColor[1],wheelSet.wheelSetJoint.revolute1.cylinderColor[3],wheelSet.wheelSetJoint.revolute1.cylinderColor[2],wheelSet.wheelSetJoint.revolute1.cylinderColor[1],wheelSet.wheelSetJoint.rod2.color[3],wheelSet.wheelSetJoint.rod2.color[2],wheelSet.wheelSetJoint.rod2.color[1],wheelSet.wheelSetJoint.revolute.cylinderColor[3],wheelSet.wheelSetJoint.revolute.cylinderColor[2],wheelSet.wheelSetJoint.revolute.cylinderColor[1],wheelSet.wheelSetJoint.prismatic2.boxColor[3],wheelSet.wheelSetJoint.prismatic2.boxColor[2],wheelSet.wheelSetJoint.prismatic2.boxColor[1],wheelSet.wheelSetJoint.prismatic1.boxColor[3],wheelSet.wheelSetJoint.prismatic1.boxColor[2],wheelSet.wheelSetJoint.prismatic1.boxColor[1],wheelSet.wheelSetJoint.rod1.color[3],wheelSet.wheelSetJoint.rod1.color[2],wheelSet.wheelSetJoint.rod1.color[1],wheelSet.wheelSetJoint.fixed.color[3],wheelSet.wheelSetJoint.fixed.color[2],wheelSet.wheelSetJoint.fixed.color[1],wheelSet.body1.sphereColor[3],wheelSet.body1.sphereColor[2],wheelSet.body1.sphereColor[1],wheelSet.body2.sphereColor[3],wheelSet.body2.sphereColor[2],wheelSet.body2.sphereColor[1],world.groundColor[3],world.groundColor[2],world.groundColor[1],world.gravityArrowColor[3],world.gravityArrowColor[2],world.gravityArrowColor[1],world.axisColor_x[3],world.axisColor_x[2],world.axisColor_x[1],world.gravitySphereColor[3],world.gravitySphereColor[2],world.gravitySphereColor[1],force.color[3],force.color[2],force.color[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (913): * Single equations (assignments): 905 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 3 {(2,100.0%),(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(7,75.5%) 105,(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006622/2.151, allocations: 3.018 MB / 0.9109 GB, free: 86.41 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001173/2.152, allocations: 497.9 kB / 0.9113 GB, free: 86.41 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02683/2.179, allocations: 14.03 MB / 0.925 GB, free: 78.68 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.841e-05/2.179, allocations: 42.42 kB / 0.9251 GB, free: 78.64 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.174e-05/2.179, allocations: 29.5 kB / 0.9251 GB, free: 78.61 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.883e-05/2.179, allocations: 21.53 kB / 0.9251 GB, free: 78.61 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04881/2.228, allocations: 26.79 MB / 0.9513 GB, free: 57.34 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.668e-05/2.228, allocations: 4 kB / 0.9513 GB, free: 57.34 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002805/2.231, allocations: 0.5432 MB / 0.9518 GB, free: 56.92 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01761/2.248, allocations: 6.406 MB / 0.9581 GB, free: 52.48 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0012/2.25, allocations: 83.11 kB / 0.9582 GB, free: 52.41 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04254/2.292, allocations: 35.84 MB / 0.9932 GB, free: 17.43 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.558e-06/2.292, allocations: 4 kB / 0.9932 GB, free: 17.43 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3095/2.602, allocations: 20.59 MB / 1.013 GB, free: 94.6 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002281/2.604, allocations: 0.5753 MB / 1.014 GB, free: 94.5 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001827/2.606, allocations: 72.45 kB / 1.014 GB, free: 94.5 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003698/2.61, allocations: 350.7 kB / 1.014 GB, free: 94.5 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001204/2.611, allocations: 280.3 kB / 1.015 GB, free: 94.5 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000352/2.611, allocations: 104.3 kB / 1.015 GB, free: 94.5 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.005313/2.617, allocations: 3.255 MB / 1.018 GB, free: 94.32 MB / 474.7 MB Notification: Performance of sort global known variables: time 4.71e-07/2.617, allocations: 0 / 1.018 GB, free: 94.32 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.01062/2.627, allocations: 1.922 MB / 1.02 GB, free: 94.32 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 7 (wheelSet.x,wheelSet.y,wheelSet.phi,wheelSet.theta1,wheelSet.theta2,wheelSet.der_theta1,wheelSet.der_theta2) * Number of discrete variables: 3 ($whenCondition1,combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Number of discrete states: 2 (combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (241): * Single equations (assignments): 231 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 3 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 3 {(2,100.0%),(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(10,63.0%) 99,(1,100.0%) 21} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.04911/2.676, allocations: 22.3 MB / 1.041 GB, free: 91.95 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.03145/2.708, allocations: 12.19 MB / 1.053 GB, free: 91.21 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.066e-05/2.708, allocations: 0 / 1.053 GB, free: 91.21 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0128/2.721, allocations: 5.891 MB / 1.059 GB, free: 88.92 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004451/2.725, allocations: 0.6115 MB / 1.06 GB, free: 88.66 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3882/3.114, allocations: 168 MB / 1.224 GB, free: 103.5 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006442/3.12, allocations: 4.695 MB / 1.228 GB, free: 102.7 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.006851/3.127, allocations: 2.526 MB / 1.231 GB, free: 102.6 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004861/3.132, allocations: 2.775 MB / 1.234 GB, free: 102.6 MB / 0.4948 GB Notification: Performance of SimCode: time 1.012e-05/3.132, allocations: 0 / 1.234 GB, free: 102.6 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4821/3.614, allocations: 151.7 MB / 1.382 GB, free: 126.5 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002309/3.614, allocations: 260.3 kB / 1.382 GB, free: 126.1 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.338/9.952, allocations: 3.281 kB / 1.382 GB, free: 126.1 MB / 0.4948 GB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheelSetPulling.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheelSetPulling.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheelSetPulling.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheelSetPulling.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheelSetPulling_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_RollingWheelSetPulling_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_RollingWheelSetPulling.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheelSetPulling.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheelSetPulling_res.mat does not exist to compare? outputFormat=mat