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.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.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: "" <> buildModelFMU(Buildings.Media.Examples.SteamSaturationConsistencyCheck,fileNamePrefix="Buildings_latest_Buildings_Media_Examples_SteamSaturationConsistencyCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Examples.SteamSaturationConsistencyCheck,fileNamePrefix="Buildings_latest_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.008167/0.008167, allocations: 97.75 kB / 15.73 MB, free: 5.949 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.001903/0.001903, allocations: 193.8 kB / 16.67 MB, free: 5.871 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.346/1.346, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.589/2.589, allocations: 469.4 MB / 0.7422 GB, free: 3.484 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001211/0.001211, allocations: 63.91 kB / 1.064 GB, free: 14.32 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.766/0.7673, allocations: 159.1 MB / 1.22 GB, free: 2.289 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.SteamSaturationConsistencyCheck): time 0.1457/0.913, allocations: 135.5 MB / 1.352 GB, free: 10.2 MB / 1.076 GB Notification: Performance of NFInst.instExpressions: time 0.009498/0.9225, allocations: 7.919 MB / 1.36 GB, free: 2.254 MB / 1.076 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.632e-05/0.9226, allocations: 0 / 1.36 GB, free: 2.254 MB / 1.076 GB Notification: Performance of NFTyping.typeComponents: time 0.0002112/0.9229, allocations: 31.83 kB / 1.36 GB, free: 2.223 MB / 1.076 GB Notification: Performance of NFTyping.typeBindings: time 5.773e-05/0.9229, allocations: 15.84 kB / 1.36 GB, free: 2.207 MB / 1.076 GB Notification: Performance of NFTyping.typeClassSections: time 0.004144/0.9271, allocations: 1.454 MB / 1.361 GB, free: 0.7578 MB / 1.076 GB Notification: Performance of NFFlatten.flatten: time 0.0001484/0.9272, allocations: 79.64 kB / 1.361 GB, free: 0.6797 MB / 1.076 GB Notification: Performance of NFFlatten.resolveConnections: time 4.784e-05/0.9273, allocations: 4 kB / 1.361 GB, free: 0.6758 MB / 1.076 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001421/0.9274, allocations: 47.83 kB / 1.361 GB, free: 0.6289 MB / 1.076 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000105/0.9276, allocations: 35.86 kB / 1.361 GB, free: 0.5938 MB / 1.076 GB Notification: Performance of NFPackage.collectConstants: time 1.381e-05/0.9276, allocations: 0 / 1.361 GB, free: 0.5938 MB / 1.076 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004448/0.932, allocations: 2.708 MB / 1.364 GB, free: 13.88 MB / 1.092 GB Notification: Performance of NFScalarize.scalarize: time 3.132e-05/0.9321, allocations: 15.97 kB / 1.364 GB, free: 13.87 MB / 1.092 GB Notification: Performance of NFVerifyModel.verify: time 4.767e-05/0.9321, allocations: 27.86 kB / 1.364 GB, free: 13.84 MB / 1.092 GB Notification: Performance of NFConvertDAE.convert: time 0.002088/0.9342, allocations: 1.385 MB / 1.365 GB, free: 12.45 MB / 1.092 GB Notification: Performance of FrontEnd - DAE generated: time 6.623e-06/0.9343, allocations: 4 kB / 1.365 GB, free: 12.45 MB / 1.092 GB Notification: Performance of FrontEnd: time 1.673e-06/0.9343, allocations: 0 / 1.365 GB, free: 12.45 MB / 1.092 GB Notification: Performance of Transformations before backend: time 6.232e-06/0.9343, allocations: 3.938 kB / 1.365 GB, free: 12.45 MB / 1.092 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.001097/0.9354, allocations: 0.5009 MB / 1.366 GB, free: 11.9 MB / 1.092 GB Notification: Performance of prepare preOptimizeDAE: time 4.625e-05/0.9354, allocations: 8.625 kB / 1.366 GB, free: 11.89 MB / 1.092 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.025e-05/0.9355, allocations: 38.75 kB / 1.366 GB, free: 11.84 MB / 1.092 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003847/0.9359, allocations: 28.86 kB / 1.366 GB, free: 11.82 MB / 1.092 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001256/0.936, allocations: 172.3 kB / 1.366 GB, free: 11.61 MB / 1.092 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.432e-05/0.9361, allocations: 34.02 kB / 1.366 GB, free: 11.57 MB / 1.092 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.15e-05/0.9361, allocations: 8 kB / 1.366 GB, free: 11.56 MB / 1.092 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003788/0.9365, allocations: 117.6 kB / 1.366 GB, free: 11.44 MB / 1.092 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.717e-06/0.9365, allocations: 4 kB / 1.366 GB, free: 11.44 MB / 1.092 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.637e-05/0.9366, allocations: 4 kB / 1.366 GB, free: 11.43 MB / 1.092 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.179e-06/0.9366, allocations: 0 / 1.366 GB, free: 11.43 MB / 1.092 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002975/0.9369, allocations: 119.8 kB / 1.366 GB, free: 11.32 MB / 1.092 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.0004845/0.9374, allocations: 376.1 kB / 1.367 GB, free: 10.89 MB / 1.092 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002787/0.9376, allocations: 130.6 kB / 1.367 GB, free: 10.75 MB / 1.092 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.854e-05/0.9377, allocations: 56.83 kB / 1.367 GB, free: 10.69 MB / 1.092 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01171/0.9495, allocations: 4.222 MB / 1.371 GB, free: 6.152 MB / 1.092 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.802e-05/0.9495, allocations: 38.56 kB / 1.371 GB, free: 6.105 MB / 1.092 GB Notification: Performance of pre-optimization done (n=13): time 3.506e-06/0.9495, allocations: 0 / 1.371 GB, free: 6.105 MB / 1.092 GB Notification: Performance of matching and sorting (n=13): time 0.0005348/0.9501, allocations: 169.5 kB / 1.371 GB, free: 5.934 MB / 1.092 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.041e-05/0.9501, allocations: 55.41 kB / 1.371 GB, free: 5.867 MB / 1.092 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.933e-05/0.9502, allocations: 101.8 kB / 1.371 GB, free: 5.758 MB / 1.092 GB Notification: Performance of collectPreVariables (initialization): time 1.867e-05/0.9502, allocations: 29.7 kB / 1.372 GB, free: 5.723 MB / 1.092 GB Notification: Performance of collectInitialEqns (initialization): time 3.804e-05/0.9503, allocations: 80.14 kB / 1.372 GB, free: 5.641 MB / 1.092 GB Notification: Performance of collectInitialBindings (initialization): time 4.249e-05/0.9503, allocations: 55.58 kB / 1.372 GB, free: 5.586 MB / 1.092 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.209e-05/0.9504, allocations: 33.64 kB / 1.372 GB, free: 5.547 MB / 1.092 GB Notification: Performance of setup shared object (initialization): time 9.295e-05/0.9505, allocations: 314.8 kB / 1.372 GB, free: 5.23 MB / 1.092 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.783e-05/0.9505, allocations: 23.98 kB / 1.372 GB, free: 5.207 MB / 1.092 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.634e-05/0.9506, allocations: 27.98 kB / 1.372 GB, free: 5.18 MB / 1.092 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001106/0.9507, allocations: 72.41 kB / 1.372 GB, free: 5.109 MB / 1.092 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.9507, allocations: 0 / 1.372 GB, free: 5.109 MB / 1.092 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001824/0.9509, allocations: 109.7 kB / 1.372 GB, free: 4.996 MB / 1.092 GB Notification: Performance of prepare postOptimizeDAE: time 1.506e-05/0.9509, allocations: 5.719 kB / 1.372 GB, free: 4.992 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.949e-06/0.9509, allocations: 4 kB / 1.372 GB, free: 4.988 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.323e-05/0.9509, allocations: 0 / 1.372 GB, free: 4.988 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001239/0.9511, allocations: 19.98 kB / 1.372 GB, free: 4.969 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.813e-06/0.9511, allocations: 4 kB / 1.372 GB, free: 4.965 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.283e-05/0.9511, allocations: 19.77 kB / 1.372 GB, free: 4.945 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.016e-05/0.9511, allocations: 4 kB / 1.372 GB, free: 4.941 MB / 1.092 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 7.95e-05/0.9512, allocations: 110.4 kB / 1.372 GB, free: 4.824 MB / 1.092 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.87e-05/0.9513, allocations: 11.94 kB / 1.372 GB, free: 4.812 MB / 1.092 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004414/0.9517, allocations: 380 kB / 1.373 GB, free: 4.438 MB / 1.092 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.024e-05/0.9518, allocations: 7.984 kB / 1.373 GB, free: 4.43 MB / 1.092 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.908e-06/0.9518, allocations: 0 / 1.373 GB, free: 4.43 MB / 1.092 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.939e-06/0.9518, allocations: 3.938 kB / 1.373 GB, free: 4.426 MB / 1.092 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002652/0.952, allocations: 281.4 kB / 1.373 GB, free: 4.102 MB / 1.092 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.236e-06/0.9521, allocations: 3.938 kB / 1.373 GB, free: 4.098 MB / 1.092 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000104/0.9522, allocations: 27.98 kB / 1.373 GB, free: 4.07 MB / 1.092 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.795e-06/0.9522, allocations: 0 / 1.373 GB, free: 4.07 MB / 1.092 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.405e-05/0.9522, allocations: 7.984 kB / 1.373 GB, free: 4.062 MB / 1.092 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.783e-06/0.9522, allocations: 0 / 1.373 GB, free: 4.062 MB / 1.092 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.9522, allocations: 0 / 1.373 GB, free: 4.062 MB / 1.092 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003388/0.9525, allocations: 335 kB / 1.373 GB, free: 3.719 MB / 1.092 GB Notification: Performance of postOpt removeConstants (simulation): time 7.38e-05/0.9526, allocations: 104.9 kB / 1.373 GB, free: 3.598 MB / 1.092 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.016e-05/0.9527, allocations: 4 kB / 1.373 GB, free: 3.594 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001412/0.9528, allocations: 7.938 kB / 1.373 GB, free: 3.586 MB / 1.092 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.867e-05/0.9528, allocations: 15.92 kB / 1.374 GB, free: 3.57 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.34e-05/0.9529, allocations: 7.984 kB / 1.374 GB, free: 3.562 MB / 1.092 GB Notification: Performance of sorting global known variables: time 3.333e-05/0.9529, allocations: 79.28 kB / 1.374 GB, free: 3.484 MB / 1.092 GB Notification: Performance of sort global known variables: time 1.2e-07/0.9529, allocations: 4 kB / 1.374 GB, free: 3.48 MB / 1.092 GB Notification: Performance of remove unused functions: time 0.0008135/0.9537, allocations: 303.7 kB / 1.374 GB, free: 3.184 MB / 1.092 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.00183/0.9556, allocations: 1.145 MB / 1.375 GB, free: 2.008 MB / 1.092 GB Notification: Performance of simCode: created initialization part: time 0.0002143/0.9558, allocations: 124 kB / 1.375 GB, free: 1.887 MB / 1.092 GB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.9558, allocations: 0 / 1.375 GB, free: 1.887 MB / 1.092 GB Notification: Performance of simCode: created simulation system equations: time 0.0001278/0.9559, allocations: 109.6 kB / 1.375 GB, free: 1.781 MB / 1.092 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003147/0.9563, allocations: 27.92 kB / 1.375 GB, free: 1.754 MB / 1.092 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009157/0.9572, allocations: 430.2 kB / 1.376 GB, free: 1.285 MB / 1.092 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002374/0.9574, allocations: 0.7127 MB / 1.376 GB, free: 0.5469 MB / 1.092 GB Notification: Performance of simCode: alias equations: time 0.0001109/0.9575, allocations: 36.28 kB / 1.376 GB, free: 0.5117 MB / 1.092 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.077e-05/0.9576, allocations: 43.36 kB / 1.376 GB, free: 480 kB / 1.092 GB Notification: Performance of SimCode: time 2.2e-07/0.9576, allocations: 0 / 1.376 GB, free: 480 kB / 1.092 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03185/0.9895, allocations: 11.63 MB / 1.388 GB, free: 4.941 MB / 1.107 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.83/8.819, allocations: 11.31 kB / 1.388 GB, free: 4.938 MB / 1.107 GB (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 & python3 -m fmpy simulate --output-file Buildings_latest_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_latest_Buildings_Media_Examples_SteamSaturationConsistencyCheck.fmu > Buildings_latest_Buildings.Media.Examples.SteamSaturationConsistencyCheck.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Media.Examples.SteamSaturationConsistencyCheck_res.csv","/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