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 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.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.001486/0.001486, allocations: 102.2 kB / 16.27 MB, free: 6 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.001474/0.001474, allocations: 191 kB / 17.2 MB, free: 5.609 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.396/1.396, allocations: 222.9 MB / 240.9 MB, free: 15.26 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.705/2.705, allocations: 482.4 MB / 0.7553 GB, free: 6.969 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001941/0.001941, allocations: 59.25 kB / 0.9245 GB, free: 16 kB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7421/0.744, allocations: 162.2 MB / 1.083 GB, free: 1.641 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.SteamProperties): time 0.1702/0.9143, allocations: 136.1 MB / 1.216 GB, free: 6.402 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.02929/0.9436, allocations: 22.67 MB / 1.238 GB, free: 15.66 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001697/0.9438, allocations: 0 / 1.238 GB, free: 15.66 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0002829/0.9441, allocations: 47.67 kB / 1.238 GB, free: 15.61 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0002896/0.9444, allocations: 99.41 kB / 1.238 GB, free: 15.51 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.01737/0.9618, allocations: 6.934 MB / 1.245 GB, free: 8.59 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0003813/0.9622, allocations: 251.9 kB / 1.245 GB, free: 8.344 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 4.552e-05/0.9622, allocations: 13.56 kB / 1.245 GB, free: 8.332 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003315/0.9626, allocations: 143.4 kB / 1.245 GB, free: 8.191 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000152/0.9627, allocations: 91.61 kB / 1.245 GB, free: 8.102 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.546e-05/0.9628, allocations: 8 kB / 1.245 GB, free: 8.094 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.02156/0.9843, allocations: 11.33 MB / 1.256 GB, free: 12.75 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.000105/0.9845, allocations: 35.89 kB / 1.256 GB, free: 12.71 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001431/0.9846, allocations: 83.66 kB / 1.257 GB, free: 12.63 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.01418/0.9988, allocations: 6.492 MB / 1.263 GB, free: 6.125 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.9989, allocations: 0 / 1.263 GB, free: 6.125 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.623e-06/0.9989, allocations: 0 / 1.263 GB, free: 6.125 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 6.622e-06/0.9989, allocations: 0 / 1.263 GB, free: 6.125 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.003264/1.002, allocations: 1.201 MB / 1.264 GB, free: 4.875 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.647e-05/1.002, allocations: 8.031 kB / 1.264 GB, free: 4.867 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001115/1.003, allocations: 88.66 kB / 1.264 GB, free: 4.781 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002453/1.004, allocations: 228 kB / 1.264 GB, free: 4.52 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.03e-05/1.004, allocations: 16.12 kB / 1.264 GB, free: 4.504 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.92e-05/1.004, allocations: 19.98 kB / 1.264 GB, free: 4.484 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001168/1.005, allocations: 460.3 kB / 1.265 GB, free: 4.016 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.899e-06/1.005, allocations: 0 / 1.265 GB, free: 4.016 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.506e-05/1.005, allocations: 7.938 kB / 1.265 GB, free: 4.008 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.096e-05/1.005, allocations: 4 kB / 1.265 GB, free: 4.004 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001269/1.006, allocations: 0.597 MB / 1.265 GB, free: 3.406 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00111/1.007, allocations: 0.8822 MB / 1.266 GB, free: 2.438 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008426/1.008, allocations: 254.3 kB / 1.267 GB, free: 2.18 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00013/1.008, allocations: 78.14 kB / 1.267 GB, free: 2.102 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.09134/1.1, allocations: 35.05 MB / 1.301 GB, free: 11.96 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.821e-05/1.1, allocations: 38.55 kB / 1.301 GB, free: 11.91 MB / 1.029 GB Notification: Performance of pre-optimization done (n=25): time 1.653e-06/1.1, allocations: 0 / 1.301 GB, free: 11.91 MB / 1.029 GB Notification: Performance of matching and sorting (n=25): time 0.001759/1.101, allocations: 421.9 kB / 1.301 GB, free: 11.5 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.02e-05/1.102, allocations: 55.41 kB / 1.301 GB, free: 11.43 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000139/1.102, allocations: 135.9 kB / 1.301 GB, free: 11.29 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.961e-05/1.102, allocations: 37.7 kB / 1.301 GB, free: 11.25 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 7.796e-05/1.102, allocations: 112.3 kB / 1.302 GB, free: 11.14 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 9.22e-05/1.102, allocations: 82.75 kB / 1.302 GB, free: 11.05 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001219/1.102, allocations: 73.67 kB / 1.302 GB, free: 10.98 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001582/1.102, allocations: 334.8 kB / 1.302 GB, free: 10.64 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001984/1.102, allocations: 83.94 kB / 1.302 GB, free: 10.56 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002562/1.103, allocations: 137 kB / 1.302 GB, free: 10.41 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005222/1.103, allocations: 213 kB / 1.302 GB, free: 10.18 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/1.103, allocations: 0 / 1.302 GB, free: 10.18 MB / 1.029 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0007861/1.104, allocations: 304.7 kB / 1.303 GB, free: 9.879 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.737e-05/1.104, allocations: 8 kB / 1.303 GB, free: 9.871 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.761e-06/1.104, allocations: 0 / 1.303 GB, free: 9.871 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.715e-05/1.104, allocations: 4 kB / 1.303 GB, free: 9.867 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002941/1.104, allocations: 79.88 kB / 1.303 GB, free: 9.789 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.246e-06/1.104, allocations: 4 kB / 1.303 GB, free: 9.785 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001378/1.104, allocations: 19.78 kB / 1.303 GB, free: 9.766 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.315e-05/1.105, allocations: 27.97 kB / 1.303 GB, free: 9.738 MB / 1.029 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.0001435/1.105, allocations: 129.9 kB / 1.303 GB, free: 9.602 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001804/1.105, allocations: 19.81 kB / 1.303 GB, free: 9.582 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002722/1.108, allocations: 2.35 MB / 1.305 GB, free: 7.223 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.01e-05/1.108, allocations: 19.98 kB / 1.305 GB, free: 7.203 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/1.108, allocations: 0 / 1.305 GB, free: 7.203 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.512e-06/1.108, allocations: 3.938 kB / 1.305 GB, free: 7.199 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003638/1.111, allocations: 3.416 MB / 1.309 GB, free: 3.68 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.432e-06/1.111, allocations: 7.984 kB / 1.309 GB, free: 3.672 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002631/1.112, allocations: 59.89 kB / 1.309 GB, free: 3.613 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.527e-06/1.112, allocations: 0 / 1.309 GB, free: 3.613 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.344e-05/1.112, allocations: 11.94 kB / 1.309 GB, free: 3.602 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.164e-06/1.112, allocations: 3.938 kB / 1.309 GB, free: 3.598 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/1.112, allocations: 0 / 1.309 GB, free: 3.598 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008153/1.112, allocations: 0.5456 MB / 1.309 GB, free: 3.035 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001391/1.113, allocations: 144.6 kB / 1.309 GB, free: 2.875 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.329e-05/1.113, allocations: 7.938 kB / 1.309 GB, free: 2.867 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002068/1.113, allocations: 16 kB / 1.309 GB, free: 2.852 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.998e-05/1.113, allocations: 19.97 kB / 1.309 GB, free: 2.832 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.698e-05/1.113, allocations: 12 kB / 1.309 GB, free: 2.82 MB / 1.029 GB Notification: Performance of sorting global known variables: time 8.098e-05/1.113, allocations: 109.8 kB / 1.31 GB, free: 2.715 MB / 1.029 GB Notification: Performance of sort global known variables: time 1.21e-07/1.113, allocations: 0 / 1.31 GB, free: 2.715 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.004184/1.117, allocations: 1.687 MB / 1.311 GB, free: 1.027 MB / 1.029 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.007213/1.124, allocations: 1.935 MB / 1.313 GB, free: 15.08 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0007904/1.125, allocations: 337 kB / 1.313 GB, free: 14.75 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 6.793e-06/1.125, allocations: 4.312 kB / 1.313 GB, free: 14.75 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0003285/1.126, allocations: 241.5 kB / 1.314 GB, free: 14.51 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005376/1.126, allocations: 59.94 kB / 1.314 GB, free: 14.45 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00111/1.127, allocations: 0.6789 MB / 1.314 GB, free: 13.73 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003891/1.128, allocations: 0.7622 MB / 1.315 GB, free: 12.95 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001481/1.128, allocations: 59.41 kB / 1.315 GB, free: 12.89 MB / 1.045 GB Notification: Performance of SimCode: time 2.51e-07/1.128, allocations: 0 / 1.315 GB, free: 12.89 MB / 1.045 GB Notification: Performance of Templates: time 0.05187/1.18, allocations: 32.8 MB / 1.347 GB, free: 12.06 MB / 1.076 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=400 -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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Media.Examples.SteamProperties.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches