Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.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.Rotational.Examples.ElasticBearing,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_ElasticBearing",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.ElasticBearing,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_ElasticBearing",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.001322/0.001322, allocations: 181.3 kB / 16.39 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.347/1.347, allocations: 223.2 MB / 240.3 MB, free: 10.16 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.0009044/0.0009046, allocations: 98.53 kB / 291.5 MB, free: 10.7 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003238/0.0003239, allocations: 8 kB / 351.2 MB, free: 15.01 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2812/0.2816, allocations: 50.4 MB / 401.6 MB, free: 32.55 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1003/0.3819, allocations: 78.75 MB / 480.3 MB, free: 1.695 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002529/0.3822, allocations: 80.44 kB / 480.4 MB, free: 1.617 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01266/0.3949, allocations: 4.445 MB / 484.9 MB, free: 13.15 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.936e-06/0.3949, allocations: 0 / 484.9 MB, free: 13.15 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.069e-05/0.395, allocations: 8 kB / 484.9 MB, free: 13.14 MB / 362.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.0008165/0.3958, allocations: 0.5146 MB / 485.4 MB, free: 12.58 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.069e-05/0.3959, allocations: 8.031 kB / 485.4 MB, free: 12.57 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.723e-05/0.396, allocations: 62.72 kB / 485.4 MB, free: 12.5 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.036e-05/0.396, allocations: 27.66 kB / 485.5 MB, free: 12.48 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002842/0.3963, allocations: 227.2 kB / 485.7 MB, free: 12.21 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.689e-05/0.3963, allocations: 16.56 kB / 485.7 MB, free: 12.19 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.072e-05/0.3964, allocations: 31.91 kB / 485.7 MB, free: 12.16 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004585/0.3969, allocations: 232.8 kB / 486 MB, free: 11.93 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.954e-05/0.3969, allocations: 0 / 486 MB, free: 11.93 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.764e-05/0.3969, allocations: 15.94 kB / 486 MB, free: 11.91 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.337e-06/0.3969, allocations: 4 kB / 486 MB, free: 11.91 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003995/0.3973, allocations: 186.1 kB / 486.2 MB, free: 11.73 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001158/0.3985, allocations: 0.754 MB / 486.9 MB, free: 10.92 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004914/0.399, allocations: 222.7 kB / 487.1 MB, free: 10.69 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.784e-05/0.399, allocations: 4 kB / 487.1 MB, free: 10.69 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.682e-05/0.3991, allocations: 42.56 kB / 487.2 MB, free: 10.64 MB / 362.7 MB Notification: Performance of pre-optimization done (n=26): time 1.332e-06/0.3991, allocations: 0 / 487.2 MB, free: 10.64 MB / 362.7 MB Notification: Performance of matching and sorting (n=28): time 0.001727/0.4008, allocations: 0.997 MB / 488.2 MB, free: 9.555 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.577e-05/0.4009, allocations: 55.41 kB / 488.2 MB, free: 9.488 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001332/0.401, allocations: 137.8 kB / 488.4 MB, free: 9.344 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.265e-05/0.401, allocations: 29.7 kB / 488.4 MB, free: 9.309 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.857e-05/0.4011, allocations: 144.5 kB / 488.5 MB, free: 9.164 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.323e-05/0.4012, allocations: 102.5 kB / 488.6 MB, free: 9.062 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.335e-05/0.4012, allocations: 8 kB / 488.6 MB, free: 9.055 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000124/0.4014, allocations: 326.8 kB / 489 MB, free: 8.727 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001767/0.4015, allocations: 79.95 kB / 489 MB, free: 8.648 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001933/0.4017, allocations: 119.3 kB / 489.2 MB, free: 8.52 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001959/0.4019, allocations: 99.92 kB / 489.3 MB, free: 8.422 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.694e-06/0.402, allocations: 0 / 489.3 MB, free: 8.422 MB / 362.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0004731/0.4024, allocations: 274.3 kB / 489.5 MB, free: 8.148 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.72e-05/0.4025, allocations: 4 kB / 489.5 MB, free: 8.145 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.721e-06/0.4025, allocations: 0 / 489.5 MB, free: 8.145 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.732e-05/0.4025, allocations: 4 kB / 489.5 MB, free: 8.141 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003092/0.4028, allocations: 79.83 kB / 489.6 MB, free: 8.062 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.087e-05/0.4028, allocations: 7.953 kB / 489.6 MB, free: 8.055 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000132/0.403, allocations: 16.17 kB / 489.6 MB, free: 8.039 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.54e-05/0.403, allocations: 8 kB / 489.6 MB, free: 8.031 MB / 362.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.0001305/0.4031, allocations: 144.4 kB / 489.8 MB, free: 7.883 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.907e-05/0.4032, allocations: 15.81 kB / 489.8 MB, free: 7.867 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.753e-05/0.4032, allocations: 30.55 kB / 489.8 MB, free: 7.836 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.768e-06/0.4033, allocations: 4 kB / 489.8 MB, free: 7.832 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.022e-06/0.4033, allocations: 0 / 489.8 MB, free: 7.832 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.442e-06/0.4033, allocations: 3.953 kB / 489.8 MB, free: 7.828 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009528/0.4042, allocations: 0.6724 MB / 490.5 MB, free: 7.094 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.4042, allocations: 0 / 490.5 MB, free: 7.094 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003223/0.4046, allocations: 75.97 kB / 490.6 MB, free: 7.02 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.901e-06/0.4046, allocations: 4 kB / 490.6 MB, free: 7.016 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.276e-05/0.4046, allocations: 15.94 kB / 490.6 MB, free: 7 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.044e-06/0.4046, allocations: 0 / 490.6 MB, free: 7 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.4046, allocations: 0 / 490.6 MB, free: 7 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000673/0.4053, allocations: 482 kB / 491.1 MB, free: 6.496 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.774e-05/0.4054, allocations: 96.89 kB / 491.2 MB, free: 6.383 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.062e-05/0.4054, allocations: 15.98 kB / 491.2 MB, free: 6.367 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001408/0.4056, allocations: 8 kB / 491.2 MB, free: 6.359 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.021e-05/0.4056, allocations: 19.97 kB / 491.2 MB, free: 6.34 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.121e-05/0.4057, allocations: 4 kB / 491.2 MB, free: 6.336 MB / 362.7 MB Notification: Performance of sorting global known variables: time 8.148e-05/0.4057, allocations: 123.5 kB / 491.3 MB, free: 6.215 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4057, allocations: 0 / 491.3 MB, free: 6.215 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002974/0.406, allocations: 60 kB / 491.4 MB, free: 6.156 MB / 362.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.00105/0.4071, allocations: 1.145 MB / 492.5 MB, free: 4.973 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004259/0.4075, allocations: 224.1 kB / 492.8 MB, free: 4.754 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.4076, allocations: 0 / 492.8 MB, free: 4.754 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001927/0.4078, allocations: 115.8 kB / 492.9 MB, free: 4.641 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002898/0.4081, allocations: 40.16 kB / 492.9 MB, free: 4.602 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002588/0.4106, allocations: 2.179 MB / 495.1 MB, free: 2.355 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003559/0.411, allocations: 0.768 MB / 495.9 MB, free: 1.559 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 8.7e-05/0.4111, allocations: 13.95 kB / 495.9 MB, free: 1.543 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001171/0.4112, allocations: 79.41 kB / 496 MB, free: 1.465 MB / 362.7 MB Notification: Performance of SimCode: time 6.81e-07/0.4112, allocations: 0 / 496 MB, free: 1.465 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01568/0.4269, allocations: 4.012 MB / 500 MB, free: 13.6 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001668/0.4271, allocations: 181.5 kB / 0.4884 GB, free: 13.36 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.807/2.234, allocations: 0 / 0.4884 GB, free: 13.36 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_ElasticBearing_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_ElasticBearing.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.ElasticBearing_res.mat does not exist to compare? outputFormat=mat