Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Sources.Examples.PropertySource_h.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Fluid.Sources.Examples.PropertySource_h,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|proSouXi.port_b.h_outflow|proSouH.port_b.h_outflow|proSouC.port_b.h_outflow|proSouXi.port_a.h_outflow|proSouH.port_a.h_outflow|proSouC.port_a.h_outflow|proSouXi.port_b.Xi_outflow.1.|proSouH.port_b.Xi_outflow.1.|proSouC.port_b.Xi_outflow.1.|proSouXi.port_a.Xi_outflow.1.|proSouH.port_a.Xi_outflow.1.|proSouC.port_a.Xi_outflow.1.|proSouH.port_a.C_outflow.1.|proSouH.port_b.C_outflow.1.|proSouC.port_a.C_outflow.1.|proSouC.port_b.C_outflow.1.|proSouXi.port_a.C_outflow.1.|proSouXi.port_b.C_outflow.1.",fileNamePrefix="Buildings_latest_Buildings.Fluid.Sources.Examples.PropertySource_h") translateModel(Buildings.Fluid.Sources.Examples.PropertySource_h,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|proSouXi.port_b.h_outflow|proSouH.port_b.h_outflow|proSouC.port_b.h_outflow|proSouXi.port_a.h_outflow|proSouH.port_a.h_outflow|proSouC.port_a.h_outflow|proSouXi.port_b.Xi_outflow.1.|proSouH.port_b.Xi_outflow.1.|proSouC.port_b.Xi_outflow.1.|proSouXi.port_a.Xi_outflow.1.|proSouH.port_a.Xi_outflow.1.|proSouC.port_a.Xi_outflow.1.|proSouH.port_a.C_outflow.1.|proSouH.port_b.C_outflow.1.|proSouC.port_a.C_outflow.1.|proSouC.port_b.C_outflow.1.|proSouXi.port_a.C_outflow.1.|proSouXi.port_b.C_outflow.1.",fileNamePrefix="Buildings_latest_Buildings.Fluid.Sources.Examples.PropertySource_h") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.287/2.287, allocations: 390.3 MB / 402.8 MB, free: 6.691 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001378/0.001378, allocations: 169 kB / 496.1 MB, free: 12.86 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.773/1.773, allocations: 221.3 MB / 0.7915 GB, free: 5.402 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001538/0.001538, allocations: 92 kB / 0.9317 GB, free: 5.715 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 4.189e-05/4.192e-05, allocations: 3.984 kB / 1.079 GB, free: 140.5 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3463/0.3463, allocations: 143 MB / 1.219 GB, free: 13.5 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 6.138/6.485, allocations: 1.871 GB / 3.09 GB, free: 436.1 MB / 1.167 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003214/6.485, allocations: 83.47 kB / 3.09 GB, free: 436.1 MB / 1.167 GB Notification: Performance of FrontEnd - DAE generated: time 0.7511/7.236, allocations: 415.4 MB / 3.495 GB, free: 20.65 MB / 1.167 GB Notification: Performance of FrontEnd: time 1.122e-06/7.236, allocations: 4 kB / 3.495 GB, free: 20.64 MB / 1.167 GB Notification: Performance of Transformations before backend: time 4.466e-05/7.236, allocations: 20 kB / 3.495 GB, free: 20.62 MB / 1.167 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 133 * Number of variables: 133 Notification: Performance of Generate backend data structure: time 0.001494/7.238, allocations: 0.85 MB / 3.496 GB, free: 19.73 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 4.525e-05/7.238, allocations: 8.031 kB / 3.496 GB, free: 19.72 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.792e-05/7.238, allocations: 63.25 kB / 3.496 GB, free: 19.66 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005667/7.238, allocations: 424.5 kB / 3.497 GB, free: 19.2 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.361e-05/7.239, allocations: 49.3 kB / 3.497 GB, free: 19.15 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.121e-05/7.239, allocations: 52 kB / 3.497 GB, free: 19.1 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007516/7.239, allocations: 0.6638 MB / 3.497 GB, free: 18.36 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.585e-05/7.239, allocations: 4 kB / 3.497 GB, free: 18.35 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.853e-05/7.239, allocations: 24 kB / 3.497 GB, free: 18.33 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.574e-05/7.239, allocations: 35.92 kB / 3.498 GB, free: 18.29 MB / 1.167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004067/7.24, allocations: 319.5 kB / 3.498 GB, free: 17.98 MB / 1.167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00191/7.242, allocations: 3.223 MB / 3.501 GB, free: 14.61 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001188/7.242, allocations: 210.1 kB / 3.501 GB, free: 14.32 MB / 1.167 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.893e-05/7.242, allocations: 112.6 kB / 3.501 GB, free: 14.18 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 1.253e-05/7.242, allocations: 7.938 kB / 3.501 GB, free: 14.17 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.179e-05/7.242, allocations: 50.48 kB / 3.501 GB, free: 14.11 MB / 1.167 GB Notification: Performance of pre-optimization done (n=10): time 1.744e-06/7.242, allocations: 0 / 3.501 GB, free: 14.11 MB / 1.167 GB Notification: Performance of matching and sorting (n=10): time 0.0003971/7.242, allocations: 168.8 kB / 3.501 GB, free: 13.94 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.804e-05/7.243, allocations: 295 kB / 3.502 GB, free: 13.58 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005259/7.243, allocations: 0.605 MB / 3.502 GB, free: 12.97 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 1.626e-05/7.243, allocations: 29.7 kB / 3.502 GB, free: 12.93 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001393/7.243, allocations: 268.2 kB / 3.503 GB, free: 12.67 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 2.937e-05/7.243, allocations: 35.45 kB / 3.503 GB, free: 12.63 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.047e-06/7.243, allocations: 0 / 3.503 GB, free: 12.63 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 8.161e-05/7.243, allocations: 366.8 kB / 3.503 GB, free: 12.27 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.828e-05/7.243, allocations: 28.31 kB / 3.503 GB, free: 12.24 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.441e-05/7.244, allocations: 100.6 kB / 3.503 GB, free: 12.11 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.422e-05/7.244, allocations: 43.91 kB / 3.503 GB, free: 12.07 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/7.244, allocations: 3.938 kB / 3.503 GB, free: 12.06 MB / 1.167 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001701/7.244, allocations: 164.8 kB / 3.503 GB, free: 11.89 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 1.51e-05/7.244, allocations: 4 kB / 3.503 GB, free: 11.89 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.582e-06/7.244, allocations: 4 kB / 3.503 GB, free: 11.89 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.641e-05/7.244, allocations: 192 / 3.503 GB, free: 11.89 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001259/7.244, allocations: 31.92 kB / 3.503 GB, free: 11.86 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.324e-06/7.244, allocations: 4 kB / 3.503 GB, free: 11.85 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002177/7.244, allocations: 75.25 kB / 3.503 GB, free: 11.78 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.997e-05/7.244, allocations: 8 kB / 3.503 GB, free: 11.77 MB / 1.167 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.868e-05/7.244, allocations: 113 kB / 3.504 GB, free: 11.65 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001867/7.245, allocations: 59.3 kB / 3.504 GB, free: 11.59 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.312e-05/7.245, allocations: 64.31 kB / 3.504 GB, free: 11.52 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.116e-06/7.245, allocations: 0 / 3.504 GB, free: 11.52 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.551e-06/7.245, allocations: 4 kB / 3.504 GB, free: 11.52 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.948e-06/7.245, allocations: 4 kB / 3.504 GB, free: 11.52 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001059/7.246, allocations: 1.296 MB / 3.505 GB, free: 10.13 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.866e-06/7.246, allocations: 4 kB / 3.505 GB, free: 10.12 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.939e-05/7.246, allocations: 24.27 kB / 3.505 GB, free: 10.1 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.158e-06/7.246, allocations: 8 kB / 3.505 GB, free: 10.09 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.04e-05/7.246, allocations: 4 kB / 3.505 GB, free: 10.09 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.367e-06/7.246, allocations: 3.938 kB / 3.505 GB, free: 10.09 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/7.246, allocations: 4 kB / 3.505 GB, free: 10.08 MB / 1.167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002481/7.246, allocations: 422 kB / 3.505 GB, free: 9.57 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001284/7.246, allocations: 148.4 kB / 3.506 GB, free: 9.406 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.076e-05/7.246, allocations: 8 kB / 3.506 GB, free: 9.398 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001942/7.246, allocations: 19.98 kB / 3.506 GB, free: 9.379 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.726e-05/7.247, allocations: 23.91 kB / 3.506 GB, free: 9.355 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.152e-06/7.247, allocations: 4 kB / 3.506 GB, free: 9.352 MB / 1.167 GB Notification: Performance of sorting global known variables: time 0.0004142/7.247, allocations: 491.1 kB / 3.506 GB, free: 8.875 MB / 1.167 GB Notification: Performance of sort global known variables: time 1.5e-07/7.247, allocations: 0 / 3.506 GB, free: 8.875 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.0008448/7.248, allocations: 223.9 kB / 3.506 GB, free: 8.656 MB / 1.167 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001833/7.25, allocations: 1.447 MB / 3.508 GB, free: 7.145 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.0001657/7.25, allocations: 75.84 kB / 3.508 GB, free: 7.07 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/7.25, allocations: 4.312 kB / 3.508 GB, free: 7.066 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 6.406e-05/7.25, allocations: 55.86 kB / 3.508 GB, free: 7.012 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001117/7.251, allocations: 274.8 kB / 3.508 GB, free: 6.746 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008328/7.252, allocations: 0.6414 MB / 3.509 GB, free: 6.051 MB / 1.167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000283/7.252, allocations: 0.9091 MB / 3.51 GB, free: 5.117 MB / 1.167 GB Notification: Performance of simCode: alias equations: time 0.0002182/7.252, allocations: 100.6 kB / 3.51 GB, free: 5.016 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.46e-05/7.252, allocations: 35.44 kB / 3.51 GB, free: 4.98 MB / 1.167 GB Notification: Performance of SimCode: time 1.142e-06/7.252, allocations: 4 kB / 3.51 GB, free: 4.977 MB / 1.167 GB Notification: Performance of Templates: time 0.8061/8.059, allocations: 29.77 MB / 3.539 GB, free: 305.7 MB / 1.167 GB make -j1 -f Buildings_latest_Buildings.Fluid.Sources.Examples.PropertySource_h.makefile (rm -f Buildings_latest_Buildings.Fluid.Sources.Examples.PropertySource_h.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Sources.Examples.PropertySource_h.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Sources.Examples.PropertySource_h.pipe >> ../files/Buildings_latest_Buildings.Fluid.Sources.Examples.PropertySource_h.sim & ./Buildings_latest_Buildings.Fluid.Sources.Examples.PropertySource_h -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Sources.Examples.PropertySource_h.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Sources.Examples.PropertySource_h_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Sources_Examples_PropertySource_h.csv","../files/Buildings_latest_Buildings.Fluid.Sources.Examples.PropertySource_h.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches