Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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_9_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_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.396/2.396, allocations: 390.3 MB / 405.3 MB, free: 13.45 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.001439/0.001439, allocations: 167 kB / 498.1 MB, free: 5.707 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.613/1.613, allocations: 223.2 MB / 0.7949 GB, free: 17.82 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.001114/0.001114, allocations: 100.2 kB / 0.9346 GB, free: 6.137 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003742/0.0003741, allocations: 10.25 kB / 1.084 GB, free: 221.6 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3586/0.359, allocations: 142.3 MB / 1.223 GB, free: 114.2 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.166/1.525, allocations: 419.8 MB / 1.633 GB, free: 8.691 MB / 0.948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002679/1.525, allocations: 100.2 kB / 1.633 GB, free: 8.641 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 1.613/3.138, allocations: 445.6 MB / 2.068 GB, free: 269.1 MB / 1.167 GB Notification: Performance of FrontEnd: time 1.583e-06/3.138, allocations: 0 / 2.068 GB, free: 269.1 MB / 1.167 GB Notification: Performance of Transformations before backend: time 0.0001973/3.138, allocations: 36 kB / 2.068 GB, free: 269.1 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: 174 * Number of variables: 174 Notification: Performance of Generate backend data structure: time 0.004729/3.143, allocations: 1.461 MB / 2.07 GB, free: 267.6 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 5.232e-05/3.143, allocations: 8.031 kB / 2.07 GB, free: 267.6 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007943/3.144, allocations: 130.5 kB / 2.07 GB, free: 267.5 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02731/3.171, allocations: 13.04 MB / 2.082 GB, free: 254.2 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001029/3.171, allocations: 58 kB / 2.082 GB, free: 254.2 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002846/3.172, allocations: 72 kB / 2.082 GB, free: 254.1 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001806/3.174, allocations: 0.7798 MB / 2.083 GB, free: 253.3 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.062e-05/3.174, allocations: 0 / 2.083 GB, free: 253.3 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.515e-05/3.174, allocations: 28 kB / 2.083 GB, free: 253.3 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.508e-05/3.174, allocations: 19.95 kB / 2.083 GB, free: 253.3 MB / 1.167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001139/3.175, allocations: 0.5672 MB / 2.084 GB, free: 252.7 MB / 1.167 GB Warning: The model contains alias variables with redundant start and/or conflicting 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.004844/3.18, allocations: 3.548 MB / 2.087 GB, free: 248.9 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006539/3.18, allocations: 372.5 kB / 2.088 GB, free: 248.5 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004513/3.181, allocations: 0.6648 MB / 2.088 GB, free: 247.7 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.76e-05/3.181, allocations: 38.55 kB / 2.088 GB, free: 247.7 MB / 1.167 GB Notification: Performance of pre-optimization done (n=31): time 3.086e-06/3.181, allocations: 0 / 2.088 GB, free: 247.7 MB / 1.167 GB Notification: Performance of matching and sorting (n=31): time 0.001287/3.182, allocations: 0.5631 MB / 2.089 GB, free: 247.1 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.303e-05/3.182, allocations: 59.39 kB / 2.089 GB, free: 247 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001328/3.184, allocations: 0.827 MB / 2.09 GB, free: 246.2 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 8.53e-05/3.184, allocations: 33.7 kB / 2.09 GB, free: 246.1 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003556/3.184, allocations: 0.4957 MB / 2.09 GB, free: 245.6 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.000106/3.184, allocations: 114.4 kB / 2.09 GB, free: 245.5 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.925e-05/3.184, allocations: 12 kB / 2.09 GB, free: 245.5 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 8.925e-05/3.184, allocations: 326 kB / 2.091 GB, free: 245.2 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003117/3.185, allocations: 157 kB / 2.091 GB, free: 245 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004272/3.185, allocations: 379.3 kB / 2.091 GB, free: 244.6 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000379/3.185, allocations: 223.8 kB / 2.091 GB, free: 244.3 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.21e-06/3.185, allocations: 0 / 2.091 GB, free: 244.3 MB / 1.167 GB Notification: Performance of matching and sorting (n=57) (initialization): time 0.001132/3.187, allocations: 0.6015 MB / 2.092 GB, free: 243.7 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 2.491e-05/3.187, allocations: 13.2 kB / 2.092 GB, free: 243.7 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.144e-05/3.187, allocations: 4 kB / 2.092 GB, free: 243.7 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.489e-05/3.187, allocations: 8 kB / 2.092 GB, free: 243.7 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003803/3.187, allocations: 119.8 kB / 2.092 GB, free: 243.6 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.781e-05/3.187, allocations: 7.938 kB / 2.092 GB, free: 243.6 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00111/3.188, allocations: 111.3 kB / 2.092 GB, free: 243.5 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.256e-05/3.188, allocations: 32 kB / 2.092 GB, free: 243.4 MB / 1.167 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 () * Number of clocked 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.0005644/3.189, allocations: 281.4 kB / 2.093 GB, free: 243.2 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000275/3.189, allocations: 98.78 kB / 2.093 GB, free: 243.1 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001097/3.19, allocations: 0.5202 MB / 2.093 GB, free: 242.5 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.547e-05/3.19, allocations: 4 kB / 2.093 GB, free: 242.5 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.338e-06/3.19, allocations: 0 / 2.093 GB, free: 242.5 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007001/3.191, allocations: 493.1 kB / 2.094 GB, free: 242 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002727/3.194, allocations: 1.452 MB / 2.095 GB, free: 240.5 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.362e-06/3.194, allocations: 0 / 2.095 GB, free: 240.5 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003402/3.194, allocations: 88.03 kB / 2.095 GB, free: 240.4 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.507e-06/3.194, allocations: 4 kB / 2.095 GB, free: 240.4 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.096e-05/3.194, allocations: 8 kB / 2.095 GB, free: 240.4 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.372e-06/3.194, allocations: 7.938 kB / 2.095 GB, free: 240.4 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.407e-06/3.194, allocations: 4 kB / 2.095 GB, free: 240.4 MB / 1.167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001354/3.196, allocations: 0.885 MB / 2.096 GB, free: 239.4 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006317/3.196, allocations: 247.6 kB / 2.096 GB, free: 239.2 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002669/3.197, allocations: 11.94 kB / 2.096 GB, free: 239.2 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007482/3.197, allocations: 59.94 kB / 2.096 GB, free: 239.1 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.473e-05/3.197, allocations: 23.97 kB / 2.096 GB, free: 239.1 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.828e-05/3.197, allocations: 19.98 kB / 2.096 GB, free: 239.1 MB / 1.167 GB Notification: Performance of sorting global known variables: time 0.00101/3.198, allocations: 0.6549 MB / 2.097 GB, free: 238.4 MB / 1.167 GB Notification: Performance of sort global known variables: time 1.3e-07/3.198, allocations: 0 / 2.097 GB, free: 238.4 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.001638/3.2, allocations: 375.3 kB / 2.097 GB, free: 238 MB / 1.167 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 () * Number of clocked 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.00126/3.201, allocations: 0.556 MB / 2.098 GB, free: 237.5 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.0009011/3.202, allocations: 428.5 kB / 2.098 GB, free: 237.1 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 5.901e-06/3.202, allocations: 0 / 2.098 GB, free: 237.1 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.0003519/3.203, allocations: 204 kB / 2.099 GB, free: 236.9 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002798/3.205, allocations: 0.6112 MB / 2.099 GB, free: 236.3 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003059/3.209, allocations: 1.97 MB / 2.101 GB, free: 234.2 MB / 1.167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000552/3.209, allocations: 1.063 MB / 2.102 GB, free: 233.1 MB / 1.167 GB Notification: Performance of simCode: alias equations: time 0.0009923/3.21, allocations: 196.5 kB / 2.102 GB, free: 233 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002102/3.21, allocations: 87.41 kB / 2.102 GB, free: 232.9 MB / 1.167 GB Notification: Performance of SimCode: time 1.142e-06/3.21, allocations: 0 / 2.102 GB, free: 232.9 MB / 1.167 GB Notification: Performance of Templates: time 0.03551/3.246, allocations: 22.28 MB / 2.124 GB, free: 210.9 MB / 1.167 GB make -j1 -f Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.makefile (rm -f Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; mkfifo Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe >> ../files/Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.sim & ./Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_Interfaces_Examples_FourPortHeatMassExchanger.csv","../files/Buildings_9_Buildings.Fluid.Interfaces.Examples.FourPortHeatMassExchanger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches