Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/Buildings 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Media.Examples.SteamTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T|h",fileNamePrefix="Buildings_9_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion") translateModel(Buildings.Media.Examples.SteamTemperatureEnthalpyInversion,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T|h",fileNamePrefix="Buildings_9_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009347/0.0009351, allocations: 86.72 kB / 15.06 MB, free: 1.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001456/0.001456, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.427/1.427, allocations: 223.3 MB / 240 MB, free: 5.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.543/2.543, allocations: 390.9 MB / 0.666 GB, free: 2.383 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003389/0.0003389, allocations: 12 kB / 0.8153 GB, free: 13.59 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7807/0.7811, allocations: 142.4 MB / 0.9544 GB, free: 7.695 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.SteamTemperatureEnthalpyInversion): time 0.1444/0.9255, allocations: 122.6 MB / 1.074 GB, free: 4.562 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0001458/0.9257, allocations: 43.91 kB / 1.074 GB, free: 4.52 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.353e-05/0.9257, allocations: 0 / 1.074 GB, free: 4.52 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001126/0.9259, allocations: 7.922 kB / 1.074 GB, free: 4.512 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 7.624e-05/0.9259, allocations: 11.92 kB / 1.074 GB, free: 4.5 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008596/0.9268, allocations: 191.2 kB / 1.074 GB, free: 4.312 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 9.561e-05/0.9269, allocations: 47.83 kB / 1.074 GB, free: 4.266 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 4.184e-05/0.927, allocations: 3.984 kB / 1.074 GB, free: 4.262 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 4.598e-05/0.927, allocations: 11.94 kB / 1.074 GB, free: 4.25 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 8.987e-05/0.9271, allocations: 11.98 kB / 1.074 GB, free: 4.238 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.446e-05/0.9271, allocations: 0 / 1.074 GB, free: 4.238 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004539/0.9276, allocations: 167.6 kB / 1.075 GB, free: 4.074 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 4.081e-05/0.9276, allocations: 7.922 kB / 1.075 GB, free: 4.066 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 3.584e-05/0.9277, allocations: 29.7 kB / 1.075 GB, free: 4.031 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002562/0.928, allocations: 101.8 kB / 1.075 GB, free: 3.934 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 6.964e-06/0.928, allocations: 0 / 1.075 GB, free: 3.934 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.633e-06/0.928, allocations: 0 / 1.075 GB, free: 3.934 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.219e-06/0.928, allocations: 3.938 kB / 1.075 GB, free: 3.93 MB / 0.8262 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0005133/0.9285, allocations: 360.2 kB / 1.075 GB, free: 3.531 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 4.746e-05/0.9286, allocations: 16.03 kB / 1.075 GB, free: 3.516 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.495e-05/0.9286, allocations: 3.953 kB / 1.075 GB, free: 3.512 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001645/0.9288, allocations: 163.1 kB / 1.075 GB, free: 3.312 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.59e-05/0.9289, allocations: 29.7 kB / 1.075 GB, free: 3.277 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.798e-06/0.9289, allocations: 0 / 1.075 GB, free: 3.277 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001596/0.929, allocations: 37.69 kB / 1.075 GB, free: 3.234 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.048e-05/0.9291, allocations: 3.938 kB / 1.075 GB, free: 3.23 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.46e-05/0.9291, allocations: 4 kB / 1.075 GB, free: 3.227 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.788e-05/0.9291, allocations: 7.953 kB / 1.075 GB, free: 3.219 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.998e-05/0.9292, allocations: 15.98 kB / 1.075 GB, free: 3.203 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009066/0.9301, allocations: 0.5951 MB / 1.076 GB, free: 2.484 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 4.297e-05/0.9301, allocations: 18.58 kB / 1.076 GB, free: 2.457 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.757e-05/0.9302, allocations: 8.922 kB / 1.076 GB, free: 2.445 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002542/0.9304, allocations: 340.4 kB / 1.076 GB, free: 2.039 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.221e-05/0.9305, allocations: 38.45 kB / 1.076 GB, free: 1.992 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=1): time 1.894e-06/0.9305, allocations: 0 / 1.076 GB, free: 1.992 MB / 0.8262 GB Notification: Performance of matching and sorting (n=1): time 0.0001811/0.9307, allocations: 37.69 kB / 1.076 GB, free: 1.949 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.468e-05/0.9307, allocations: 55.41 kB / 1.076 GB, free: 1.883 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001092/0.9309, allocations: 101.8 kB / 1.077 GB, free: 1.773 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.496e-05/0.9309, allocations: 25.7 kB / 1.077 GB, free: 1.742 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 5.828e-05/0.9309, allocations: 88.12 kB / 1.077 GB, free: 1.652 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 8.756e-06/0.931, allocations: 11.97 kB / 1.077 GB, free: 1.641 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.896e-06/0.931, allocations: 0 / 1.077 GB, free: 1.641 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001283/0.9311, allocations: 310.8 kB / 1.077 GB, free: 1.328 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.219e-05/0.9311, allocations: 4 kB / 1.077 GB, free: 1.324 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.901e-05/0.9312, allocations: 25.64 kB / 1.077 GB, free: 1.293 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.212e-05/0.9312, allocations: 4 kB / 1.077 GB, free: 1.289 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.9312, allocations: 0 / 1.077 GB, free: 1.289 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3) (initialization): time 8.943e-05/0.9313, allocations: 49.69 kB / 1.077 GB, free: 1.234 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.796e-05/0.9313, allocations: 11.95 kB / 1.077 GB, free: 1.223 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.179e-06/0.9313, allocations: 0 / 1.077 GB, free: 1.223 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.233e-05/0.9313, allocations: 0 / 1.077 GB, free: 1.223 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.94e-05/0.9314, allocations: 11.88 kB / 1.077 GB, free: 1.211 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.721e-06/0.9314, allocations: 0 / 1.077 GB, free: 1.211 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.982e-05/0.9314, allocations: 4 kB / 1.077 GB, free: 1.207 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.102e-05/0.9314, allocations: 4 kB / 1.077 GB, free: 1.203 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (3): * Single equations (assignments): 3 * 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.678e-05/0.9315, allocations: 117.9 kB / 1.077 GB, free: 1.078 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.497e-05/0.9316, allocations: 3.984 kB / 1.077 GB, free: 1.074 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001138/0.9317, allocations: 120.8 kB / 1.077 GB, free: 0.9414 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.581e-05/0.9318, allocations: 180.2 kB / 1.077 GB, free: 0.7578 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.179e-05/0.9318, allocations: 180.2 kB / 1.078 GB, free: 0.5742 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.39e-05/0.9319, allocations: 192.2 kB / 1.078 GB, free: 388 kB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002579/0.9322, allocations: 405.2 kB / 1.078 GB, free: 15.93 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.314e-05/0.9322, allocations: 105 kB / 1.078 GB, free: 15.82 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.544e-05/0.9323, allocations: 104.9 kB / 1.078 GB, free: 15.71 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.023e-05/0.9324, allocations: 180.3 kB / 1.079 GB, free: 15.52 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.131e-05/0.9324, allocations: 180.2 kB / 1.079 GB, free: 15.34 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.458e-05/0.9325, allocations: 192.2 kB / 1.079 GB, free: 15.14 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.565e-05/0.9326, allocations: 176.3 kB / 1.079 GB, free: 14.96 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001523/0.9327, allocations: 303.8 kB / 1.079 GB, free: 14.64 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 8.742e-05/0.9328, allocations: 186 kB / 1.08 GB, free: 14.44 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.127e-05/0.9329, allocations: 180.3 kB / 1.08 GB, free: 14.25 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001465/0.933, allocations: 109 kB / 1.08 GB, free: 14.14 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.866e-05/0.9331, allocations: 192.1 kB / 1.08 GB, free: 13.95 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.355e-05/0.9332, allocations: 101 kB / 1.08 GB, free: 13.84 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 4.328e-05/0.9332, allocations: 79.28 kB / 1.08 GB, free: 13.76 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1.2e-07/0.9332, allocations: 0 / 1.08 GB, free: 13.76 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0003286/0.9336, allocations: 59.92 kB / 1.08 GB, free: 13.7 MB / 0.8419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (0): * Single equations (assignments): 0 * 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.0003274/0.9339, allocations: 246.2 kB / 1.08 GB, free: 13.45 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 7.483e-05/0.934, allocations: 19.92 kB / 1.08 GB, free: 13.43 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.934, allocations: 0 / 1.08 GB, free: 13.43 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 1.423e-06/0.934, allocations: 8.062 kB / 1.08 GB, free: 13.43 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004283/0.9344, allocations: 0.5185 MB / 1.081 GB, free: 12.9 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002569/0.9347, allocations: 187.8 kB / 1.081 GB, free: 12.7 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002495/0.935, allocations: 0.6809 MB / 1.082 GB, free: 11.99 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 3.816e-05/0.935, allocations: 4 kB / 1.082 GB, free: 11.98 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.708e-05/0.935, allocations: 7.438 kB / 1.082 GB, free: 11.98 MB / 0.8419 GB Notification: Performance of SimCode: time 2.81e-07/0.935, allocations: 0 / 1.082 GB, free: 11.98 MB / 0.8419 GB Notification: Performance of Templates: time 0.003492/0.9385, allocations: 1.223 MB / 1.083 GB, free: 10.76 MB / 0.8419 GB make -j1 -f Buildings_9_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion.makefile (rm -f Buildings_9_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion.pipe ; mkfifo Buildings_9_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion.pipe ; head -c 1048576 < Buildings_9_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion.pipe >> ../files/Buildings_9_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion.sim & ./Buildings_9_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Media_Examples_SteamTemperatureEnthalpyInversion.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Media.Examples.SteamTemperatureEnthalpyInversion.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches