Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_RollingWheel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001426/0.001426, allocations: 175.2 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.44/1.44, allocations: 221.3 MB / 235.5 MB, free: 2.949 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001014/0.001014, allocations: 88.05 kB / 286.5 MB, free: 252 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.048e-05/3.06e-05, allocations: 4 kB / 343.9 MB, free: 4.227 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1136/0.1136, allocations: 50.4 MB / 394.3 MB, free: 1.785 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4165/0.5302, allocations: 90.78 MB / 485.1 MB, free: 12.72 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003182/0.5306, allocations: 83.95 kB / 485.2 MB, free: 12.64 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1623/0.6928, allocations: 60.12 MB / 0.5325 GB, free: 72 kB / 410.7 MB Notification: Performance of FrontEnd: time 2.805e-06/0.6929, allocations: 4 kB / 0.5325 GB, free: 68 kB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001718/0.6931, allocations: 44 kB / 0.5326 GB, free: 24 kB / 410.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.01245/0.7055, allocations: 2.92 MB / 0.5354 GB, free: 13.05 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.9e-05/0.7056, allocations: 8.031 kB / 0.5354 GB, free: 13.04 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002487/0.7081, allocations: 0.4903 MB / 0.5359 GB, free: 12.54 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009307/0.7174, allocations: 1.939 MB / 0.5378 GB, free: 10.59 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009787/0.7273, allocations: 3.302 MB / 0.541 GB, free: 7.242 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002969/0.7276, allocations: 181.1 kB / 0.5412 GB, free: 7.062 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001675/0.7293, allocations: 247.8 kB / 0.5414 GB, free: 6.82 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.302/1.031, allocations: 7.276 MB / 0.5486 GB, free: 102.6 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001668/1.032, allocations: 46.11 kB / 0.5486 GB, free: 102.6 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005632/1.032, allocations: 125.1 kB / 0.5487 GB, free: 102.6 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001444/1.034, allocations: 0.7361 MB / 0.5494 GB, free: 102.6 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01417/1.048, allocations: 6.198 MB / 0.5555 GB, free: 102.6 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04574/1.094, allocations: 36.89 MB / 0.5915 GB, free: 77.44 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006272/1.1, allocations: 3.003 MB / 0.5944 GB, free: 76.15 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001698/1.102, allocations: 1.409 MB / 0.5958 GB, free: 75.52 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006779/1.108, allocations: 4.192 MB / 0.5999 GB, free: 73.08 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.51e-05/1.109, allocations: 49.94 kB / 0.6 GB, free: 73.03 MB / 426.7 MB Notification: Performance of pre-optimization done (n=116): time 9.598e-06/1.109, allocations: 0 / 0.6 GB, free: 73.03 MB / 426.7 MB Notification: Performance of matching and sorting (n=150): time 0.06197/1.171, allocations: 18.47 MB / 0.618 GB, free: 68.45 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.061e-05/1.171, allocations: 169.7 kB / 0.6182 GB, free: 68.26 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005401/1.176, allocations: 2.562 MB / 0.6207 GB, free: 67.32 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005044/1.177, allocations: 45.27 kB / 0.6207 GB, free: 67.27 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001645/1.178, allocations: 2.116 MB / 0.6228 GB, free: 65.62 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009566/1.179, allocations: 0.5932 MB / 0.6233 GB, free: 65.2 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005941/1.18, allocations: 98.5 kB / 0.6234 GB, free: 65.12 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002798/1.18, allocations: 0.5075 MB / 0.6239 GB, free: 64.73 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003314/1.183, allocations: 2.302 MB / 0.6262 GB, free: 63.89 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004802/1.188, allocations: 5.255 MB / 0.6313 GB, free: 58.94 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004878/1.193, allocations: 3.424 MB / 0.6347 GB, free: 57.62 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001775/1.193, allocations: 32.47 kB / 0.6347 GB, free: 57.61 MB / 426.7 MB Notification: Performance of matching and sorting (n=635) (initialization): time 0.02697/1.22, allocations: 11.12 MB / 0.6455 GB, free: 48.82 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001427/1.221, allocations: 48 kB / 0.6456 GB, free: 48.77 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000214/1.221, allocations: 104.9 kB / 0.6457 GB, free: 48.67 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01481/1.236, allocations: 4.108 MB / 0.6497 GB, free: 45.04 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004655/1.24, allocations: 1.128 MB / 0.6508 GB, free: 43.91 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02115/1.262, allocations: 13.68 MB / 0.6642 GB, free: 30.11 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005462/1.267, allocations: 352.1 kB / 0.6645 GB, free: 29.76 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001398/1.269, allocations: 332.8 kB / 0.6648 GB, free: 29.44 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 () * 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.001804/1.27, allocations: 480.7 kB / 0.6653 GB, free: 28.96 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009056/1.271, allocations: 248.8 kB / 0.6655 GB, free: 28.71 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01763/1.289, allocations: 6.896 MB / 0.6722 GB, free: 21.77 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.006e-05/1.289, allocations: 16.94 kB / 0.6723 GB, free: 21.76 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.496e-05/1.289, allocations: 15.94 kB / 0.6723 GB, free: 21.74 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.359e-05/1.289, allocations: 7.984 kB / 0.6723 GB, free: 21.73 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03351/1.323, allocations: 14.19 MB / 0.6861 GB, free: 7.492 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.588e-05/1.323, allocations: 4 kB / 0.6861 GB, free: 7.488 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001223/1.324, allocations: 223.7 kB / 0.6864 GB, free: 7.27 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01406/1.338, allocations: 4.679 MB / 0.6909 GB, free: 2.562 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005713/1.339, allocations: 41.67 kB / 0.691 GB, free: 2.523 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02342/1.362, allocations: 13.77 MB / 0.7044 GB, free: 4.605 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.532e-06/1.362, allocations: 7.875 kB / 0.7044 GB, free: 4.602 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.3035/1.666, allocations: 11.01 MB / 0.7152 GB, free: 110 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001492/1.667, allocations: 334.7 kB / 0.7155 GB, free: 109.9 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007452/1.668, allocations: 39.38 kB / 0.7155 GB, free: 109.9 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002146/1.67, allocations: 200.7 kB / 0.7157 GB, free: 109.9 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007188/1.671, allocations: 110.8 kB / 0.7158 GB, free: 109.9 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000234/1.671, allocations: 52.52 kB / 0.7159 GB, free: 109.9 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.004615/1.676, allocations: 1.769 MB / 0.7176 GB, free: 109.7 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.9e-07/1.676, allocations: 0 / 0.7176 GB, free: 109.7 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.007254/1.683, allocations: 0.8613 MB / 0.7185 GB, free: 109.7 MB / 442.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.02718/1.71, allocations: 12.04 MB / 0.7302 GB, free: 108.2 MB / 442.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Mechanics/MultiBody/Parts/RollingWheel.mo:33:3-37:72: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 4.0.0+maint.om/Mechanics/MultiBody/Parts/RollingWheel.mo:33:3-37:72: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.01121/1.722, allocations: 6.642 MB / 0.7367 GB, free: 107.4 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 8.827e-06/1.722, allocations: 0 / 0.7367 GB, free: 107.4 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005817/1.727, allocations: 3.154 MB / 0.7398 GB, free: 105.8 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001657/1.729, allocations: 262.4 kB / 0.74 GB, free: 105.7 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01345/1.743, allocations: 7.232 MB / 0.7471 GB, free: 103.1 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00195/1.745, allocations: 2.373 MB / 0.7494 GB, free: 102.1 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.003523/1.748, allocations: 1.57 MB / 0.7509 GB, free: 102 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001389/1.749, allocations: 1.142 MB / 0.7521 GB, free: 101.1 MB / 442.7 MB Notification: Performance of SimCode: time 6.61e-07/1.749, allocations: 2.938 kB / 0.7521 GB, free: 101.1 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09159/1.841, allocations: 70.68 MB / 0.8211 GB, free: 49.04 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001492/1.841, allocations: 192.8 kB / 0.8213 GB, free: 48.82 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.07/5.911, allocations: 0 / 0.8213 GB, free: 48.82 MB / 442.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_RollingWheel_fmu --startTime=0 --stopTime=4 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_MultiBody_Examples_Elementary_RollingWheel.fmu > Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.MultiBody.Examples.Elementary.RollingWheel_res.mat does not exist to compare? outputFormat=mat