Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Experimental.DistrictHeatingCooling.Examples.IdealSystem3Clusters.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.Examples.IdealSystem3Clusters,fileNamePrefix="Buildings_7_0_0_Buildings_Experimental_DistrictHeatingCooling_Examples_IdealSystem3Clusters",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.288/2.288, allocations: 248.6 MB / 255.9 MB, free: 7.18 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.001625/0.001624, allocations: 181.2 kB / 315.1 MB, free: 4.289 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.977/1.977, allocations: 205.1 MB / 0.5658 GB, free: 476 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.001305/0.001305, allocations: 95.3 kB / 0.67 GB, free: 5.664 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.452/0.4534, allocations: 112.4 MB / 0.7797 GB, free: 103.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2091/0.6625, allocations: 106.3 MB / 0.8835 GB, free: 13.39 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.592/2.254, allocations: 476.1 MB / 1.348 GB, free: 243.3 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003231/2.255, allocations: 90.39 kB / 1.348 GB, free: 243.3 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: 3531 * Number of variables: 3531 Notification: Performance of Generate backend data structure: time 50.84/53.09, allocations: 9.466 GB / 10.81 GB, free: 12 kB / 1.354 GB Notification: Performance of prepare preOptimizeDAE: time 4.711e-05/53.09, allocations: 8 kB / 10.81 GB, free: 4 kB / 1.354 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05166/53.15, allocations: 5.499 MB / 10.82 GB, free: 10.46 MB / 1.37 GB Notification: Performance of preOpt evaluateParameters (simulation): time 2.123/55.27, allocations: 38.84 MB / 10.86 GB, free: 202.5 MB / 1.386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001368/55.27, allocations: 474.5 kB / 10.86 GB, free: 202.5 MB / 1.386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007346/55.28, allocations: 0.8438 MB / 10.86 GB, free: 202.5 MB / 1.386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.05308/55.33, allocations: 12.96 MB / 10.87 GB, free: 202.4 MB / 1.386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06948/55.4, allocations: 15.56 MB / 10.89 GB, free: 200 MB / 1.386 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.00101/55.4, allocations: 48.16 kB / 10.89 GB, free: 200 MB / 1.386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007118/55.41, allocations: 33.89 kB / 10.89 GB, free: 200 MB / 1.386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005036/55.41, allocations: 391.8 kB / 10.89 GB, free: 200 MB / 1.386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.236/55.65, allocations: 98.64 MB / 10.98 GB, free: 145.7 MB / 1.386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02711/55.67, allocations: 8.831 MB / 10.99 GB, free: 145.5 MB / 1.386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01338/55.69, allocations: 4.971 MB / 11 GB, free: 145.4 MB / 1.386 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07772/55.76, allocations: 20.15 MB / 11.02 GB, free: 138.6 MB / 1.386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01563/55.78, allocations: 4.425 MB / 11.02 GB, free: 138.4 MB / 1.386 GB Notification: Performance of pre-optimization done (n=703): time 1.396e-05/55.78, allocations: 0 / 11.02 GB, free: 138.4 MB / 1.386 GB Notification: Performance of matching and sorting (n=703): time 0.05141/55.83, allocations: 10.52 MB / 11.03 GB, free: 137.1 MB / 1.386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001125/55.83, allocations: 129.8 kB / 11.03 GB, free: 137 MB / 1.386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0622/55.89, allocations: 15.95 MB / 11.05 GB, free: 136 MB / 1.386 GB Notification: Performance of collectPreVariables (initialization): time 0.003223/55.9, allocations: 48.23 kB / 11.05 GB, free: 136 MB / 1.386 GB Notification: Performance of collectInitialEqns (initialization): time 0.01628/55.91, allocations: 6.213 MB / 11.05 GB, free: 133.4 MB / 1.386 GB Notification: Performance of collectInitialBindings (initialization): time 0.01275/55.93, allocations: 2.308 MB / 11.06 GB, free: 131.9 MB / 1.386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003155/55.93, allocations: 0 / 11.06 GB, free: 131.9 MB / 1.386 GB Notification: Performance of setup shared object (initialization): time 0.001446/55.93, allocations: 0.6918 MB / 11.06 GB, free: 131.6 MB / 1.386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01326/55.94, allocations: 3.629 MB / 11.06 GB, free: 131.6 MB / 1.386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01692/55.96, allocations: 7.67 MB / 11.07 GB, free: 126.6 MB / 1.386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02613/55.99, allocations: 5.736 MB / 11.07 GB, free: 126.5 MB / 1.386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002217/55.99, allocations: 30.44 kB / 11.07 GB, free: 126.5 MB / 1.386 GB Notification: Performance of matching and sorting (n=1274) (initialization): time 0.06029/56.05, allocations: 13.86 MB / 11.09 GB, free: 125.2 MB / 1.386 GB Notification: Performance of prepare postOptimizeDAE: time 0.02737/56.08, allocations: 88.94 MB / 11.17 GB, free: 99.26 MB / 1.448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000583/56.08, allocations: 111.6 kB / 11.17 GB, free: 99.26 MB / 1.448 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02022/56.1, allocations: 2.47 MB / 11.18 GB, free: 99.18 MB / 1.448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.02082/56.12, allocations: 2.413 MB / 11.18 GB, free: 99.17 MB / 1.448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03143/56.15, allocations: 15.11 MB / 11.19 GB, free: 105.9 MB / 1.464 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.03117/56.18, allocations: 1.645 MB / 11.19 GB, free: 105.3 MB / 1.464 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003912/56.18, allocations: 0.6002 MB / 11.2 GB, free: 105.3 MB / 1.464 GB Notification: Performance of prepare postOptimizeDAE: time 1.662e-05/56.18, allocations: 6.562 kB / 11.2 GB, free: 105.3 MB / 1.464 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.05158/56.24, allocations: 11.55 MB / 11.21 GB, free: 105.1 MB / 1.464 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003757/56.24, allocations: 112.1 kB / 11.21 GB, free: 105.1 MB / 1.464 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02002/56.26, allocations: 2.462 MB / 11.21 GB, free: 105 MB / 1.464 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01955/56.28, allocations: 2.321 MB / 11.21 GB, free: 105 MB / 1.464 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03283/56.31, allocations: 15.12 MB / 11.23 GB, free: 95.68 MB / 1.464 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.02937/56.34, allocations: 1.432 MB / 11.23 GB, free: 95.27 MB / 1.464 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003983/56.34, allocations: 0.5583 MB / 11.23 GB, free: 95.27 MB / 1.464 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 504 * Number of states: 0 () * Number of discrete variables: 60 ($whenCondition12,$PRE.QCoo5.nextTimeEvent,$whenCondition11,$PRE.QHea7.nextTimeEvent,$whenCondition10,$PRE.QHea6.nextTimeEvent,$whenCondition9,$PRE.QHea5.nextTimeEvent,$whenCondition8,$PRE.QCoo4.nextTimeEvent,$whenCondition7,$PRE.QCoo3.nextTimeEvent,$whenCondition6,$PRE.QHea4.nextTimeEvent,$whenCondition5,$PRE.QHea3.nextTimeEvent,$whenCondition4,$PRE.QCoo2.nextTimeEvent,$whenCondition3,$PRE.QCoo1.nextTimeEvent,$whenCondition2,$PRE.QHea2.nextTimeEvent,$whenCondition1,$PRE.QHea1.nextTimeEvent,QHea1.nextTimeEvent,$PRE.QHea1.nextTimeEventScaled,QHea1.nextTimeEventScaled,QHea2.nextTimeEvent,$PRE.QHea2.nextTimeEventScaled,QHea2.nextTimeEventScaled,QCoo1.nextTimeEvent,$PRE.QCoo1.nextTimeEventScaled,QCoo1.nextTimeEventScaled,QCoo2.nextTimeEvent,$PRE.QCoo2.nextTimeEventScaled,QCoo2.nextTimeEventScaled,QHea3.nextTimeEvent,$PRE.QHea3.nextTimeEventScaled,QHea3.nextTimeEventScaled,QHea4.nextTimeEvent,$PRE.QHea4.nextTimeEventScaled,QHea4.nextTimeEventScaled,QCoo3.nextTimeEvent,$PRE.QCoo3.nextTimeEventScaled,QCoo3.nextTimeEventScaled,QCoo4.nextTimeEvent,$PRE.QCoo4.nextTimeEventScaled,QCoo4.nextTimeEventScaled,QHea5.nextTimeEvent,$PRE.QHea5.nextTimeEventScaled,QHea5.nextTimeEventScaled,QHea6.nextTimeEvent,$PRE.QHea6.nextTimeEventScaled,QHea6.nextTimeEventScaled,QHea7.nextTimeEvent,$PRE.QHea7.nextTimeEventScaled,QHea7.nextTimeEventScaled,QCoo5.nextTimeEvent,$PRE.QCoo5.nextTimeEventScaled,QCoo5.nextTimeEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1145): * Single equations (assignments): 1124 * Array equations: 12 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 6,(1,100.0%) 6,(1,100.0%) 6,(1,100.0%) 6,(1,100.0%) 6,(1,100.0%) 6} * Non-linear torn systems: 3 {8 20,10 25,6 15} Notification: Performance of prepare postOptimizeDAE: time 0.006617/56.35, allocations: 482.4 kB / 11.23 GB, free: 95.09 MB / 1.464 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.009641/56.36, allocations: 1.899 MB / 11.23 GB, free: 94.06 MB / 1.464 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.05895/56.42, allocations: 12.46 MB / 11.24 GB, free: 93.53 MB / 1.464 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0002032/56.42, allocations: 87.48 kB / 11.24 GB, free: 93.53 MB / 1.464 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.518e-05/56.42, allocations: 10.81 kB / 11.24 GB, free: 93.53 MB / 1.464 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0358/56.45, allocations: 8.689 MB / 11.25 GB, free: 92.84 MB / 1.464 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.115/56.57, allocations: 25.19 MB / 11.28 GB, free: 91.58 MB / 1.464 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001331/56.57, allocations: 3.594 kB / 11.28 GB, free: 91.58 MB / 1.464 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01534/56.58, allocations: 1.398 MB / 11.28 GB, free: 91.58 MB / 1.464 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01103/56.59, allocations: 1.723 MB / 11.28 GB, free: 91.49 MB / 1.464 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002389/56.6, allocations: 153.8 kB / 11.28 GB, free: 91.48 MB / 1.464 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.872/58.47, allocations: 14.55 MB / 11.29 GB, free: 272.7 MB / 1.464 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.606e-06/58.47, allocations: 0 / 11.29 GB, free: 272.7 MB / 1.464 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.05772/58.53, allocations: 16.11 MB / 11.31 GB, free: 271.9 MB / 1.464 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.07736/58.6, allocations: 22.79 MB / 11.33 GB, free: 270.5 MB / 1.464 GB Notification: Performance of postOpt removeConstants (simulation): time 0.02627/58.63, allocations: 3.582 MB / 11.33 GB, free: 269.3 MB / 1.464 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0137/58.64, allocations: 38.61 kB / 11.33 GB, free: 269.3 MB / 1.464 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.03739/58.68, allocations: 1.09 MB / 11.34 GB, free: 269.3 MB / 1.464 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002638/58.69, allocations: 427.4 kB / 11.34 GB, free: 269.3 MB / 1.464 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.003532/58.69, allocations: 414.5 kB / 11.34 GB, free: 269.3 MB / 1.464 GB Notification: Performance of sort global known variables: time 0.04542/58.73, allocations: 12.14 MB / 11.35 GB, free: 268.7 MB / 1.464 GB Notification: Performance of remove unused functions: time 0.1014/58.84, allocations: 14.55 MB / 11.36 GB, free: 268 MB / 1.464 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 20 (pla.coo.outCon.T,pla.hea.outCon.T,pip.vol[1].dynBal.U,pip.vol[2].dynBal.U,pip.vol[3].dynBal.U,pip1.vol[1].dynBal.U,pip1.vol[2].dynBal.U,pip1.vol[3].dynBal.U,pip2.vol[1].dynBal.U,pip2.vol[2].dynBal.U,pip2.vol[3].dynBal.U,pip3.vol[1].dynBal.U,pip3.vol[2].dynBal.U,pip3.vol[3].dynBal.U,pip4.vol[1].dynBal.U,pip4.vol[2].dynBal.U,pip4.vol[3].dynBal.U,pip5.vol[1].dynBal.U,pip5.vol[2].dynBal.U,pip5.vol[3].dynBal.U) * Number of discrete variables: 36 ($whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,QHea1.nextTimeEvent,QHea1.nextTimeEventScaled,QHea2.nextTimeEvent,QHea2.nextTimeEventScaled,QCoo1.nextTimeEvent,QCoo1.nextTimeEventScaled,QCoo2.nextTimeEvent,QCoo2.nextTimeEventScaled,QHea3.nextTimeEvent,QHea3.nextTimeEventScaled,QHea4.nextTimeEvent,QHea4.nextTimeEventScaled,QCoo3.nextTimeEvent,QCoo3.nextTimeEventScaled,QCoo4.nextTimeEvent,QCoo4.nextTimeEventScaled,QHea5.nextTimeEvent,QHea5.nextTimeEventScaled,QHea6.nextTimeEvent,QHea6.nextTimeEventScaled,QHea7.nextTimeEvent,QHea7.nextTimeEventScaled,QCoo5.nextTimeEvent,QCoo5.nextTimeEventScaled) * Number of discrete states: 24 (QCoo5.nextTimeEvent,QHea7.nextTimeEvent,QHea6.nextTimeEvent,QHea5.nextTimeEvent,QCoo4.nextTimeEvent,QCoo3.nextTimeEvent,QHea4.nextTimeEvent,QHea3.nextTimeEvent,QCoo2.nextTimeEvent,QCoo1.nextTimeEvent,QHea2.nextTimeEvent,QHea1.nextTimeEvent,QCoo5.nextTimeEventScaled,QHea7.nextTimeEventScaled,QHea6.nextTimeEventScaled,QHea5.nextTimeEventScaled,QCoo4.nextTimeEventScaled,QCoo3.nextTimeEventScaled,QHea4.nextTimeEventScaled,QHea3.nextTimeEventScaled,QCoo2.nextTimeEventScaled,QCoo1.nextTimeEventScaled,QHea2.nextTimeEventScaled,QHea1.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (683): * Single equations (assignments): 621 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 29 * When equations: 24 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 6 {(1,100.0%) 6,(1,100.0%) 6,(1,100.0%) 6,(1,100.0%) 6,(1,100.0%) 6,(1,100.0%) 6} * Non-linear torn systems: 3 {6 15,8 20,10 25} Notification: Performance of Backend phase and start with SimCode phase: time 0.03307/58.87, allocations: 14.77 MB / 11.38 GB, free: 260.4 MB / 1.464 GB Notification: Performance of simCode: created initialization part: time 0.0659/58.93, allocations: 17.82 MB / 11.39 GB, free: 258.9 MB / 1.464 GB Notification: Performance of simCode: created event and clocks part: time 2.712e-05/58.93, allocations: 7.25 kB / 11.39 GB, free: 258.9 MB / 1.464 GB Notification: Performance of simCode: created simulation system equations: time 0.01933/58.95, allocations: 5.338 MB / 11.4 GB, free: 258.2 MB / 1.464 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.09253/59.05, allocations: 8.861 MB / 11.41 GB, free: 258.1 MB / 1.464 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1486/59.2, allocations: 32.02 MB / 11.44 GB, free: 251.5 MB / 1.464 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.04842/59.24, allocations: 12.96 MB / 11.45 GB, free: 250.2 MB / 1.464 GB Notification: Performance of SimCode: time 1.603e-06/59.24, allocations: 0 / 11.45 GB, free: 250.2 MB / 1.464 GB