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.002211/0.002211, allocations: 178.9 kB / 13.65 MB, free: 1.66 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.094/2.094, allocations: 205.2 MB / 219.4 MB, free: 14.26 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.001144/0.001143, allocations: 86.7 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.353e-05/3.366e-05, allocations: 8 kB / 321.6 MB, free: 17.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1103/0.1104, allocations: 47.58 MB / 369.2 MB, free: 2.102 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4839/0.5944, allocations: 89.27 MB / 458.5 MB, free: 4.105 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003205/0.5948, allocations: 95.17 kB / 458.6 MB, free: 4.055 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2747/0.8695, allocations: 59.3 MB / 0.5057 GB, free: 10.02 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.156e-06/0.8696, allocations: 0 / 0.5057 GB, free: 10.02 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001604/0.8697, allocations: 48 kB / 0.5058 GB, free: 9.969 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: 947 * Number of variables: 947 Notification: Performance of Generate backend data structure: time 0.01496/0.8847, allocations: 2.928 MB / 0.5086 GB, free: 6.984 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.473e-05/0.8848, allocations: 8.031 kB / 0.5086 GB, free: 6.977 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002983/0.8878, allocations: 494.2 kB / 0.5091 GB, free: 6.484 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02269/0.9105, allocations: 1.939 MB / 0.511 GB, free: 4.539 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02102/0.9316, allocations: 3.466 MB / 0.5144 GB, free: 1.02 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004475/0.9322, allocations: 180.8 kB / 0.5146 GB, free: 0.8398 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002294/0.9345, allocations: 243.9 kB / 0.5148 GB, free: 0.6016 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03085/0.9654, allocations: 7.277 MB / 0.5219 GB, free: 8.465 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003101/0.9658, allocations: 51.47 kB / 0.5219 GB, free: 8.414 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001928/0.9677, allocations: 127.9 kB / 0.5221 GB, free: 8.289 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00271/0.9705, allocations: 0.7339 MB / 0.5228 GB, free: 7.559 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02729/0.9979, allocations: 6.191 MB / 0.5288 GB, free: 1.359 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4824/1.48, allocations: 36.9 MB / 0.5649 GB, free: 77.65 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01846/1.499, allocations: 3.006 MB / 0.5678 GB, free: 76.96 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003418/1.502, allocations: 1.408 MB / 0.5692 GB, free: 76.92 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01086/1.513, allocations: 4.212 MB / 0.5733 GB, free: 75.06 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.749e-05/1.513, allocations: 49.56 kB / 0.5733 GB, free: 75.01 MB / 410.7 MB Notification: Performance of pre-optimization done (n=116): time 5.2e-06/1.513, allocations: 0 / 0.5733 GB, free: 75.01 MB / 410.7 MB Notification: Performance of matching and sorting (n=150): time 0.1083/1.622, allocations: 18.52 MB / 0.5914 GB, free: 70.52 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.251e-05/1.622, allocations: 178.7 kB / 0.5916 GB, free: 70.33 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006038/1.628, allocations: 2.573 MB / 0.5941 GB, free: 69.4 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005459/1.629, allocations: 41.23 kB / 0.5941 GB, free: 69.36 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001891/1.63, allocations: 2.116 MB / 0.5962 GB, free: 67.76 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001202/1.632, allocations: 0.5831 MB / 0.5968 GB, free: 67.34 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007431/1.632, allocations: 95.84 kB / 0.5969 GB, free: 67.27 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003452/1.633, allocations: 0.5191 MB / 0.5974 GB, free: 66.87 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005982/1.639, allocations: 2.305 MB / 0.5996 GB, free: 66.02 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007986/1.647, allocations: 5.251 MB / 0.6048 GB, free: 61.16 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008169/1.655, allocations: 3.429 MB / 0.6081 GB, free: 59.93 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001347/1.655, allocations: 29.69 kB / 0.6081 GB, free: 59.93 MB / 410.7 MB Notification: Performance of matching and sorting (n=635) (initialization): time 0.04542/1.701, allocations: 11.05 MB / 0.6189 GB, free: 54.07 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.291e-05/1.701, allocations: 53 kB / 0.619 GB, free: 54.02 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001603/1.701, allocations: 104 kB / 0.6191 GB, free: 53.91 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02631/1.727, allocations: 4.116 MB / 0.6231 GB, free: 51.21 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007099/1.735, allocations: 1.123 MB / 0.6242 GB, free: 50.09 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0359/1.771, allocations: 13.68 MB / 0.6375 GB, free: 36.28 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007041/1.778, allocations: 349.8 kB / 0.6379 GB, free: 35.94 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00137/1.779, allocations: 342 kB / 0.6382 GB, free: 35.61 MB / 410.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 () * 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.001317/1.78, allocations: 478.5 kB / 0.6387 GB, free: 35.13 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008686/1.781, allocations: 248.7 kB / 0.6389 GB, free: 34.89 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0333/1.815, allocations: 6.903 MB / 0.6456 GB, free: 27.95 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.722e-05/1.815, allocations: 16 kB / 0.6457 GB, free: 27.93 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.803e-05/1.815, allocations: 8 kB / 0.6457 GB, free: 27.93 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.585e-05/1.815, allocations: 19.23 kB / 0.6457 GB, free: 27.91 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05566/1.87, allocations: 14.2 MB / 0.6595 GB, free: 13.66 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.778e-05/1.871, allocations: 4 kB / 0.6596 GB, free: 13.66 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002164/1.873, allocations: 223.6 kB / 0.6598 GB, free: 13.44 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02805/1.901, allocations: 4.686 MB / 0.6643 GB, free: 8.73 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005765/1.901, allocations: 43.95 kB / 0.6644 GB, free: 8.688 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0385/1.94, allocations: 13.77 MB / 0.6778 GB, free: 10.78 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.437e-06/1.94, allocations: 4 kB / 0.6778 GB, free: 10.78 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3477/2.288, allocations: 11.02 MB / 0.6886 GB, free: 109.6 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0011/2.289, allocations: 339.4 kB / 0.6889 GB, free: 109.5 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001036/2.29, allocations: 36.45 kB / 0.689 GB, free: 109.5 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004046/2.294, allocations: 199.9 kB / 0.6891 GB, free: 109.5 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009289/2.295, allocations: 113.1 kB / 0.6892 GB, free: 109.5 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002981/2.295, allocations: 51.91 kB / 0.6893 GB, free: 109.5 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.005342/2.301, allocations: 1.78 MB / 0.691 GB, free: 109.4 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.262e-06/2.301, allocations: 1.281 kB / 0.691 GB, free: 109.4 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.006967/2.308, allocations: 0.8589 MB / 0.6919 GB, free: 109.4 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 () * 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.04644/2.354, allocations: 12.02 MB / 0.7036 GB, free: 107.9 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 was selected as a continuous variable. [/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 was selected as a continuous variable. Notification: Performance of simCode: created initialization part: time 0.01936/2.374, allocations: 6.656 MB / 0.7101 GB, free: 107.1 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.506e-06/2.374, allocations: 0 / 0.7101 GB, free: 107.1 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01049/2.384, allocations: 3.154 MB / 0.7132 GB, free: 106.3 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00253/2.387, allocations: 261.9 kB / 0.7134 GB, free: 106.3 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02137/2.408, allocations: 7.568 MB / 0.7208 GB, free: 103.8 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003045/2.411, allocations: 2.387 MB / 0.7232 GB, free: 102.8 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002756/2.414, allocations: 1.194 MB / 0.7243 GB, free: 101.9 MB / 426.7 MB Notification: Performance of SimCode: time 1.402e-06/2.414, allocations: 0 / 0.7243 GB, free: 101.9 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.889/7.303, allocations: 140.4 MB / 0.8614 GB, free: 110.5 MB / 426.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