Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.0008786/0.0008786, allocations: 181.2 kB / 17.01 MB, free: 5.121 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.286/1.286, allocations: 205.4 MB / 223.1 MB, free: 9.129 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.0008362/0.0008361, allocations: 91.77 kB / 271.5 MB, free: 8.375 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002309/0.0002309, allocations: 8 kB / 328.3 MB, free: 15.44 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2197/0.22, allocations: 47.57 MB / 375.9 MB, free: 45.65 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.104/0.324, allocations: 89.37 MB / 465.3 MB, free: 7.262 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002143/0.3243, allocations: 95.89 kB / 465.4 MB, free: 7.168 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2959/0.6201, allocations: 59.28 MB / 0.5124 GB, free: 94.67 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.903e-06/0.6202, allocations: 0 / 0.5124 GB, free: 94.67 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.784e-05/0.6203, allocations: 44.5 kB / 0.5124 GB, free: 94.67 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.006453/0.6267, allocations: 3.053 MB / 0.5154 GB, free: 93.37 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.297e-05/0.6268, allocations: 10.53 kB / 0.5154 GB, free: 93.37 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007881/0.6276, allocations: 492.9 kB / 0.5159 GB, free: 93.31 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007483/0.6351, allocations: 1.944 MB / 0.5178 GB, free: 93.12 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008466/0.6436, allocations: 3.475 MB / 0.5212 GB, free: 92.16 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001033/0.6437, allocations: 178.7 kB / 0.5213 GB, free: 92.16 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004802/0.6442, allocations: 250.9 kB / 0.5216 GB, free: 92.15 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009554/0.6537, allocations: 7.323 MB / 0.5287 GB, free: 86.17 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.003e-05/0.6538, allocations: 55.47 kB / 0.5288 GB, free: 86.12 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003016/0.6541, allocations: 122.6 kB / 0.5289 GB, free: 86.02 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007006/0.6549, allocations: 0.7336 MB / 0.5296 GB, free: 85.29 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007264/0.6621, allocations: 6.283 MB / 0.5357 GB, free: 79.01 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02506/0.6872, allocations: 36.91 MB / 0.5718 GB, free: 41.06 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005276/0.6925, allocations: 3.024 MB / 0.5747 GB, free: 37.88 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004729/0.6973, allocations: 4.214 MB / 0.5789 GB, free: 33.54 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.045e-05/0.6973, allocations: 43.12 kB / 0.5789 GB, free: 33.49 MB / 378.7 MB Notification: Performance of pre-optimization done (n=116): time 3.447e-06/0.6973, allocations: 0 / 0.5789 GB, free: 33.49 MB / 378.7 MB Notification: Performance of matching and sorting (n=150): time 0.06559/0.7629, allocations: 23.25 MB / 0.6016 GB, free: 10.09 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.487e-05/0.763, allocations: 171.2 kB / 0.6018 GB, free: 9.883 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003115/0.7661, allocations: 2.597 MB / 0.6043 GB, free: 7.273 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003429/0.7665, allocations: 48.52 kB / 0.6043 GB, free: 7.223 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001094/0.7676, allocations: 2.114 MB / 0.6064 GB, free: 5.109 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005835/0.7682, allocations: 0.5921 MB / 0.607 GB, free: 4.523 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002324/0.7684, allocations: 100 kB / 0.6071 GB, free: 4.426 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002335/0.7686, allocations: 0.5047 MB / 0.6076 GB, free: 3.914 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002597/0.7712, allocations: 2.34 MB / 0.6099 GB, free: 1.566 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005061/0.7763, allocations: 5.29 MB / 0.615 GB, free: 10.79 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004631/0.781, allocations: 3.443 MB / 0.6184 GB, free: 7.352 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.649e-05/0.781, allocations: 28 kB / 0.6184 GB, free: 7.324 MB / 394.7 MB Notification: Performance of matching and sorting (n=635) (initialization): time 0.02661/0.8076, allocations: 11.23 MB / 0.6294 GB, free: 12.06 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.506e-05/0.8078, allocations: 52 kB / 0.6294 GB, free: 12.01 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001162/0.8079, allocations: 104 kB / 0.6295 GB, free: 11.91 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01498/0.8229, allocations: 4.184 MB / 0.6336 GB, free: 7.703 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003648/0.8266, allocations: 1.119 MB / 0.6347 GB, free: 6.582 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02215/0.8487, allocations: 14.25 MB / 0.6486 GB, free: 8.203 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003923/0.8527, allocations: 351.4 kB / 0.649 GB, free: 7.859 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004836/0.8532, allocations: 334.3 kB / 0.6493 GB, free: 7.535 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.002096/0.8553, allocations: 1.477 MB / 0.6507 GB, free: 6.047 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004272/0.8557, allocations: 256.7 kB / 0.651 GB, free: 5.793 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1804/1.036, allocations: 6.948 MB / 0.6577 GB, free: 126 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.168e-05/1.036, allocations: 27 kB / 0.6578 GB, free: 126 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.974e-05/1.036, allocations: 7.781 kB / 0.6578 GB, free: 126 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.577e-05/1.036, allocations: 7.781 kB / 0.6578 GB, free: 126 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0302/1.066, allocations: 14.27 MB / 0.6717 GB, free: 125.1 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.182e-05/1.067, allocations: 5.938 kB / 0.6717 GB, free: 125.1 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001067/1.068, allocations: 231.3 kB / 0.672 GB, free: 125.1 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01433/1.082, allocations: 4.805 MB / 0.6766 GB, free: 124.7 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002423/1.082, allocations: 41.69 kB / 0.6767 GB, free: 124.7 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0183/1.101, allocations: 14.38 MB / 0.6907 GB, free: 118.9 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/1.101, allocations: 3.562 kB / 0.6907 GB, free: 118.9 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02027/1.121, allocations: 11.13 MB / 0.7016 GB, free: 114.3 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008099/1.122, allocations: 334.7 kB / 0.7019 GB, free: 114.1 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003438/1.122, allocations: 38.02 kB / 0.702 GB, free: 114 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001608/1.124, allocations: 206.4 kB / 0.7021 GB, free: 113.8 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003716/1.124, allocations: 108.8 kB / 0.7023 GB, free: 113.7 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001426/1.124, allocations: 48.47 kB / 0.7023 GB, free: 113.7 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002224/1.126, allocations: 1.805 MB / 0.7041 GB, free: 111.9 MB / 426.7 MB Notification: Performance of sort global known variables: time 7.92e-07/1.126, allocations: 0 / 0.7041 GB, free: 111.9 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.00337/1.13, allocations: 0.8601 MB / 0.7049 GB, free: 111 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.02051/1.15, allocations: 12.13 MB / 0.7167 GB, free: 98.91 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.009581/1.16, allocations: 6.716 MB / 0.7233 GB, free: 92.2 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.859e-06/1.16, allocations: 0 / 0.7233 GB, free: 92.2 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005076/1.165, allocations: 3.182 MB / 0.7264 GB, free: 88.89 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001399/1.166, allocations: 266.8 kB / 0.7267 GB, free: 88.63 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2186/1.385, allocations: 102 MB / 0.8263 GB, free: 141.1 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002477/1.388, allocations: 2.381 MB / 0.8286 GB, free: 140.3 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.003832/1.391, allocations: 1.555 MB / 0.8301 GB, free: 140.3 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001455/1.393, allocations: 1.152 MB / 0.8313 GB, free: 140.3 MB / 442.7 MB Notification: Performance of SimCode: time 1.242e-06/1.393, allocations: 3.875 kB / 0.8313 GB, free: 140.3 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08454/1.477, allocations: 70.81 MB / 0.9004 GB, free: 95.64 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001395/1.478, allocations: 218.4 kB / 0.9006 GB, free: 95.39 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.309/4.787, allocations: 4 kB / 0.9006 GB, free: 95.39 MB / 442.7 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_RollingWheel_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_MultiBody_Examples_Elementary_RollingWheel.fmu > Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel_res.mat does not exist to compare? outputFormat=mat