Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Media.Examples.SteamProperties.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.SteamProperties,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|p|X.1.|d|eta|h|u|s|g|f|hIse|beta|kappa|ddhp|ddph|cp|cv|lambda|pMed|TMed|MM",fileNamePrefix="Buildings_latest_Buildings.Media.Examples.SteamProperties") translateModel(Buildings.Media.Examples.SteamProperties,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|p|X.1.|d|eta|h|u|s|g|f|hIse|beta|kappa|ddhp|ddph|cp|cv|lambda|pMed|TMed|MM",fileNamePrefix="Buildings_latest_Buildings.Media.Examples.SteamProperties") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001722/0.001722, allocations: 111.3 kB / 15.23 MB, free: 0.6367 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.001842/0.001843, allocations: 201.3 kB / 16.14 MB, free: 6.801 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.464/1.464, allocations: 222.9 MB / 239.8 MB, free: 4.586 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.784/2.784, allocations: 461.9 MB / 0.7342 GB, free: 15.04 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001347/0.001347, allocations: 65.61 kB / 0.8984 GB, free: 37.28 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3666/0.3679, allocations: 157.4 MB / 1.052 GB, free: 8.906 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.SteamProperties): time 0.1763/0.5444, allocations: 134 MB / 1.183 GB, free: 2.367 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.03332/0.5777, allocations: 25.14 MB / 1.208 GB, free: 9.152 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002958/0.5781, allocations: 4 kB / 1.208 GB, free: 9.148 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0004119/0.5785, allocations: 31.8 kB / 1.208 GB, free: 9.117 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0004106/0.579, allocations: 91.48 kB / 1.208 GB, free: 9.027 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.02055/0.5995, allocations: 5.488 MB / 1.213 GB, free: 3.555 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.00051/0.6001, allocations: 307.8 kB / 1.213 GB, free: 3.254 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 7.031e-05/0.6001, allocations: 17.5 kB / 1.213 GB, free: 3.238 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004089/0.6006, allocations: 131.4 kB / 1.213 GB, free: 3.109 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002217/0.6008, allocations: 91.66 kB / 1.214 GB, free: 3.02 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.923e-05/0.6008, allocations: 8 kB / 1.214 GB, free: 3.012 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02445/0.6253, allocations: 11.52 MB / 1.225 GB, free: 7.477 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0001519/0.6255, allocations: 35.89 kB / 1.225 GB, free: 7.441 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001849/0.6257, allocations: 87.64 kB / 1.225 GB, free: 7.355 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.02178/0.6475, allocations: 6.507 MB / 1.231 GB, free: 0.8359 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 7.674e-06/0.6476, allocations: 0 / 1.231 GB, free: 0.8359 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.793e-06/0.6476, allocations: 0 / 1.231 GB, free: 0.8359 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.021e-05/0.6476, allocations: 0 / 1.231 GB, free: 0.8359 MB / 0.9825 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.005801/0.6534, allocations: 1.201 MB / 1.232 GB, free: 15.59 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 6.716e-05/0.6535, allocations: 8.031 kB / 1.232 GB, free: 15.58 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00126/0.6547, allocations: 80.67 kB / 1.233 GB, free: 15.5 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003145/0.6551, allocations: 228.2 kB / 1.233 GB, free: 15.24 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.989e-05/0.6551, allocations: 16.12 kB / 1.233 GB, free: 15.22 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.938e-05/0.6552, allocations: 23.88 kB / 1.233 GB, free: 15.2 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001348/0.6565, allocations: 452.4 kB / 1.233 GB, free: 14.74 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.369e-05/0.6566, allocations: 4 kB / 1.233 GB, free: 14.73 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.367e-05/0.6566, allocations: 4 kB / 1.233 GB, free: 14.73 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.179e-05/0.6566, allocations: 7.938 kB / 1.233 GB, free: 14.72 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001387/0.658, allocations: 0.5971 MB / 1.234 GB, free: 14.12 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001311/0.6593, allocations: 0.8744 MB / 1.235 GB, free: 13.16 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009083/0.6603, allocations: 260.7 kB / 1.235 GB, free: 12.9 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001365/0.6604, allocations: 80.77 kB / 1.235 GB, free: 12.82 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.6732/1.334, allocations: 35.03 MB / 1.269 GB, free: 177.1 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.244e-05/1.334, allocations: 33.78 kB / 1.269 GB, free: 177 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=25): time 2.455e-06/1.334, allocations: 0.625 kB / 1.269 GB, free: 177 MB / 0.9981 GB Notification: Performance of matching and sorting (n=25): time 0.002199/1.336, allocations: 416.7 kB / 1.27 GB, free: 177 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.899e-05/1.336, allocations: 59.3 kB / 1.27 GB, free: 176.9 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001609/1.336, allocations: 150.7 kB / 1.27 GB, free: 176.8 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 3.259e-05/1.336, allocations: 30.27 kB / 1.27 GB, free: 176.8 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 6.067e-05/1.336, allocations: 108.2 kB / 1.27 GB, free: 176.7 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 7.887e-05/1.336, allocations: 84.02 kB / 1.27 GB, free: 176.7 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001733/1.336, allocations: 79.38 kB / 1.27 GB, free: 176.7 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 8.914e-05/1.337, allocations: 326.4 kB / 1.27 GB, free: 176.3 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002466/1.337, allocations: 79.56 kB / 1.27 GB, free: 176.3 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003051/1.337, allocations: 138.6 kB / 1.271 GB, free: 176.3 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005061/1.338, allocations: 221 kB / 1.271 GB, free: 176.2 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/1.338, allocations: 0.5312 kB / 1.271 GB, free: 176.2 MB / 0.9981 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0008411/1.339, allocations: 303.2 kB / 1.271 GB, free: 176.2 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.947e-05/1.339, allocations: 5.609 kB / 1.271 GB, free: 176.2 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.276e-06/1.339, allocations: 6.172 kB / 1.271 GB, free: 176.2 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.827e-05/1.339, allocations: 2.781 kB / 1.271 GB, free: 176.2 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003296/1.339, allocations: 81.19 kB / 1.271 GB, free: 176.2 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.081e-05/1.339, allocations: 6.438 kB / 1.271 GB, free: 176.2 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001729/1.339, allocations: 30.34 kB / 1.271 GB, free: 176.2 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.958e-05/1.339, allocations: 24.23 kB / 1.271 GB, free: 176.2 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 (30): * Single equations (assignments): 30 * 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.00012/1.339, allocations: 129 kB / 1.271 GB, free: 176 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001856/1.339, allocations: 14.34 kB / 1.271 GB, free: 176 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002892/1.342, allocations: 2.345 MB / 1.274 GB, free: 175.9 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.37e-05/1.342, allocations: 13.3 kB / 1.274 GB, free: 175.9 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.783e-06/1.342, allocations: 3.938 kB / 1.274 GB, free: 175.9 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.117e-06/1.342, allocations: 2.578 kB / 1.274 GB, free: 175.9 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003709/1.346, allocations: 3.428 MB / 1.277 GB, free: 175.4 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.52e-06/1.346, allocations: 0 / 1.277 GB, free: 175.4 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002937/1.346, allocations: 55.91 kB / 1.277 GB, free: 175.4 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.32e-06/1.347, allocations: 5.969 kB / 1.277 GB, free: 175.4 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.944e-05/1.347, allocations: 7.172 kB / 1.277 GB, free: 175.4 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.805e-06/1.347, allocations: 1.469 kB / 1.277 GB, free: 175.4 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/1.347, allocations: 1.797 kB / 1.277 GB, free: 175.4 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007261/1.347, allocations: 0.5494 MB / 1.278 GB, free: 175.2 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001093/1.347, allocations: 146.3 kB / 1.278 GB, free: 175.1 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.132e-05/1.347, allocations: 5.5 kB / 1.278 GB, free: 175.1 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002228/1.348, allocations: 14.64 kB / 1.278 GB, free: 175.1 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.958e-05/1.348, allocations: 19.33 kB / 1.278 GB, free: 175.1 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.022e-05/1.348, allocations: 13.31 kB / 1.278 GB, free: 175.1 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 7.286e-05/1.348, allocations: 109.7 kB / 1.278 GB, free: 175 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.3e-07/1.348, allocations: 4.594 kB / 1.278 GB, free: 175 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.005031/1.353, allocations: 1.692 MB / 1.28 GB, free: 174.9 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse3.phase,$cse3.region) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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.009/1.362, allocations: 1.932 MB / 1.281 GB, free: 174.6 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0008417/1.363, allocations: 326 kB / 1.282 GB, free: 174.6 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 6.152e-06/1.363, allocations: 0.9688 kB / 1.282 GB, free: 174.6 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0003372/1.363, allocations: 244.2 kB / 1.282 GB, free: 174.6 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006434/1.364, allocations: 64.42 kB / 1.282 GB, free: 174.6 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001051/1.365, allocations: 0.7558 MB / 1.283 GB, free: 174.2 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002032/1.365, allocations: 0.766 MB / 1.284 GB, free: 173.5 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.0005297/1.366, allocations: 409.2 kB / 1.284 GB, free: 173.5 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001508/1.366, allocations: 48.05 kB / 1.284 GB, free: 173.5 MB / 0.9981 GB Notification: Performance of SimCode: time 7.61e-07/1.366, allocations: 1.125 kB / 1.284 GB, free: 173.5 MB / 0.9981 GB Notification: Performance of Templates: time 0.05837/1.424, allocations: 59.41 MB / 1.342 GB, free: 121.5 MB / 0.9981 GB make -j1 -f Buildings_latest_Buildings.Media.Examples.SteamProperties.makefile (rm -f Buildings_latest_Buildings.Media.Examples.SteamProperties.pipe ; mkfifo Buildings_latest_Buildings.Media.Examples.SteamProperties.pipe ; head -c 1048576 < Buildings_latest_Buildings.Media.Examples.SteamProperties.pipe >> ../files/Buildings_latest_Buildings.Media.Examples.SteamProperties.sim & ./Buildings_latest_Buildings.Media.Examples.SteamProperties -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Media.Examples.SteamProperties.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Media.Examples.SteamProperties_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Media_Examples_SteamProperties.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Media.Examples.SteamProperties.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches