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.001117/0.001118, allocations: 176.2 kB / 8.348 MB, free: 0.7266 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.299/1.299, allocations: 221.5 MB / 230.3 MB, free: 7.574 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.0008747/0.0008747, allocations: 96.59 kB / 281.2 MB, free: 5.332 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.808e-05/1.787e-05, allocations: 4 kB / 337.1 MB, free: 9.934 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0954/0.09543, allocations: 50.42 MB / 387.6 MB, free: 7.473 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3629/0.4584, allocations: 103.9 MB / 491.5 MB, free: 6.727 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002331/0.4586, allocations: 91.89 kB / 491.6 MB, free: 6.637 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5537/1.012, allocations: 119.9 MB / 0.5972 GB, free: 94.78 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.547e-06/1.012, allocations: 0 / 0.5972 GB, free: 94.78 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003746/1.013, allocations: 125.4 kB / 0.5973 GB, free: 94.77 MB / 426.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.02145/1.034, allocations: 6.226 MB / 0.6034 GB, free: 91.92 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.574e-05/1.034, allocations: 10.88 kB / 0.6034 GB, free: 91.92 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01326/1.048, allocations: 2.762 MB / 0.6061 GB, free: 91.46 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01528/1.063, allocations: 7.242 MB / 0.6132 GB, free: 88.65 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003572/1.063, allocations: 195.6 kB / 0.6134 GB, free: 88.65 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002949/1.066, allocations: 363.7 kB / 0.6137 GB, free: 88.63 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01887/1.085, allocations: 9.838 MB / 0.6233 GB, free: 82.52 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03187/1.117, allocations: 13.61 MB / 0.6366 GB, free: 67.71 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004636/1.118, allocations: 87.23 kB / 0.6367 GB, free: 67.62 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002891/1.12, allocations: 32 kB / 0.6367 GB, free: 67.59 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002237/1.123, allocations: 1.466 MB / 0.6382 GB, free: 66.12 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08706/1.21, allocations: 66.63 MB / 0.7032 GB, free: 14.39 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01651/1.226, allocations: 6.454 MB / 0.7095 GB, free: 7.793 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.01163/1.238, allocations: 4.879 MB / 0.7143 GB, free: 2.902 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002378/1.241, allocations: 1.287 MB / 0.7156 GB, free: 1.41 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.3439/1.584, allocations: 4.823 MB / 0.7203 GB, free: 103.2 MB / 442.7 MB Notification: Performance of pre-optimization done (n=297): time 1.336e-05/1.585, allocations: 0 / 0.7203 GB, free: 103.2 MB / 442.7 MB Notification: Performance of matching and sorting (n=389): time 0.1091/1.694, allocations: 39.09 MB / 0.7584 GB, free: 97.41 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.039e-05/1.694, allocations: 164.3 kB / 0.7586 GB, free: 97.25 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009015/1.703, allocations: 3.884 MB / 0.7624 GB, free: 95.8 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001379/1.704, allocations: 35.22 kB / 0.7624 GB, free: 95.77 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.004086/1.708, allocations: 4.067 MB / 0.7664 GB, free: 92.68 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002628/1.711, allocations: 1.377 MB / 0.7677 GB, free: 91.65 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001655/1.713, allocations: 0 / 0.7677 GB, free: 91.65 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.000957/1.714, allocations: 0.6627 MB / 0.7684 GB, free: 91.19 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00713/1.721, allocations: 4.415 MB / 0.7727 GB, free: 89.44 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009929/1.731, allocations: 8.786 MB / 0.7813 GB, free: 81.86 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01021/1.741, allocations: 6.193 MB / 0.7873 GB, free: 79.64 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002527/1.741, allocations: 43.34 kB / 0.7874 GB, free: 79.64 MB / 442.7 MB Notification: Performance of matching and sorting (n=1101) (initialization): time 0.05825/1.8, allocations: 18.2 MB / 0.8051 GB, free: 65.41 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003986/1.8, allocations: 73.41 kB / 0.8052 GB, free: 65.34 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005301/1.801, allocations: 155.3 kB / 0.8054 GB, free: 65.19 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03102/1.832, allocations: 6.522 MB / 0.8117 GB, free: 60.58 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01163/1.843, allocations: 1.852 MB / 0.8135 GB, free: 59.01 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05059/1.894, allocations: 33.83 MB / 0.8466 GB, free: 27.24 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009941/1.904, allocations: 447.1 kB / 0.847 GB, free: 26.8 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002735/1.907, allocations: 0.5056 MB / 0.8475 GB, free: 26.3 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 702 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (939): * Single equations (assignments): 931 * 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 {(8,70.3%) 104,(1,100.0%) 24} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003942/1.911, allocations: 0.5064 MB / 0.848 GB, free: 25.79 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.03348/1.944, allocations: 13.35 MB / 0.861 GB, free: 12.39 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002781/1.947, allocations: 470 kB / 0.8615 GB, free: 11.92 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03444/1.982, allocations: 13.53 MB / 0.8747 GB, free: 14.32 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.522e-05/1.982, allocations: 40 kB / 0.8747 GB, free: 14.28 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.501e-05/1.982, allocations: 24 kB / 0.8747 GB, free: 14.26 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001328/1.982, allocations: 23.92 kB / 0.8748 GB, free: 14.23 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4002/2.382, allocations: 25.26 MB / 0.8994 GB, free: 103.7 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.884e-05/2.382, allocations: 3.906 kB / 0.8994 GB, free: 103.7 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002878/2.385, allocations: 0.5421 MB / 0.9 GB, free: 103.7 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0188/2.404, allocations: 6.216 MB / 0.906 GB, free: 103.7 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001683/2.406, allocations: 20.28 kB / 0.9061 GB, free: 103.7 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05669/2.462, allocations: 32.5 MB / 0.9378 GB, free: 90.61 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.115e-05/2.462, allocations: 9.656 kB / 0.9378 GB, free: 90.61 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04235/2.505, allocations: 19.85 MB / 0.9572 GB, free: 83.22 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002221/2.507, allocations: 0.5153 MB / 0.9577 GB, free: 83.08 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002659/2.51, allocations: 19.03 kB / 0.9577 GB, free: 83.07 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005209/2.515, allocations: 291.5 kB / 0.958 GB, free: 83.07 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002356/2.517, allocations: 275.1 kB / 0.9583 GB, free: 83.04 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001354/2.519, allocations: 106.8 kB / 0.9584 GB, free: 83.01 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.007267/2.526, allocations: 2.615 MB / 0.9609 GB, free: 80.8 MB / 458.7 MB Notification: Performance of sort global known variables: time 3.5e-07/2.526, allocations: 0 / 0.9609 GB, free: 80.8 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01405/2.54, allocations: 1.67 MB / 0.9625 GB, free: 79.15 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (242): * Single equations (assignments): 232 * 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 {(7,75.5%) 102,(1,100.0%) 21} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.04235/2.583, allocations: 21.47 MB / 0.9835 GB, free: 61.3 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.02022/2.603, allocations: 11.59 MB / 0.9948 GB, free: 50.85 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.217e-05/2.603, allocations: 4 kB / 0.9948 GB, free: 50.84 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01009/2.613, allocations: 5.515 MB / 1 GB, free: 45.48 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004835/2.618, allocations: 491.3 kB / 1.001 GB, free: 45.02 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04937/2.667, allocations: 16.08 MB / 1.016 GB, free: 28.95 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009387/2.677, allocations: 4.688 MB / 1.021 GB, free: 24.24 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.007806/2.685, allocations: 2.563 MB / 1.023 GB, free: 21.68 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005288/2.69, allocations: 2.753 MB / 1.026 GB, free: 18.93 MB / 458.7 MB Notification: Performance of SimCode: time 1.523e-06/2.69, allocations: 0 / 1.026 GB, free: 18.93 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5654/3.255, allocations: 141.2 MB / 1.164 GB, free: 49.56 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001474/3.256, allocations: 202.6 kB / 1.164 GB, free: 49.36 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.156/9.411, allocations: 0 / 1.164 GB, free: 49.36 MB / 474.7 MB (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