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.001131/0.001131, allocations: 175.5 kB / 13.63 MB, free: 1.684 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.445/1.445, allocations: 221.3 MB / 235.5 MB, free: 2.961 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.001052/0.001052, allocations: 90.14 kB / 286.5 MB, free: 236 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.833e-05/2.843e-05, allocations: 8 kB / 343.9 MB, free: 4.211 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1105/0.1106, allocations: 50.41 MB / 394.3 MB, free: 1.762 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3993/0.51, allocations: 104.6 MB / 499 MB, free: 14.82 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002787/0.5103, allocations: 87.95 kB / 499 MB, free: 14.74 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6095/1.12, allocations: 122.5 MB / 0.607 GB, free: 93.39 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.875e-06/1.12, allocations: 3.984 kB / 0.607 GB, free: 93.39 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0003858/1.12, allocations: 128.4 kB / 0.6071 GB, free: 93.38 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.02227/1.143, allocations: 6.229 MB / 0.6132 GB, free: 89.42 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.703e-05/1.143, allocations: 7.469 kB / 0.6132 GB, free: 89.42 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006107/1.149, allocations: 1.03 MB / 0.6142 GB, free: 88.71 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01432/1.163, allocations: 2.768 MB / 0.6169 GB, free: 87.43 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01845/1.182, allocations: 7.249 MB / 0.624 GB, free: 81.39 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000452/1.182, allocations: 456 kB / 0.6244 GB, free: 80.94 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00367/1.186, allocations: 0.5934 MB / 0.625 GB, free: 80.34 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04172/1.227, allocations: 15.59 MB / 0.6402 GB, free: 63.54 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005184/1.228, allocations: 79.25 kB / 0.6403 GB, free: 63.46 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003537/1.232, allocations: 283.9 kB / 0.6406 GB, free: 63.18 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002449/1.234, allocations: 1.47 MB / 0.642 GB, free: 61.71 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02875/1.263, allocations: 13.43 MB / 0.6551 GB, free: 48.26 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4473/1.71, allocations: 68.76 MB / 0.7223 GB, free: 60.57 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02324/1.734, allocations: 7.616 MB / 0.7297 GB, free: 59.86 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008201/1.742, allocations: 4.978 MB / 0.7346 GB, free: 59.81 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02428/1.766, allocations: 14.35 MB / 0.7486 GB, free: 57.54 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01691/1.783, allocations: 5.625 MB / 0.7541 GB, free: 57.37 MB / 442.7 MB Notification: Performance of pre-optimization done (n=292): time 7.814e-06/1.783, allocations: 0 / 0.7541 GB, free: 57.37 MB / 442.7 MB Notification: Performance of matching and sorting (n=388): time 0.1432/1.926, allocations: 44.27 MB / 0.7973 GB, free: 42.39 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001104/1.927, allocations: 254.4 kB / 0.7975 GB, free: 42.1 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007626/1.934, allocations: 4.504 MB / 0.8019 GB, free: 38.09 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001324/1.936, allocations: 82.36 kB / 0.802 GB, free: 38 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003669/1.939, allocations: 4.018 MB / 0.8059 GB, free: 34.39 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.002534/1.942, allocations: 1.422 MB / 0.8073 GB, free: 33.13 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006203/1.942, allocations: 164 kB / 0.8075 GB, free: 32.97 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0004262/1.943, allocations: 0.6583 MB / 0.8081 GB, free: 32.41 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006509/1.949, allocations: 4.563 MB / 0.8126 GB, free: 28.29 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0116/1.961, allocations: 8.845 MB / 0.8212 GB, free: 18.11 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01099/1.972, allocations: 6.343 MB / 0.8274 GB, free: 12.38 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002193/1.972, allocations: 40 kB / 0.8275 GB, free: 12.34 MB / 442.7 MB Notification: Performance of matching and sorting (n=1075) (initialization): time 0.04865/2.021, allocations: 19.19 MB / 0.8462 GB, free: 9.664 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002716/2.021, allocations: 72 kB / 0.8463 GB, free: 9.594 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003808/2.022, allocations: 148 kB / 0.8464 GB, free: 9.449 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02189/2.044, allocations: 6.578 MB / 0.8528 GB, free: 2.848 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007568/2.051, allocations: 1.809 MB / 0.8546 GB, free: 1.035 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06979/2.121, allocations: 35.61 MB / 0.8894 GB, free: 13.16 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01063/2.132, allocations: 0.59 MB / 0.89 GB, free: 12.57 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003602/2.135, allocations: 0.4921 MB / 0.8904 GB, free: 12.08 MB / 0.4948 GB 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 () * 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.004632/2.14, allocations: 0.7238 MB / 0.8911 GB, free: 11.36 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002513/2.143, allocations: 497.6 kB / 0.8916 GB, free: 10.86 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.4303/2.573, allocations: 13.95 MB / 0.9052 GB, free: 149.5 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001412/2.573, allocations: 39.89 kB / 0.9053 GB, free: 149.5 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001448/2.573, allocations: 27 kB / 0.9053 GB, free: 149.5 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001598/2.573, allocations: 19.89 kB / 0.9053 GB, free: 149.5 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.08213/2.656, allocations: 26.72 MB / 0.9314 GB, free: 148.1 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.162e-05/2.656, allocations: 3.781 kB / 0.9314 GB, free: 148.1 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003075/2.659, allocations: 0.5354 MB / 0.9319 GB, free: 148.1 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01925/2.678, allocations: 6.402 MB / 0.9382 GB, free: 148.1 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001946/2.68, allocations: 80.08 kB / 0.9383 GB, free: 148 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05595/2.736, allocations: 34.29 MB / 0.9718 GB, free: 133 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.479e-05/2.736, allocations: 9.344 kB / 0.9718 GB, free: 133 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04335/2.78, allocations: 20.47 MB / 0.9918 GB, free: 120.9 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002316/2.782, allocations: 0.576 MB / 0.9923 GB, free: 120.6 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002696/2.785, allocations: 69.09 kB / 0.9924 GB, free: 120.5 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005325/2.79, allocations: 347.6 kB / 0.9927 GB, free: 120.3 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002214/2.792, allocations: 283.7 kB / 0.993 GB, free: 120.1 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001073/2.793, allocations: 108.9 kB / 0.9931 GB, free: 120 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.007933/2.801, allocations: 3.208 MB / 0.9962 GB, free: 117.2 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.172e-06/2.801, allocations: 4 kB / 0.9962 GB, free: 117.2 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.01376/2.815, allocations: 1.915 MB / 0.9981 GB, free: 115.3 MB / 0.4948 GB 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) * 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.04322/2.858, allocations: 22.16 MB / 1.02 GB, free: 93.79 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.02309/2.882, allocations: 12.05 MB / 1.032 GB, free: 81.73 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 1.249e-05/2.882, allocations: 0 / 1.032 GB, free: 81.73 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.01194/2.894, allocations: 5.802 MB / 1.037 GB, free: 75.83 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0061/2.9, allocations: 0.6068 MB / 1.038 GB, free: 75.25 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05865/2.958, allocations: 16.79 MB / 1.054 GB, free: 58.41 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007786/2.966, allocations: 4.691 MB / 1.059 GB, free: 53.71 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.007454/2.974, allocations: 2.53 MB / 1.061 GB, free: 51.19 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006033/2.98, allocations: 2.772 MB / 1.064 GB, free: 48.42 MB / 0.4948 GB Notification: Performance of SimCode: time 1.894e-06/2.98, allocations: 3.938 kB / 1.064 GB, free: 48.42 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5642/3.544, allocations: 152.2 MB / 1.213 GB, free: 68.49 MB / 0.4948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002155/3.544, allocations: 227.7 kB / 1.213 GB, free: 68.19 MB / 0.4948 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.637/10.18, allocations: 1.531 kB / 1.213 GB, free: 68.19 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