Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_latest_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_latest_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.0011/0.0011, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.00139/0.00139, allocations: 189.3 kB / 16.25 MB, free: 6.625 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.424/1.424, allocations: 222.9 MB / 239.9 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.772/2.772, allocations: 461.8 MB / 0.7343 GB, free: 14.98 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001484/0.001484, allocations: 65.5 kB / 0.8986 GB, free: 37.2 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3583/0.3598, allocations: 157.4 MB / 1.052 GB, free: 8.77 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.SteamSaturationConsistencyCheck): time 0.1521/0.512, allocations: 133.6 MB / 1.183 GB, free: 2.621 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.00918/0.5212, allocations: 7.971 MB / 1.191 GB, free: 10.62 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.019e-05/0.5213, allocations: 0 / 1.191 GB, free: 10.62 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0002166/0.5215, allocations: 23.83 kB / 1.191 GB, free: 10.6 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 4.481e-05/0.5216, allocations: 19.91 kB / 1.191 GB, free: 10.58 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.003272/0.5249, allocations: 1.288 MB / 1.192 GB, free: 9.293 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0001169/0.525, allocations: 75.64 kB / 1.192 GB, free: 9.219 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 3.908e-05/0.525, allocations: 4 kB / 1.192 GB, free: 9.215 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001224/0.5252, allocations: 47.84 kB / 1.192 GB, free: 9.168 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 8.164e-05/0.5252, allocations: 35.83 kB / 1.192 GB, free: 9.133 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 1.313e-05/0.5253, allocations: 4 kB / 1.192 GB, free: 9.129 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003839/0.5291, allocations: 2.645 MB / 1.195 GB, free: 6.48 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 2.66e-05/0.5292, allocations: 11.97 kB / 1.195 GB, free: 6.469 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 4.495e-05/0.5292, allocations: 35.86 kB / 1.195 GB, free: 6.434 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.00193/0.5311, allocations: 1.38 MB / 1.196 GB, free: 5.051 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.5312, allocations: 0 / 1.196 GB, free: 5.051 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.402e-06/0.5312, allocations: 0 / 1.196 GB, free: 5.051 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 5.56e-06/0.5312, allocations: 0 / 1.196 GB, free: 5.051 MB / 0.9512 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.0009689/0.5321, allocations: 495.2 kB / 1.196 GB, free: 4.52 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.075e-05/0.5322, allocations: 12.62 kB / 1.196 GB, free: 4.508 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003636/0.5326, allocations: 24.81 kB / 1.196 GB, free: 4.484 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000175/0.5327, allocations: 180.2 kB / 1.197 GB, free: 4.27 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.174e-05/0.5328, allocations: 38.27 kB / 1.197 GB, free: 4.227 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.625e-05/0.5329, allocations: 7.938 kB / 1.197 GB, free: 4.219 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004276/0.5333, allocations: 115.8 kB / 1.197 GB, free: 4.102 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.784e-06/0.5333, allocations: 0 / 1.197 GB, free: 4.102 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.77e-05/0.5333, allocations: 8 kB / 1.197 GB, free: 4.094 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.759e-06/0.5333, allocations: 0 / 1.197 GB, free: 4.094 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002931/0.5336, allocations: 115.9 kB / 1.197 GB, free: 3.98 MB / 0.9512 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.0005138/0.5342, allocations: 388 kB / 1.197 GB, free: 3.539 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002627/0.5344, allocations: 126.6 kB / 1.197 GB, free: 3.406 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.495e-05/0.5345, allocations: 52.83 kB / 1.197 GB, free: 3.352 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0111/0.5456, allocations: 4.199 MB / 1.202 GB, free: 14.84 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.984e-05/0.5457, allocations: 34.56 kB / 1.202 GB, free: 14.79 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=13): time 1.883e-06/0.5457, allocations: 0 / 1.202 GB, free: 14.79 MB / 0.9669 GB Notification: Performance of matching and sorting (n=13): time 0.0005411/0.5463, allocations: 165.5 kB / 1.202 GB, free: 14.62 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.55e-05/0.5463, allocations: 51.41 kB / 1.202 GB, free: 14.56 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.396e-05/0.5464, allocations: 101.8 kB / 1.202 GB, free: 14.45 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.698e-05/0.5465, allocations: 29.7 kB / 1.202 GB, free: 14.42 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 5.471e-05/0.5465, allocations: 88.08 kB / 1.202 GB, free: 14.33 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 4.613e-05/0.5466, allocations: 47.44 kB / 1.202 GB, free: 14.28 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.136e-05/0.5466, allocations: 25.72 kB / 1.202 GB, free: 14.25 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.000227/0.5469, allocations: 326.8 kB / 1.202 GB, free: 13.92 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.304e-05/0.5469, allocations: 23.98 kB / 1.202 GB, free: 13.9 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.809e-05/0.547, allocations: 31.23 kB / 1.202 GB, free: 13.87 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000108/0.5471, allocations: 72.8 kB / 1.203 GB, free: 13.8 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.5471, allocations: 0 / 1.203 GB, free: 13.8 MB / 0.9669 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001776/0.5473, allocations: 105.6 kB / 1.203 GB, free: 13.69 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 2.607e-05/0.5473, allocations: 11.98 kB / 1.203 GB, free: 13.68 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.973e-06/0.5473, allocations: 4 kB / 1.203 GB, free: 13.67 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.365e-05/0.5473, allocations: 0 / 1.203 GB, free: 13.67 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001298/0.5475, allocations: 19.98 kB / 1.203 GB, free: 13.65 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.013e-06/0.5475, allocations: 0 / 1.203 GB, free: 13.65 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.078e-05/0.5476, allocations: 11.84 kB / 1.203 GB, free: 13.64 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.38e-05/0.5476, allocations: 8 kB / 1.203 GB, free: 13.63 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 8.688e-05/0.5477, allocations: 119.3 kB / 1.203 GB, free: 13.51 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.634e-05/0.5477, allocations: 7.906 kB / 1.203 GB, free: 13.5 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004688/0.5482, allocations: 371.7 kB / 1.203 GB, free: 13.14 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.184e-05/0.5482, allocations: 11.98 kB / 1.203 GB, free: 13.12 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.5482, allocations: 0 / 1.203 GB, free: 13.12 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5e-06/0.5482, allocations: 3.938 kB / 1.203 GB, free: 13.12 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003403/0.5486, allocations: 273.4 kB / 1.203 GB, free: 12.8 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.155e-06/0.5486, allocations: 0 / 1.203 GB, free: 12.8 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001072/0.5487, allocations: 28.11 kB / 1.203 GB, free: 12.78 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.927e-06/0.5487, allocations: 4 kB / 1.203 GB, free: 12.77 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.115e-05/0.5487, allocations: 4 kB / 1.203 GB, free: 12.77 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.5487, allocations: 0 / 1.203 GB, free: 12.77 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.5488, allocations: 3.984 kB / 1.203 GB, free: 12.77 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003727/0.5491, allocations: 330.9 kB / 1.204 GB, free: 12.43 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001692/0.5493, allocations: 108.8 kB / 1.204 GB, free: 12.3 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.693e-05/0.5493, allocations: 0 / 1.204 GB, free: 12.3 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001438/0.5495, allocations: 15.98 kB / 1.204 GB, free: 12.29 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.262e-05/0.5495, allocations: 7.984 kB / 1.204 GB, free: 12.28 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.597e-05/0.5495, allocations: 11.94 kB / 1.204 GB, free: 12.27 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 4.656e-05/0.5496, allocations: 79.28 kB / 1.204 GB, free: 12.19 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5496, allocations: 3.938 kB / 1.204 GB, free: 12.18 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.001059/0.5507, allocations: 299.9 kB / 1.204 GB, free: 11.89 MB / 0.9669 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.001265/0.5519, allocations: 394.9 kB / 1.205 GB, free: 11.49 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.000268/0.5522, allocations: 135.9 kB / 1.205 GB, free: 11.36 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.5522, allocations: 4 kB / 1.205 GB, free: 11.36 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001315/0.5524, allocations: 111.9 kB / 1.205 GB, free: 11.25 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003122/0.5527, allocations: 23.28 kB / 1.205 GB, free: 11.23 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005342/0.5532, allocations: 365.2 kB / 1.205 GB, free: 10.84 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003988/0.5536, allocations: 0.7166 MB / 1.206 GB, free: 10.1 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 0.0001179/0.5537, allocations: 36.33 kB / 1.206 GB, free: 10.07 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.558e-05/0.5538, allocations: 19.44 kB / 1.206 GB, free: 10.05 MB / 0.9669 GB Notification: Performance of SimCode: time 2.61e-07/0.5538, allocations: 0 / 1.206 GB, free: 10.05 MB / 0.9669 GB Notification: Performance of Templates: time 0.01476/0.5686, allocations: 9.809 MB / 1.216 GB, free: 248 kB / 0.9669 GB make -j1 -f Buildings_latest_Buildings.Media.Examples.SteamSaturationConsistencyCheck.makefile (rm -f Buildings_latest_Buildings.Media.Examples.SteamSaturationConsistencyCheck.pipe ; mkfifo Buildings_latest_Buildings.Media.Examples.SteamSaturationConsistencyCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Media.Examples.SteamSaturationConsistencyCheck.pipe >> ../files/Buildings_latest_Buildings.Media.Examples.SteamSaturationConsistencyCheck.sim & ./Buildings_latest_Buildings.Media.Examples.SteamSaturationConsistencyCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Media.Examples.SteamSaturationConsistencyCheck.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Media.Examples.SteamSaturationConsistencyCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Media_Examples_SteamSaturationConsistencyCheck.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Media.Examples.SteamSaturationConsistencyCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches