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.001002/0.001002, allocations: 180.1 kB / 16.38 MB, free: 5.766 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.337/1.337, allocations: 223.2 MB / 240.3 MB, free: 11.89 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009036/0.0009033, allocations: 94.22 kB / 291.5 MB, free: 10.93 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002834/0.0002835, allocations: 8 kB / 351.2 MB, free: 15.22 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2457/0.246, allocations: 50.41 MB / 401.6 MB, free: 32.59 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1162/0.3623, allocations: 90.84 MB / 492.4 MB, free: 5.613 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002924/0.3626, allocations: 91.95 kB / 492.5 MB, free: 5.523 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4029/0.7655, allocations: 60.08 MB / 0.5396 GB, free: 73.69 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.697e-06/0.7656, allocations: 0 / 0.5396 GB, free: 73.69 MB / 378.7 MB Notification: Performance of Transformations before backend: time 9.778e-05/0.7657, allocations: 51.98 kB / 0.5397 GB, free: 73.64 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.009917/0.7756, allocations: 3.038 MB / 0.5427 GB, free: 70.54 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.371e-05/0.7757, allocations: 8.031 kB / 0.5427 GB, free: 70.53 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001342/0.777, allocations: 0.4904 MB / 0.5432 GB, free: 70.03 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0076/0.7846, allocations: 1.939 MB / 0.545 GB, free: 68.09 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009691/0.7944, allocations: 3.318 MB / 0.5483 GB, free: 64.72 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001383/0.7946, allocations: 185.8 kB / 0.5485 GB, free: 64.54 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00118/0.7958, allocations: 251.8 kB / 0.5487 GB, free: 64.29 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01143/0.8072, allocations: 7.324 MB / 0.5559 GB, free: 56.11 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001047/0.8074, allocations: 43.62 kB / 0.5559 GB, free: 56.06 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003626/0.8077, allocations: 127.9 kB / 0.556 GB, free: 55.94 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008713/0.8086, allocations: 0.7338 MB / 0.5567 GB, free: 55.2 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009573/0.8182, allocations: 6.287 MB / 0.5629 GB, free: 48.91 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03552/0.8538, allocations: 36.87 MB / 0.5989 GB, free: 10.82 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005993/0.8598, allocations: 3.009 MB / 0.6018 GB, free: 7.66 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00564/0.8655, allocations: 4.194 MB / 0.6059 GB, free: 3.316 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.489e-05/0.8656, allocations: 43.12 kB / 0.606 GB, free: 3.266 MB / 378.7 MB Notification: Performance of pre-optimization done (n=116): time 3.987e-06/0.8656, allocations: 0 / 0.606 GB, free: 3.266 MB / 378.7 MB Notification: Performance of matching and sorting (n=150): time 0.07606/0.9417, allocations: 23.19 MB / 0.6286 GB, free: 11.89 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001314/0.9419, allocations: 171.2 kB / 0.6288 GB, free: 11.69 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00503/0.9469, allocations: 2.585 MB / 0.6313 GB, free: 9.09 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006027/0.9475, allocations: 45.7 kB / 0.6313 GB, free: 9.039 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001909/0.9495, allocations: 2.11 MB / 0.6334 GB, free: 6.895 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009951/0.9505, allocations: 0.5901 MB / 0.634 GB, free: 6.297 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002968/0.9508, allocations: 96 kB / 0.6341 GB, free: 6.203 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000341/0.9511, allocations: 0.5086 MB / 0.6346 GB, free: 5.688 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003483/0.9546, allocations: 2.348 MB / 0.6369 GB, free: 3.332 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005817/0.9604, allocations: 5.29 MB / 0.642 GB, free: 12.55 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005128/0.9656, allocations: 3.442 MB / 0.6454 GB, free: 9.117 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.226e-05/0.9657, allocations: 28.28 kB / 0.6454 GB, free: 9.09 MB / 426.7 MB Notification: Performance of matching and sorting (n=635) (initialization): time 0.0272/0.9929, allocations: 11.22 MB / 0.6564 GB, free: 13.83 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.238e-05/0.993, allocations: 52.09 kB / 0.6564 GB, free: 13.78 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000108/0.9931, allocations: 107.9 kB / 0.6565 GB, free: 13.68 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01502/1.008, allocations: 4.18 MB / 0.6606 GB, free: 9.469 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004059/1.012, allocations: 1.123 MB / 0.6617 GB, free: 8.344 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2705/1.283, allocations: 14.24 MB / 0.6756 GB, free: 123.1 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004658/1.287, allocations: 357.4 kB / 0.676 GB, free: 123.1 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000847/1.288, allocations: 334 kB / 0.6763 GB, free: 123.1 MB / 442.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.002693/1.291, allocations: 1.469 MB / 0.6777 GB, free: 123 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006242/1.292, allocations: 249 kB / 0.6779 GB, free: 123 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01847/1.31, allocations: 6.958 MB / 0.6847 GB, free: 122.8 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.254e-05/1.31, allocations: 19.09 kB / 0.6848 GB, free: 122.8 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.666e-05/1.31, allocations: 7.531 kB / 0.6848 GB, free: 122.8 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.296e-05/1.31, allocations: 7.609 kB / 0.6848 GB, free: 122.8 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03008/1.34, allocations: 14.28 MB / 0.6987 GB, free: 118.5 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.779e-05/1.34, allocations: 3.375 kB / 0.6987 GB, free: 118.5 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001123/1.342, allocations: 229 kB / 0.6989 GB, free: 118.5 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01429/1.356, allocations: 4.8 MB / 0.7036 GB, free: 117.8 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004493/1.356, allocations: 43.72 kB / 0.7037 GB, free: 117.8 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02003/1.376, allocations: 14.39 MB / 0.7177 GB, free: 110.7 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/1.377, allocations: 3.953 kB / 0.7177 GB, free: 110.7 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0215/1.398, allocations: 11.13 MB / 0.7286 GB, free: 100.7 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001017/1.399, allocations: 342.9 kB / 0.7289 GB, free: 100.3 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005964/1.4, allocations: 37.39 kB / 0.729 GB, free: 100.3 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001814/1.402, allocations: 199.7 kB / 0.7291 GB, free: 100.1 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004813/1.402, allocations: 112 kB / 0.7292 GB, free: 99.97 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001592/1.402, allocations: 52.45 kB / 0.7293 GB, free: 99.92 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002673/1.405, allocations: 1.794 MB / 0.731 GB, free: 98.12 MB / 442.7 MB Notification: Performance of sort global known variables: time 4.71e-07/1.405, allocations: 0 / 0.731 GB, free: 98.12 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004896/1.41, allocations: 0.8597 MB / 0.7319 GB, free: 97.27 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 () * 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.02139/1.431, allocations: 12.14 MB / 0.7437 GB, free: 85.14 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 can't be selected as a state. [/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 can't be selected as a state. Notification: Performance of simCode: created initialization part: time 0.01103/1.442, allocations: 6.714 MB / 0.7503 GB, free: 78.59 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.633e-06/1.442, allocations: 0 / 0.7503 GB, free: 78.59 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005434/1.448, allocations: 3.187 MB / 0.7534 GB, free: 75.27 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001709/1.449, allocations: 266.8 kB / 0.7537 GB, free: 75.02 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2799/1.729, allocations: 102 MB / 0.8532 GB, free: 141.2 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002014/1.731, allocations: 2.37 MB / 0.8555 GB, free: 140.4 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.003564/1.735, allocations: 1.561 MB / 0.8571 GB, free: 140.4 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001382/1.736, allocations: 1.148 MB / 0.8582 GB, free: 140.4 MB / 458.7 MB Notification: Performance of SimCode: time 9.62e-07/1.736, allocations: 0 / 0.8582 GB, free: 140.4 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0933/1.83, allocations: 70.71 MB / 0.9272 GB, free: 86.83 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001561/1.83, allocations: 213.3 kB / 0.9275 GB, free: 86.59 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.767/5.597, allocations: 2.953 kB / 0.9275 GB, free: 86.59 MB / 458.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