Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Media.Examples.SteamSaturationConsistencyCheck.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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.SteamSaturationConsistencyCheck,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TSat0|TSat|pSat|hlvErr|hlErr|hvErr|hlvIF97|hlvWatSte|hlIF97|hlWat|hvIF97|hvSte",fileNamePrefix="Buildings_9_Buildings.Media.Examples.SteamSaturationConsistencyCheck") translateModel(Buildings.Media.Examples.SteamSaturationConsistencyCheck,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|TSat0|TSat|pSat|hlvErr|hlErr|hvErr|hlvIF97|hlvWatSte|hlIF97|hlWat|hvIF97|hvSte",fileNamePrefix="Buildings_9_Buildings.Media.Examples.SteamSaturationConsistencyCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001526/0.001526, allocations: 107.3 kB / 16.41 MB, free: 6.406 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.002089/0.002089, allocations: 191.4 kB / 17.34 MB, free: 5.695 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.408/1.408, allocations: 222.9 MB / 241 MB, free: 15.06 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.442/2.442, allocations: 390.3 MB / 0.6655 GB, free: 0.5859 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001506/0.001507, allocations: 59.91 kB / 0.9515 GB, free: 7.645 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8475/0.8491, allocations: 140.4 MB / 1.089 GB, free: 5.496 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.SteamSaturationConsistencyCheck): time 0.1689/1.018, allocations: 135.6 MB / 1.221 GB, free: 0.625 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.01299/1.031, allocations: 7.922 MB / 1.229 GB, free: 10.29 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.812e-05/1.031, allocations: 5.281 kB / 1.229 GB, free: 10.29 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.000206/1.031, allocations: 24.92 kB / 1.229 GB, free: 10.27 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 8.18e-05/1.032, allocations: 13.27 kB / 1.229 GB, free: 10.26 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.005205/1.037, allocations: 1.472 MB / 1.23 GB, free: 9.223 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.000181/1.037, allocations: 70.45 kB / 1.23 GB, free: 9.188 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 4.444e-05/1.037, allocations: 7.078 kB / 1.23 GB, free: 9.184 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001629/1.037, allocations: 46.03 kB / 1.23 GB, free: 9.16 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001169/1.037, allocations: 31.97 kB / 1.23 GB, free: 9.141 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.064e-05/1.037, allocations: 7.312 kB / 1.23 GB, free: 9.137 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006081/1.043, allocations: 2.703 MB / 1.233 GB, free: 7.73 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 4.036e-05/1.043, allocations: 19.28 kB / 1.233 GB, free: 7.715 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 7.03e-05/1.044, allocations: 28.98 kB / 1.233 GB, free: 7.699 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.003423/1.047, allocations: 1.38 MB / 1.234 GB, free: 6.82 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 8.015e-06/1.047, allocations: 4 kB / 1.234 GB, free: 6.816 MB / 0.9669 GB Notification: Performance of FrontEnd: time 3.126e-06/1.047, allocations: 1.375 kB / 1.234 GB, free: 6.816 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 6.613e-06/1.047, allocations: 0 / 1.234 GB, free: 6.816 MB / 0.9669 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.001689/1.049, allocations: 499.3 kB / 1.235 GB, free: 6.375 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.572e-05/1.049, allocations: 12.19 kB / 1.235 GB, free: 6.371 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004425/1.049, allocations: 27.94 kB / 1.235 GB, free: 6.359 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001617/1.049, allocations: 169.6 kB / 1.235 GB, free: 6.156 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.695e-05/1.049, allocations: 34.39 kB / 1.235 GB, free: 6.121 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.083e-05/1.05, allocations: 8.062 kB / 1.235 GB, free: 6.117 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003912/1.05, allocations: 122.9 kB / 1.235 GB, free: 6.035 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.865e-06/1.05, allocations: 0 / 1.235 GB, free: 6.035 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.641e-05/1.05, allocations: 1.375 kB / 1.235 GB, free: 6.035 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.65e-06/1.05, allocations: 5.375 kB / 1.235 GB, free: 6.031 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002962/1.05, allocations: 116.4 kB / 1.235 GB, free: 5.977 MB / 0.9669 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006067/1.051, allocations: 385.1 kB / 1.236 GB, free: 5.574 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002644/1.051, allocations: 127 kB / 1.236 GB, free: 5.496 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.536e-05/1.051, allocations: 58.89 kB / 1.236 GB, free: 5.461 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01225/1.064, allocations: 4.225 MB / 1.24 GB, free: 2.184 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.6e-05/1.064, allocations: 34.56 kB / 1.24 GB, free: 2.141 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=13): time 2.404e-06/1.064, allocations: 4 kB / 1.24 GB, free: 2.137 MB / 0.9669 GB Notification: Performance of matching and sorting (n=13): time 0.0005804/1.064, allocations: 161.5 kB / 1.24 GB, free: 1.973 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.93e-05/1.064, allocations: 55.39 kB / 1.24 GB, free: 1.906 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.039e-05/1.064, allocations: 101.9 kB / 1.24 GB, free: 1.797 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.159e-05/1.064, allocations: 25.7 kB / 1.24 GB, free: 1.766 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 5.124e-05/1.064, allocations: 84.14 kB / 1.24 GB, free: 1.68 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 4.769e-05/1.064, allocations: 47.42 kB / 1.241 GB, free: 1.633 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.828e-05/1.065, allocations: 33.7 kB / 1.241 GB, free: 1.594 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001236/1.065, allocations: 326.8 kB / 1.241 GB, free: 1.266 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.349e-05/1.065, allocations: 20 kB / 1.241 GB, free: 1.246 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.996e-05/1.065, allocations: 27.98 kB / 1.241 GB, free: 1.219 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000108/1.065, allocations: 72.59 kB / 1.241 GB, free: 1.148 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.886e-06/1.065, allocations: 0 / 1.241 GB, free: 1.148 MB / 0.9669 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000189/1.065, allocations: 109.5 kB / 1.241 GB, free: 1.035 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.682e-05/1.065, allocations: 8 kB / 1.241 GB, free: 1.027 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.29e-06/1.065, allocations: 0 / 1.241 GB, free: 1.027 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.562e-05/1.065, allocations: 0 / 1.241 GB, free: 1.027 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001239/1.065, allocations: 23.98 kB / 1.241 GB, free: 1.004 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.045e-06/1.065, allocations: 4 kB / 1.241 GB, free: 1 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.459e-05/1.065, allocations: 7.938 kB / 1.241 GB, free: 0.9922 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.129e-05/1.065, allocations: 4 kB / 1.241 GB, free: 0.9883 MB / 0.9669 GB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (13): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.027e-05/1.065, allocations: 117.8 kB / 1.241 GB, free: 0.8633 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.485e-05/1.066, allocations: 7.906 kB / 1.241 GB, free: 0.8555 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004719/1.066, allocations: 368.2 kB / 1.242 GB, free: 500 kB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.636e-05/1.066, allocations: 12 kB / 1.242 GB, free: 488 kB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.334e-06/1.066, allocations: 0 / 1.242 GB, free: 488 kB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.823e-06/1.066, allocations: 11.88 kB / 1.242 GB, free: 476 kB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003523/1.066, allocations: 289 kB / 1.242 GB, free: 136 kB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.316e-06/1.066, allocations: 0 / 1.242 GB, free: 136 kB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.739e-05/1.067, allocations: 23.92 kB / 1.242 GB, free: 112 kB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.637e-06/1.067, allocations: 4 kB / 1.242 GB, free: 108 kB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.066e-05/1.067, allocations: 4 kB / 1.242 GB, free: 104 kB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.244e-06/1.067, allocations: 0 / 1.242 GB, free: 104 kB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.422e-06/1.067, allocations: 0 / 1.242 GB, free: 104 kB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003706/1.067, allocations: 323.3 kB / 1.242 GB, free: 15.77 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 7.81e-05/1.067, allocations: 108.8 kB / 1.242 GB, free: 15.64 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.615e-05/1.067, allocations: 0 / 1.242 GB, free: 15.64 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002445/1.067, allocations: 8 kB / 1.242 GB, free: 15.64 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.893e-05/1.067, allocations: 7.984 kB / 1.242 GB, free: 15.63 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.345e-05/1.067, allocations: 15.92 kB / 1.242 GB, free: 15.61 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 4.006e-05/1.067, allocations: 79.28 kB / 1.242 GB, free: 15.54 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.5e-07/1.067, allocations: 0 / 1.242 GB, free: 15.54 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.001327/1.069, allocations: 299.9 kB / 1.243 GB, free: 15.24 MB / 0.9825 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 ($cse1.region3boundary,$cse2.region3boundary) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002098/1.071, allocations: 403.2 kB / 1.243 GB, free: 14.84 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002726/1.071, allocations: 124 kB / 1.243 GB, free: 14.71 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/1.071, allocations: 0 / 1.243 GB, free: 14.71 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001327/1.071, allocations: 107.9 kB / 1.243 GB, free: 14.61 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000379/1.072, allocations: 19.98 kB / 1.243 GB, free: 14.59 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005632/1.072, allocations: 342.1 kB / 1.244 GB, free: 14.22 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004225/1.073, allocations: 0.7205 MB / 1.244 GB, free: 13.47 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.271e-05/1.073, allocations: 15.44 kB / 1.244 GB, free: 13.46 MB / 0.9825 GB Notification: Performance of SimCode: time 3.9e-07/1.073, allocations: 0 / 1.244 GB, free: 13.46 MB / 0.9825 GB Notification: Performance of Templates: time 0.01212/1.085, allocations: 6.749 MB / 1.251 GB, free: 6.703 MB / 0.9825 GB make -j1 -f Buildings_9_Buildings.Media.Examples.SteamSaturationConsistencyCheck.makefile (rm -f Buildings_9_Buildings.Media.Examples.SteamSaturationConsistencyCheck.pipe ; mkfifo Buildings_9_Buildings.Media.Examples.SteamSaturationConsistencyCheck.pipe ; head -c 1048576 < Buildings_9_Buildings.Media.Examples.SteamSaturationConsistencyCheck.pipe >> ../files/Buildings_9_Buildings.Media.Examples.SteamSaturationConsistencyCheck.sim & ./Buildings_9_Buildings.Media.Examples.SteamSaturationConsistencyCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Media.Examples.SteamSaturationConsistencyCheck.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Media.Examples.SteamSaturationConsistencyCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Media_Examples_SteamSaturationConsistencyCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Media.Examples.SteamSaturationConsistencyCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches