Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Media.Examples.IdealGasH2O.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: translateModel(Modelica.Media.Examples.IdealGasH2O,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoothState.p|der_p|der_T",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Media.Examples.IdealGasH2O") translateModel(Modelica.Media.Examples.IdealGasH2O,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoothState.p|der_p|der_T",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Media.Examples.IdealGasH2O") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001433/0.001433, allocations: 177.2 kB / 17.41 MB, free: 4.293 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.761/1.761, allocations: 205.4 MB / 223.6 MB, free: 9.016 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.0007927/0.0007928, allocations: 89.42 kB / 271.9 MB, free: 8.254 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003785/0.0003785, allocations: 15.98 kB / 328.1 MB, free: 15.95 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3076/0.308, allocations: 47.57 MB / 375.7 MB, free: 45.42 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8853/1.193, allocations: 442.4 MB / 0.7989 GB, free: 6.336 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002327/1.194, allocations: 70.16 kB / 0.799 GB, free: 6.301 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2354/1.429, allocations: 24.95 MB / 0.8233 GB, free: 157.8 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.342e-06/1.429, allocations: 0 / 0.8233 GB, free: 157.8 MB / 426.7 MB Notification: Performance of Transformations before backend: time 4.989e-06/1.429, allocations: 0 / 0.8233 GB, free: 157.8 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.0006893/1.43, allocations: 435.6 kB / 0.8238 GB, free: 157.4 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.273e-05/1.43, allocations: 10.88 kB / 0.8238 GB, free: 157.4 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004908/1.435, allocations: 462.8 kB / 0.8242 GB, free: 157.2 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.197e-05/1.435, allocations: 168.3 kB / 0.8244 GB, free: 157 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.713e-05/1.435, allocations: 8.312 kB / 0.8244 GB, free: 157 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.768e-05/1.435, allocations: 7.312 kB / 0.8244 GB, free: 157 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006911/1.436, allocations: 301.8 kB / 0.8247 GB, free: 156.8 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.477e-05/1.436, allocations: 4.125 kB / 0.8247 GB, free: 156.8 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.716e-05/1.436, allocations: 3.938 kB / 0.8247 GB, free: 156.8 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.829e-06/1.436, allocations: 4 kB / 0.8247 GB, free: 156.8 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007068/1.436, allocations: 273.3 kB / 0.8249 GB, free: 156.6 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008478/1.437, allocations: 431.4 kB / 0.8254 GB, free: 156.2 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009252/1.438, allocations: 220 kB / 0.8256 GB, free: 156.1 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001737/1.438, allocations: 72.22 kB / 0.8256 GB, free: 156.1 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.939e-05/1.438, allocations: 7.953 kB / 0.8256 GB, free: 156.1 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.534e-05/1.438, allocations: 30.56 kB / 0.8257 GB, free: 156 MB / 426.7 MB Notification: Performance of pre-optimization done (n=13): time 1.893e-06/1.438, allocations: 0 / 0.8257 GB, free: 156 MB / 426.7 MB Notification: Performance of matching and sorting (n=17): time 0.001559/1.44, allocations: 418.4 kB / 0.8261 GB, free: 155.6 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.694e-05/1.44, allocations: 59.34 kB / 0.8261 GB, free: 155.5 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.444e-05/1.44, allocations: 101.8 kB / 0.8262 GB, free: 155.4 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 2.237e-05/1.44, allocations: 33.7 kB / 0.8263 GB, free: 155.4 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.446e-05/1.44, allocations: 87.95 kB / 0.8263 GB, free: 155.3 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.612e-05/1.44, allocations: 59.11 kB / 0.8264 GB, free: 155.2 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.977e-05/1.44, allocations: 4 kB / 0.8264 GB, free: 155.2 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 4.668e-05/1.44, allocations: 330.7 kB / 0.8267 GB, free: 154.9 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002208/1.441, allocations: 75.94 kB / 0.8268 GB, free: 154.8 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002342/1.441, allocations: 124.3 kB / 0.8269 GB, free: 154.7 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004495/1.441, allocations: 199.6 kB / 0.8271 GB, free: 154.5 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.814e-06/1.441, allocations: 4 kB / 0.8271 GB, free: 154.5 MB / 426.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0005458/1.442, allocations: 245.3 kB / 0.8273 GB, free: 154.2 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.53e-05/1.442, allocations: 4 kB / 0.8273 GB, free: 154.2 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/1.442, allocations: 0 / 0.8273 GB, free: 154.2 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.491e-05/1.442, allocations: 7.938 kB / 0.8273 GB, free: 154.2 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003259/1.442, allocations: 51.89 kB / 0.8274 GB, free: 154.2 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.803e-06/1.442, allocations: 0 / 0.8274 GB, free: 154.2 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002177/1.442, allocations: 15.98 kB / 0.8274 GB, free: 154.2 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.336e-05/1.442, allocations: 11.98 kB / 0.8274 GB, free: 154.2 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (21): * Single equations (assignments): 21 * 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 8.444e-05/1.443, allocations: 125.9 kB / 0.8275 GB, free: 154 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.703e-05/1.443, allocations: 8 kB / 0.8276 GB, free: 154 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007148/1.443, allocations: 281.9 kB / 0.8278 GB, free: 153.7 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.486e-06/1.443, allocations: 3.938 kB / 0.8278 GB, free: 153.7 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/1.443, allocations: 4 kB / 0.8278 GB, free: 153.7 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.127e-06/1.443, allocations: 0 / 0.8278 GB, free: 153.7 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001004/1.444, allocations: 0.5678 MB / 0.8284 GB, free: 153.1 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/1.444, allocations: 0 / 0.8284 GB, free: 153.1 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002863/1.445, allocations: 51.89 kB / 0.8284 GB, free: 153.1 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.176e-06/1.445, allocations: 8.062 kB / 0.8284 GB, free: 153 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.132e-05/1.445, allocations: 7.922 kB / 0.8284 GB, free: 153 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.274e-06/1.445, allocations: 4 kB / 0.8285 GB, free: 153 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.913e-06/1.445, allocations: 0 / 0.8285 GB, free: 153 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005456/1.445, allocations: 340.1 kB / 0.8288 GB, free: 152.7 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.463e-05/1.445, allocations: 85.02 kB / 0.8289 GB, free: 152.6 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.084e-05/1.445, allocations: 4 kB / 0.8289 GB, free: 152.6 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002281/1.446, allocations: 15.92 kB / 0.8289 GB, free: 152.6 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.138e-05/1.446, allocations: 15.97 kB / 0.8289 GB, free: 152.5 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.278e-05/1.446, allocations: 12 kB / 0.8289 GB, free: 152.5 MB / 426.7 MB Notification: Performance of sorting global known variables: time 2.285e-05/1.446, allocations: 87.27 kB / 0.829 GB, free: 152.4 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.2e-07/1.446, allocations: 0 / 0.829 GB, free: 152.4 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0004484/1.446, allocations: 68 kB / 0.829 GB, free: 152.4 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 simulation (18): * Single equations (assignments): 18 * 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.0005887/1.447, allocations: 0.5189 MB / 0.8296 GB, free: 151.9 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.000532/1.447, allocations: 189.5 kB / 0.8297 GB, free: 151.7 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/1.447, allocations: 0 / 0.8297 GB, free: 151.7 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002473/1.448, allocations: 108.2 kB / 0.8298 GB, free: 151.6 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003732/1.448, allocations: 39.84 kB / 0.8299 GB, free: 151.5 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006896/1.449, allocations: 342.2 kB / 0.8302 GB, free: 151.2 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001193/1.449, allocations: 0.697 MB / 0.8309 GB, free: 150.4 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001754/1.449, allocations: 35.41 kB / 0.8309 GB, free: 150.4 MB / 426.7 MB Notification: Performance of SimCode: time 6.11e-07/1.449, allocations: 0 / 0.8309 GB, free: 150.4 MB / 426.7 MB Notification: Performance of Templates: time 0.005206/1.454, allocations: 4.663 MB / 0.8355 GB, free: 145.7 MB / 426.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Media.Examples.IdealGasH2O.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Media.Examples.IdealGasH2O.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Media.Examples.IdealGasH2O.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Media.Examples.IdealGasH2O.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.IdealGasH2O.sim & ./Modelica_3.2.3_cpp_Modelica.Media.Examples.IdealGasH2O --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Media.Examples.IdealGasH2O.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Media.Examples.IdealGasH2O_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Media/Examples/IdealGasH2O/IdealGasH2O.csv","../files/Modelica_3.2.3_cpp_Modelica.Media.Examples.IdealGasH2O.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches