Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Experimental.DistrictHeatingCooling.Plants.Validation.Plant_T_ClosedLoop.conf.json 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.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: "" <> buildModelFMU(Buildings.Experimental.DistrictHeatingCooling.Plants.Validation.Plant_T_ClosedLoop,fileNamePrefix="Buildings_7_0_0_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.1/package.mo): time 2.439/2.439, allocations: 248.6 MB / 255.9 MB, free: 7.047 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.001716/0.001716, allocations: 183.7 kB / 315.1 MB, free: 4.254 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.037/2.037, allocations: 205.1 MB / 0.5658 GB, free: 348 kB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001284/0.001284, allocations: 87.33 kB / 0.67 GB, free: 5.551 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.4762/0.4775, allocations: 112.4 MB / 0.7797 GB, free: 103.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.239/0.7166, allocations: 106.2 MB / 0.8835 GB, free: 13.34 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.528/2.245, allocations: 442.9 MB / 1.316 GB, free: 258.2 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003248/2.245, allocations: 90.27 kB / 1.316 GB, free: 258.2 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 4.667/6.912, allocations: 0.961 GB / 2.277 GB, free: 126.3 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 4.503e-05/6.912, allocations: 11.06 kB / 2.277 GB, free: 126.3 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007949/6.92, allocations: 0.7997 MB / 2.278 GB, free: 126.2 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03332/6.953, allocations: 8.83 MB / 2.287 GB, free: 125.6 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.39e-05/6.954, allocations: 35.81 kB / 2.287 GB, free: 125.6 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004589/6.954, allocations: 76.88 kB / 2.287 GB, free: 125.6 MB / 0.8855 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003317/6.957, allocations: 0.9406 MB / 2.288 GB, free: 125.6 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003344/6.961, allocations: 1.229 MB / 2.289 GB, free: 125.3 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.602e-05/6.961, allocations: 6.5 kB / 2.289 GB, free: 125.3 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001895/6.961, allocations: 3.969 kB / 2.289 GB, free: 125.3 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.915e-05/6.961, allocations: 32.75 kB / 2.289 GB, free: 125.3 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01781/6.979, allocations: 8.276 MB / 2.297 GB, free: 120.3 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001846/6.981, allocations: 0.6706 MB / 2.298 GB, free: 120.2 MB / 0.8855 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009571/6.982, allocations: 377 kB / 2.298 GB, free: 120.2 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.008247/6.99, allocations: 2.882 MB / 2.301 GB, free: 118.7 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009624/6.991, allocations: 405.8 kB / 2.301 GB, free: 118.6 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=66): time 3.998e-06/6.991, allocations: 2.719 kB / 2.301 GB, free: 118.6 MB / 0.8855 GB Notification: Performance of matching and sorting (n=66): time 0.00354/6.995, allocations: 0.8566 MB / 2.302 GB, free: 118.5 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.649e-05/6.995, allocations: 114.5 kB / 2.302 GB, free: 118.4 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00269/6.998, allocations: 1.185 MB / 2.303 GB, free: 118.2 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 0.0002821/6.998, allocations: 25.7 kB / 2.303 GB, free: 118.2 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005859/6.998, allocations: 0.5983 MB / 2.304 GB, free: 117.9 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003401/6.999, allocations: 238 kB / 2.304 GB, free: 117.8 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.064e-05/6.999, allocations: 0 / 2.304 GB, free: 117.8 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001042/6.999, allocations: 346.3 kB / 2.304 GB, free: 117.5 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009183/7, allocations: 329.2 kB / 2.305 GB, free: 117.5 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001181/7.001, allocations: 0.7826 MB / 2.305 GB, free: 116.9 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002325/7.004, allocations: 0.5085 MB / 2.306 GB, free: 116.9 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.227e-05/7.004, allocations: 3.531 kB / 2.306 GB, free: 116.9 MB / 0.8855 GB Notification: Performance of matching and sorting (n=135) (initialization): time 0.004484/7.008, allocations: 1.235 MB / 2.307 GB, free: 116.8 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 0.001085/7.009, allocations: 4.965 MB / 2.312 GB, free: 111.6 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.836e-05/7.009, allocations: 15.62 kB / 2.312 GB, free: 111.6 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.601e-05/7.009, allocations: 17.69 kB / 2.312 GB, free: 111.6 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002709/7.012, allocations: 305.8 kB / 2.312 GB, free: 111.6 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.683e-05/7.012, allocations: 31.48 kB / 2.312 GB, free: 111.6 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003135/7.015, allocations: 196.7 kB / 2.313 GB, free: 111.5 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002902/7.016, allocations: 65.66 kB / 2.313 GB, free: 111.5 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.449e-05/7.016, allocations: 9.281 kB / 2.313 GB, free: 111.5 MB / 0.8855 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003845/7.02, allocations: 1.005 MB / 2.314 GB, free: 111.5 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.287e-05/7.02, allocations: 16.77 kB / 2.314 GB, free: 111.5 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.868e-05/7.02, allocations: 18.75 kB / 2.314 GB, free: 111.5 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002517/7.022, allocations: 296 kB / 2.314 GB, free: 111.5 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.403e-05/7.022, allocations: 27.03 kB / 2.314 GB, free: 111.5 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002927/7.025, allocations: 176.9 kB / 2.314 GB, free: 111.5 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002322/7.025, allocations: 68.69 kB / 2.314 GB, free: 111.5 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.0004094/7.026, allocations: 147.3 kB / 2.314 GB, free: 111.4 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004079/7.026, allocations: 163.8 kB / 2.314 GB, free: 111.3 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004397/7.031, allocations: 1.177 MB / 2.316 GB, free: 111.2 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.97e-05/7.031, allocations: 9.062 kB / 2.316 GB, free: 111.2 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.576e-06/7.031, allocations: 0 / 2.316 GB, free: 111.2 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002477/7.033, allocations: 0.9903 MB / 2.317 GB, free: 110.8 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007304/7.041, allocations: 2.29 MB / 2.319 GB, free: 110.5 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.039e-05/7.041, allocations: 3.906 kB / 2.319 GB, free: 110.5 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00203/7.043, allocations: 182.8 kB / 2.319 GB, free: 110.5 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.398e-05/7.043, allocations: 3.531 kB / 2.319 GB, free: 110.5 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001292/7.043, allocations: 17.08 kB / 2.319 GB, free: 110.5 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.014e-06/7.043, allocations: 3.188 kB / 2.319 GB, free: 110.5 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.599e-06/7.043, allocations: 9.312 kB / 2.319 GB, free: 110.5 MB / 0.8855 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004203/7.047, allocations: 1.526 MB / 2.321 GB, free: 110.2 MB / 0.8855 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.005692/7.053, allocations: 2.46 MB / 2.323 GB, free: 109.5 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001238/7.054, allocations: 349.2 kB / 2.323 GB, free: 109.3 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004727/7.055, allocations: 5.969 kB / 2.323 GB, free: 109.3 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002373/7.057, allocations: 121.3 kB / 2.323 GB, free: 109.3 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001715/7.057, allocations: 50.42 kB / 2.323 GB, free: 109.3 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001369/7.057, allocations: 34.3 kB / 2.323 GB, free: 109.3 MB / 0.8855 GB Notification: Performance of sort global known variables: time 0.001995/7.059, allocations: 0.8809 MB / 2.324 GB, free: 109.2 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.008979/7.068, allocations: 1.363 MB / 2.326 GB, free: 109 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.002977/7.071, allocations: 1.175 MB / 2.327 GB, free: 108.7 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.004095/7.076, allocations: 1.568 MB / 2.328 GB, free: 108.6 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 7.444e-06/7.076, allocations: 0 / 2.328 GB, free: 108.6 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.001029/7.077, allocations: 415.6 kB / 2.329 GB, free: 108.6 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006142/7.083, allocations: 0.6742 MB / 2.329 GB, free: 108.6 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0126/7.096, allocations: 2.79 MB / 2.332 GB, free: 107.9 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002173/7.098, allocations: 1.594 MB / 2.334 GB, free: 107.2 MB / 0.8855 GB Notification: Performance of SimCode: time 2.595e-06/7.098, allocations: 0 / 2.334 GB, free: 107.2 MB / 0.8855 GB