Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.Plants.Validation.Plant_T_ClosedLoop.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Experimental.DistrictHeatingCooling.Plants.Validation.Plant_T_ClosedLoop,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Experimental_DistrictHeatingCooling_Plants_Validation_Plant_T_ClosedLoop",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Experimental.DistrictHeatingCooling.Plants.Validation.Plant_T_ClosedLoop,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Experimental_DistrictHeatingCooling_Plants_Validation_Plant_T_ClosedLoop",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 7.0.3-maint.7.0.x/package.mo): time 1.223/1.223, allocations: 249.4 MB / 256.7 MB, free: 7.027 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009782/0.0009783, allocations: 189.1 kB / 316 MB, free: 3.574 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.156/1.156, allocations: 205.1 MB / 0.5667 GB, free: 15.7 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00084/0.00084, allocations: 94.19 kB / 0.671 GB, free: 4.816 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.3398/0.3407, allocations: 112.5 MB / 0.7808 GB, free: 103 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1588/0.4995, allocations: 106.3 MB / 0.8847 GB, free: 12.56 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.046/1.546, allocations: 443.1 MB / 1.317 GB, free: 260.6 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002381/1.546, allocations: 95.41 kB / 1.317 GB, free: 260.6 MB / 0.8698 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 2.83/4.376, allocations: 0.961 GB / 2.279 GB, free: 126.8 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.141e-05/4.376, allocations: 6.625 kB / 2.279 GB, free: 126.8 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004099/4.38, allocations: 0.798 MB / 2.279 GB, free: 126.7 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02095/4.401, allocations: 8.837 MB / 2.288 GB, free: 126.1 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.555e-05/4.401, allocations: 39.38 kB / 2.288 GB, free: 126.1 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002435/4.401, allocations: 76.59 kB / 2.288 GB, free: 126.1 MB / 0.8855 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001753/4.403, allocations: 0.9363 MB / 2.289 GB, free: 126.1 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001749/4.405, allocations: 1.233 MB / 2.29 GB, free: 125.7 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.364e-05/4.405, allocations: 2.156 kB / 2.29 GB, free: 125.7 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001035/4.405, allocations: 2.938 kB / 2.29 GB, free: 125.7 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.008e-05/4.405, allocations: 38.84 kB / 2.29 GB, free: 125.7 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01017/4.415, allocations: 8.266 MB / 2.298 GB, free: 120.8 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009287/4.416, allocations: 0.6707 MB / 2.299 GB, free: 120.7 MB / 0.8855 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004831/4.417, allocations: 375.9 kB / 2.299 GB, free: 120.7 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004715/4.421, allocations: 2.875 MB / 2.302 GB, free: 119.2 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000537/4.422, allocations: 408.9 kB / 2.302 GB, free: 119.1 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=66): time 3.216e-06/4.422, allocations: 0 / 2.302 GB, free: 119.1 MB / 0.8855 GB Notification: Performance of matching and sorting (n=66): time 0.002013/4.424, allocations: 0.8596 MB / 2.303 GB, free: 119 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.938e-05/4.424, allocations: 111.5 kB / 2.303 GB, free: 118.8 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001523/4.425, allocations: 1.182 MB / 2.305 GB, free: 118.7 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 7.457e-05/4.426, allocations: 28.89 kB / 2.305 GB, free: 118.7 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004105/4.426, allocations: 0.6056 MB / 2.305 GB, free: 118.4 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001797/4.426, allocations: 232.9 kB / 2.305 GB, free: 118.3 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.302e-05/4.426, allocations: 5.469 kB / 2.305 GB, free: 118.3 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 6.682e-05/4.426, allocations: 342.9 kB / 2.306 GB, free: 118 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004508/4.427, allocations: 332.1 kB / 2.306 GB, free: 118 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006227/4.427, allocations: 0.7838 MB / 2.307 GB, free: 117.4 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001268/4.429, allocations: 0.5089 MB / 2.307 GB, free: 117.4 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.32e-06/4.429, allocations: 3.594 kB / 2.307 GB, free: 117.4 MB / 0.8855 GB Notification: Performance of matching and sorting (n=135) (initialization): time 0.00233/4.431, allocations: 1.24 MB / 2.309 GB, free: 117.3 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 0.000961/4.432, allocations: 4.963 MB / 2.313 GB, free: 112.1 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.866e-05/4.432, allocations: 13.88 kB / 2.313 GB, free: 112.1 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.243e-05/4.432, allocations: 21.31 kB / 2.313 GB, free: 112.1 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001299/4.433, allocations: 300.1 kB / 2.314 GB, free: 112.1 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.136e-05/4.433, allocations: 27.44 kB / 2.314 GB, free: 112.1 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001625/4.435, allocations: 203.3 kB / 2.314 GB, free: 112 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001349/4.435, allocations: 62.62 kB / 2.314 GB, free: 112 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 8.746e-06/4.435, allocations: 6.438 kB / 2.314 GB, free: 112 MB / 0.8855 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002122/4.437, allocations: 1.008 MB / 2.315 GB, free: 112 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.669e-05/4.437, allocations: 16.16 kB / 2.315 GB, free: 112 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.668e-05/4.437, allocations: 22.38 kB / 2.315 GB, free: 112 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001177/4.439, allocations: 293.8 kB / 2.315 GB, free: 112 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.422e-05/4.439, allocations: 27.86 kB / 2.315 GB, free: 112 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001548/4.44, allocations: 176.2 kB / 2.315 GB, free: 111.9 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001056/4.44, allocations: 69.58 kB / 2.316 GB, free: 111.9 MB / 0.8855 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.0002721/4.441, allocations: 147.9 kB / 2.316 GB, free: 111.8 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002052/4.441, allocations: 161.3 kB / 2.316 GB, free: 111.7 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002429/4.443, allocations: 1.178 MB / 2.317 GB, free: 111.7 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.261e-05/4.443, allocations: 10.86 kB / 2.317 GB, free: 111.7 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/4.443, allocations: 0 / 2.317 GB, free: 111.7 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001329/4.445, allocations: 0.9841 MB / 2.318 GB, free: 111.3 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004043/4.449, allocations: 2.288 MB / 2.32 GB, free: 111 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.032e-06/4.449, allocations: 0 / 2.32 GB, free: 111 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001005/4.45, allocations: 186.6 kB / 2.32 GB, free: 111 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.101e-05/4.45, allocations: 7.312 kB / 2.32 GB, free: 111 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.505e-05/4.45, allocations: 16.67 kB / 2.32 GB, free: 111 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.759e-06/4.45, allocations: 5.031 kB / 2.32 GB, free: 111 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.437e-06/4.45, allocations: 6.109 kB / 2.32 GB, free: 111 MB / 0.8855 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002224/4.452, allocations: 1.529 MB / 2.322 GB, free: 110.7 MB / 0.8855 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002939/4.455, allocations: 2.454 MB / 2.324 GB, free: 110 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007379/4.456, allocations: 357.5 kB / 2.325 GB, free: 109.8 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002374/4.456, allocations: 3.562 kB / 2.325 GB, free: 109.8 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001175/4.457, allocations: 122.6 kB / 2.325 GB, free: 109.8 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001037/4.457, allocations: 51.45 kB / 2.325 GB, free: 109.8 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.758e-05/4.457, allocations: 32.78 kB / 2.325 GB, free: 109.8 MB / 0.8855 GB Notification: Performance of sort global known variables: time 0.001187/4.459, allocations: 0.8835 MB / 2.326 GB, free: 109.7 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.006386/4.465, allocations: 1.358 MB / 2.327 GB, free: 109.5 MB / 0.8855 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.002175/4.467, allocations: 1.164 MB / 2.328 GB, free: 109.2 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.002466/4.47, allocations: 1.567 MB / 2.33 GB, free: 109.1 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 4.739e-06/4.47, allocations: 0 / 2.33 GB, free: 109.1 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0005472/4.47, allocations: 410.2 kB / 2.33 GB, free: 109.1 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003361/4.474, allocations: 0.6879 MB / 2.331 GB, free: 109 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006929/4.481, allocations: 2.789 MB / 2.333 GB, free: 108.4 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001218/4.482, allocations: 1.597 MB / 2.335 GB, free: 107.7 MB / 0.8855 GB Notification: Performance of SimCode: time 1.082e-06/4.482, allocations: 0 / 2.335 GB, free: 107.7 MB / 0.8855 GB (rm -f Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.Plants.Validation.Plant_T_ClosedLoop.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.Plants.Validation.Plant_T_ClosedLoop.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.Plants.Validation.Plant_T_ClosedLoop.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.Plants.Validation.Plant_T_ClosedLoop.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Experimental_DistrictHeatingCooling_Plants_Validation_Plant_T_ClosedLoop_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Experimental_DistrictHeatingCooling_Plants_Validation_Plant_T_ClosedLoop.fmu > Buildings_maint.7.0.x_Buildings.Experimental.DistrictHeatingCooling.Plants.Validation.Plant_T_ClosedLoop.pipe 2>&1)