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.002532/0.002531, allocations: 182.4 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.286/2.286, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001682/0.001682, allocations: 82.72 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.174e-05/3.199e-05, allocations: 4 kB / 321.6 MB, free: 17.76 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1018/0.1018, allocations: 47.57 MB / 369.2 MB, free: 2.117 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4162/0.5181, allocations: 77.84 MB / 447 MB, free: 15.34 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000278/0.5184, allocations: 72.53 kB / 447.1 MB, free: 15.31 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02001/0.5385, allocations: 4.33 MB / 451.4 MB, free: 11.66 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.164e-06/0.5385, allocations: 0 / 451.4 MB, free: 11.66 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.313e-05/0.5386, allocations: 8 kB / 451.4 MB, free: 11.66 MB / 330.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.001093/0.5397, allocations: 493.4 kB / 451.9 MB, free: 11.14 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.857e-05/0.5398, allocations: 12.03 kB / 451.9 MB, free: 11.13 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001207/0.5399, allocations: 59.12 kB / 452 MB, free: 11.08 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.409e-05/0.54, allocations: 27.62 kB / 452 MB, free: 11.05 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004083/0.5404, allocations: 238.9 kB / 452.2 MB, free: 10.79 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.604e-05/0.5405, allocations: 30.12 kB / 452.3 MB, free: 10.77 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.775e-05/0.5406, allocations: 30.19 kB / 452.3 MB, free: 10.75 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006052/0.5412, allocations: 203.1 kB / 452.5 MB, free: 10.61 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.928e-05/0.5412, allocations: 3.938 kB / 452.5 MB, free: 10.6 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.392e-05/0.5413, allocations: 15.12 kB / 452.5 MB, free: 10.6 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.482e-05/0.5413, allocations: 8 kB / 452.5 MB, free: 10.59 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004395/0.5418, allocations: 144.5 kB / 452.7 MB, free: 10.5 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001931/0.5437, allocations: 0.7564 MB / 453.4 MB, free: 9.828 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000643/0.5444, allocations: 195.5 kB / 453.6 MB, free: 9.691 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002851/0.5447, allocations: 106.4 kB / 453.7 MB, free: 9.621 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.908e-05/0.5448, allocations: 11.92 kB / 453.7 MB, free: 9.609 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.329e-05/0.5448, allocations: 42.42 kB / 453.8 MB, free: 9.562 MB / 330.7 MB Notification: Performance of pre-optimization done (n=26): time 2.916e-06/0.5449, allocations: 0 / 453.8 MB, free: 9.562 MB / 330.7 MB Notification: Performance of matching and sorting (n=28): time 0.002054/0.5469, allocations: 0.8238 MB / 454.6 MB, free: 8.781 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.053e-05/0.547, allocations: 51.41 kB / 454.6 MB, free: 8.719 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002069/0.5472, allocations: 140.9 kB / 454.8 MB, free: 8.586 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.618e-05/0.5473, allocations: 33.64 kB / 454.8 MB, free: 8.551 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001295/0.5474, allocations: 202 kB / 455 MB, free: 8.363 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001188/0.5476, allocations: 106 kB / 455.1 MB, free: 8.273 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.51e-05/0.5476, allocations: 3.688 kB / 455.1 MB, free: 8.273 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001619/0.5478, allocations: 326.5 kB / 455.4 MB, free: 7.953 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001865/0.548, allocations: 66.94 kB / 455.5 MB, free: 7.906 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002369/0.5482, allocations: 105.7 kB / 455.6 MB, free: 7.82 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000225/0.5484, allocations: 67.67 kB / 455.7 MB, free: 7.777 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/0.5485, allocations: 0 / 455.7 MB, free: 7.777 MB / 330.7 MB Notification: Performance of matching and sorting (n=35) (initialization): time 0.000606/0.5491, allocations: 234.6 kB / 455.9 MB, free: 7.594 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.61e-05/0.5491, allocations: 4 kB / 455.9 MB, free: 7.59 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.117e-06/0.5491, allocations: 0 / 455.9 MB, free: 7.59 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.152e-05/0.5492, allocations: 4 kB / 455.9 MB, free: 7.586 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006033/0.5498, allocations: 79.77 kB / 456 MB, free: 7.512 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.57e-05/0.5498, allocations: 4 kB / 456 MB, free: 7.508 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002664/0.5501, allocations: 15.61 kB / 456 MB, free: 7.496 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.929e-05/0.5501, allocations: 19.91 kB / 456 MB, free: 7.48 MB / 330.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 () * 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.0001268/0.5503, allocations: 110.3 kB / 456.1 MB, free: 7.375 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.156e-05/0.5504, allocations: 23.77 kB / 456.2 MB, free: 7.352 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.408e-05/0.5505, allocations: 33.61 kB / 456.2 MB, free: 7.336 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.56e-06/0.5505, allocations: 0 / 456.2 MB, free: 7.336 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.622e-06/0.5505, allocations: 0 / 456.2 MB, free: 7.336 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.598e-06/0.5505, allocations: 4 kB / 456.2 MB, free: 7.332 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001369/0.5519, allocations: 0.6241 MB / 456.8 MB, free: 6.758 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.302e-06/0.552, allocations: 0 / 456.8 MB, free: 6.758 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007347/0.5527, allocations: 75.64 kB / 456.9 MB, free: 6.688 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.412e-05/0.5527, allocations: 4 kB / 456.9 MB, free: 6.684 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.065e-05/0.5528, allocations: 7.812 kB / 456.9 MB, free: 6.68 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.942e-06/0.5528, allocations: 4 kB / 456.9 MB, free: 6.676 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.5528, allocations: 64 / 456.9 MB, free: 6.676 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008641/0.5537, allocations: 442.8 kB / 457.3 MB, free: 6.293 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000105/0.5538, allocations: 92.8 kB / 457.4 MB, free: 6.188 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.711e-05/0.5539, allocations: 7.875 kB / 457.4 MB, free: 6.184 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002698/0.5542, allocations: 15.67 kB / 457.5 MB, free: 6.172 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.192e-05/0.5543, allocations: 24.05 kB / 457.5 MB, free: 6.148 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.582e-05/0.5543, allocations: 11.88 kB / 457.5 MB, free: 6.141 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.000148/0.5545, allocations: 115.1 kB / 457.6 MB, free: 6.039 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.11e-07/0.5545, allocations: 0 / 457.6 MB, free: 6.039 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004562/0.5549, allocations: 59.62 kB / 457.7 MB, free: 5.988 MB / 330.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 () * 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.001311/0.5563, allocations: 1.094 MB / 458.8 MB, free: 4.938 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.000557/0.5569, allocations: 173.5 kB / 458.9 MB, free: 4.816 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.937e-06/0.5569, allocations: 8.125 kB / 458.9 MB, free: 4.809 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002463/0.5572, allocations: 95.05 kB / 459 MB, free: 4.738 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005424/0.5577, allocations: 31.05 kB / 459.1 MB, free: 4.719 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002393/0.5601, allocations: 0.7854 MB / 459.8 MB, free: 3.934 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004762/0.5606, allocations: 0.76 MB / 460.6 MB, free: 3.141 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001962/0.5609, allocations: 74.98 kB / 460.7 MB, free: 3.109 MB / 330.7 MB Notification: Performance of SimCode: time 1.773e-06/0.5609, allocations: 0 / 460.7 MB, free: 3.109 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.46/3.02, allocations: 3.79 MB / 464.5 MB, free: 15.32 MB / 346.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