Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Experimental.DHC.EnergyTransferStations.Combined.Subsystems.Validation.HeatExchanger.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: "" <> buildModelFMU(Buildings.Experimental.DHC.EnergyTransferStations.Combined.Subsystems.Validation.HeatExchanger,fileNamePrefix="Buildings_9_Buildings_Experimental_DHC_EnergyTransferStations_Combined_Subsystems_Validation_HeatExchanger",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Experimental.DHC.EnergyTransferStations.Combined.Subsystems.Validation.HeatExchanger,fileNamePrefix="Buildings_9_Buildings_Experimental_DHC_EnergyTransferStations_Combined_Subsystems_Validation_HeatExchanger",fmuType="me",version="2.0",platforms={"static"}) [: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 9.1.1-maint.9.1.x/package.mo): time 1.978/1.978, allocations: 387.2 MB / 394.5 MB, free: 13.36 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00106/0.00106, allocations: 181.6 kB / 487 MB, free: 0.7539 MB / 378.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.357/1.357, allocations: 221.3 MB / 0.7819 GB, free: 6.824 MB / 0.573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009811/0.000981, allocations: 98.58 kB / 0.9213 GB, free: 43.73 MB / 0.6198 GB Notification: Performance of FrontEnd - loaded program: time 0.3004/0.3015, allocations: 148.5 MB / 1.066 GB, free: 7.508 MB / 0.7292 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6595/0.961, allocations: 142.3 MB / 1.205 GB, free: 73 MB / 0.7917 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8554/1.816, allocations: 481.6 MB / 1.676 GB, free: 130.5 MB / 1.01 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002495/1.817, allocations: 107 kB / 1.676 GB, free: 130.4 MB / 1.01 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1247 * Number of variables: 1247 Notification: Performance of Generate backend data structure: time 11.09/12.9, allocations: 3.773 GB / 5.449 GB, free: 53.27 MB / 1.307 GB Notification: Performance of prepare preOptimizeDAE: time 3.385e-05/12.9, allocations: 10.19 kB / 5.449 GB, free: 53.27 MB / 1.307 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01059/12.91, allocations: 2.142 MB / 5.451 GB, free: 52.77 MB / 1.307 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02825/12.94, allocations: 11.18 MB / 5.462 GB, free: 51.43 MB / 1.307 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005977/12.94, allocations: 281.6 kB / 5.462 GB, free: 51.41 MB / 1.307 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001547/12.94, allocations: 324.8 kB / 5.463 GB, free: 51.41 MB / 1.307 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00845/12.95, allocations: 4.272 MB / 5.467 GB, free: 51.39 MB / 1.307 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008214/12.96, allocations: 4.859 MB / 5.472 GB, free: 50.81 MB / 1.307 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.67e-05/12.96, allocations: 8.969 kB / 5.472 GB, free: 50.81 MB / 1.307 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004475/12.96, allocations: 5.156 kB / 5.472 GB, free: 50.81 MB / 1.307 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001142/12.96, allocations: 178.7 kB / 5.472 GB, free: 50.8 MB / 1.307 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03819/13, allocations: 29.78 MB / 5.501 GB, free: 36.38 MB / 1.307 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003446/13, allocations: 2.103 MB / 5.503 GB, free: 36.36 MB / 1.307 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001979/13, allocations: 1.565 MB / 5.504 GB, free: 36.33 MB / 1.307 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01513/13.02, allocations: 10.02 MB / 5.514 GB, free: 31.26 MB / 1.307 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002739/13.02, allocations: 1.935 MB / 5.516 GB, free: 31.02 MB / 1.307 GB Notification: Performance of pre-optimization done (n=326): time 4.879e-06/13.02, allocations: 0 / 5.516 GB, free: 31.02 MB / 1.307 GB Notification: Performance of matching and sorting (n=326): time 0.01244/13.03, allocations: 4.599 MB / 5.521 GB, free: 30.49 MB / 1.307 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.187e-05/13.03, allocations: 274.9 kB / 5.521 GB, free: 30.21 MB / 1.307 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007765/13.04, allocations: 4.992 MB / 5.526 GB, free: 29.8 MB / 1.307 GB Notification: Performance of collectPreVariables (initialization): time 0.0007627/13.04, allocations: 50.62 kB / 5.526 GB, free: 29.77 MB / 1.307 GB Notification: Performance of collectInitialEqns (initialization): time 0.001697/13.05, allocations: 2.07 MB / 5.528 GB, free: 28.76 MB / 1.307 GB Notification: Performance of collectInitialBindings (initialization): time 0.001354/13.05, allocations: 1.033 MB / 5.529 GB, free: 28.07 MB / 1.307 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002331/13.05, allocations: 2.438 kB / 5.529 GB, free: 28.07 MB / 1.307 GB Notification: Performance of setup shared object (initialization): time 0.000168/13.05, allocations: 472.5 kB / 5.529 GB, free: 27.76 MB / 1.307 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002166/13.05, allocations: 1.453 MB / 5.531 GB, free: 27.75 MB / 1.307 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002604/13.05, allocations: 2.803 MB / 5.533 GB, free: 26.19 MB / 1.307 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00694/13.06, allocations: 2.573 MB / 5.536 GB, free: 26.13 MB / 1.307 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.704e-05/13.06, allocations: 7.875 kB / 5.536 GB, free: 26.13 MB / 1.307 GB Notification: Performance of matching and sorting (n=554) (initialization): time 0.01393/13.07, allocations: 5.8 MB / 5.542 GB, free: 25.61 MB / 1.307 GB Notification: Performance of prepare postOptimizeDAE: time 0.003522/13.08, allocations: 14.52 MB / 5.556 GB, free: 26.57 MB / 1.323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.037e-05/13.08, allocations: 28.94 kB / 5.556 GB, free: 26.57 MB / 1.323 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001467/13.08, allocations: 467 kB / 5.556 GB, free: 26.54 MB / 1.323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004362/13.08, allocations: 0.9799 MB / 5.557 GB, free: 26.54 MB / 1.323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002458/13.08, allocations: 2.793 MB / 5.56 GB, free: 24.45 MB / 1.323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006962/13.09, allocations: 0.7192 MB / 5.561 GB, free: 24.23 MB / 1.323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005912/13.09, allocations: 245.5 kB / 5.561 GB, free: 24.23 MB / 1.323 GB Notification: Performance of prepare postOptimizeDAE: time 9.138e-06/13.09, allocations: 8.938 kB / 5.561 GB, free: 24.23 MB / 1.323 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01177/13.1, allocations: 4.907 MB / 5.566 GB, free: 23.97 MB / 1.323 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.222e-05/13.1, allocations: 29.64 kB / 5.566 GB, free: 23.97 MB / 1.323 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001463/13.11, allocations: 466 kB / 5.566 GB, free: 23.93 MB / 1.323 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003976/13.11, allocations: 0.9755 MB / 5.567 GB, free: 23.88 MB / 1.323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00451/13.11, allocations: 4.502 MB / 5.572 GB, free: 20.26 MB / 1.323 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0067/13.12, allocations: 0.6432 MB / 5.572 GB, free: 20.1 MB / 1.323 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004554/13.12, allocations: 239.4 kB / 5.572 GB, free: 20.1 MB / 1.323 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: hexVal.hex.C2_flow:VARIABLE(unit = "W/K" ) "Heat capacity flow rate medium 2" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: hexPum.hex.C2_flow:VARIABLE(unit = "W/K" ) "Heat capacity flow rate medium 2" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 126 * Number of states: 0 () * Number of discrete variables: 44 ($whenCondition1,$whenCondition2,$whenCondition3,$PRE.hexPum.con.greThr.greHys.y,hexPum.con.greThr.greHys.y,hexPum.con.and2.u2,hexPum.con.and2.y,$PRE.hexPum.con.heaRej.greHys.y,hexPum.con.heaRej.greHys.y,$PRE.hexPum.con.cooRej.greHys.y,hexPum.con.cooRej.greHys.y,hexPum.hex.flowRegime,$PRE.hexVal.con.greThr.greHys.y,hexVal.con.greThr.greHys.y,hexVal.con.and2.u2,hexVal.con.and2.y,$PRE.hexVal.con.heaRej.greHys.y,hexVal.con.heaRej.greHys.y,$PRE.hexVal.con.cooRej.greHys.y,hexVal.con.cooRej.greHys.y,hexVal.hex.flowRegime,or2.u1,or2.u2,or2.y,TColVal.a,TColVal.b,TColVal.last,$PRE.TColVal.nextEvent,TColVal.nextEvent,TColVal.nextEventScaled,THotVal.a,THotVal.b,THotVal.last,$PRE.THotVal.nextEvent,THotVal.nextEvent,THotVal.nextEventScaled,TSerWat.a,TSerWat.b,TSerWat.last,$PRE.TSerWat.nextEvent,TSerWat.nextEvent,TSerWat.nextEventScaled,hexPum.hex.flowRegime_nominal,hexVal.hex.flowRegime_nominal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (508): * Single equations (assignments): 498 * Array equations: 3 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {2 9,1 4,2 9,1 4} Notification: Performance of prepare postOptimizeDAE: time 0.001045/13.12, allocations: 346 kB / 5.573 GB, free: 19.82 MB / 1.323 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001111/13.12, allocations: 0.6833 MB / 5.573 GB, free: 19.45 MB / 1.323 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01357/13.14, allocations: 6.262 MB / 5.58 GB, free: 19.11 MB / 1.323 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.44e-05/13.14, allocations: 54.7 kB / 5.58 GB, free: 19.1 MB / 1.323 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.694e-06/13.14, allocations: 2.156 kB / 5.58 GB, free: 19.1 MB / 1.323 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00874/13.15, allocations: 4.478 MB / 5.584 GB, free: 18.54 MB / 1.323 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02054/13.17, allocations: 10.67 MB / 5.594 GB, free: 17.82 MB / 1.323 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.241e-05/13.17, allocations: 5.703 kB / 5.594 GB, free: 17.82 MB / 1.323 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003033/13.17, allocations: 0.6456 MB / 5.595 GB, free: 17.79 MB / 1.323 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001078/13.17, allocations: 376.7 kB / 5.595 GB, free: 17.76 MB / 1.323 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002746/13.17, allocations: 85.22 kB / 5.595 GB, free: 17.76 MB / 1.323 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002124/13.17, allocations: 2.683 MB / 5.598 GB, free: 15.66 MB / 1.323 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.1e-06/13.17, allocations: 3.312 kB / 5.598 GB, free: 15.66 MB / 1.323 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01405/13.19, allocations: 7.744 MB / 5.606 GB, free: 14.46 MB / 1.323 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01681/13.2, allocations: 10.82 MB / 5.616 GB, free: 12.85 MB / 1.323 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004046/13.21, allocations: 1.409 MB / 5.618 GB, free: 12.33 MB / 1.323 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001964/13.21, allocations: 27.66 kB / 5.618 GB, free: 12.33 MB / 1.323 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005479/13.22, allocations: 460.3 kB / 5.618 GB, free: 12.31 MB / 1.323 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004697/13.22, allocations: 277.5 kB / 5.618 GB, free: 12.31 MB / 1.323 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000402/13.22, allocations: 177.2 kB / 5.618 GB, free: 12.31 MB / 1.323 GB Notification: Performance of sort global known variables: time 0.00688/13.22, allocations: 3.709 MB / 5.622 GB, free: 12.09 MB / 1.323 GB Notification: Performance of remove unused functions: time 0.02307/13.25, allocations: 5.748 MB / 5.628 GB, free: 11.2 MB / 1.323 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 14 (hexPum.senT2WatEnt.T,hexPum.senT2WatLvg.T,hexPum.val2.vol.dynBal.U,senT1OutPum.T,senT1InlPum.T,senT2OutPum.T,senT2InlPum.T,hexVal.senT2WatEnt.T,hexVal.senT2WatLvg.T,hexVal.val2.vol.dynBal.U,senT1InlVal.T,senT1OutVal.T,senT2OutVal.T,senT2InlVal.T) * Number of discrete variables: 33 ($whenCondition1,$whenCondition2,$whenCondition3,hexPum.con.greThr.greHys.y,hexPum.con.and2.u2,hexPum.con.and2.y,hexPum.con.heaRej.greHys.y,hexPum.con.cooRej.greHys.y,hexPum.hex.flowRegime,hexVal.con.greThr.greHys.y,hexVal.con.and2.u2,hexVal.con.and2.y,hexVal.con.heaRej.greHys.y,hexVal.con.cooRej.greHys.y,hexVal.hex.flowRegime,or2.u1,or2.u2,or2.y,TColVal.a,TColVal.b,TColVal.last,TColVal.nextEvent,TColVal.nextEventScaled,THotVal.a,THotVal.b,THotVal.last,THotVal.nextEvent,THotVal.nextEventScaled,TSerWat.a,TSerWat.b,TSerWat.last,TSerWat.nextEvent,TSerWat.nextEventScaled) * Number of discrete states: 24 (hexVal.con.heaRej.greHys.y,hexPum.con.heaRej.greHys.y,hexVal.con.cooRej.greHys.y,hexPum.con.cooRej.greHys.y,hexVal.con.greThr.greHys.y,hexPum.con.greThr.greHys.y,TColVal.nextEvent,TColVal.last,TColVal.nextEventScaled,TColVal.b,TColVal.a,$whenCondition3,THotVal.nextEvent,THotVal.last,THotVal.nextEventScaled,THotVal.b,THotVal.a,$whenCondition2,TSerWat.nextEvent,TSerWat.last,TSerWat.nextEventScaled,TSerWat.b,TSerWat.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (357): * Single equations (assignments): 316 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 34 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {2 11,1 4,2 11,1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.008569/13.25, allocations: 5.316 MB / 5.633 GB, free: 24.61 MB / 1.339 GB Notification: Performance of simCode: created initialization part: time 0.01124/13.27, allocations: 6.885 MB / 5.64 GB, free: 21.77 MB / 1.339 GB Notification: Performance of simCode: created event and clocks part: time 6.532e-06/13.27, allocations: 2.719 kB / 5.64 GB, free: 21.77 MB / 1.339 GB Notification: Performance of simCode: created simulation system equations: time 0.003178/13.27, allocations: 2.269 MB / 5.642 GB, free: 20.85 MB / 1.339 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01256/13.28, allocations: 2.815 MB / 5.645 GB, free: 20.23 MB / 1.339 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02322/13.31, allocations: 10.73 MB / 5.655 GB, free: 15.89 MB / 1.339 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005621/13.31, allocations: 4.561 MB / 5.66 GB, free: 14.72 MB / 1.339 GB Notification: Performance of SimCode: time 6.91e-07/13.31, allocations: 0 / 5.66 GB, free: 14.72 MB / 1.339 GB (rm -f Buildings_9_Buildings.Experimental.DHC.EnergyTransferStations.Combined.Subsystems.Validation.HeatExchanger.pipe ; mkfifo Buildings_9_Buildings.Experimental.DHC.EnergyTransferStations.Combined.Subsystems.Validation.HeatExchanger.pipe ; head -c 1048576 < Buildings_9_Buildings.Experimental.DHC.EnergyTransferStations.Combined.Subsystems.Validation.HeatExchanger.pipe >> ../files/Buildings_9_Buildings.Experimental.DHC.EnergyTransferStations.Combined.Subsystems.Validation.HeatExchanger.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Experimental.DHC.EnergyTransferStations.Combined.Subsystems.Validation.HeatExchanger_res.mat --tempDir=temp_Buildings_9_Buildings_Experimental_DHC_EnergyTransferStations_Combined_Subsystems_Validation_HeatExchanger_fmu --startTime=0 --stopTime=5000 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Experimental_DHC_EnergyTransferStations_Combined_Subsystems_Validation_HeatExchanger.fmu > Buildings_9_Buildings.Experimental.DHC.EnergyTransferStations.Combined.Subsystems.Validation.HeatExchanger.pipe 2>&1)