Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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: "" <> buildModelFMU(Buildings.Media.Examples.SteamSaturationConsistencyCheck,fileNamePrefix="Buildings_10_Buildings_Media_Examples_SteamSaturationConsistencyCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Examples.SteamSaturationConsistencyCheck,fileNamePrefix="Buildings_10_Buildings_Media_Examples_SteamSaturationConsistencyCheck",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001664/0.001663, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001962/0.001962, allocations: 193 kB / 16.53 MB, free: 6.391 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.344/1.344, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.529/2.529, allocations: 437.1 MB / 0.7104 GB, free: 5.051 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001338/0.001338, allocations: 63.91 kB / 0.8693 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6125/0.6139, allocations: 151.6 MB / 1.017 GB, free: 2.465 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.SteamSaturationConsistencyCheck): time 0.14/0.7539, allocations: 135.5 MB / 1.15 GB, free: 10.39 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.009334/0.7633, allocations: 7.923 MB / 1.158 GB, free: 2.43 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.581e-05/0.7634, allocations: 0 / 1.158 GB, free: 2.43 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.0001797/0.7637, allocations: 23.91 kB / 1.158 GB, free: 2.406 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 5.781e-05/0.7637, allocations: 23.78 kB / 1.158 GB, free: 2.383 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.003965/0.7677, allocations: 1.454 MB / 1.159 GB, free: 0.9297 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.0001224/0.7678, allocations: 75.66 kB / 1.159 GB, free: 0.8555 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 3.663e-05/0.7679, allocations: 4 kB / 1.159 GB, free: 0.8516 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000127/0.768, allocations: 51.83 kB / 1.159 GB, free: 0.8008 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 8.088e-05/0.7681, allocations: 27.91 kB / 1.159 GB, free: 0.7734 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 1.711e-05/0.7681, allocations: 4 kB / 1.159 GB, free: 0.7695 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00421/0.7724, allocations: 2.645 MB / 1.162 GB, free: 14.12 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 2.518e-05/0.7724, allocations: 11.97 kB / 1.162 GB, free: 14.11 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 4.583e-05/0.7724, allocations: 31.86 kB / 1.162 GB, free: 14.08 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.00224/0.7747, allocations: 1.384 MB / 1.163 GB, free: 12.69 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.99e-06/0.7747, allocations: 0 / 1.163 GB, free: 12.69 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.423e-06/0.7747, allocations: 0 / 1.163 GB, free: 12.69 MB / 0.92 GB Notification: Performance of Transformations before backend: time 5.511e-06/0.7747, allocations: 4 kB / 1.163 GB, free: 12.69 MB / 0.92 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.001082/0.7758, allocations: 0.4888 MB / 1.164 GB, free: 12.15 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.454e-05/0.7759, allocations: 15.97 kB / 1.164 GB, free: 12.14 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.792e-05/0.7759, allocations: 38.73 kB / 1.164 GB, free: 12.09 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003834/0.7763, allocations: 24.83 kB / 1.164 GB, free: 12.07 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001276/0.7764, allocations: 172.2 kB / 1.164 GB, free: 11.86 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.471e-05/0.7765, allocations: 38.02 kB / 1.164 GB, free: 11.82 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.422e-05/0.7765, allocations: 4 kB / 1.164 GB, free: 11.81 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003713/0.7769, allocations: 123.4 kB / 1.164 GB, free: 11.69 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.507e-06/0.7769, allocations: 3.984 kB / 1.164 GB, free: 11.68 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.36e-05/0.777, allocations: 0 / 1.164 GB, free: 11.68 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.799e-06/0.777, allocations: 0 / 1.164 GB, free: 11.68 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002846/0.7773, allocations: 119.9 kB / 1.164 GB, free: 11.57 MB / 0.92 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.0004661/0.7777, allocations: 376 kB / 1.164 GB, free: 11.14 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002582/0.778, allocations: 126.6 kB / 1.165 GB, free: 11 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.342e-05/0.7781, allocations: 48.84 kB / 1.165 GB, free: 10.95 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01174/0.7898, allocations: 4.203 MB / 1.169 GB, free: 6.434 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.675e-05/0.7899, allocations: 38.56 kB / 1.169 GB, free: 6.387 MB / 0.92 GB Notification: Performance of pre-optimization done (n=13): time 1.933e-06/0.7899, allocations: 4 kB / 1.169 GB, free: 6.383 MB / 0.92 GB Notification: Performance of matching and sorting (n=13): time 0.000516/0.7904, allocations: 169 kB / 1.169 GB, free: 6.215 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.559e-05/0.7905, allocations: 55.41 kB / 1.169 GB, free: 6.148 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.981e-05/0.7906, allocations: 101.8 kB / 1.169 GB, free: 6.039 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 2.116e-05/0.7906, allocations: 29.7 kB / 1.169 GB, free: 6.004 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 5.29e-05/0.7906, allocations: 80.14 kB / 1.169 GB, free: 5.922 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 5.066e-05/0.7907, allocations: 55.42 kB / 1.169 GB, free: 5.867 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.568e-05/0.7908, allocations: 25.7 kB / 1.169 GB, free: 5.836 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001051/0.7909, allocations: 318.8 kB / 1.17 GB, free: 5.516 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.366e-05/0.7909, allocations: 27.98 kB / 1.17 GB, free: 5.488 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.743e-05/0.791, allocations: 23.98 kB / 1.17 GB, free: 5.465 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001106/0.7911, allocations: 68.78 kB / 1.17 GB, free: 5.395 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.225e-06/0.7911, allocations: 0 / 1.17 GB, free: 5.395 MB / 0.92 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001867/0.7913, allocations: 113.6 kB / 1.17 GB, free: 5.277 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.647e-05/0.7913, allocations: 4 kB / 1.17 GB, free: 5.273 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.181e-06/0.7913, allocations: 0 / 1.17 GB, free: 5.273 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.597e-05/0.7914, allocations: 192 / 1.17 GB, free: 5.273 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001282/0.7915, allocations: 27.98 kB / 1.17 GB, free: 5.246 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.643e-06/0.7915, allocations: 0 / 1.17 GB, free: 5.246 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.085e-05/0.7916, allocations: 15.84 kB / 1.17 GB, free: 5.23 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.486e-05/0.7916, allocations: 7.984 kB / 1.17 GB, free: 5.223 MB / 0.92 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.82e-05/0.7917, allocations: 126.8 kB / 1.17 GB, free: 5.09 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.063e-05/0.7918, allocations: 3.906 kB / 1.17 GB, free: 5.086 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004571/0.7922, allocations: 367.8 kB / 1.17 GB, free: 4.727 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.158e-05/0.7922, allocations: 7.984 kB / 1.17 GB, free: 4.719 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.99e-06/0.7923, allocations: 0 / 1.17 GB, free: 4.719 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/0.7923, allocations: 3.938 kB / 1.17 GB, free: 4.715 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002647/0.7925, allocations: 273.4 kB / 1.171 GB, free: 4.398 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.691e-06/0.7925, allocations: 3.984 kB / 1.171 GB, free: 4.395 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001004/0.7926, allocations: 27.94 kB / 1.171 GB, free: 4.367 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.244e-06/0.7927, allocations: 0 / 1.171 GB, free: 4.367 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.112e-05/0.7927, allocations: 7.984 kB / 1.171 GB, free: 4.359 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.7927, allocations: 0 / 1.171 GB, free: 4.359 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.7927, allocations: 4 kB / 1.171 GB, free: 4.355 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003495/0.793, allocations: 334.9 kB / 1.171 GB, free: 4.012 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 7.058e-05/0.7931, allocations: 100.8 kB / 1.171 GB, free: 3.895 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.902e-05/0.7931, allocations: 8 kB / 1.171 GB, free: 3.887 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001324/0.7933, allocations: 0 / 1.171 GB, free: 3.887 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.689e-05/0.7933, allocations: 15.92 kB / 1.171 GB, free: 3.871 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.351e-05/0.7933, allocations: 11.98 kB / 1.171 GB, free: 3.859 MB / 0.92 GB Notification: Performance of sorting global known variables: time 3.518e-05/0.7934, allocations: 79.28 kB / 1.171 GB, free: 3.781 MB / 0.92 GB Notification: Performance of sort global known variables: time 1e-07/0.7934, allocations: 0 / 1.171 GB, free: 3.781 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0008095/0.7942, allocations: 299.9 kB / 1.171 GB, free: 3.488 MB / 0.92 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.0018/0.796, allocations: 1.145 MB / 1.173 GB, free: 2.316 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0002534/0.7963, allocations: 137.1 kB / 1.173 GB, free: 2.184 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 3.075e-06/0.7963, allocations: 0 / 1.173 GB, free: 2.184 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 0.0001227/0.7964, allocations: 115.9 kB / 1.173 GB, free: 2.07 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003032/0.7967, allocations: 23.92 kB / 1.173 GB, free: 2.047 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009189/0.7976, allocations: 427.6 kB / 1.173 GB, free: 1.586 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002382/0.7979, allocations: 0.7166 MB / 1.174 GB, free: 0.8438 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 0.0001169/0.798, allocations: 40.41 kB / 1.174 GB, free: 0.8047 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.094e-05/0.7981, allocations: 39.42 kB / 1.174 GB, free: 0.7656 MB / 0.92 GB Notification: Performance of SimCode: time 3.71e-07/0.7981, allocations: 0 / 1.174 GB, free: 0.7656 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03195/0.83, allocations: 11.6 MB / 1.185 GB, free: 5.23 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.725/8.555, allocations: 8.125 kB / 1.185 GB, free: 5.227 MB / 0.9356 GB (rm -f Buildings_10_Buildings.Media.Examples.SteamSaturationConsistencyCheck.pipe ; mkfifo Buildings_10_Buildings.Media.Examples.SteamSaturationConsistencyCheck.pipe ; head -c 1048576 < Buildings_10_Buildings.Media.Examples.SteamSaturationConsistencyCheck.pipe >> ../files/Buildings_10_Buildings.Media.Examples.SteamSaturationConsistencyCheck.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Media.Examples.SteamSaturationConsistencyCheck_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_10_Buildings_Media_Examples_SteamSaturationConsistencyCheck.fmu > Buildings_10_Buildings.Media.Examples.SteamSaturationConsistencyCheck.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Media.Examples.SteamSaturationConsistencyCheck_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Media_Examples_SteamSaturationConsistencyCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Media.Examples.SteamSaturationConsistencyCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches