Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Fluid.SolarCollectors.Examples.FlatPlateWithTank.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.Fluid.SolarCollectors.Examples.FlatPlateWithTank,fileNamePrefix="Buildings_7_0_0_Buildings_Fluid_SolarCollectors_Examples_FlatPlateWithTank",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.161/2.161, allocations: 248.6 MB / 255.9 MB, free: 364 kB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002691/0.002691, allocations: 181.3 kB / 315.1 MB, free: 7.77 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.251/2.251, allocations: 205.1 MB / 0.5658 GB, free: 25.49 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.001231/0.001231, allocations: 86.28 kB / 0.67 GB, free: 2.953 MB / 0.4948 GB Notification: Performance of FrontEnd - loaded program: time 0.3066/0.3079, allocations: 112.4 MB / 0.7797 GB, free: 2.484 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6708/0.9787, allocations: 106.2 MB / 0.8835 GB, free: 77.3 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 6.923/7.902, allocations: 2.527 GB / 3.411 GB, free: 225.6 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004272/7.903, allocations: 93.86 kB / 3.411 GB, free: 225.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: 2036 * Number of variables: 2036 Notification: Performance of Generate backend data structure: time 12.76/20.66, allocations: 2.47 GB / 5.881 GB, free: 62.12 MB / 0.9323 GB Notification: Performance of prepare preOptimizeDAE: time 6.141e-05/20.66, allocations: 13 kB / 5.881 GB, free: 62.12 MB / 0.9323 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03174/20.69, allocations: 2.168 MB / 5.883 GB, free: 61.54 MB / 0.9323 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.07014/20.76, allocations: 11.87 MB / 5.894 GB, free: 60.31 MB / 0.9323 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001043/20.76, allocations: 259.8 kB / 5.895 GB, free: 60.3 MB / 0.9323 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005837/20.77, allocations: 477.2 kB / 5.895 GB, free: 60.3 MB / 0.9323 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.04871/20.82, allocations: 9.29 MB / 5.904 GB, free: 60.27 MB / 0.9323 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05152/20.87, allocations: 9.715 MB / 5.914 GB, free: 59.2 MB / 0.9323 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000616/20.87, allocations: 23.22 kB / 5.914 GB, free: 59.19 MB / 0.9323 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003669/20.87, allocations: 11.88 kB / 5.914 GB, free: 59.19 MB / 0.9323 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004155/20.87, allocations: 343.7 kB / 5.914 GB, free: 59.18 MB / 0.9323 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1313/21.01, allocations: 44.36 MB / 5.957 GB, free: 41.6 MB / 0.9323 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02171/21.03, allocations: 6.745 MB / 5.964 GB, free: 41.46 MB / 0.9323 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01036/21.04, allocations: 3.669 MB / 5.967 GB, free: 41.39 MB / 0.9323 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06576/21.1, allocations: 17.77 MB / 5.985 GB, free: 48.28 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01044/21.11, allocations: 3.192 MB / 5.988 GB, free: 47.14 MB / 0.948 GB Notification: Performance of pre-optimization done (n=509): time 1.012e-05/21.11, allocations: 0 / 5.988 GB, free: 47.14 MB / 0.948 GB Notification: Performance of matching and sorting (n=509): time 0.03552/21.15, allocations: 7.081 MB / 5.995 GB, free: 44.79 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002032/21.15, allocations: 365.8 kB / 5.995 GB, free: 44.41 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02297/21.17, allocations: 6.453 MB / 6.001 GB, free: 42.05 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 0.002004/21.18, allocations: 34.27 kB / 6.001 GB, free: 42.02 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.006872/21.18, allocations: 2.994 MB / 6.004 GB, free: 39.97 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.005798/21.19, allocations: 1.69 MB / 6.006 GB, free: 38.64 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001227/21.19, allocations: 0 / 6.006 GB, free: 38.64 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 0.0007968/21.19, allocations: 0.5633 MB / 6.007 GB, free: 38.22 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01023/21.2, allocations: 3.071 MB / 6.01 GB, free: 37.05 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01332/21.21, allocations: 4.755 MB / 6.014 GB, free: 33.83 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0419/21.26, allocations: 5.892 MB / 6.02 GB, free: 31.76 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001246/21.26, allocations: 18.06 kB / 6.02 GB, free: 31.75 MB / 0.948 GB Notification: Performance of matching and sorting (n=826) (initialization): time 0.05872/21.31, allocations: 10.51 MB / 6.03 GB, free: 22.96 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 0.009712/21.32, allocations: 23.14 MB / 6.053 GB, free: 13.61 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003379/21.32, allocations: 55.89 kB / 6.053 GB, free: 13.55 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007616/21.33, allocations: 168.2 kB / 6.053 GB, free: 13.4 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01684/21.34, allocations: 1.667 MB / 6.055 GB, free: 12 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001244/21.34, allocations: 0.7459 MB / 6.055 GB, free: 11.26 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01632/21.36, allocations: 0.8899 MB / 6.056 GB, free: 10.49 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002481/21.36, allocations: 317.3 kB / 6.057 GB, free: 10.21 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 1.985e-05/21.36, allocations: 0 / 6.057 GB, free: 10.21 MB / 0.9636 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.05913/21.42, allocations: 9.711 MB / 6.066 GB, free: 2.188 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002579/21.42, allocations: 50.53 kB / 6.066 GB, free: 2.141 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006914/21.42, allocations: 170.6 kB / 6.066 GB, free: 1.988 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01717/21.44, allocations: 1.663 MB / 6.068 GB, free: 0.5859 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.9981/22.44, allocations: 0.7467 MB / 6.069 GB, free: 143.1 MB / 0.9637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01575/22.45, allocations: 0.7728 MB / 6.069 GB, free: 143.1 MB / 0.9637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00237/22.46, allocations: 316.1 kB / 6.07 GB, free: 143.1 MB / 0.9637 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: pum.vol.heaFloSen.Q_flow:VARIABLE(unit = "W" protected = true ) "Heat flow from port_a to port_b as output signal" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 209 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,$PRE.weaDat.conTimMin.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTim.tNext) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (819): * Single equations (assignments): 815 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.003687/22.46, allocations: 274.2 kB / 6.07 GB, free: 142.9 MB / 0.9637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003921/22.46, allocations: 0.7205 MB / 6.071 GB, free: 142.9 MB / 0.9637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04177/22.51, allocations: 8.334 MB / 6.079 GB, free: 142.6 MB / 0.9637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.444e-05/22.51, allocations: 53.44 kB / 6.079 GB, free: 142.6 MB / 0.9637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.038e-05/22.51, allocations: 2.875 kB / 6.079 GB, free: 142.6 MB / 0.9637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.03042/22.54, allocations: 6.635 MB / 6.085 GB, free: 142.2 MB / 0.9637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06627/22.6, allocations: 16.65 MB / 6.102 GB, free: 141.6 MB / 0.9637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.608e-05/22.6, allocations: 0 / 6.102 GB, free: 141.6 MB / 0.9637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01479/22.62, allocations: 1.153 MB / 6.103 GB, free: 141.6 MB / 0.9637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005489/22.62, allocations: 89.09 kB / 6.103 GB, free: 141.6 MB / 0.9637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001774/22.62, allocations: 98.84 kB / 6.103 GB, free: 141.6 MB / 0.9637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008924/22.62, allocations: 0.6579 MB / 6.104 GB, free: 141.1 MB / 0.9637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.182e-06/22.62, allocations: 2.312 kB / 6.104 GB, free: 141.1 MB / 0.9637 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.06337/22.68, allocations: 11.84 MB / 6.115 GB, free: 140.4 MB / 0.9637 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.07606/22.76, allocations: 16.6 MB / 6.131 GB, free: 139 MB / 0.9637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.008745/22.77, allocations: 1.943 MB / 6.133 GB, free: 138.5 MB / 0.9637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00455/22.77, allocations: 33.36 kB / 6.133 GB, free: 138.5 MB / 0.9637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01398/22.79, allocations: 459.6 kB / 6.134 GB, free: 138.5 MB / 0.9637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001677/22.79, allocations: 275 kB / 6.134 GB, free: 138.5 MB / 0.9637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001701/22.79, allocations: 214.9 kB / 6.134 GB, free: 138.5 MB / 0.9637 GB Notification: Performance of sort global known variables: time 0.01498/22.81, allocations: 4.914 MB / 6.139 GB, free: 138.3 MB / 0.9637 GB Notification: Performance of remove unused functions: time 0.03522/22.84, allocations: 5.677 MB / 6.145 GB, free: 137.9 MB / 0.9637 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 27 (solCol.vol[1].dynBal.U,solCol.vol[2].dynBal.U,solCol.vol[3].dynBal.U,solCol.vol[4].dynBal.U,solCol.vol[5].dynBal.U,solCol.vol[6].dynBal.U,solCol.vol[7].dynBal.U,solCol.vol[8].dynBal.U,solCol.vol[9].dynBal.U,TOut.T,TIn.T,tan.vol[1].dynBal.U,tan.vol[2].dynBal.U,tan.vol[3].dynBal.U,tan.vol[4].dynBal.U,tan.indTanHex.vol[1].dynBal.U,tan.indTanHex.vol[2].dynBal.U,tan.indTanHex.vol[3].dynBal.U,tan.indTanHex.vol[4].dynBal.U,tan.indTanHex.cap[1].T,tan.indTanHex.cap[2].T,tan.indTanHex.cap[3].T,tan.indTanHex.cap[4].T,pum.filter.x[1],pum.filter.x[2],exp.m,exp.H) * Number of discrete variables: 4 ($whenCondition2,$whenCondition1,weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Number of discrete states: 2 (weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Top-level inputs: 0 Notification: Strong component statistics for simulation (536): * Single equations (assignments): 525 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.007536/22.85, allocations: 2.195 MB / 6.147 GB, free: 137.5 MB / 0.9637 GB Notification: Performance of simCode: created initialization part: time 0.03505/22.88, allocations: 11.68 MB / 6.158 GB, free: 137.3 MB / 0.9637 GB Notification: Performance of simCode: created event and clocks part: time 2.083e-05/22.88, allocations: 4.344 kB / 6.158 GB, free: 137.3 MB / 0.9637 GB Notification: Performance of simCode: created simulation system equations: time 0.009753/22.89, allocations: 3.2 MB / 6.161 GB, free: 137.3 MB / 0.9637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0324/22.93, allocations: 3.44 MB / 6.165 GB, free: 137.2 MB / 0.9637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0662/22.99, allocations: 17.09 MB / 6.181 GB, free: 134.4 MB / 0.9637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0228/23.02, allocations: 7.052 MB / 6.188 GB, free: 133.5 MB / 0.9637 GB Notification: Performance of SimCode: time 2.084e-06/23.02, allocations: 0 / 6.188 GB, free: 133.5 MB / 0.9637 GB