Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Media.Examples.IdealGasH2O.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: translateModel(Modelica.Media.Examples.IdealGasH2O,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|smoothState.p|der_p|der_T",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Media.Examples.IdealGasH2O") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001143/0.001143, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.474/1.474, allocations: 221.5 MB / 230.3 MB, free: 7.531 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008501/0.0008501, allocations: 100.8 kB / 281.2 MB, free: 5.277 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.606e-05/1.609e-05, allocations: 4 kB / 337 MB, free: 10.04 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1188/0.1188, allocations: 50.41 MB / 387.4 MB, free: 7.59 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.285/1.404, allocations: 442.6 MB / 0.8106 GB, free: 71.68 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002084/1.405, allocations: 63.97 kB / 0.8106 GB, free: 71.65 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04945/1.454, allocations: 24.93 MB / 0.835 GB, free: 51.01 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.603e-06/1.454, allocations: 0 / 0.835 GB, free: 51.01 MB / 442.7 MB Notification: Performance of Transformations before backend: time 4.679e-06/1.454, allocations: 0 / 0.835 GB, free: 51.01 MB / 442.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.0006641/1.455, allocations: 430.8 kB / 0.8354 GB, free: 50.54 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.96e-05/1.455, allocations: 23.95 kB / 0.8354 GB, free: 50.52 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0054/1.46, allocations: 447.8 kB / 0.8358 GB, free: 50.08 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.805e-05/1.46, allocations: 175 kB / 0.836 GB, free: 49.87 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.545e-05/1.46, allocations: 3.938 kB / 0.836 GB, free: 49.87 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.057e-05/1.46, allocations: 8 kB / 0.836 GB, free: 49.86 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003919/1.461, allocations: 219.9 kB / 0.8362 GB, free: 49.64 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001725/1.461, allocations: 118.5 kB / 0.8363 GB, free: 49.52 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.169e-05/1.461, allocations: 0 / 0.8363 GB, free: 49.52 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.058e-05/1.461, allocations: 8 kB / 0.8363 GB, free: 49.52 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.641e-06/1.461, allocations: 7.984 kB / 0.8363 GB, free: 49.51 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008222/1.462, allocations: 381.5 kB / 0.8367 GB, free: 49.1 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006994/1.463, allocations: 182.6 kB / 0.8369 GB, free: 48.91 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.915e-05/1.463, allocations: 50.61 kB / 0.8369 GB, free: 48.86 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.661e-05/1.463, allocations: 8 kB / 0.8369 GB, free: 48.85 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.473e-05/1.463, allocations: 38.55 kB / 0.837 GB, free: 48.8 MB / 442.7 MB Notification: Performance of pre-optimization done (n=13): time 1.663e-06/1.463, allocations: 0 / 0.837 GB, free: 48.8 MB / 442.7 MB Notification: Performance of matching and sorting (n=17): time 0.0009916/1.464, allocations: 301.5 kB / 0.8373 GB, free: 48.5 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.008e-05/1.464, allocations: 51.41 kB / 0.8373 GB, free: 48.44 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.906e-05/1.464, allocations: 93 kB / 0.8374 GB, free: 48.34 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 2.181e-05/1.464, allocations: 25.7 kB / 0.8374 GB, free: 48.31 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.279e-05/1.464, allocations: 99.88 kB / 0.8375 GB, free: 48.21 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.826e-05/1.464, allocations: 55.2 kB / 0.8376 GB, free: 48.16 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.956e-05/1.464, allocations: 7.938 kB / 0.8376 GB, free: 48.15 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 5.261e-05/1.464, allocations: 318.8 kB / 0.8379 GB, free: 47.83 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.04e-05/1.464, allocations: 56.36 kB / 0.8379 GB, free: 47.77 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.731e-05/1.464, allocations: 88.84 kB / 0.838 GB, free: 47.67 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.225e-05/1.464, allocations: 65.53 kB / 0.8381 GB, free: 47.61 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.022e-06/1.464, allocations: 3.938 kB / 0.8381 GB, free: 47.6 MB / 442.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002621/1.465, allocations: 194.9 kB / 0.8383 GB, free: 47.41 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.656e-05/1.465, allocations: 8 kB / 0.8383 GB, free: 47.4 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.322e-06/1.465, allocations: 3.953 kB / 0.8383 GB, free: 47.39 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.55e-05/1.465, allocations: 0 / 0.8383 GB, free: 47.39 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003392/1.465, allocations: 60.02 kB / 0.8383 GB, free: 47.34 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.026e-05/1.465, allocations: 0 / 0.8383 GB, free: 47.34 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002247/1.465, allocations: 11.98 kB / 0.8383 GB, free: 47.32 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.42e-05/1.465, allocations: 8 kB / 0.8384 GB, free: 47.32 MB / 442.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 () * 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 7.493e-05/1.465, allocations: 108.9 kB / 0.8385 GB, free: 47.2 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.769e-05/1.465, allocations: 11.89 kB / 0.8385 GB, free: 47.19 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004285/1.466, allocations: 222.2 kB / 0.8387 GB, free: 46.96 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.21e-06/1.466, allocations: 3.953 kB / 0.8387 GB, free: 46.96 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.46e-06/1.466, allocations: 0 / 0.8387 GB, free: 46.96 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.534e-06/1.466, allocations: 7.984 kB / 0.8387 GB, free: 46.95 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006955/1.467, allocations: 0.498 MB / 0.8392 GB, free: 46.41 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/1.467, allocations: 0 / 0.8392 GB, free: 46.41 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000304/1.467, allocations: 39.97 kB / 0.8392 GB, free: 46.37 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.289e-06/1.467, allocations: 3.984 kB / 0.8392 GB, free: 46.36 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.163e-05/1.467, allocations: 8 kB / 0.8392 GB, free: 46.36 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/1.467, allocations: 0 / 0.8392 GB, free: 46.36 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/1.467, allocations: 8.062 kB / 0.8392 GB, free: 46.35 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002709/1.467, allocations: 302 kB / 0.8395 GB, free: 46.02 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.611e-05/1.467, allocations: 85.02 kB / 0.8396 GB, free: 45.92 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.278e-05/1.467, allocations: 0 / 0.8396 GB, free: 45.92 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002435/1.468, allocations: 15.98 kB / 0.8396 GB, free: 45.9 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.871e-05/1.468, allocations: 11.98 kB / 0.8396 GB, free: 45.89 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.377e-05/1.468, allocations: 19.94 kB / 0.8396 GB, free: 45.87 MB / 442.7 MB Notification: Performance of sorting global known variables: time 2.224e-05/1.468, allocations: 79.28 kB / 0.8397 GB, free: 45.79 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.4e-07/1.468, allocations: 3.938 kB / 0.8397 GB, free: 45.79 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0003887/1.468, allocations: 59.98 kB / 0.8398 GB, free: 45.73 MB / 442.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 () * 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.0006193/1.469, allocations: 0.6006 MB / 0.8404 GB, free: 45.14 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0002433/1.469, allocations: 147.9 kB / 0.8405 GB, free: 44.99 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/1.469, allocations: 0 / 0.8405 GB, free: 44.99 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 9.688e-05/1.469, allocations: 76.23 kB / 0.8406 GB, free: 44.92 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003105/1.469, allocations: 41.67 kB / 0.8406 GB, free: 44.88 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004621/1.47, allocations: 165.8 kB / 0.8408 GB, free: 44.68 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001314/1.47, allocations: 0.6971 MB / 0.8415 GB, free: 43.96 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.000367/1.47, allocations: 60.52 kB / 0.8415 GB, free: 43.9 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001379/1.471, allocations: 31.41 kB / 0.8416 GB, free: 43.87 MB / 442.7 MB Notification: Performance of SimCode: time 2.4e-07/1.471, allocations: 0 / 0.8416 GB, free: 43.87 MB / 442.7 MB Notification: Performance of Templates: time 0.008405/1.479, allocations: 5.394 MB / 0.8468 GB, free: 38.48 MB / 442.7 MB make -j1 -f Modelica_4.0.0_Modelica.Media.Examples.IdealGasH2O.makefile (rm -f Modelica_4.0.0_Modelica.Media.Examples.IdealGasH2O.pipe ; mkfifo Modelica_4.0.0_Modelica.Media.Examples.IdealGasH2O.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Media.Examples.IdealGasH2O.pipe >> ../files/Modelica_4.0.0_Modelica.Media.Examples.IdealGasH2O.sim & ./Modelica_4.0.0_Modelica.Media.Examples.IdealGasH2O -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Media.Examples.IdealGasH2O.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Media.Examples.IdealGasH2O_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Media/Examples/IdealGasH2O/IdealGasH2O.csv","../files/Modelica_4.0.0_Modelica.Media.Examples.IdealGasH2O.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches