Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_RollingWheel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_RollingWheel",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001528/0.001528, allocations: 186.2 kB / 16.4 MB, free: 5.746 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.904/1.904, allocations: 205.4 MB / 222.5 MB, free: 9.121 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001107/0.001107, allocations: 88.44 kB / 270.9 MB, free: 8.375 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003893/0.0003892, allocations: 8 kB / 327.1 MB, free: 108 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3323/0.3327, allocations: 47.57 MB / 374.6 MB, free: 45.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1473/0.4801, allocations: 89.37 MB / 464 MB, free: 7.355 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003306/0.4805, allocations: 87.95 kB / 464.1 MB, free: 7.27 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5229/1.003, allocations: 59.29 MB / 0.5111 GB, free: 94.33 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.567e-06/1.003, allocations: 0 / 0.5111 GB, free: 94.33 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001364/1.004, allocations: 43.44 kB / 0.5112 GB, free: 94.33 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: 947 * Number of variables: 947 Notification: Performance of Generate backend data structure: time 0.01455/1.018, allocations: 3.053 MB / 0.5141 GB, free: 93.03 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.866e-05/1.018, allocations: 10.88 kB / 0.5142 GB, free: 93.03 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002452/1.021, allocations: 490.1 kB / 0.5146 GB, free: 92.97 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01547/1.036, allocations: 1.946 MB / 0.5165 GB, free: 92.79 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01338/1.05, allocations: 3.472 MB / 0.5199 GB, free: 91.87 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003335/1.05, allocations: 188.3 kB / 0.5201 GB, free: 91.86 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002073/1.052, allocations: 243.8 kB / 0.5203 GB, free: 91.85 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02526/1.077, allocations: 7.322 MB / 0.5275 GB, free: 86.28 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002276/1.078, allocations: 55.47 kB / 0.5275 GB, free: 86.23 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001139/1.079, allocations: 126.5 kB / 0.5276 GB, free: 86.12 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002189/1.081, allocations: 0.7299 MB / 0.5284 GB, free: 85.4 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01878/1.1, allocations: 6.29 MB / 0.5345 GB, free: 79.12 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05062/1.151, allocations: 36.9 MB / 0.5705 GB, free: 41.19 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01136/1.162, allocations: 3.029 MB / 0.5735 GB, free: 38 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009172/1.171, allocations: 4.209 MB / 0.5776 GB, free: 33.66 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.677e-05/1.171, allocations: 51.11 kB / 0.5777 GB, free: 33.61 MB / 378.7 MB Notification: Performance of pre-optimization done (n=116): time 5.25e-06/1.171, allocations: 0 / 0.5777 GB, free: 33.61 MB / 378.7 MB Notification: Performance of matching and sorting (n=150): time 0.1411/1.312, allocations: 23.24 MB / 0.6003 GB, free: 10.21 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.027e-05/1.313, allocations: 179.2 kB / 0.6005 GB, free: 10 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005653/1.318, allocations: 2.597 MB / 0.6031 GB, free: 7.395 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005059/1.319, allocations: 45.7 kB / 0.6031 GB, free: 7.344 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001685/1.32, allocations: 2.11 MB / 0.6052 GB, free: 5.238 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000995/1.322, allocations: 0.5836 MB / 0.6057 GB, free: 4.66 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007453/1.322, allocations: 96 kB / 0.6058 GB, free: 4.566 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002974/1.323, allocations: 0.5134 MB / 0.6063 GB, free: 4.043 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00539/1.328, allocations: 2.34 MB / 0.6086 GB, free: 1.695 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008812/1.337, allocations: 5.294 MB / 0.6138 GB, free: 10.92 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009097/1.346, allocations: 3.436 MB / 0.6171 GB, free: 7.484 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001013/1.346, allocations: 36 kB / 0.6172 GB, free: 7.449 MB / 394.7 MB Notification: Performance of matching and sorting (n=635) (initialization): time 0.04943/1.396, allocations: 11.17 MB / 0.6281 GB, free: 12.25 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000106/1.396, allocations: 48 kB / 0.6281 GB, free: 12.2 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001912/1.396, allocations: 104 kB / 0.6282 GB, free: 12.1 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02908/1.425, allocations: 4.183 MB / 0.6323 GB, free: 7.891 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007493/1.433, allocations: 1.123 MB / 0.6334 GB, free: 6.766 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04424/1.477, allocations: 14.24 MB / 0.6473 GB, free: 8.395 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00688/1.484, allocations: 351.6 kB / 0.6476 GB, free: 8.051 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001536/1.485, allocations: 339.1 kB / 0.648 GB, free: 7.723 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 478 * Number of states: 0 () * Number of discrete variables: 15 (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],wheel1.body.sphereColor[3],wheel1.body.sphereColor[2],wheel1.body.sphereColor[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (575): * Single equations (assignments): 565 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 6 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 6 {(2,100.0%),(2,100.0%),(2,100.0%),(3,88.9%),(3,88.9%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(10,60.0%) 19} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.005174/1.491, allocations: 1.479 MB / 0.6494 GB, free: 6.234 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009404/1.492, allocations: 252.7 kB / 0.6496 GB, free: 5.984 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.331/1.823, allocations: 6.959 MB / 0.6564 GB, free: 125.7 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.578e-05/1.823, allocations: 15.66 kB / 0.6565 GB, free: 125.7 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.632e-05/1.823, allocations: 11.66 kB / 0.6565 GB, free: 125.7 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.082e-05/1.823, allocations: 7.406 kB / 0.6565 GB, free: 125.7 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07738/1.9, allocations: 14.27 MB / 0.6704 GB, free: 124.8 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.463e-05/1.9, allocations: 3 kB / 0.6704 GB, free: 124.8 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002125/1.903, allocations: 226 kB / 0.6706 GB, free: 124.8 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02909/1.932, allocations: 4.803 MB / 0.6753 GB, free: 124.4 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005634/1.932, allocations: 51.98 kB / 0.6754 GB, free: 124.4 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03815/1.97, allocations: 14.38 MB / 0.6894 GB, free: 118.6 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.026e-05/1.971, allocations: 9.453 kB / 0.6894 GB, free: 118.6 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04276/2.013, allocations: 11.13 MB / 0.7003 GB, free: 114.2 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001008/2.014, allocations: 341.4 kB / 0.7006 GB, free: 114.1 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008036/2.015, allocations: 36.75 kB / 0.7006 GB, free: 114.1 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003471/2.019, allocations: 198.1 kB / 0.7008 GB, free: 114 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007037/2.019, allocations: 111.5 kB / 0.7009 GB, free: 113.9 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002403/2.02, allocations: 49.2 kB / 0.701 GB, free: 113.9 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.003956/2.024, allocations: 1.808 MB / 0.7028 GB, free: 112.1 MB / 426.7 MB Notification: Performance of sort global known variables: time 9.32e-07/2.024, allocations: 0 / 0.7028 GB, free: 112.1 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00572/2.029, allocations: 0.8595 MB / 0.7036 GB, free: 111.2 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 8 (wheel1.x,wheel1.y,wheel1.angles[1],wheel1.angles[2],wheel1.angles[3],wheel1.der_angles[1],wheel1.der_angles[2],wheel1.der_angles[3]) * 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 (100): * Single equations (assignments): 90 * Array equations: 3 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 6 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 6 {(2,100.0%),(2,100.0%),(3,88.9%),(2,100.0%),(3,88.9%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(8,65.6%) 17} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.04155/2.071, allocations: 12.13 MB / 0.7154 GB, free: 99.12 MB / 426.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Mechanics/MultiBody/Parts.mo:2605:5-2609:74:writable] Warning: Variable $DER.wheel1.der_angles[2] has attribute stateSelect=StateSelect.always, but can't be selected as a state. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Mechanics/MultiBody/Parts.mo:2605:5-2609:74:writable] Warning: Variable $DER.wheel1.der_angles[1] has attribute stateSelect=StateSelect.always, but can't be selected as a state. Notification: Performance of simCode: created initialization part: time 0.01837/2.089, allocations: 6.709 MB / 0.722 GB, free: 92.41 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.554e-06/2.089, allocations: 2.953 kB / 0.722 GB, free: 92.41 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01036/2.1, allocations: 3.192 MB / 0.7251 GB, free: 89.09 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002345/2.102, allocations: 273.7 kB / 0.7254 GB, free: 88.84 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4399/2.542, allocations: 102.3 MB / 0.8253 GB, free: 140.9 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004753/2.547, allocations: 2.381 MB / 0.8276 GB, free: 140.1 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003647/2.551, allocations: 1.199 MB / 0.8288 GB, free: 140.1 MB / 442.7 MB Notification: Performance of SimCode: time 1.383e-06/2.551, allocations: 0 / 0.8288 GB, free: 140.1 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.441/6.992, allocations: 140.6 MB / 0.9661 GB, free: 28.02 MB / 442.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_RollingWheel_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_MultiBody_Examples_Elementary_RollingWheel.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel_res.mat does not exist to compare? outputFormat=mat