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.00104/0.00104, allocations: 177.7 kB / 8.698 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.747/1.747, allocations: 205.3 MB / 214.4 MB, free: 1.73 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001198/0.001198, allocations: 86.22 kB / 262.5 MB, free: 1.68 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.336e-05/2.345e-05, allocations: 4 kB / 315.6 MB, free: 22.62 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1219/0.1219, allocations: 47.59 MB / 363.2 MB, free: 6.977 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4117/0.5336, allocations: 88.87 MB / 452 MB, free: 6.691 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002973/0.534, allocations: 90.19 kB / 452.1 MB, free: 6.645 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1564/0.6904, allocations: 58.49 MB / 0.4987 GB, free: 1.703 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.894e-06/0.6905, allocations: 0 / 0.4987 GB, free: 1.703 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001187/0.6906, allocations: 52 kB / 0.4987 GB, free: 1.652 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.01044/0.701, allocations: 2.923 MB / 0.5016 GB, free: 14.67 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.486e-05/0.7011, allocations: 16.03 kB / 0.5016 GB, free: 14.65 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008787/0.7099, allocations: 1.935 MB / 0.5035 GB, free: 12.71 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009674/0.7196, allocations: 3.463 MB / 0.5068 GB, free: 9.199 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001018/0.7198, allocations: 80 kB / 0.5069 GB, free: 9.121 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007221/0.7205, allocations: 140 kB / 0.5071 GB, free: 8.984 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.007491/0.728, allocations: 4.28 MB / 0.5112 GB, free: 4.699 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01123/0.7393, allocations: 6.585 MB / 0.5177 GB, free: 13.26 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001137/0.7394, allocations: 55.45 kB / 0.5177 GB, free: 13.21 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003326/0.7398, allocations: 28 kB / 0.5177 GB, free: 13.18 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001032/0.7408, allocations: 0.7339 MB / 0.5185 GB, free: 12.45 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3373/1.078, allocations: 35.62 MB / 0.5532 GB, free: 84.76 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003656/1.082, allocations: 2.322 MB / 0.5555 GB, free: 84.1 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002255/1.084, allocations: 1.363 MB / 0.5568 GB, free: 84.07 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007614/1.085, allocations: 0.6332 MB / 0.5575 GB, free: 83.51 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.2e-05/1.085, allocations: 49.73 kB / 0.5575 GB, free: 83.47 MB / 410.7 MB Notification: Performance of pre-optimization done (n=120): time 5.921e-06/1.085, allocations: 0 / 0.5575 GB, free: 83.47 MB / 410.7 MB Notification: Performance of matching and sorting (n=152): time 0.04061/1.126, allocations: 15.83 MB / 0.573 GB, free: 81.47 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.129e-05/1.126, allocations: 142 kB / 0.5731 GB, free: 81.31 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003754/1.13, allocations: 2.296 MB / 0.5753 GB, free: 80.45 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005037/1.13, allocations: 25.7 kB / 0.5754 GB, free: 80.42 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001433/1.131, allocations: 2.176 MB / 0.5775 GB, free: 78.93 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000776/1.132, allocations: 0.5792 MB / 0.5781 GB, free: 78.51 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002323/1.133, allocations: 3.719 kB / 0.5781 GB, free: 78.51 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000322/1.133, allocations: 0.5677 MB / 0.5786 GB, free: 78.09 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002733/1.136, allocations: 2.257 MB / 0.5808 GB, free: 77.23 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004683/1.14, allocations: 5.325 MB / 0.586 GB, free: 72.23 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00454/1.145, allocations: 3.403 MB / 0.5893 GB, free: 71.11 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.1e-05/1.145, allocations: 30.38 kB / 0.5894 GB, free: 71.11 MB / 410.7 MB Notification: Performance of matching and sorting (n=664) (initialization): time 0.02418/1.169, allocations: 10.63 MB / 0.5998 GB, free: 68.06 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.809e-05/1.169, allocations: 53.59 kB / 0.5998 GB, free: 68.06 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001142/1.169, allocations: 109.4 kB / 0.5999 GB, free: 68.06 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01346/1.183, allocations: 4.118 MB / 0.6039 GB, free: 67.34 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004188/1.187, allocations: 1.173 MB / 0.6051 GB, free: 66.64 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01912/1.206, allocations: 12.68 MB / 0.6175 GB, free: 56.08 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005606/1.212, allocations: 271 kB / 0.6177 GB, free: 55.89 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001397/1.213, allocations: 350.4 kB / 0.6181 GB, free: 55.56 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 502 * 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 (604): * Single equations (assignments): 594 * 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.001983/1.215, allocations: 368 kB / 0.6184 GB, free: 55.19 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01677/1.232, allocations: 7.003 MB / 0.6252 GB, free: 49.24 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001029/1.233, allocations: 233 kB / 0.6255 GB, free: 49.01 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01745/1.251, allocations: 6.721 MB / 0.632 GB, free: 42.25 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.708e-05/1.251, allocations: 17.17 kB / 0.632 GB, free: 42.23 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.431e-05/1.251, allocations: 8 kB / 0.6321 GB, free: 42.23 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.519e-05/1.251, allocations: 15.55 kB / 0.6321 GB, free: 42.21 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03077/1.282, allocations: 13.8 MB / 0.6455 GB, free: 28.41 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.475e-05/1.282, allocations: 7.719 kB / 0.6456 GB, free: 28.41 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001147/1.283, allocations: 219.7 kB / 0.6458 GB, free: 28.2 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01335/1.296, allocations: 4.673 MB / 0.6503 GB, free: 23.5 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004674/1.297, allocations: 23.97 kB / 0.6504 GB, free: 23.47 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01798/1.315, allocations: 12.69 MB / 0.6627 GB, free: 10.66 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.857e-06/1.315, allocations: 3.984 kB / 0.6627 GB, free: 10.66 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02075/1.336, allocations: 10.82 MB / 0.6733 GB, free: 15.77 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001026/1.337, allocations: 327.6 kB / 0.6736 GB, free: 15.43 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000375/1.337, allocations: 15.98 kB / 0.6736 GB, free: 15.42 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001766/1.339, allocations: 179.4 kB / 0.6738 GB, free: 15.25 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004296/1.339, allocations: 104.6 kB / 0.6739 GB, free: 15.14 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001597/1.339, allocations: 47.97 kB / 0.674 GB, free: 15.09 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.002646/1.342, allocations: 1.524 MB / 0.6754 GB, free: 13.56 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.5e-07/1.342, allocations: 0 / 0.6754 GB, free: 13.56 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004823/1.347, allocations: 0.74 MB / 0.6762 GB, free: 12.82 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (102): * Single equations (assignments): 92 * 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.02405/1.371, allocations: 11.64 MB / 0.6875 GB, free: 1.121 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.2574/1.628, allocations: 6.499 MB / 0.6939 GB, free: 118 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.035e-06/1.628, allocations: 1.031 kB / 0.6939 GB, free: 118 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.006851/1.635, allocations: 3.15 MB / 0.697 GB, free: 117.3 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00176/1.637, allocations: 213.2 kB / 0.6972 GB, free: 117.2 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0168/1.654, allocations: 7.048 MB / 0.7041 GB, free: 116.2 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002335/1.656, allocations: 2.38 MB / 0.7064 GB, free: 115.5 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.00371/1.66, allocations: 1.654 MB / 0.708 GB, free: 115.3 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001379/1.661, allocations: 1.134 MB / 0.7091 GB, free: 115.3 MB / 426.7 MB Notification: Performance of SimCode: time 9.62e-07/1.661, allocations: 3.562 kB / 0.7091 GB, free: 115.3 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1039/1.765, allocations: 67.33 MB / 0.7749 GB, free: 74.99 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001727/1.766, allocations: 147.9 kB / 0.775 GB, free: 74.8 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.944/5.71, allocations: 0 / 0.775 GB, free: 74.8 MB / 426.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