Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Interfaces.Examples.EightPortHeatMassExchanger.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.EightPortHeatMassExchanger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|eigPor.Q1_flow|eigPor.Q2_flow|eigPor.Q3_flow|eigPor.Q4_flow|eigPor.vol1.T|eigPor.vol2.T|eigPor.vol3.T|eigPor.vol4.T|sou1.T|sou2.T_in|sou3.T|sou4.T_in|sin.T",fileNamePrefix="Buildings_latest_Buildings.Fluid.Interfaces.Examples.EightPortHeatMassExchanger") translateModel(Buildings.Fluid.Interfaces.Examples.EightPortHeatMassExchanger,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|eigPor.Q1_flow|eigPor.Q2_flow|eigPor.Q3_flow|eigPor.Q4_flow|eigPor.vol1.T|eigPor.vol2.T|eigPor.vol3.T|eigPor.vol4.T|sou1.T|sou2.T_in|sou3.T|sou4.T_in|sin.T",fileNamePrefix="Buildings_latest_Buildings.Fluid.Interfaces.Examples.EightPortHeatMassExchanger") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.124/2.124, allocations: 390.4 MB / 397.7 MB, free: 11.25 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.00114/0.001139, allocations: 185.2 kB / 490.8 MB, free: 1.953 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.556/1.556, allocations: 221.3 MB / 0.7863 GB, free: 13.68 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.001059/0.001059, allocations: 83.8 kB / 0.9264 GB, free: 14.21 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 7.053e-06/7.093e-06, allocations: 0 / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2999/0.3, allocations: 143 MB / 1.212 GB, free: 40.14 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.022/1.322, allocations: 426.1 MB / 1.628 GB, free: 5.508 MB / 1.042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002496/1.322, allocations: 91.14 kB / 1.628 GB, free: 5.465 MB / 1.042 GB Notification: Performance of FrontEnd: time 2.596/3.918, allocations: 0.8137 GB / 2.442 GB, free: 171.4 MB / 1.167 GB Notification: Performance of Transformations before backend: time 0.0003112/3.918, allocations: 64.81 kB / 2.442 GB, free: 171.4 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: 344 * Number of variables: 344 Notification: Performance of Generate backend data structure: time 0.005619/3.924, allocations: 2.185 MB / 2.444 GB, free: 169.8 MB / 1.167 GB Notification: Performance of prepare preOptimizeDAE: time 3.972e-05/3.924, allocations: 9.406 kB / 2.444 GB, free: 169.8 MB / 1.167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0013/3.925, allocations: 265.3 kB / 2.444 GB, free: 169.7 MB / 1.167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.06212/3.988, allocations: 24.81 MB / 2.468 GB, free: 153.2 MB / 1.167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001166/3.988, allocations: 44 kB / 2.468 GB, free: 153.2 MB / 1.167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000547/3.988, allocations: 84 kB / 2.468 GB, free: 153.1 MB / 1.167 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00273/3.991, allocations: 0.8723 MB / 2.469 GB, free: 152.2 MB / 1.167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0032/3.994, allocations: 1.213 MB / 2.47 GB, free: 151 MB / 1.167 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.289e-05/3.994, allocations: 0 / 2.47 GB, free: 151 MB / 1.167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001869/3.994, allocations: 4 kB / 2.47 GB, free: 151 MB / 1.167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.414e-05/3.995, allocations: 43.94 kB / 2.47 GB, free: 150.9 MB / 1.167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009688/4.004, allocations: 7.604 MB / 2.478 GB, free: 142.9 MB / 1.167 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006181/4.005, allocations: 346.6 kB / 2.478 GB, free: 142.6 MB / 1.167 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003533/4.005, allocations: 283.6 kB / 2.478 GB, free: 142.3 MB / 1.167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006478/4.006, allocations: 1.155 MB / 2.48 GB, free: 140.9 MB / 1.167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.895e-05/4.006, allocations: 39.06 kB / 2.48 GB, free: 140.8 MB / 1.167 GB Notification: Performance of pre-optimization done (n=59): time 2.134e-06/4.006, allocations: 0 / 2.48 GB, free: 140.8 MB / 1.167 GB Notification: Performance of matching and sorting (n=59): time 0.001457/4.007, allocations: 0.6234 MB / 2.48 GB, free: 140.2 MB / 1.167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.197e-05/4.007, allocations: 62.88 kB / 2.48 GB, free: 140.1 MB / 1.167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001762/4.009, allocations: 1.206 MB / 2.481 GB, free: 138.9 MB / 1.167 GB Notification: Performance of collectPreVariables (initialization): time 9.924e-05/4.009, allocations: 29.7 kB / 2.481 GB, free: 138.9 MB / 1.167 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003759/4.01, allocations: 0.6603 MB / 2.482 GB, free: 138.2 MB / 1.167 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002389/4.01, allocations: 205 kB / 2.482 GB, free: 138 MB / 1.167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.257e-05/4.01, allocations: 0 / 2.482 GB, free: 138 MB / 1.167 GB Notification: Performance of setup shared object (initialization): time 6.901e-05/4.01, allocations: 345.4 kB / 2.483 GB, free: 137.7 MB / 1.167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003044/4.01, allocations: 225.9 kB / 2.483 GB, free: 137.5 MB / 1.167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004376/4.011, allocations: 0.5736 MB / 2.483 GB, free: 136.7 MB / 1.167 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006917/4.012, allocations: 360.6 kB / 2.484 GB, free: 136.4 MB / 1.167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.879e-06/4.012, allocations: 0 / 2.484 GB, free: 136.4 MB / 1.167 GB Notification: Performance of matching and sorting (n=111) (initialization): time 0.001531/4.013, allocations: 0.9014 MB / 2.485 GB, free: 135.5 MB / 1.167 GB Notification: Performance of prepare postOptimizeDAE: time 1.412e-05/4.013, allocations: 4 kB / 2.485 GB, free: 135.5 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.333e-05/4.013, allocations: 12 kB / 2.485 GB, free: 135.5 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.746e-05/4.013, allocations: 16 kB / 2.485 GB, free: 135.5 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007502/4.014, allocations: 234.7 kB / 2.485 GB, free: 135.2 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.285e-05/4.014, allocations: 23.88 kB / 2.485 GB, free: 135.2 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001642/4.016, allocations: 168.9 kB / 2.485 GB, free: 135.1 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.523e-05/4.016, allocations: 51.98 kB / 2.485 GB, free: 135 MB / 1.167 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 45 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (111): * Single equations (assignments): 111 * 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.0001736/4.016, allocations: 128.7 kB / 2.485 GB, free: 134.9 MB / 1.167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003407/4.016, allocations: 173.6 kB / 2.485 GB, free: 134.7 MB / 1.167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001549/4.018, allocations: 0.769 MB / 2.486 GB, free: 133.9 MB / 1.167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.188e-05/4.018, allocations: 4 kB / 2.486 GB, free: 133.9 MB / 1.167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.363e-06/4.018, allocations: 3.797 kB / 2.486 GB, free: 133.9 MB / 1.167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0009086/4.019, allocations: 0.7046 MB / 2.487 GB, free: 133.2 MB / 1.167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003683/4.022, allocations: 2.178 MB / 2.489 GB, free: 131 MB / 1.167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.783e-06/4.022, allocations: 6.906 kB / 2.489 GB, free: 131 MB / 1.167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007299/4.023, allocations: 190.8 kB / 2.489 GB, free: 130.8 MB / 1.167 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.169e-05/4.023, allocations: 10.84 kB / 2.489 GB, free: 130.8 MB / 1.167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.099e-05/4.023, allocations: 4 kB / 2.489 GB, free: 130.8 MB / 1.167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.6e-06/4.023, allocations: 4 kB / 2.489 GB, free: 130.8 MB / 1.167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/4.023, allocations: 4 kB / 2.489 GB, free: 130.8 MB / 1.167 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00157/4.025, allocations: 1.328 MB / 2.491 GB, free: 129.3 MB / 1.167 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000777/4.026, allocations: 366.7 kB / 2.491 GB, free: 129 MB / 1.167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003915/4.026, allocations: 8 kB / 2.491 GB, free: 129 MB / 1.167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001275/4.027, allocations: 113.6 kB / 2.491 GB, free: 128.9 MB / 1.167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.157e-05/4.027, allocations: 43.34 kB / 2.491 GB, free: 128.8 MB / 1.167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.297e-05/4.027, allocations: 39.97 kB / 2.491 GB, free: 128.8 MB / 1.167 GB Notification: Performance of sort global known variables: time 0.001196/4.029, allocations: 0.9034 MB / 2.492 GB, free: 127.9 MB / 1.167 GB Notification: Performance of remove unused functions: time 0.00251/4.031, allocations: 0.7054 MB / 2.493 GB, free: 127.2 MB / 1.167 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 4 (eigPor.vol1.dynBal.U,eigPor.vol2.dynBal.U,eigPor.vol3.dynBal.U,eigPor.vol4.dynBal.U) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (64): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * 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.001784/4.033, allocations: 0.9657 MB / 2.494 GB, free: 126.4 MB / 1.167 GB Notification: Performance of simCode: created initialization part: time 0.001038/4.034, allocations: 0.6217 MB / 2.494 GB, free: 125.8 MB / 1.167 GB Notification: Performance of simCode: created event and clocks part: time 6.031e-06/4.034, allocations: 7.5 kB / 2.494 GB, free: 125.8 MB / 1.167 GB Notification: Performance of simCode: created simulation system equations: time 0.0004222/4.035, allocations: 305.7 kB / 2.494 GB, free: 125.5 MB / 1.167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00457/4.039, allocations: 0.9256 MB / 2.495 GB, free: 124.6 MB / 1.167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004928/4.044, allocations: 2.334 MB / 2.498 GB, free: 122.3 MB / 1.167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001076/4.045, allocations: 1.587 MB / 2.499 GB, free: 120.7 MB / 1.167 GB Notification: Performance of SimCode: time 1.243e-06/4.045, allocations: 0 / 2.499 GB, free: 120.7 MB / 1.167 GB Notification: Performance of Templates: time 0.04569/4.091, allocations: 32.75 MB / 2.531 GB, free: 88.64 MB / 1.167 GB make -j1 -f Buildings_latest_Buildings.Fluid.Interfaces.Examples.EightPortHeatMassExchanger.makefile (rm -f Buildings_latest_Buildings.Fluid.Interfaces.Examples.EightPortHeatMassExchanger.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Interfaces.Examples.EightPortHeatMassExchanger.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Interfaces.Examples.EightPortHeatMassExchanger.pipe >> ../files/Buildings_latest_Buildings.Fluid.Interfaces.Examples.EightPortHeatMassExchanger.sim & ./Buildings_latest_Buildings.Fluid.Interfaces.Examples.EightPortHeatMassExchanger -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Interfaces.Examples.EightPortHeatMassExchanger.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Interfaces.Examples.EightPortHeatMassExchanger_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Interfaces_Examples_EightPortHeatMassExchanger.csv","../files/Buildings_latest_Buildings.Fluid.Interfaces.Examples.EightPortHeatMassExchanger.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches