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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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.001606/0.001606, allocations: 99.61 kB / 16.27 MB, free: 5.969 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.001578/0.001578, allocations: 192.1 kB / 17.2 MB, free: 5.594 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.387/1.387, allocations: 222.9 MB / 240.9 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.719/2.719, allocations: 482.4 MB / 0.7553 GB, free: 6.957 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001893/0.001894, allocations: 77.52 kB / 0.9245 GB, free: 15.98 MB / 0.7012 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7336/0.7355, allocations: 162.2 MB / 1.083 GB, free: 1.645 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.SteamSaturationConsistencyCheck): time 0.1656/0.9011, allocations: 135.5 MB / 1.215 GB, free: 7.008 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.009493/0.9106, allocations: 7.927 MB / 1.223 GB, free: 15.05 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.075e-05/0.9107, allocations: 4 kB / 1.223 GB, free: 15.05 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.0001655/0.9109, allocations: 27.89 kB / 1.223 GB, free: 15.02 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 4.447e-05/0.911, allocations: 19.78 kB / 1.223 GB, free: 15 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.003406/0.9144, allocations: 1.456 MB / 1.224 GB, free: 13.55 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.0001082/0.9145, allocations: 75.64 kB / 1.225 GB, free: 13.47 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 4.135e-05/0.9146, allocations: 4 kB / 1.225 GB, free: 13.47 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001123/0.9147, allocations: 39.84 kB / 1.225 GB, free: 13.43 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 8.246e-05/0.9148, allocations: 43.83 kB / 1.225 GB, free: 13.39 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 1.252e-05/0.9148, allocations: 0 / 1.225 GB, free: 13.39 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004122/0.9189, allocations: 2.645 MB / 1.227 GB, free: 10.74 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 2.599e-05/0.919, allocations: 15.97 kB / 1.227 GB, free: 10.72 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 4.535e-05/0.919, allocations: 27.86 kB / 1.227 GB, free: 10.7 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.001845/0.9209, allocations: 1.38 MB / 1.229 GB, free: 9.312 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.9209, allocations: 0 / 1.229 GB, free: 9.312 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.062e-06/0.9209, allocations: 0 / 1.229 GB, free: 9.312 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 8.516e-06/0.9209, allocations: 3.984 kB / 1.229 GB, free: 9.309 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.0009152/0.9218, allocations: 0.4913 MB / 1.229 GB, free: 8.77 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.848e-05/0.9219, allocations: 8.031 kB / 1.229 GB, free: 8.762 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003582/0.9222, allocations: 32.81 kB / 1.229 GB, free: 8.73 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001441/0.9224, allocations: 168.3 kB / 1.229 GB, free: 8.527 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.845e-05/0.9224, allocations: 30.27 kB / 1.229 GB, free: 8.492 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.744e-05/0.9225, allocations: 11.94 kB / 1.229 GB, free: 8.48 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003561/0.9228, allocations: 120 kB / 1.229 GB, free: 8.359 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.065e-06/0.9229, allocations: 0 / 1.229 GB, free: 8.359 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.647e-05/0.9229, allocations: 4 kB / 1.229 GB, free: 8.355 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.472e-06/0.9229, allocations: 4 kB / 1.229 GB, free: 8.352 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002979/0.9232, allocations: 111.9 kB / 1.23 GB, free: 8.242 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.0005073/0.9237, allocations: 384 kB / 1.23 GB, free: 7.805 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002818/0.924, allocations: 126.5 kB / 1.23 GB, free: 7.672 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.289e-05/0.9241, allocations: 56.77 kB / 1.23 GB, free: 7.613 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01209/0.9362, allocations: 4.203 MB / 1.234 GB, free: 3.094 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.02e-05/0.9363, allocations: 34.56 kB / 1.234 GB, free: 3.051 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=13): time 1.383e-06/0.9363, allocations: 0 / 1.234 GB, free: 3.051 MB / 0.9512 GB Notification: Performance of matching and sorting (n=13): time 0.0005168/0.9368, allocations: 169.5 kB / 1.234 GB, free: 2.879 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.918e-05/0.9368, allocations: 55.41 kB / 1.234 GB, free: 2.812 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.52e-05/0.9369, allocations: 97.86 kB / 1.235 GB, free: 2.707 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.924e-05/0.937, allocations: 33.64 kB / 1.235 GB, free: 2.668 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 4.808e-05/0.937, allocations: 84.12 kB / 1.235 GB, free: 2.582 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 4.957e-05/0.9371, allocations: 55.42 kB / 1.235 GB, free: 2.527 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.192e-05/0.9371, allocations: 25.72 kB / 1.235 GB, free: 2.496 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001622/0.9373, allocations: 318.8 kB / 1.235 GB, free: 2.176 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.197e-05/0.9374, allocations: 27.98 kB / 1.235 GB, free: 2.148 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.897e-05/0.9374, allocations: 23.98 kB / 1.235 GB, free: 2.125 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001112/0.9375, allocations: 63.86 kB / 1.235 GB, free: 2.062 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.9376, allocations: 8 kB / 1.235 GB, free: 2.055 MB / 0.9512 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001935/0.9378, allocations: 113.5 kB / 1.235 GB, free: 1.938 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.523e-05/0.9378, allocations: 4 kB / 1.235 GB, free: 1.934 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.977e-06/0.9378, allocations: 0 / 1.235 GB, free: 1.934 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.187e-05/0.9378, allocations: 0 / 1.235 GB, free: 1.934 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001256/0.9379, allocations: 27.98 kB / 1.235 GB, free: 1.906 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.428e-06/0.9379, allocations: 0 / 1.235 GB, free: 1.906 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.993e-05/0.938, allocations: 11.92 kB / 1.235 GB, free: 1.895 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.01e-05/0.938, allocations: 4 kB / 1.235 GB, free: 1.891 MB / 0.9512 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.907e-05/0.9381, allocations: 121.8 kB / 1.235 GB, free: 1.762 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.665e-05/0.9382, allocations: 7.906 kB / 1.235 GB, free: 1.754 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004664/0.9386, allocations: 371.7 kB / 1.236 GB, free: 1.387 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.538e-06/0.9387, allocations: 4 kB / 1.236 GB, free: 1.383 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.548e-06/0.9387, allocations: 3.984 kB / 1.236 GB, free: 1.379 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.99e-06/0.9387, allocations: 7.938 kB / 1.236 GB, free: 1.371 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003262/0.939, allocations: 285.3 kB / 1.236 GB, free: 1.043 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.939, allocations: 0 / 1.236 GB, free: 1.043 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.969e-05/0.9391, allocations: 27.92 kB / 1.236 GB, free: 1.016 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.265e-06/0.9391, allocations: 0 / 1.236 GB, free: 1.016 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.777e-06/0.9392, allocations: 0 / 1.236 GB, free: 1.016 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.767e-06/0.9392, allocations: 4 kB / 1.236 GB, free: 1.012 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.9392, allocations: 0 / 1.236 GB, free: 1.012 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004077/0.9396, allocations: 331 kB / 1.236 GB, free: 0.6719 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 8.382e-05/0.9397, allocations: 108.8 kB / 1.237 GB, free: 0.5469 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.935e-05/0.9397, allocations: 4 kB / 1.237 GB, free: 0.543 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001436/0.9398, allocations: 7.984 kB / 1.237 GB, free: 0.5352 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.158e-05/0.9399, allocations: 7.984 kB / 1.237 GB, free: 0.5273 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.262e-05/0.9399, allocations: 7.938 kB / 1.237 GB, free: 0.5195 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 4.463e-05/0.9399, allocations: 87.22 kB / 1.237 GB, free: 444 kB / 0.9512 GB Notification: Performance of sort global known variables: time 1.1e-07/0.9399, allocations: 0 / 1.237 GB, free: 444 kB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0008548/0.9408, allocations: 295.9 kB / 1.237 GB, free: 148 kB / 0.9512 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.001188/0.942, allocations: 403.7 kB / 1.237 GB, free: 15.74 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0002681/0.9423, allocations: 135.8 kB / 1.237 GB, free: 15.61 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.9423, allocations: 0 / 1.237 GB, free: 15.61 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001346/0.9424, allocations: 111.9 kB / 1.238 GB, free: 15.5 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002966/0.9427, allocations: 19.98 kB / 1.238 GB, free: 15.48 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005347/0.9433, allocations: 338.3 kB / 1.238 GB, free: 15.11 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003463/0.9436, allocations: 0.7211 MB / 1.239 GB, free: 14.36 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.844e-05/0.9437, allocations: 19.44 kB / 1.239 GB, free: 14.35 MB / 0.9669 GB Notification: Performance of SimCode: time 2.2e-07/0.9437, allocations: 0 / 1.239 GB, free: 14.35 MB / 0.9669 GB Notification: Performance of Templates: time 0.01048/0.9542, allocations: 6.761 MB / 1.245 GB, free: 7.582 MB / 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=400 -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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Media.Examples.SteamSaturationConsistencyCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches