Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Experimental.DHC.EnergyTransferStations.Combined.Subsystems.Validation.Chiller.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.Chiller,fileNamePrefix="Buildings_9_Buildings_Experimental_DHC_EnergyTransferStations_Combined_Subsystems_Validation_Chiller",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Experimental.DHC.EnergyTransferStations.Combined.Subsystems.Validation.Chiller,fileNamePrefix="Buildings_9_Buildings_Experimental_DHC_EnergyTransferStations_Combined_Subsystems_Validation_Chiller",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.893/1.893, allocations: 387.2 MB / 394.5 MB, free: 13.64 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.001057/0.001057, allocations: 181.3 kB / 487 MB, free: 5.383 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.219/1.219, allocations: 221.3 MB / 0.7819 GB, free: 1.457 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009094/0.0009093, allocations: 103 kB / 0.9213 GB, free: 2.699 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.4823/0.4832, allocations: 148.5 MB / 1.066 GB, free: 168 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2204/0.7036, allocations: 142.3 MB / 1.205 GB, free: 25.96 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8053/1.509, allocations: 476.5 MB / 1.671 GB, free: 11.38 MB / 1.104 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002833/1.509, allocations: 110.2 kB / 1.671 GB, free: 11.32 MB / 1.104 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 946 * Number of variables: 946 Notification: Performance of Generate backend data structure: time 7.622/9.131, allocations: 2.601 GB / 4.272 GB, free: 95.89 MB / 1.276 GB Notification: Performance of prepare preOptimizeDAE: time 3.641e-05/9.131, allocations: 11.28 kB / 4.272 GB, free: 95.89 MB / 1.276 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007894/9.139, allocations: 1.593 MB / 4.273 GB, free: 95.51 MB / 1.276 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02893/9.168, allocations: 14.73 MB / 4.288 GB, free: 94.23 MB / 1.276 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002162/9.168, allocations: 231.8 kB / 4.288 GB, free: 94.16 MB / 1.276 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005766/9.169, allocations: 244.5 kB / 4.288 GB, free: 94.16 MB / 1.276 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005374/9.174, allocations: 3.279 MB / 4.291 GB, free: 94.14 MB / 1.276 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005615/9.18, allocations: 3.779 MB / 4.295 GB, free: 93.67 MB / 1.276 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.94e-05/9.18, allocations: 12.42 kB / 4.295 GB, free: 93.67 MB / 1.276 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003582/9.18, allocations: 5.25 kB / 4.295 GB, free: 93.67 MB / 1.276 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.956e-05/9.18, allocations: 94.25 kB / 4.295 GB, free: 93.67 MB / 1.276 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02949/9.21, allocations: 24.27 MB / 4.319 GB, free: 81.92 MB / 1.276 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00195/9.212, allocations: 1.557 MB / 4.32 GB, free: 81.88 MB / 1.276 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001724/9.213, allocations: 1.389 MB / 4.322 GB, free: 81.86 MB / 1.276 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01132/9.225, allocations: 8.04 MB / 4.33 GB, free: 77.88 MB / 1.276 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00182/9.227, allocations: 1.406 MB / 4.331 GB, free: 77.74 MB / 1.276 GB Notification: Performance of pre-optimization done (n=219): time 4.809e-06/9.227, allocations: 0 / 4.331 GB, free: 77.74 MB / 1.276 GB Notification: Performance of matching and sorting (n=219): time 0.008136/9.235, allocations: 3.345 MB / 4.334 GB, free: 77.36 MB / 1.276 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.307e-05/9.235, allocations: 184.6 kB / 4.334 GB, free: 77.17 MB / 1.276 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005989/9.241, allocations: 3.97 MB / 4.338 GB, free: 76.79 MB / 1.276 GB Notification: Performance of collectPreVariables (initialization): time 0.0004545/9.241, allocations: 31.8 kB / 4.338 GB, free: 76.76 MB / 1.276 GB Notification: Performance of collectInitialEqns (initialization): time 0.001438/9.243, allocations: 1.631 MB / 4.34 GB, free: 75.96 MB / 1.276 GB Notification: Performance of collectInitialBindings (initialization): time 0.001113/9.244, allocations: 0.7047 MB / 4.341 GB, free: 75.5 MB / 1.276 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001561/9.244, allocations: 3.875 kB / 4.341 GB, free: 75.5 MB / 1.276 GB Notification: Performance of setup shared object (initialization): time 0.0001378/9.244, allocations: 412.8 kB / 4.341 GB, free: 75.19 MB / 1.276 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001549/9.246, allocations: 1.115 MB / 4.342 GB, free: 75.18 MB / 1.276 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001864/9.248, allocations: 2.131 MB / 4.344 GB, free: 74 MB / 1.276 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00414/9.252, allocations: 1.718 MB / 4.346 GB, free: 73.95 MB / 1.276 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.215e-05/9.252, allocations: 9.812 kB / 4.346 GB, free: 73.95 MB / 1.276 GB Notification: Performance of matching and sorting (n=364) (initialization): time 0.009138/9.261, allocations: 4.105 MB / 4.35 GB, free: 73.45 MB / 1.276 GB Notification: Performance of prepare postOptimizeDAE: time 0.001585/9.263, allocations: 10.6 MB / 4.36 GB, free: 62.55 MB / 1.276 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.451e-05/9.263, allocations: 23.56 kB / 4.36 GB, free: 62.55 MB / 1.276 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009484/9.264, allocations: 269.8 kB / 4.361 GB, free: 62.52 MB / 1.276 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002874/9.266, allocations: 0.7091 MB / 4.361 GB, free: 62.48 MB / 1.276 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003938/9.27, allocations: 4.217 MB / 4.365 GB, free: 58.96 MB / 1.276 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004891/9.275, allocations: 0.5357 MB / 4.366 GB, free: 58.82 MB / 1.276 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003289/9.276, allocations: 171 kB / 4.366 GB, free: 58.82 MB / 1.276 GB Notification: Performance of prepare postOptimizeDAE: time 6.863e-06/9.276, allocations: 3.844 kB / 4.366 GB, free: 58.82 MB / 1.276 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007376/9.283, allocations: 3.397 MB / 4.369 GB, free: 58.59 MB / 1.276 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.637e-05/9.283, allocations: 20.88 kB / 4.369 GB, free: 58.59 MB / 1.276 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009739/9.284, allocations: 267.4 kB / 4.37 GB, free: 58.56 MB / 1.276 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00277/9.287, allocations: 0.6892 MB / 4.37 GB, free: 58.52 MB / 1.276 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005631/9.293, allocations: 5.942 MB / 4.376 GB, free: 53.49 MB / 1.276 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004665/9.297, allocations: 485 kB / 4.377 GB, free: 53.38 MB / 1.276 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003362/9.298, allocations: 165.8 kB / 4.377 GB, free: 53.38 MB / 1.276 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 98 * Number of states: 0 () * Number of discrete variables: 18 ($whenCondition3,$whenCondition1,$whenCondition2,chi.uHea,chi.uCoo,chi.booToRea.u,THeaWatRet.a,THeaWatRet.b,THeaWatRet.last,$PRE.THeaWatRet.nextEvent,THeaWatRet.nextEvent,THeaWatRet.nextEventScaled,TChiWatRet.a,TChiWatRet.b,TChiWatRet.last,$PRE.TChiWatRet.nextEvent,TChiWatRet.nextEvent,TChiWatRet.nextEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (342): * Single equations (assignments): 334 * Array equations: 2 * Algorithm blocks: 2 * 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: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 2 {1 4,1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0007271/9.298, allocations: 263.1 kB / 4.377 GB, free: 53.15 MB / 1.276 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001218/9.299, allocations: 0.519 MB / 4.377 GB, free: 52.88 MB / 1.276 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008499/9.308, allocations: 4.095 MB / 4.381 GB, free: 52.61 MB / 1.276 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.536e-05/9.308, allocations: 33.5 kB / 4.382 GB, free: 52.61 MB / 1.276 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.944e-06/9.308, allocations: 3.906 kB / 4.382 GB, free: 52.61 MB / 1.276 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005022/9.313, allocations: 2.825 MB / 4.384 GB, free: 52.43 MB / 1.276 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01512/9.328, allocations: 8.285 MB / 4.392 GB, free: 51.61 MB / 1.276 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.865e-06/9.328, allocations: 2.656 kB / 4.392 GB, free: 51.61 MB / 1.276 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002437/9.331, allocations: 0.4956 MB / 4.393 GB, free: 51.57 MB / 1.276 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004822/9.331, allocations: 164.6 kB / 4.393 GB, free: 51.51 MB / 1.276 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001789/9.331, allocations: 50.08 kB / 4.393 GB, free: 51.5 MB / 1.276 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002283/9.334, allocations: 3.749 MB / 4.397 GB, free: 47.88 MB / 1.276 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.266e-06/9.334, allocations: 1.844 kB / 4.397 GB, free: 47.88 MB / 1.276 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.008811/9.343, allocations: 5.387 MB / 4.402 GB, free: 45.39 MB / 1.276 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01226/9.355, allocations: 7.756 MB / 4.41 GB, free: 41.51 MB / 1.276 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003056/9.358, allocations: 1.348 MB / 4.411 GB, free: 40.5 MB / 1.276 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008892/9.359, allocations: 12 kB / 4.411 GB, free: 40.5 MB / 1.276 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003334/9.362, allocations: 348.2 kB / 4.411 GB, free: 40.48 MB / 1.276 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002417/9.362, allocations: 130.2 kB / 4.411 GB, free: 40.46 MB / 1.276 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002718/9.363, allocations: 130.6 kB / 4.411 GB, free: 40.44 MB / 1.276 GB Notification: Performance of sort global known variables: time 0.004882/9.368, allocations: 2.962 MB / 4.414 GB, free: 39.19 MB / 1.276 GB Notification: Performance of remove unused functions: time 0.01725/9.385, allocations: 4.243 MB / 4.419 GB, free: 37.47 MB / 1.276 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 14 (chi.chi.vol1.dynBal.U,chi.chi.vol2.dynBal.U,chi.con.conValEva.conPID.I.y,chi.con.conValCon.conPID.I.y,chi.senTConLvg.T,chi.senTConEnt.T,chi.senTEvaEnt.T,chi.senTEvaLvg.T,chi.valEva.vol.dynBal.U,chi.valCon.vol.dynBal.U,senTHeaWatSup.T,senTChiWatSup.T,senTHeaWatRet.T,senTChiWatRet.T) * Number of discrete variables: 16 (chi.booToRea.u,$whenCondition3,$whenCondition1,$whenCondition2,chi.uHea,chi.uCoo,THeaWatRet.a,THeaWatRet.b,THeaWatRet.last,THeaWatRet.nextEvent,THeaWatRet.nextEventScaled,TChiWatRet.a,TChiWatRet.b,TChiWatRet.last,TChiWatRet.nextEvent,TChiWatRet.nextEventScaled) * Number of discrete states: 12 (THeaWatRet.nextEvent,THeaWatRet.last,THeaWatRet.nextEventScaled,THeaWatRet.b,THeaWatRet.a,$whenCondition2,TChiWatRet.nextEvent,TChiWatRet.last,TChiWatRet.nextEventScaled,TChiWatRet.b,TChiWatRet.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (231): * Single equations (assignments): 207 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 18 * 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: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 2 {1 4,1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.005288/9.39, allocations: 3.371 MB / 4.422 GB, free: 36.09 MB / 1.276 GB Notification: Performance of simCode: created initialization part: time 0.008877/9.399, allocations: 5.38 MB / 4.427 GB, free: 33.55 MB / 1.276 GB Notification: Performance of simCode: created event and clocks part: time 8.777e-06/9.399, allocations: 2.156 kB / 4.427 GB, free: 33.55 MB / 1.276 GB Notification: Performance of simCode: created simulation system equations: time 0.002371/9.401, allocations: 1.687 MB / 4.429 GB, free: 32.72 MB / 1.276 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01029/9.412, allocations: 2.262 MB / 4.431 GB, free: 32.21 MB / 1.276 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03443/9.446, allocations: 10.35 MB / 4.441 GB, free: 28.62 MB / 1.276 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003668/9.45, allocations: 3.62 MB / 4.445 GB, free: 25.93 MB / 1.276 GB Notification: Performance of SimCode: time 9.62e-07/9.45, allocations: 0 / 4.445 GB, free: 25.93 MB / 1.276 GB (rm -f Buildings_9_Buildings.Experimental.DHC.EnergyTransferStations.Combined.Subsystems.Validation.Chiller.pipe ; mkfifo Buildings_9_Buildings.Experimental.DHC.EnergyTransferStations.Combined.Subsystems.Validation.Chiller.pipe ; head -c 1048576 < Buildings_9_Buildings.Experimental.DHC.EnergyTransferStations.Combined.Subsystems.Validation.Chiller.pipe >> ../files/Buildings_9_Buildings.Experimental.DHC.EnergyTransferStations.Combined.Subsystems.Validation.Chiller.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Experimental.DHC.EnergyTransferStations.Combined.Subsystems.Validation.Chiller_res.mat --tempDir=temp_Buildings_9_Buildings_Experimental_DHC_EnergyTransferStations_Combined_Subsystems_Validation_Chiller_fmu --startTime=0 --stopTime=5000 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Experimental_DHC_EnergyTransferStations_Combined_Subsystems_Validation_Chiller.fmu > Buildings_9_Buildings.Experimental.DHC.EnergyTransferStations.Combined.Subsystems.Validation.Chiller.pipe 2>&1)