Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheelSetDriving.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.RollingWheelSetDriving,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_RollingWheelSetDriving",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheelSetDriving,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_RollingWheelSetDriving",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.001836/0.001836, allocations: 177.1 kB / 13.64 MB, free: 1.672 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.49/1.49, 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.0009564/0.0009565, allocations: 94.95 kB / 286.5 MB, free: 260 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.559e-05/3.569e-05, allocations: 4 kB / 343.9 MB, free: 4.242 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1244/0.1244, allocations: 50.4 MB / 394.3 MB, free: 1.801 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3962/0.5207, allocations: 99.4 MB / 493.7 MB, free: 4.109 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003392/0.5211, allocations: 91.94 kB / 493.8 MB, free: 4.02 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.606/1.127, allocations: 116.3 MB / 0.5958 GB, free: 95.6 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.835e-06/1.127, allocations: 0 / 0.5958 GB, free: 95.6 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0004273/1.128, allocations: 116.8 kB / 0.5959 GB, free: 95.6 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: 1959 * Number of variables: 1959 Notification: Performance of Generate backend data structure: time 0.0231/1.151, allocations: 5.961 MB / 0.6017 GB, free: 92.91 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.979e-05/1.151, allocations: 6.906 kB / 0.6018 GB, free: 92.91 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004026/1.155, allocations: 0.9863 MB / 0.6027 GB, free: 92.43 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01326/1.168, allocations: 2.73 MB / 0.6054 GB, free: 91.98 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01691/1.185, allocations: 7.075 MB / 0.6123 GB, free: 88.85 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000434/1.186, allocations: 442 kB / 0.6127 GB, free: 88.67 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003306/1.189, allocations: 0.5651 MB / 0.6133 GB, free: 88.5 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0357/1.225, allocations: 14.95 MB / 0.6279 GB, free: 75.38 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004221/1.225, allocations: 79.3 kB / 0.6279 GB, free: 75.3 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002518/1.228, allocations: 272.7 kB / 0.6282 GB, free: 75.07 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002246/1.23, allocations: 1.437 MB / 0.6296 GB, free: 73.64 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02746/1.257, allocations: 13.01 MB / 0.6423 GB, free: 60.61 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08134/1.339, allocations: 65.69 MB / 0.7065 GB, free: 9.617 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02034/1.359, allocations: 7.354 MB / 0.7136 GB, free: 2.098 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.3422/1.701, allocations: 4.829 MB / 0.7184 GB, free: 103.6 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0295/1.731, allocations: 13.95 MB / 0.732 GB, free: 101.4 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.859e-05/1.731, allocations: 63.95 kB / 0.732 GB, free: 101.3 MB / 442.7 MB Notification: Performance of pre-optimization done (n=282): time 9.087e-06/1.731, allocations: 0.7812 kB / 0.732 GB, free: 101.3 MB / 442.7 MB Notification: Performance of matching and sorting (n=373): time 0.1273/1.858, allocations: 41 MB / 0.7721 GB, free: 92.19 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.997e-05/1.859, allocations: 198.5 kB / 0.7723 GB, free: 92 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006561/1.865, allocations: 4.202 MB / 0.7764 GB, free: 90.43 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.001266/1.866, allocations: 79.89 kB / 0.7765 GB, free: 90.35 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002199/1.869, allocations: 3.743 MB / 0.7801 GB, free: 87.47 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001922/1.871, allocations: 1.348 MB / 0.7814 GB, free: 86.46 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005075/1.871, allocations: 159.3 kB / 0.7816 GB, free: 86.34 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0003349/1.871, allocations: 0.6365 MB / 0.7822 GB, free: 85.9 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005332/1.877, allocations: 4.363 MB / 0.7865 GB, free: 83.57 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00716/1.884, allocations: 8.399 MB / 0.7947 GB, free: 73.94 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008154/1.892, allocations: 6.042 MB / 0.8006 GB, free: 68.8 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.711e-05/1.892, allocations: 40 kB / 0.8006 GB, free: 68.77 MB / 442.7 MB Notification: Performance of matching and sorting (n=1019) (initialization): time 0.04935/1.942, allocations: 18.53 MB / 0.8187 GB, free: 53.25 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001705/1.942, allocations: 64 kB / 0.8188 GB, free: 53.19 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002943/1.942, allocations: 143.2 kB / 0.8189 GB, free: 53.05 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02896/1.971, allocations: 6.662 MB / 0.8254 GB, free: 46.38 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01049/1.982, allocations: 1.708 MB / 0.8271 GB, free: 44.66 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06814/2.05, allocations: 35.32 MB / 0.8616 GB, free: 9.086 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01096/2.061, allocations: 0.576 MB / 0.8621 GB, free: 8.512 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002232/2.063, allocations: 477.6 kB / 0.8626 GB, free: 8.047 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 640 * Number of states: 0 () * Number of discrete variables: 51 (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]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (860): * Single equations (assignments): 852 * 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 {(9,67.9%) 100,(2,100.0%) 23} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001936/2.065, allocations: 0.6732 MB / 0.8632 GB, free: 7.367 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001453/2.067, allocations: 474 kB / 0.8637 GB, free: 6.898 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03955/2.106, allocations: 13.56 MB / 0.8769 GB, free: 9.27 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.923e-05/2.106, allocations: 40.78 kB / 0.877 GB, free: 9.23 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.552e-05/2.106, allocations: 24 kB / 0.877 GB, free: 9.207 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.343e-05/2.106, allocations: 19.94 kB / 0.877 GB, free: 9.188 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4453/2.552, allocations: 25.76 MB / 0.9022 GB, free: 103.4 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.776e-05/2.552, allocations: 3.906 kB / 0.9022 GB, free: 103.4 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002581/2.554, allocations: 0.5225 MB / 0.9027 GB, free: 103.4 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02197/2.576, allocations: 6.263 MB / 0.9088 GB, free: 103.3 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001682/2.578, allocations: 68.84 kB / 0.9089 GB, free: 103.3 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06981/2.648, allocations: 32.58 MB / 0.9407 GB, free: 90.22 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.109e-05/2.648, allocations: 6.812 kB / 0.9407 GB, free: 90.22 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05705/2.705, allocations: 20.05 MB / 0.9603 GB, free: 80.55 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002465/2.708, allocations: 0.5424 MB / 0.9608 GB, free: 80.27 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002344/2.71, allocations: 72.2 kB / 0.9609 GB, free: 80.21 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007776/2.718, allocations: 348.8 kB / 0.9612 GB, free: 80 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00272/2.721, allocations: 264.9 kB / 0.9614 GB, free: 79.85 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001376/2.722, allocations: 96.56 kB / 0.9615 GB, free: 79.76 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.009942/2.732, allocations: 3.013 MB / 0.9645 GB, free: 77.09 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.693e-06/2.732, allocations: 3.219 kB / 0.9645 GB, free: 77.09 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.01493/2.747, allocations: 1.829 MB / 0.9663 GB, free: 75.27 MB / 458.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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (226): * Single equations (assignments): 218 * 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%) 98,(1,100.0%) 21} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.04039/2.787, allocations: 21.46 MB / 0.9872 GB, free: 57.23 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01954/2.807, allocations: 11.66 MB / 0.9986 GB, free: 46.09 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.095e-05/2.807, allocations: 4 kB / 0.9986 GB, free: 46.09 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009042/2.816, allocations: 5.586 MB / 1.004 GB, free: 40.41 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006451/2.823, allocations: 0.5705 MB / 1.005 GB, free: 39.88 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04812/2.871, allocations: 15.86 MB / 1.02 GB, free: 24.05 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006689/2.878, allocations: 4.492 MB / 1.025 GB, free: 19.56 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.005984/2.884, allocations: 2.403 MB / 1.027 GB, free: 17.17 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003512/2.887, allocations: 2.628 MB / 1.029 GB, free: 14.54 MB / 458.7 MB Notification: Performance of SimCode: time 4.098e-06/2.887, allocations: 0 / 1.029 GB, free: 14.54 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4876/3.375, allocations: 145.6 MB / 1.172 GB, free: 42.32 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001512/3.375, allocations: 198.8 kB / 1.172 GB, free: 42.09 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.24/9.615, allocations: 0 / 1.172 GB, free: 42.09 MB / 474.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheelSetDriving.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheelSetDriving.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheelSetDriving.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheelSetDriving.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheelSetDriving_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_RollingWheelSetDriving_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_RollingWheelSetDriving.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheelSetDriving.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheelSetDriving_res.mat does not exist to compare? outputFormat=mat