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.002074/0.002074, allocations: 178.4 kB / 8.362 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.064/2.064, allocations: 205.3 MB / 214.1 MB, free: 14.09 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00111/0.001109, allocations: 89.58 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.449e-05/2.46e-05, allocations: 4 kB / 314.9 MB, free: 9.062 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3509/0.351, allocations: 47.56 MB / 362.4 MB, free: 45.7 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1522/0.5033, allocations: 88.62 MB / 451.1 MB, free: 13.58 MB / 347.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004024/0.5038, allocations: 83.95 kB / 451.1 MB, free: 13.5 MB / 347.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.2623/0.7661, allocations: 58.5 MB / 0.4977 GB, free: 2.648 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.615e-06/0.7661, allocations: 0 / 0.4977 GB, free: 2.648 MB / 395.1 MB Notification: Performance of Transformations before backend: time 0.0001567/0.7663, allocations: 48 kB / 0.4977 GB, free: 2.602 MB / 395.1 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.2935/1.06, allocations: 2.927 MB / 0.5006 GB, free: 98.7 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.82e-05/1.06, allocations: 10.56 kB / 0.5006 GB, free: 98.7 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01603/1.076, allocations: 1.941 MB / 0.5025 GB, free: 98.53 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01492/1.091, allocations: 3.444 MB / 0.5059 GB, free: 98.28 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002522/1.091, allocations: 78.03 kB / 0.5059 GB, free: 98.28 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002028/1.093, allocations: 145.8 kB / 0.5061 GB, free: 98.28 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01156/1.105, allocations: 4.288 MB / 0.5103 GB, free: 98.26 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01616/1.121, allocations: 6.588 MB / 0.5167 GB, free: 96.04 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000169/1.121, allocations: 48.75 kB / 0.5167 GB, free: 96.03 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006121/1.122, allocations: 30.02 kB / 0.5168 GB, free: 96.03 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001529/1.123, allocations: 0.7389 MB / 0.5175 GB, free: 96.03 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04879/1.172, allocations: 35.63 MB / 0.5523 GB, free: 69.7 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003967/1.176, allocations: 2.318 MB / 0.5545 GB, free: 68.33 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002384/1.179, allocations: 1.366 MB / 0.5559 GB, free: 67.71 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009737/1.18, allocations: 0.6345 MB / 0.5565 GB, free: 67.12 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.825e-05/1.18, allocations: 47.05 kB / 0.5565 GB, free: 67.07 MB / 395.1 MB Notification: Performance of pre-optimization done (n=120): time 3.978e-06/1.18, allocations: 0 / 0.5565 GB, free: 67.07 MB / 395.1 MB Notification: Performance of matching and sorting (n=152): time 0.06806/1.248, allocations: 15.82 MB / 0.572 GB, free: 61.64 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.532e-05/1.248, allocations: 148.5 kB / 0.5721 GB, free: 61.47 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004762/1.253, allocations: 2.299 MB / 0.5744 GB, free: 59.44 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005305/1.253, allocations: 25.7 kB / 0.5744 GB, free: 59.41 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001865/1.255, allocations: 2.183 MB / 0.5765 GB, free: 57.39 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001078/1.256, allocations: 0.5787 MB / 0.5771 GB, free: 56.88 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007007/1.257, allocations: 0 / 0.5771 GB, free: 56.88 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0003486/1.257, allocations: 0.5229 MB / 0.5776 GB, free: 56.41 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005189/1.263, allocations: 2.26 MB / 0.5798 GB, free: 54.39 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007127/1.27, allocations: 5.328 MB / 0.585 GB, free: 47.85 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007689/1.278, allocations: 3.409 MB / 0.5884 GB, free: 44.95 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001063/1.278, allocations: 36 kB / 0.5884 GB, free: 44.92 MB / 395.1 MB Notification: Performance of matching and sorting (n=664) (initialization): time 0.0428/1.321, allocations: 10.58 MB / 0.5987 GB, free: 34.93 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.786e-05/1.321, allocations: 52 kB / 0.5988 GB, free: 34.88 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001346/1.321, allocations: 118.7 kB / 0.5989 GB, free: 34.77 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.02517/1.346, allocations: 4.109 MB / 0.6029 GB, free: 30.64 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007239/1.353, allocations: 1.174 MB / 0.604 GB, free: 29.46 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03213/1.385, allocations: 12.68 MB / 0.6164 GB, free: 16.66 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006664/1.392, allocations: 267.4 kB / 0.6167 GB, free: 16.4 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001296/1.394, allocations: 347.9 kB / 0.617 GB, free: 16.06 MB / 395.1 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.00109/1.395, allocations: 376 kB / 0.6174 GB, free: 15.69 MB / 395.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.03177/1.426, allocations: 7 MB / 0.6242 GB, free: 8.652 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001115/1.428, allocations: 236.9 kB / 0.6244 GB, free: 8.418 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03137/1.459, allocations: 6.729 MB / 0.631 GB, free: 1.652 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.892e-05/1.459, allocations: 16 kB / 0.631 GB, free: 1.637 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.258e-05/1.459, allocations: 8 kB / 0.631 GB, free: 1.629 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.574e-05/1.459, allocations: 12.78 kB / 0.631 GB, free: 1.617 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05742/1.517, allocations: 13.81 MB / 0.6445 GB, free: 3.785 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.368e-05/1.517, allocations: 4 kB / 0.6445 GB, free: 3.781 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002153/1.519, allocations: 223.7 kB / 0.6447 GB, free: 3.562 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02925/1.548, allocations: 4.663 MB / 0.6493 GB, free: 14.88 MB / 427.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000533/1.549, allocations: 23.97 kB / 0.6493 GB, free: 14.85 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03746/1.586, allocations: 12.69 MB / 0.6617 GB, free: 2.039 MB / 427.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.086e-05/1.586, allocations: 3.984 kB / 0.6617 GB, free: 2.035 MB / 427.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3309/1.917, allocations: 10.82 MB / 0.6723 GB, free: 118 MB / 427.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009079/1.918, allocations: 318.1 kB / 0.6726 GB, free: 118 MB / 427.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007218/1.919, allocations: 14.09 kB / 0.6726 GB, free: 118 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003235/1.922, allocations: 178.4 kB / 0.6728 GB, free: 118 MB / 427.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005675/1.923, allocations: 107.9 kB / 0.6729 GB, free: 117.9 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002488/1.923, allocations: 49.77 kB / 0.6729 GB, free: 117.9 MB / 427.1 MB Notification: Performance of sorting global known variables: time 0.003362/1.926, allocations: 1.523 MB / 0.6744 GB, free: 117.8 MB / 427.1 MB Notification: Performance of sort global known variables: time 5.51e-07/1.926, allocations: 0 / 0.6744 GB, free: 117.8 MB / 427.1 MB Notification: Performance of remove unused functions: time 0.00729/1.934, allocations: 0.7497 MB / 0.6751 GB, free: 117.8 MB / 427.1 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.04218/1.976, allocations: 11.63 MB / 0.6865 GB, free: 116.6 MB / 427.1 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.01796/1.994, allocations: 6.523 MB / 0.6929 GB, free: 114.6 MB / 427.1 MB Notification: Performance of simCode: created event and clocks part: time 7.344e-06/1.994, allocations: 3.625 kB / 0.6929 GB, free: 114.6 MB / 427.1 MB Notification: Performance of simCode: created simulation system equations: time 0.01031/2.004, allocations: 3.141 MB / 0.6959 GB, free: 113.1 MB / 427.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002331/2.007, allocations: 217.1 kB / 0.6961 GB, free: 112.9 MB / 427.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02021/2.027, allocations: 7.375 MB / 0.7033 GB, free: 110.4 MB / 427.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002951/2.03, allocations: 2.377 MB / 0.7057 GB, free: 109.3 MB / 427.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00257/2.033, allocations: 1.194 MB / 0.7068 GB, free: 108.4 MB / 427.1 MB Notification: Performance of SimCode: time 1.212e-06/2.033, allocations: 0 / 0.7068 GB, free: 108.4 MB / 427.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.799/6.832, allocations: 138.9 MB / 0.8425 GB, free: 115.1 MB / 427.1 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