Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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: 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_9_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_9_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.00543/0.005437, allocations: 100.8 kB / 15.73 MB, free: 6.039 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.001078/0.001078, allocations: 193.8 kB / 16.68 MB, free: 5.953 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.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.253/2.253, allocations: 390.2 MB / 0.6648 GB, free: 0.6719 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001205/0.001205, allocations: 56.14 kB / 0.9508 GB, free: 7.656 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.05/1.052, allocations: 140.4 MB / 1.088 GB, free: 5.535 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.SteamProperties): time 0.1942/1.246, allocations: 136.1 MB / 1.221 GB, free: 244 kB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.03281/1.279, allocations: 22.35 MB / 1.243 GB, free: 14.49 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002664/1.279, allocations: 0 / 1.243 GB, free: 14.49 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0003992/1.279, allocations: 48.02 kB / 1.243 GB, free: 14.45 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0004835/1.28, allocations: 94.73 kB / 1.243 GB, free: 14.37 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.02359/1.304, allocations: 6.69 MB / 1.249 GB, free: 8.457 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0005429/1.304, allocations: 255.8 kB / 1.25 GB, free: 8.207 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 6.003e-05/1.304, allocations: 9.562 kB / 1.25 GB, free: 8.199 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0004565/1.305, allocations: 143.4 kB / 1.25 GB, free: 8.059 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002155/1.305, allocations: 99.61 kB / 1.25 GB, free: 7.961 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.864e-05/1.305, allocations: 8 kB / 1.25 GB, free: 7.953 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0263/1.331, allocations: 10.95 MB / 1.261 GB, free: 12.99 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001502/1.331, allocations: 39.89 kB / 1.261 GB, free: 12.95 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001762/1.332, allocations: 79.66 kB / 1.261 GB, free: 12.87 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.02021/1.352, allocations: 6.156 MB / 1.267 GB, free: 6.703 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 1.273e-05/1.352, allocations: 4 kB / 1.267 GB, free: 6.699 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.933e-06/1.352, allocations: 0 / 1.267 GB, free: 6.699 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 1.305e-05/1.352, allocations: 4 kB / 1.267 GB, free: 6.695 MB / 0.9981 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.004575/1.356, allocations: 1.174 MB / 1.268 GB, free: 5.473 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 5.183e-05/1.357, allocations: 8.031 kB / 1.268 GB, free: 5.465 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001287/1.358, allocations: 88.66 kB / 1.268 GB, free: 5.379 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005374/1.358, allocations: 232.1 kB / 1.268 GB, free: 5.113 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.883e-05/1.358, allocations: 16.12 kB / 1.268 GB, free: 5.098 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.273e-05/1.358, allocations: 12 kB / 1.268 GB, free: 5.086 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001409/1.36, allocations: 456.5 kB / 1.269 GB, free: 4.621 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.793e-05/1.36, allocations: 3.938 kB / 1.269 GB, free: 4.617 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.973e-05/1.36, allocations: 12 kB / 1.269 GB, free: 4.605 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.181e-05/1.36, allocations: 4 kB / 1.269 GB, free: 4.602 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001351/1.361, allocations: 0.5969 MB / 1.269 GB, free: 4.004 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001509/1.363, allocations: 0.8822 MB / 1.27 GB, free: 3.035 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008859/1.364, allocations: 258.1 kB / 1.27 GB, free: 2.773 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001244/1.364, allocations: 72.83 kB / 1.27 GB, free: 2.699 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0852/1.449, allocations: 35.43 MB / 1.305 GB, free: 12.17 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.654e-05/1.449, allocations: 30.56 kB / 1.305 GB, free: 12.13 MB / 1.045 GB Notification: Performance of pre-optimization done (n=25): time 2.014e-06/1.449, allocations: 0 / 1.305 GB, free: 12.13 MB / 1.045 GB Notification: Performance of matching and sorting (n=25): time 0.001725/1.451, allocations: 418.9 kB / 1.305 GB, free: 11.72 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.316e-05/1.451, allocations: 55.41 kB / 1.305 GB, free: 11.65 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001351/1.451, allocations: 140.3 kB / 1.306 GB, free: 11.51 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 3.359e-05/1.451, allocations: 37.64 kB / 1.306 GB, free: 11.46 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 8.509e-05/1.451, allocations: 116.3 kB / 1.306 GB, free: 11.34 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 6.827e-05/1.451, allocations: 82.75 kB / 1.306 GB, free: 11.26 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001413/1.452, allocations: 81.66 kB / 1.306 GB, free: 11.18 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001454/1.452, allocations: 330.7 kB / 1.306 GB, free: 10.84 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001674/1.452, allocations: 83.95 kB / 1.306 GB, free: 10.76 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002624/1.452, allocations: 130.6 kB / 1.306 GB, free: 10.62 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004937/1.453, allocations: 215.2 kB / 1.307 GB, free: 10.39 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/1.453, allocations: 0 / 1.307 GB, free: 10.39 MB / 1.045 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0007661/1.453, allocations: 302.9 kB / 1.307 GB, free: 10.09 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 2.39e-05/1.453, allocations: 4 kB / 1.307 GB, free: 10.09 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.806e-06/1.453, allocations: 4 kB / 1.307 GB, free: 10.08 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.99e-05/1.453, allocations: 4 kB / 1.307 GB, free: 10.08 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003013/1.454, allocations: 83.88 kB / 1.307 GB, free: 9.996 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.015e-06/1.454, allocations: 0 / 1.307 GB, free: 9.996 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000147/1.454, allocations: 23.78 kB / 1.307 GB, free: 9.973 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.35e-05/1.454, allocations: 19.98 kB / 1.307 GB, free: 9.953 MB / 1.045 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.0001327/1.454, allocations: 133.9 kB / 1.307 GB, free: 9.812 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001639/1.454, allocations: 15.81 kB / 1.307 GB, free: 9.797 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002442/1.457, allocations: 2.342 MB / 1.309 GB, free: 7.441 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.452e-05/1.457, allocations: 11.98 kB / 1.309 GB, free: 7.43 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.605e-06/1.457, allocations: 0 / 1.309 GB, free: 7.43 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.506e-06/1.457, allocations: 7.938 kB / 1.309 GB, free: 7.422 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003456/1.46, allocations: 3.435 MB / 1.313 GB, free: 3.887 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.793e-06/1.46, allocations: 0 / 1.313 GB, free: 3.887 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002764/1.461, allocations: 55.95 kB / 1.313 GB, free: 3.832 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.989e-06/1.461, allocations: 0 / 1.313 GB, free: 3.832 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.838e-05/1.461, allocations: 15.92 kB / 1.313 GB, free: 3.816 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.086e-06/1.461, allocations: 0 / 1.313 GB, free: 3.816 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/1.461, allocations: 0 / 1.313 GB, free: 3.816 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008399/1.461, allocations: 0.5427 MB / 1.313 GB, free: 3.25 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001359/1.462, allocations: 144.5 kB / 1.314 GB, free: 3.09 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.974e-05/1.462, allocations: 3.938 kB / 1.314 GB, free: 3.086 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000201/1.462, allocations: 19.98 kB / 1.314 GB, free: 3.066 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.119e-05/1.462, allocations: 15.98 kB / 1.314 GB, free: 3.051 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.112e-05/1.462, allocations: 19.92 kB / 1.314 GB, free: 3.031 MB / 1.045 GB Notification: Performance of sorting global known variables: time 9.44e-05/1.462, allocations: 103.3 kB / 1.314 GB, free: 2.93 MB / 1.045 GB Notification: Performance of sort global known variables: time 1.11e-07/1.462, allocations: 0 / 1.314 GB, free: 2.93 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.005177/1.467, allocations: 1.624 MB / 1.315 GB, free: 1.305 MB / 1.045 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.007725/1.475, allocations: 1.89 MB / 1.317 GB, free: 15.41 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0007409/1.476, allocations: 317.1 kB / 1.317 GB, free: 15.1 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 7.584e-06/1.476, allocations: 8.312 kB / 1.317 GB, free: 15.09 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0003272/1.476, allocations: 248.4 kB / 1.318 GB, free: 14.85 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005353/1.477, allocations: 74.36 kB / 1.318 GB, free: 14.78 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001106/1.478, allocations: 0.6266 MB / 1.318 GB, free: 14.12 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003364/1.478, allocations: 0.7699 MB / 1.319 GB, free: 13.33 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 0.0005314/1.479, allocations: 405 kB / 1.32 GB, free: 12.93 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001297/1.479, allocations: 51.41 kB / 1.32 GB, free: 12.88 MB / 1.061 GB Notification: Performance of SimCode: time 2.11e-07/1.479, allocations: 3.938 kB / 1.32 GB, free: 12.88 MB / 1.061 GB Notification: Performance of Templates: time 0.07356/1.552, allocations: 57.06 MB / 1.375 GB, free: 3.777 MB / 1.107 GB make -j1 -f Buildings_9_Buildings.Media.Examples.SteamProperties.makefile (rm -f Buildings_9_Buildings.Media.Examples.SteamProperties.pipe ; mkfifo Buildings_9_Buildings.Media.Examples.SteamProperties.pipe ; head -c 1048576 < Buildings_9_Buildings.Media.Examples.SteamProperties.pipe >> ../files/Buildings_9_Buildings.Media.Examples.SteamProperties.sim & ./Buildings_9_Buildings.Media.Examples.SteamProperties -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Media.Examples.SteamProperties.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Media.Examples.SteamProperties_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Media_Examples_SteamProperties.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Media.Examples.SteamProperties.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches