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.001401/0.001401, allocations: 108 kB / 15.61 MB, free: 152 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.001782/0.001782, allocations: 195.2 kB / 16.53 MB, free: 6.664 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.373/1.373, allocations: 222.9 MB / 240.2 MB, free: 4.363 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.832/2.832, allocations: 472.6 MB / 0.7451 GB, free: 4.645 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001285/0.001285, allocations: 67.97 kB / 0.912 GB, free: 33.36 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3479/0.3492, allocations: 159.9 MB / 1.068 GB, free: 10.41 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.SteamSaturationConsistencyCheck): time 0.1583/0.5076, allocations: 135.5 MB / 1.201 GB, free: 2.324 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.01088/0.5185, allocations: 7.919 MB / 1.208 GB, free: 10.38 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.042e-05/0.5186, allocations: 0 / 1.208 GB, free: 10.38 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0002223/0.5189, allocations: 19.89 kB / 1.208 GB, free: 10.36 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 7.022e-05/0.519, allocations: 23.78 kB / 1.208 GB, free: 10.34 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.004411/0.5234, allocations: 1.454 MB / 1.21 GB, free: 8.883 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.00015/0.5236, allocations: 75.66 kB / 1.21 GB, free: 8.809 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 5.21e-05/0.5236, allocations: 7.984 kB / 1.21 GB, free: 8.801 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001736/0.5238, allocations: 43.84 kB / 1.21 GB, free: 8.758 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001029/0.5239, allocations: 43.77 kB / 1.21 GB, free: 8.715 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.904e-05/0.524, allocations: 4 kB / 1.21 GB, free: 8.711 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004606/0.5286, allocations: 2.641 MB / 1.213 GB, free: 6.066 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.671e-05/0.5286, allocations: 11.98 kB / 1.213 GB, free: 6.055 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 5.949e-05/0.5287, allocations: 31.84 kB / 1.213 GB, free: 6.023 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.002702/0.5314, allocations: 1.38 MB / 1.214 GB, free: 4.641 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.628e-06/0.5314, allocations: 0 / 1.214 GB, free: 4.641 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.763e-06/0.5314, allocations: 4 kB / 1.214 GB, free: 4.637 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 6.342e-06/0.5314, allocations: 0 / 1.214 GB, free: 4.637 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.001233/0.5327, allocations: 0.4914 MB / 1.214 GB, free: 4.098 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.422e-05/0.5327, allocations: 8.031 kB / 1.214 GB, free: 4.09 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004177/0.5331, allocations: 24.83 kB / 1.214 GB, free: 4.066 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000132/0.5333, allocations: 168.3 kB / 1.215 GB, free: 3.863 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.597e-05/0.5334, allocations: 38.19 kB / 1.215 GB, free: 3.82 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.052e-05/0.5334, allocations: 11.94 kB / 1.215 GB, free: 3.809 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003726/0.5338, allocations: 117.6 kB / 1.215 GB, free: 3.688 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.188e-06/0.5338, allocations: 0 / 1.215 GB, free: 3.688 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.535e-05/0.5338, allocations: 0 / 1.215 GB, free: 3.688 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.416e-06/0.5338, allocations: 0 / 1.215 GB, free: 3.688 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003052/0.5341, allocations: 119.9 kB / 1.215 GB, free: 3.57 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.0005298/0.5347, allocations: 384 kB / 1.215 GB, free: 3.133 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002622/0.5349, allocations: 130.5 kB / 1.215 GB, free: 2.996 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.565e-05/0.535, allocations: 48.84 kB / 1.215 GB, free: 2.945 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0128/0.5478, allocations: 4.206 MB / 1.219 GB, free: 14.42 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.955e-05/0.5479, allocations: 30.56 kB / 1.22 GB, free: 14.38 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=13): time 2.525e-06/0.5479, allocations: 0 / 1.22 GB, free: 14.38 MB / 0.9825 GB Notification: Performance of matching and sorting (n=13): time 0.0005584/0.5485, allocations: 176.6 kB / 1.22 GB, free: 14.2 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.357e-05/0.5485, allocations: 51.41 kB / 1.22 GB, free: 14.14 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.946e-05/0.5486, allocations: 105.8 kB / 1.22 GB, free: 14.03 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.02e-05/0.5487, allocations: 29.64 kB / 1.22 GB, free: 13.99 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 4.666e-05/0.5487, allocations: 84.14 kB / 1.22 GB, free: 13.91 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 4.455e-05/0.5488, allocations: 47.44 kB / 1.22 GB, free: 13.86 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.697e-05/0.5488, allocations: 33.7 kB / 1.22 GB, free: 13.82 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.000116/0.5489, allocations: 314.8 kB / 1.22 GB, free: 13.5 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.68e-05/0.549, allocations: 27.98 kB / 1.22 GB, free: 13.48 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.692e-05/0.5491, allocations: 27.98 kB / 1.22 GB, free: 13.45 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001068/0.5492, allocations: 64.84 kB / 1.22 GB, free: 13.38 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.743e-06/0.5492, allocations: 0 / 1.22 GB, free: 13.38 MB / 0.9825 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001988/0.5494, allocations: 113.5 kB / 1.221 GB, free: 13.27 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.517e-05/0.5494, allocations: 8 kB / 1.221 GB, free: 13.26 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.092e-06/0.5494, allocations: 0 / 1.221 GB, free: 13.26 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.522e-05/0.5494, allocations: 0 / 1.221 GB, free: 13.26 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001334/0.5496, allocations: 27.92 kB / 1.221 GB, free: 13.23 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.385e-06/0.5496, allocations: 4 kB / 1.221 GB, free: 13.23 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.122e-05/0.5496, allocations: 7.938 kB / 1.221 GB, free: 13.22 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.193e-05/0.5497, allocations: 4 kB / 1.221 GB, free: 13.21 MB / 0.9825 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 0.0001714/0.5498, allocations: 113.8 kB / 1.221 GB, free: 13.09 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.374e-05/0.5499, allocations: 11.89 kB / 1.221 GB, free: 13.08 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004746/0.5504, allocations: 375.6 kB / 1.221 GB, free: 12.71 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.275e-05/0.5504, allocations: 7.984 kB / 1.221 GB, free: 12.7 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.5504, allocations: 0 / 1.221 GB, free: 12.7 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.245e-06/0.5504, allocations: 7.938 kB / 1.221 GB, free: 12.7 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003724/0.5508, allocations: 277.3 kB / 1.221 GB, free: 12.38 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.936e-06/0.5508, allocations: 0 / 1.221 GB, free: 12.38 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001028/0.5509, allocations: 27.92 kB / 1.221 GB, free: 12.35 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.346e-06/0.5509, allocations: 4 kB / 1.221 GB, free: 12.34 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.239e-05/0.551, allocations: 3.984 kB / 1.221 GB, free: 12.34 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.785e-06/0.551, allocations: 0 / 1.221 GB, free: 12.34 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.551, allocations: 4 kB / 1.221 GB, free: 12.34 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003733/0.5513, allocations: 327 kB / 1.222 GB, free: 12 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 9.438e-05/0.5515, allocations: 108.8 kB / 1.222 GB, free: 11.88 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.188e-05/0.5515, allocations: 4 kB / 1.222 GB, free: 11.87 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001369/0.5516, allocations: 4 kB / 1.222 GB, free: 11.87 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.871e-05/0.5517, allocations: 11.98 kB / 1.222 GB, free: 11.86 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.712e-05/0.5517, allocations: 11.92 kB / 1.222 GB, free: 11.84 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 4.402e-05/0.5517, allocations: 87.22 kB / 1.222 GB, free: 11.76 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.21e-07/0.5517, allocations: 0 / 1.222 GB, free: 11.76 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.001031/0.5528, allocations: 299.9 kB / 1.222 GB, free: 11.46 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.001469/0.5543, allocations: 399.5 kB / 1.223 GB, free: 11.07 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0003316/0.5546, allocations: 135.1 kB / 1.223 GB, free: 10.94 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.945e-06/0.5546, allocations: 0 / 1.223 GB, free: 10.94 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001422/0.5548, allocations: 109.9 kB / 1.223 GB, free: 10.83 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003162/0.5551, allocations: 15.98 kB / 1.223 GB, free: 10.82 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005965/0.5557, allocations: 320.5 kB / 1.223 GB, free: 10.48 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003497/0.5561, allocations: 0.7166 MB / 1.224 GB, free: 9.734 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.0001233/0.5562, allocations: 32.27 kB / 1.224 GB, free: 9.703 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.766e-05/0.5562, allocations: 15.44 kB / 1.224 GB, free: 9.688 MB / 0.9825 GB Notification: Performance of SimCode: time 2.5e-07/0.5562, allocations: 4 kB / 1.224 GB, free: 9.684 MB / 0.9825 GB Notification: Performance of Templates: time 0.01817/0.5744, allocations: 9.807 MB / 1.233 GB, free: 15.87 MB / 0.9981 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