Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.ElasticBearing.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.Rotational.Examples.ElasticBearing,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_ElasticBearing",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.ElasticBearing,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_ElasticBearing",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.001341/0.001341, allocations: 179.9 kB / 17.02 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.437/1.437, 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.000835/0.0008347, allocations: 85.31 kB / 271.5 MB, free: 8.375 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002538/0.0002538, allocations: 4 kB / 328.3 MB, free: 15.45 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2422/0.2425, allocations: 47.58 MB / 375.9 MB, free: 45.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08755/0.3301, allocations: 77.93 MB / 453.8 MB, free: 2.723 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002216/0.3303, allocations: 71.97 kB / 453.9 MB, free: 2.652 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01143/0.3418, allocations: 4.344 MB / 458.3 MB, free: 14.29 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.024e-06/0.3418, allocations: 0 / 458.3 MB, free: 14.29 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.43e-05/0.3418, allocations: 4 kB / 458.3 MB, free: 14.29 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.0007475/0.3426, allocations: 0.5069 MB / 458.8 MB, free: 13.73 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.889e-05/0.3427, allocations: 12.03 kB / 458.8 MB, free: 13.72 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.86e-05/0.3427, allocations: 62.53 kB / 458.8 MB, free: 13.65 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.876e-05/0.3428, allocations: 23.72 kB / 458.9 MB, free: 13.62 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002591/0.3431, allocations: 235.7 kB / 459.1 MB, free: 13.35 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.812e-05/0.3431, allocations: 16.56 kB / 459.1 MB, free: 13.34 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.364e-05/0.3431, allocations: 27.91 kB / 459.1 MB, free: 13.31 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004253/0.3436, allocations: 228.9 kB / 459.4 MB, free: 13.08 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.902e-05/0.3436, allocations: 4 kB / 459.4 MB, free: 13.07 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.192e-05/0.3436, allocations: 8 kB / 459.4 MB, free: 13.07 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.997e-06/0.3436, allocations: 8 kB / 459.4 MB, free: 13.06 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003879/0.344, allocations: 186.1 kB / 459.6 MB, free: 12.88 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001133/0.3452, allocations: 0.761 MB / 460.3 MB, free: 12.06 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004879/0.3457, allocations: 223.5 kB / 460.5 MB, free: 11.84 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.802e-05/0.3457, allocations: 8.375 kB / 460.5 MB, free: 11.83 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.107e-05/0.3457, allocations: 38.56 kB / 460.6 MB, free: 11.78 MB / 346.7 MB Notification: Performance of pre-optimization done (n=26): time 1.573e-06/0.3457, allocations: 0 / 460.6 MB, free: 11.78 MB / 346.7 MB Notification: Performance of matching and sorting (n=28): time 0.001753/0.3475, allocations: 0.9879 MB / 461.6 MB, free: 10.71 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.849e-05/0.3476, allocations: 63.34 kB / 461.6 MB, free: 10.63 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001389/0.3477, allocations: 144.3 kB / 461.8 MB, free: 10.48 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.73e-05/0.3477, allocations: 33.7 kB / 461.8 MB, free: 10.45 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.326e-05/0.3478, allocations: 136.6 kB / 461.9 MB, free: 10.31 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.296e-05/0.3479, allocations: 94.56 kB / 462 MB, free: 10.21 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.269e-05/0.3479, allocations: 8 kB / 462 MB, free: 10.21 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001514/0.3481, allocations: 340.2 kB / 462.4 MB, free: 9.867 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001942/0.3483, allocations: 79.95 kB / 462.5 MB, free: 9.789 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000202/0.3485, allocations: 119.2 kB / 462.6 MB, free: 9.66 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002052/0.3487, allocations: 95.98 kB / 462.7 MB, free: 9.566 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.042e-06/0.3487, allocations: 0 / 462.7 MB, free: 9.566 MB / 346.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004686/0.3492, allocations: 281.8 kB / 462.9 MB, free: 9.285 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.105e-05/0.3492, allocations: 12 kB / 463 MB, free: 9.273 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.771e-06/0.3493, allocations: 0 / 463 MB, free: 9.273 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.77e-05/0.3493, allocations: 4 kB / 463 MB, free: 9.27 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002943/0.3496, allocations: 75.89 kB / 463 MB, free: 9.195 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.165e-06/0.3496, allocations: 0 / 463 MB, free: 9.195 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001271/0.3497, allocations: 15.98 kB / 463 MB, free: 9.18 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.82e-05/0.3498, allocations: 12 kB / 463.1 MB, free: 9.168 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001611/0.3499, allocations: 145.7 kB / 463.2 MB, free: 9.016 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.241e-05/0.35, allocations: 19.77 kB / 463.2 MB, free: 8.996 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.107e-05/0.35, allocations: 30.55 kB / 463.2 MB, free: 8.965 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.605e-06/0.3501, allocations: 0 / 463.2 MB, free: 8.965 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.69e-06/0.3501, allocations: 4 kB / 463.3 MB, free: 8.961 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.889e-06/0.3501, allocations: 0 / 463.3 MB, free: 8.961 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009692/0.351, allocations: 0.6638 MB / 463.9 MB, free: 8.234 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.087e-06/0.3511, allocations: 4 kB / 463.9 MB, free: 8.23 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003262/0.3514, allocations: 72.03 kB / 464 MB, free: 8.16 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.589e-06/0.3514, allocations: 7.938 kB / 464 MB, free: 8.152 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.926e-05/0.3514, allocations: 4 kB / 464 MB, free: 8.148 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.539e-06/0.3514, allocations: 7.984 kB / 464 MB, free: 8.141 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.866e-06/0.3515, allocations: 3.938 kB / 464 MB, free: 8.137 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006977/0.3522, allocations: 477.1 kB / 464.5 MB, free: 7.637 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.739e-05/0.3522, allocations: 92.83 kB / 464.6 MB, free: 7.527 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.287e-05/0.3523, allocations: 12.06 kB / 464.6 MB, free: 7.516 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001403/0.3524, allocations: 15.98 kB / 464.6 MB, free: 7.5 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.901e-05/0.3525, allocations: 19.97 kB / 464.6 MB, free: 7.48 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.281e-05/0.3525, allocations: 7.953 kB / 464.6 MB, free: 7.473 MB / 346.7 MB Notification: Performance of sorting global known variables: time 7.957e-05/0.3526, allocations: 119.2 kB / 464.7 MB, free: 7.355 MB / 346.7 MB Notification: Performance of sort global known variables: time 1e-07/0.3526, allocations: 0 / 464.7 MB, free: 7.355 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002889/0.3529, allocations: 56 kB / 464.8 MB, free: 7.301 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 6 (shaft.phi,shaft.w,load.phi,load.w,springDamper.phi_rel,springDamper.w_rel) * 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 (28): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001024/0.3539, allocations: 1.148 MB / 465.9 MB, free: 6.113 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0004662/0.3544, allocations: 217.1 kB / 466.2 MB, free: 5.902 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.3544, allocations: 0 / 466.2 MB, free: 5.902 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001973/0.3546, allocations: 112.9 kB / 466.3 MB, free: 5.793 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003061/0.3549, allocations: 38.53 kB / 466.3 MB, free: 5.758 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002785/0.3577, allocations: 2.193 MB / 468.5 MB, free: 3.5 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003446/0.3581, allocations: 0.7563 MB / 469.3 MB, free: 2.719 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 9.175e-05/0.3582, allocations: 21.94 kB / 469.3 MB, free: 2.695 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001101/0.3583, allocations: 79.28 kB / 469.4 MB, free: 2.617 MB / 346.7 MB Notification: Performance of SimCode: time 7.21e-07/0.3583, allocations: 0 / 469.4 MB, free: 2.617 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01503/0.3733, allocations: 4.016 MB / 473.4 MB, free: 14.63 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001701/0.3735, allocations: 188 kB / 473.6 MB, free: 14.39 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.618/1.991, allocations: 0 / 473.6 MB, free: 14.39 MB / 362.7 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.ElasticBearing.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.ElasticBearing_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_ElasticBearing_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_ElasticBearing.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.ElasticBearing_res.mat does not exist to compare? outputFormat=mat