Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Obsolete.DistrictHeatingCooling.Plants.Validation.Plant_T_ClosedLoop.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: translateModel(Buildings.Obsolete.DistrictHeatingCooling.Plants.Validation.Plant_T_ClosedLoop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Obsolete.DistrictHeatingCooling.Plants.Validation.Plant_T_ClosedLoop") translateModel(Buildings.Obsolete.DistrictHeatingCooling.Plants.Validation.Plant_T_ClosedLoop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Obsolete.DistrictHeatingCooling.Plants.Validation.Plant_T_ClosedLoop") [: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 8.1.4-maint.8.1.x/package.mo): time 1.464/1.464, allocations: 289.8 MB / 297.1 MB, free: 6.715 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001072/0.001072, allocations: 177.3 kB / 366.3 MB, free: 1.98 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.508/1.508, allocations: 205.1 MB / 0.6256 GB, free: 5.812 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009396/0.0009393, allocations: 89.09 kB / 0.7396 GB, free: 39.66 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 7.193e-06/7.213e-06, allocations: 0 / 0.859 GB, free: 13.36 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7451/0.7451, allocations: 116.3 MB / 0.9726 GB, free: 68.2 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.01/1.755, allocations: 450.7 MB / 1.413 GB, free: 34.71 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003036/1.756, allocations: 102.4 kB / 1.413 GB, free: 34.66 MB / 0.823 GB Notification: Performance of FrontEnd: time 3.34/5.096, allocations: 0.9867 GB / 2.4 GB, free: 159.4 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 0.0002492/5.096, allocations: 57.78 kB / 2.4 GB, free: 159.4 MB / 0.9636 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 301 * Number of variables: 301 Notification: Performance of Generate backend data structure: time 0.004812/5.101, allocations: 2.147 MB / 2.402 GB, free: 158.5 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 3.725e-05/5.101, allocations: 9.625 kB / 2.402 GB, free: 158.5 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003893/5.105, allocations: 0.8066 MB / 2.402 GB, free: 158.4 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01945/5.124, allocations: 9.014 MB / 2.411 GB, free: 157.7 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.612e-05/5.124, allocations: 44.72 kB / 2.411 GB, free: 157.7 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002176/5.125, allocations: 77.75 kB / 2.411 GB, free: 157.7 MB / 0.9636 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001799/5.126, allocations: 0.9312 MB / 2.412 GB, free: 157.7 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001788/5.128, allocations: 1.233 MB / 2.413 GB, free: 157.4 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.647e-05/5.128, allocations: 9.75 kB / 2.413 GB, free: 157.4 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001077/5.128, allocations: 3.188 kB / 2.413 GB, free: 157.4 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.658e-05/5.128, allocations: 34.16 kB / 2.414 GB, free: 157.4 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009865/5.138, allocations: 8.282 MB / 2.422 GB, free: 152.3 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009063/5.139, allocations: 0.674 MB / 2.422 GB, free: 152.3 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004984/5.14, allocations: 372.6 kB / 2.423 GB, free: 152.3 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004659/5.144, allocations: 2.894 MB / 2.425 GB, free: 150.7 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005429/5.145, allocations: 409.1 kB / 2.426 GB, free: 150.7 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=66): time 2.384e-06/5.145, allocations: 3.188 kB / 2.426 GB, free: 150.7 MB / 0.9636 GB Notification: Performance of matching and sorting (n=66): time 0.002106/5.147, allocations: 0.8588 MB / 2.427 GB, free: 150.5 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.763e-05/5.147, allocations: 110.4 kB / 2.427 GB, free: 150.4 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001506/5.149, allocations: 1.183 MB / 2.428 GB, free: 150.2 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 8.068e-05/5.149, allocations: 25.7 kB / 2.428 GB, free: 150.2 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004204/5.149, allocations: 0.6014 MB / 2.429 GB, free: 149.9 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001916/5.149, allocations: 230.1 kB / 2.429 GB, free: 149.7 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.434e-05/5.149, allocations: 0 / 2.429 GB, free: 149.7 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 7.51e-05/5.15, allocations: 349.8 kB / 2.429 GB, free: 149.4 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004669/5.15, allocations: 327.9 kB / 2.429 GB, free: 149.4 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006464/5.151, allocations: 0.7805 MB / 2.43 GB, free: 148.9 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001335/5.152, allocations: 0.5172 MB / 2.431 GB, free: 148.9 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.52e-06/5.152, allocations: 0 / 2.431 GB, free: 148.9 MB / 0.9636 GB Notification: Performance of matching and sorting (n=135) (initialization): time 0.002429/5.154, allocations: 1.242 MB / 2.432 GB, free: 148.7 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007951/5.155, allocations: 4.959 MB / 2.437 GB, free: 143.5 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.398e-05/5.155, allocations: 11.44 kB / 2.437 GB, free: 143.5 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.967e-05/5.155, allocations: 26.78 kB / 2.437 GB, free: 143.5 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001255/5.157, allocations: 300.6 kB / 2.437 GB, free: 143.5 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.772e-05/5.157, allocations: 22.56 kB / 2.437 GB, free: 143.5 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00172/5.158, allocations: 198.5 kB / 2.437 GB, free: 143.5 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001283/5.158, allocations: 63.88 kB / 2.437 GB, free: 143.5 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 1.054e-05/5.159, allocations: 4.625 kB / 2.437 GB, free: 143.5 MB / 0.9636 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002105/5.161, allocations: 1.01 MB / 2.438 GB, free: 143.4 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.923e-05/5.161, allocations: 15.08 kB / 2.438 GB, free: 143.4 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.545e-05/5.161, allocations: 22.81 kB / 2.438 GB, free: 143.4 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001203/5.162, allocations: 297.2 kB / 2.439 GB, free: 143.4 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.439e-05/5.162, allocations: 26.52 kB / 2.439 GB, free: 143.4 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001617/5.164, allocations: 176.5 kB / 2.439 GB, free: 143.4 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001108/5.164, allocations: 63.91 kB / 2.439 GB, free: 143.4 MB / 0.9636 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,EHea.local_reset,ECoo.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (131): * Single equations (assignments): 127 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 1 * 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.000253/5.164, allocations: 141.1 kB / 2.439 GB, free: 143.3 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002104/5.164, allocations: 169.9 kB / 2.439 GB, free: 143.2 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002595/5.167, allocations: 1.179 MB / 2.44 GB, free: 143.1 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.292e-05/5.167, allocations: 6.719 kB / 2.44 GB, free: 143.1 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.161e-06/5.167, allocations: 0 / 2.44 GB, free: 143.1 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001362/5.168, allocations: 0.9923 MB / 2.441 GB, free: 142.8 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004207/5.172, allocations: 2.284 MB / 2.444 GB, free: 142.4 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.129e-06/5.172, allocations: 3.938 kB / 2.444 GB, free: 142.4 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001014/5.173, allocations: 181.7 kB / 2.444 GB, free: 142.4 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.985e-06/5.173, allocations: 4.906 kB / 2.444 GB, free: 142.4 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.799e-05/5.173, allocations: 17.2 kB / 2.444 GB, free: 142.4 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.65e-06/5.174, allocations: 10.59 kB / 2.444 GB, free: 142.4 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/5.174, allocations: 0 / 2.444 GB, free: 142.4 MB / 0.9636 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002208/5.176, allocations: 1.53 MB / 2.445 GB, free: 142.1 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006544/5.176, allocations: 354.1 kB / 2.446 GB, free: 141.9 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000234/5.177, allocations: 3.75 kB / 2.446 GB, free: 141.9 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001175/5.178, allocations: 125.5 kB / 2.446 GB, free: 141.9 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001088/5.178, allocations: 52.3 kB / 2.446 GB, free: 141.9 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.958e-05/5.178, allocations: 37.58 kB / 2.446 GB, free: 141.9 MB / 0.9636 GB Notification: Performance of sort global known variables: time 0.001094/5.179, allocations: 0.8846 MB / 2.447 GB, free: 141.8 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.003513/5.183, allocations: 1.039 MB / 2.448 GB, free: 141.6 MB / 0.9636 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 7 (pla.coo.outCon.T,pla.hea.outCon.T,vol.dynBal.U,pum.filter.x[1],pum.filter.x[2],ECoo.y,EHea.y) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (77): * Single equations (assignments): 68 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 7 * When equations: 2 * 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.001927/5.185, allocations: 1.161 MB / 2.449 GB, free: 141.4 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.002398/5.187, allocations: 1.566 MB / 2.45 GB, free: 141.2 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 3.356e-06/5.187, allocations: 0 / 2.45 GB, free: 141.2 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 0.000523/5.188, allocations: 406.4 kB / 2.451 GB, free: 141.2 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003115/5.191, allocations: 0.6838 MB / 2.451 GB, free: 141.2 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007395/5.198, allocations: 2.782 MB / 2.454 GB, free: 140.5 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001227/5.199, allocations: 1.589 MB / 2.456 GB, free: 139.8 MB / 0.9636 GB Notification: Performance of SimCode: time 7.42e-07/5.199, allocations: 0 / 2.456 GB, free: 139.8 MB / 0.9636 GB Notification: Performance of Templates: time 0.06192/5.261, allocations: 41.17 MB / 2.496 GB, free: 138 MB / 0.9636 GB make -j1 -f Buildings_8_Buildings.Obsolete.DistrictHeatingCooling.Plants.Validation.Plant_T_ClosedLoop.makefile (rm -f Buildings_8_Buildings.Obsolete.DistrictHeatingCooling.Plants.Validation.Plant_T_ClosedLoop.pipe ; mkfifo Buildings_8_Buildings.Obsolete.DistrictHeatingCooling.Plants.Validation.Plant_T_ClosedLoop.pipe ; head -c 1048576 < Buildings_8_Buildings.Obsolete.DistrictHeatingCooling.Plants.Validation.Plant_T_ClosedLoop.pipe >> ../files/Buildings_8_Buildings.Obsolete.DistrictHeatingCooling.Plants.Validation.Plant_T_ClosedLoop.sim & ./Buildings_8_Buildings.Obsolete.DistrictHeatingCooling.Plants.Validation.Plant_T_ClosedLoop -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Obsolete.DistrictHeatingCooling.Plants.Validation.Plant_T_ClosedLoop.pipe 2>&1)