Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.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.Interfaces.Examples.FourPortHeatMassExchanger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|fouPor.Q1_flow|fouPor.Q2_flow|fouPor.vol1.T|fouPor.vol2.T|sou2.T|sou1.T_in|sin.T",fileNamePrefix="Buildings_latest_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger") translateModel(Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|fouPor.Q1_flow|fouPor.Q2_flow|fouPor.vol1.T|fouPor.vol2.T|sou2.T|sou1.T_in|sin.T",fileNamePrefix="Buildings_latest_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.422/2.422, allocations: 390.5 MB / 398 MB, free: 10.91 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.001266/0.001266, allocations: 172.9 kB / 491.2 MB, free: 1.559 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.726/1.726, allocations: 221.5 MB / 0.7868 GB, free: 13.29 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.001003/0.001003, allocations: 91.89 kB / 0.9269 GB, free: 13.79 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 2.087e-05/2.088e-05, allocations: 8 kB / 1.073 GB, free: 182.1 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3388/0.3388, allocations: 143 MB / 1.212 GB, free: 39.55 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.335/1.674, allocations: 419.9 MB / 1.622 GB, free: 11.09 MB / 1.042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002656/1.675, allocations: 96.33 kB / 1.622 GB, free: 11.04 MB / 1.042 GB Notification: Performance of FrontEnd - DAE generated: time 1.892/3.567, allocations: 441.8 MB / 2.054 GB, free: 148.3 MB / 1.151 GB Notification: Performance of FrontEnd: time 2.185e-06/3.567, allocations: 0 / 2.054 GB, free: 148.3 MB / 1.151 GB Notification: Performance of Transformations before backend: time 0.0002145/3.567, allocations: 31.92 kB / 2.054 GB, free: 148.3 MB / 1.151 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 174 * Number of variables: 174 Notification: Performance of Generate backend data structure: time 0.003576/3.571, allocations: 1.247 MB / 2.055 GB, free: 147 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 5.212e-05/3.571, allocations: 12.03 kB / 2.055 GB, free: 147 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007805/3.572, allocations: 130.6 kB / 2.055 GB, free: 146.9 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02643/3.598, allocations: 12.94 MB / 2.068 GB, free: 133.8 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.838e-05/3.598, allocations: 20 kB / 2.068 GB, free: 133.7 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002354/3.598, allocations: 44 kB / 2.068 GB, free: 133.7 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00112/3.599, allocations: 447.9 kB / 2.068 GB, free: 133.3 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00126/3.601, allocations: 0.6383 MB / 2.069 GB, free: 132.6 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.019e-05/3.601, allocations: 0 / 2.069 GB, free: 132.6 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.509e-05/3.601, allocations: 4 kB / 2.069 GB, free: 132.6 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.113e-05/3.601, allocations: 16 kB / 2.069 GB, free: 132.6 MB / 1.151 GB Warning: The model contains alias variables with conflicting start and/or 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.004452/3.605, allocations: 3.387 MB / 2.072 GB, free: 129 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004732/3.606, allocations: 319.7 kB / 2.073 GB, free: 128.6 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001896/3.606, allocations: 149.8 kB / 2.073 GB, free: 128.5 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004153/3.606, allocations: 0.6649 MB / 2.073 GB, free: 127.7 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.278e-05/3.607, allocations: 31.09 kB / 2.073 GB, free: 127.6 MB / 1.151 GB Notification: Performance of pre-optimization done (n=31): time 2.545e-06/3.607, allocations: 0 / 2.073 GB, free: 127.6 MB / 1.151 GB Notification: Performance of matching and sorting (n=31): time 0.0008873/3.607, allocations: 352.5 kB / 2.074 GB, free: 127.3 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.195e-05/3.607, allocations: 63.33 kB / 2.074 GB, free: 127.2 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009633/3.608, allocations: 0.6376 MB / 2.074 GB, free: 126.6 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 5.315e-05/3.608, allocations: 25.7 kB / 2.075 GB, free: 126.5 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003/3.609, allocations: 0.5028 MB / 2.075 GB, free: 126 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 9.839e-05/3.609, allocations: 110.5 kB / 2.075 GB, free: 125.9 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.722e-05/3.609, allocations: 0 / 2.075 GB, free: 125.9 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 7.123e-05/3.609, allocations: 326 kB / 2.075 GB, free: 125.6 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001618/3.609, allocations: 113.1 kB / 2.076 GB, free: 125.5 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002498/3.609, allocations: 318.1 kB / 2.076 GB, free: 125.1 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003867/3.61, allocations: 187.8 kB / 2.076 GB, free: 124.9 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.548e-06/3.61, allocations: 0 / 2.076 GB, free: 124.9 MB / 1.151 GB Notification: Performance of matching and sorting (n=57) (initialization): time 0.00084/3.611, allocations: 492.6 kB / 2.076 GB, free: 124.4 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 2.223e-05/3.611, allocations: 11.94 kB / 2.076 GB, free: 124.4 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.011e-05/3.611, allocations: 8 kB / 2.076 GB, free: 124.4 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.021e-05/3.611, allocations: 8 kB / 2.077 GB, free: 124.4 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003911/3.611, allocations: 119.8 kB / 2.077 GB, free: 124.2 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.198e-05/3.611, allocations: 8 kB / 2.077 GB, free: 124.2 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007627/3.612, allocations: 79.39 kB / 2.077 GB, free: 124.2 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.323e-05/3.612, allocations: 27.98 kB / 2.077 GB, free: 124.1 MB / 1.151 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (57): * Single equations (assignments): 57 * 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 0.0001128/3.612, allocations: 120.8 kB / 2.077 GB, free: 124 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001535/3.612, allocations: 94.92 kB / 2.077 GB, free: 123.9 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000758/3.613, allocations: 415.5 kB / 2.077 GB, free: 123.5 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.708e-06/3.613, allocations: 7.984 kB / 2.077 GB, free: 123.5 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.701e-06/3.613, allocations: 0 / 2.077 GB, free: 123.5 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000472/3.614, allocations: 395.7 kB / 2.078 GB, free: 123.1 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001842/3.615, allocations: 1.28 MB / 2.079 GB, free: 121.7 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.318e-06/3.615, allocations: 3.938 kB / 2.079 GB, free: 121.7 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003386/3.616, allocations: 71.95 kB / 2.079 GB, free: 121.6 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.153e-06/3.616, allocations: 4 kB / 2.079 GB, free: 121.6 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.023e-05/3.616, allocations: 12.16 kB / 2.079 GB, free: 121.6 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.072e-06/3.616, allocations: 7.938 kB / 2.079 GB, free: 121.6 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.777e-06/3.616, allocations: 0 / 2.079 GB, free: 121.6 MB / 1.151 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009167/3.617, allocations: 0.7353 MB / 2.08 GB, free: 120.8 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003599/3.617, allocations: 231.8 kB / 2.08 GB, free: 120.6 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000149/3.617, allocations: 4 kB / 2.08 GB, free: 120.6 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005886/3.618, allocations: 47.95 kB / 2.08 GB, free: 120.5 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.408e-05/3.618, allocations: 39.89 kB / 2.08 GB, free: 120.5 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.131e-05/3.618, allocations: 19.98 kB / 2.08 GB, free: 120.5 MB / 1.151 GB Notification: Performance of sorting global known variables: time 0.0005989/3.619, allocations: 495.1 kB / 2.081 GB, free: 120 MB / 1.151 GB Notification: Performance of sort global known variables: time 3.1e-07/3.619, allocations: 0 / 2.081 GB, free: 120 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.001387/3.62, allocations: 371.1 kB / 2.081 GB, free: 119.6 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 2 (fouPor.vol1.dynBal.U,fouPor.vol2.dynBal.U) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (34): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * 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.001181/3.621, allocations: 0.5628 MB / 2.081 GB, free: 119.1 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.0005434/3.622, allocations: 332.4 kB / 2.082 GB, free: 118.7 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/3.622, allocations: 3.938 kB / 2.082 GB, free: 118.7 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0002145/3.622, allocations: 159.8 kB / 2.082 GB, free: 118.6 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002226/3.624, allocations: 470.2 kB / 2.082 GB, free: 118.1 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002147/3.626, allocations: 1.164 MB / 2.084 GB, free: 116.9 MB / 1.151 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005096/3.627, allocations: 1.063 MB / 2.085 GB, free: 115.8 MB / 1.151 GB Notification: Performance of simCode: alias equations: time 0.0007956/3.628, allocations: 186 kB / 2.085 GB, free: 115.6 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001672/3.628, allocations: 79.41 kB / 2.085 GB, free: 115.6 MB / 1.151 GB Notification: Performance of SimCode: time 4.41e-07/3.628, allocations: 0 / 2.085 GB, free: 115.6 MB / 1.151 GB Notification: Performance of Templates: time 0.02866/3.657, allocations: 16.89 MB / 2.101 GB, free: 98.87 MB / 1.151 GB make -j1 -f Buildings_latest_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.makefile (rm -f Buildings_latest_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe >> ../files/Buildings_latest_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.sim & ./Buildings_latest_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger.csv","../files/Buildings_latest_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches