Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_Modelica_Mechanics_Rotational_Examples_ElasticBearing",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.ElasticBearing,fileNamePrefix="Modelica_3_2_3_cpp_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.001516/0.001522, allocations: 186.7 kB / 16.41 MB, free: 5.727 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.962/1.962, allocations: 205.4 MB / 222.5 MB, free: 9.141 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.001213/0.001213, allocations: 98.08 kB / 270.9 MB, free: 8.383 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004015/0.0004015, allocations: 8 kB / 327.1 MB, free: 132 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3316/0.332, allocations: 47.57 MB / 374.6 MB, free: 45.44 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1426/0.4747, allocations: 77.94 MB / 452.6 MB, free: 2.824 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002899/0.4751, allocations: 87.89 kB / 452.7 MB, free: 2.738 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01931/0.4944, allocations: 4.335 MB / 457 MB, free: 14.38 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.275e-06/0.4944, allocations: 0 / 457 MB, free: 14.38 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.046e-05/0.4945, allocations: 4 kB / 457 MB, free: 14.38 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.001185/0.4957, allocations: 0.503 MB / 457.5 MB, free: 13.83 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.419e-05/0.4957, allocations: 8.031 kB / 457.5 MB, free: 13.82 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001134/0.4959, allocations: 58.55 kB / 457.6 MB, free: 13.75 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.036e-05/0.496, allocations: 27.72 kB / 457.6 MB, free: 13.73 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003598/0.4963, allocations: 235.7 kB / 457.8 MB, free: 13.45 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.255e-05/0.4964, allocations: 20.56 kB / 457.8 MB, free: 13.43 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.487e-05/0.4965, allocations: 31.91 kB / 457.9 MB, free: 13.4 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007578/0.4972, allocations: 224.9 kB / 458.1 MB, free: 13.18 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.869e-05/0.4973, allocations: 0 / 458.1 MB, free: 13.18 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.461e-05/0.4973, allocations: 12 kB / 458.1 MB, free: 13.16 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.247e-05/0.4974, allocations: 8 kB / 458.1 MB, free: 13.16 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007046/0.4981, allocations: 186.1 kB / 458.3 MB, free: 12.98 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001827/0.4999, allocations: 0.761 MB / 459.1 MB, free: 12.16 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007512/0.5007, allocations: 223.5 kB / 459.3 MB, free: 11.93 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.428e-05/0.5008, allocations: 8.391 kB / 459.3 MB, free: 11.93 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.146e-05/0.5008, allocations: 34.56 kB / 459.3 MB, free: 11.88 MB / 346.7 MB Notification: Performance of pre-optimization done (n=26): time 3.597e-06/0.5008, allocations: 0 / 459.3 MB, free: 11.88 MB / 346.7 MB Notification: Performance of matching and sorting (n=28): time 0.004089/0.5049, allocations: 0.9918 MB / 460.3 MB, free: 10.8 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.798e-05/0.505, allocations: 59.34 kB / 460.4 MB, free: 10.73 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000198/0.5052, allocations: 144.3 kB / 460.5 MB, free: 10.59 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.936e-05/0.5053, allocations: 29.7 kB / 460.5 MB, free: 10.55 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000122/0.5054, allocations: 199 kB / 460.7 MB, free: 10.36 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001122/0.5055, allocations: 106.5 kB / 460.8 MB, free: 10.25 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.142e-05/0.5056, allocations: 12 kB / 460.8 MB, free: 10.24 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001501/0.5057, allocations: 320.3 kB / 461.2 MB, free: 9.918 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003164/0.5061, allocations: 79.95 kB / 461.2 MB, free: 9.84 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003568/0.5064, allocations: 127.2 kB / 461.4 MB, free: 9.703 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003554/0.5068, allocations: 87.98 kB / 461.4 MB, free: 9.617 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.5068, allocations: 0 / 461.4 MB, free: 9.617 MB / 346.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.0008704/0.5077, allocations: 273.8 kB / 461.7 MB, free: 9.344 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.843e-05/0.5077, allocations: 7.984 kB / 461.7 MB, free: 9.336 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.108e-05/0.5078, allocations: 4 kB / 461.7 MB, free: 9.332 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.854e-05/0.5078, allocations: 0 / 461.7 MB, free: 9.332 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005481/0.5083, allocations: 75.91 kB / 461.8 MB, free: 9.258 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.368e-05/0.5084, allocations: 8.094 kB / 461.8 MB, free: 9.25 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002449/0.5086, allocations: 15.98 kB / 461.8 MB, free: 9.234 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.026e-05/0.5087, allocations: 12 kB / 461.8 MB, free: 9.223 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.0002012/0.5089, allocations: 137.7 kB / 462 MB, free: 9.078 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.592e-05/0.509, allocations: 23.77 kB / 462 MB, free: 9.055 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.243e-05/0.5091, allocations: 26.55 kB / 462 MB, free: 9.027 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.039e-06/0.5091, allocations: 4 kB / 462 MB, free: 9.023 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.472e-06/0.5091, allocations: 4 kB / 462 MB, free: 9.02 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.12e-06/0.5091, allocations: 0 / 462 MB, free: 9.02 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001562/0.5107, allocations: 0.6638 MB / 462.7 MB, free: 8.293 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.298e-06/0.5107, allocations: 0 / 462.7 MB, free: 8.293 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006656/0.5114, allocations: 75.95 kB / 462.8 MB, free: 8.219 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.668e-06/0.5114, allocations: 7.922 kB / 462.8 MB, free: 8.211 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.866e-05/0.5114, allocations: 4 kB / 462.8 MB, free: 8.207 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.619e-06/0.5115, allocations: 0 / 462.8 MB, free: 8.207 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.288e-06/0.5115, allocations: 7.938 kB / 462.8 MB, free: 8.199 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001161/0.5126, allocations: 485.2 kB / 463.3 MB, free: 7.691 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.211e-05/0.5128, allocations: 100.8 kB / 463.4 MB, free: 7.574 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.637e-05/0.5128, allocations: 4.062 kB / 463.4 MB, free: 7.57 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002452/0.5131, allocations: 12 kB / 463.4 MB, free: 7.559 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.463e-05/0.5132, allocations: 23.97 kB / 463.4 MB, free: 7.535 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.228e-05/0.5132, allocations: 7.953 kB / 463.4 MB, free: 7.527 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0001272/0.5133, allocations: 119.2 kB / 463.5 MB, free: 7.41 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.5133, allocations: 0 / 463.5 MB, free: 7.41 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004377/0.5138, allocations: 60 kB / 463.6 MB, free: 7.352 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.001524/0.5153, allocations: 1.148 MB / 464.7 MB, free: 6.164 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0007635/0.5161, allocations: 213 kB / 464.9 MB, free: 5.957 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.606e-06/0.5162, allocations: 0 / 464.9 MB, free: 5.957 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003581/0.5165, allocations: 117.2 kB / 465 MB, free: 5.844 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004918/0.517, allocations: 37.98 kB / 465.1 MB, free: 5.809 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004245/0.5213, allocations: 2.214 MB / 467.3 MB, free: 3.523 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003909/0.5217, allocations: 0.7602 MB / 468.1 MB, free: 2.738 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001945/0.5219, allocations: 71.42 kB / 468.1 MB, free: 2.668 MB / 346.7 MB Notification: Performance of SimCode: time 1.052e-06/0.522, allocations: 3.938 kB / 468.1 MB, free: 2.664 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.464/2.986, allocations: 3.768 MB / 471.9 MB, free: 14.9 MB / 362.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.ElasticBearing.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.ElasticBearing_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_ElasticBearing_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Mechanics_Rotational_Examples_ElasticBearing.fmu > Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.ElasticBearing.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.ElasticBearing_res.mat does not exist to compare? outputFormat=mat