Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue.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.FlatPlateShaCoeTrue,fileNamePrefix="Buildings_7_0_0_Buildings_Fluid_SolarCollectors_Examples_FlatPlateShaCoeTrue",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.187/2.187, allocations: 248.6 MB / 255.9 MB, free: 1.133 MB / 194.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002469/0.002468, allocations: 165.4 kB / 315.1 MB, free: 9.555 MB / 258.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.978/1.978, allocations: 205.1 MB / 0.5658 GB, free: 14.03 MB / 434.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00128/0.001279, allocations: 86.77 kB / 0.6699 GB, free: 51.9 MB / 498.8 MB Notification: Performance of FrontEnd - loaded program: time 0.2572/0.2586, allocations: 112.4 MB / 0.7797 GB, free: 10.61 MB / 0.5496 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2531/0.5117, allocations: 106.2 MB / 0.8835 GB, free: 260 kB / 0.6433 GB Notification: Performance of FrontEnd - scodeFlatten: time 6.315/6.826, allocations: 2.474 GB / 3.357 GB, free: 198.1 MB / 0.8777 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003022/6.827, allocations: 96 kB / 3.357 GB, free: 198 MB / 0.8777 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 968 * Number of variables: 968 Notification: Performance of Generate backend data structure: time 4.663/11.49, allocations: 0.9102 GB / 4.267 GB, free: 114.3 MB / 0.8777 GB Notification: Performance of prepare preOptimizeDAE: time 5.464e-05/11.49, allocations: 10.94 kB / 4.267 GB, free: 114.3 MB / 0.8777 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0198/11.51, allocations: 1.365 MB / 4.269 GB, free: 114.1 MB / 0.8777 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02336/11.53, allocations: 5.437 MB / 4.274 GB, free: 113.4 MB / 0.8777 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002882/11.53, allocations: 119.1 kB / 4.274 GB, free: 113.4 MB / 0.8777 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002454/11.54, allocations: 219.3 kB / 4.274 GB, free: 113.4 MB / 0.8777 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02026/11.56, allocations: 4.428 MB / 4.279 GB, free: 113.4 MB / 0.8777 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01825/11.57, allocations: 4.528 MB / 4.283 GB, free: 112.9 MB / 0.8777 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004507/11.57, allocations: 17.47 kB / 4.283 GB, free: 112.9 MB / 0.8777 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002159/11.58, allocations: 3.469 kB / 4.283 GB, free: 112.9 MB / 0.8777 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003085/11.58, allocations: 181 kB / 4.283 GB, free: 112.9 MB / 0.8777 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05315/11.63, allocations: 19.05 MB / 4.302 GB, free: 106.3 MB / 0.8777 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01034/11.64, allocations: 2.965 MB / 4.305 GB, free: 106.3 MB / 0.8777 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004863/11.65, allocations: 1.627 MB / 4.306 GB, free: 106.2 MB / 0.8777 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003202/11.65, allocations: 1.865 MB / 4.308 GB, free: 104.3 MB / 0.8777 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00583/11.66, allocations: 1.76 MB / 4.31 GB, free: 104.2 MB / 0.8777 GB Notification: Performance of pre-optimization done (n=264): time 6.803e-06/11.66, allocations: 0 / 4.31 GB, free: 104.2 MB / 0.8777 GB Notification: Performance of matching and sorting (n=264): time 0.02387/11.68, allocations: 3.68 MB / 4.314 GB, free: 103.8 MB / 0.8777 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001832/11.68, allocations: 287.5 kB / 4.314 GB, free: 103.5 MB / 0.8777 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01392/11.69, allocations: 3.047 MB / 4.317 GB, free: 103.3 MB / 0.8777 GB Notification: Performance of collectPreVariables (initialization): time 0.001395/11.69, allocations: 30.89 kB / 4.317 GB, free: 103.2 MB / 0.8777 GB Notification: Performance of collectInitialEqns (initialization): time 0.00443/11.7, allocations: 1.398 MB / 4.318 GB, free: 102.5 MB / 0.8777 GB Notification: Performance of collectInitialBindings (initialization): time 0.003882/11.7, allocations: 0.8673 MB / 4.319 GB, free: 101.9 MB / 0.8777 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001136/11.7, allocations: 0 / 4.319 GB, free: 101.9 MB / 0.8777 GB Notification: Performance of setup shared object (initialization): time 0.0005793/11.71, allocations: 425.7 kB / 4.319 GB, free: 101.6 MB / 0.8777 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006285/11.71, allocations: 1.326 MB / 4.321 GB, free: 101.6 MB / 0.8777 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005338/11.72, allocations: 2.005 MB / 4.323 GB, free: 100.9 MB / 0.8777 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02728/11.74, allocations: 2.876 MB / 4.325 GB, free: 100.8 MB / 0.8777 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.924e-05/11.74, allocations: 3.844 kB / 4.325 GB, free: 100.8 MB / 0.8777 GB Notification: Performance of matching and sorting (n=373) (initialization): time 0.03563/11.78, allocations: 4.972 MB / 4.33 GB, free: 100.5 MB / 0.8777 GB Notification: Performance of prepare postOptimizeDAE: time 0.001906/11.78, allocations: 7.277 MB / 4.337 GB, free: 93.03 MB / 0.8777 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001018/11.78, allocations: 24.38 kB / 4.337 GB, free: 93.03 MB / 0.8777 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001281/11.78, allocations: 118.7 kB / 4.338 GB, free: 93.02 MB / 0.8777 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008656/11.79, allocations: 0.8049 MB / 4.338 GB, free: 93.02 MB / 0.8777 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003051/11.8, allocations: 1.497 MB / 4.34 GB, free: 91.79 MB / 0.8777 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008844/11.8, allocations: 441.5 kB / 4.34 GB, free: 91.64 MB / 0.8777 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001322/11.81, allocations: 146.8 kB / 4.34 GB, free: 91.64 MB / 0.8777 GB Notification: Performance of prepare postOptimizeDAE: time 1.55e-05/11.81, allocations: 3.875 kB / 4.34 GB, free: 91.64 MB / 0.8777 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03383/11.84, allocations: 4.599 MB / 4.345 GB, free: 91.55 MB / 0.8777 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.807e-05/11.84, allocations: 16.56 kB / 4.345 GB, free: 91.55 MB / 0.8777 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001097/11.84, allocations: 111.7 kB / 4.345 GB, free: 91.54 MB / 0.8777 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008531/11.85, allocations: 0.8126 MB / 4.346 GB, free: 91.54 MB / 0.8777 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002887/11.85, allocations: 1.5 MB / 4.347 GB, free: 90.32 MB / 0.8777 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008214/11.86, allocations: 397.4 kB / 4.348 GB, free: 90.2 MB / 0.8777 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001182/11.86, allocations: 149.2 kB / 4.348 GB, free: 90.2 MB / 0.8777 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 76 * 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 (371): * Single equations (assignments): 370 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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 2} Notification: Performance of prepare postOptimizeDAE: time 0.00119/11.86, allocations: 182 kB / 4.348 GB, free: 90.07 MB / 0.8777 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001574/11.86, allocations: 352.5 kB / 4.348 GB, free: 89.89 MB / 0.8777 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02474/11.89, allocations: 4.522 MB / 4.353 GB, free: 89.7 MB / 0.8777 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.46e-05/11.89, allocations: 35.61 kB / 4.353 GB, free: 89.7 MB / 0.8777 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.054e-05/11.89, allocations: 3.906 kB / 4.353 GB, free: 89.69 MB / 0.8777 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01825/11.91, allocations: 3.619 MB / 4.356 GB, free: 89.35 MB / 0.8777 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03607/11.94, allocations: 8.912 MB / 4.365 GB, free: 88.48 MB / 0.8777 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.138e-05/11.94, allocations: 3.844 kB / 4.365 GB, free: 88.48 MB / 0.8777 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007345/11.95, allocations: 0.6319 MB / 4.366 GB, free: 88.48 MB / 0.8777 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001036/11.95, allocations: 100.1 kB / 4.366 GB, free: 88.48 MB / 0.8777 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008361/11.95, allocations: 63.62 kB / 4.366 GB, free: 88.47 MB / 0.8777 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002671/11.96, allocations: 1.505 MB / 4.367 GB, free: 87.25 MB / 0.8777 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.099e-05/11.96, allocations: 5.656 kB / 4.367 GB, free: 87.25 MB / 0.8777 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02525/11.98, allocations: 6.374 MB / 4.373 GB, free: 86.14 MB / 0.8777 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.03219/12.01, allocations: 8.827 MB / 4.382 GB, free: 84.64 MB / 0.8777 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00737/12.02, allocations: 1.041 MB / 4.383 GB, free: 84.32 MB / 0.8777 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002936/12.02, allocations: 18.09 kB / 4.383 GB, free: 84.32 MB / 0.8777 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008629/12.03, allocations: 264.6 kB / 4.383 GB, free: 84.3 MB / 0.8777 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001037/12.03, allocations: 155.2 kB / 4.384 GB, free: 84.3 MB / 0.8777 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006104/12.03, allocations: 128.4 kB / 4.384 GB, free: 84.3 MB / 0.8777 GB Notification: Performance of sort global known variables: time 0.006546/12.04, allocations: 2.347 MB / 4.386 GB, free: 84.15 MB / 0.8777 GB Notification: Performance of remove unused functions: time 0.02021/12.06, allocations: 2.68 MB / 4.389 GB, free: 83.73 MB / 0.8777 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 11 (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) * 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 (283): * Single equations (assignments): 274 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.00636/12.07, allocations: 1.614 MB / 4.39 GB, free: 83.45 MB / 0.8777 GB Notification: Performance of simCode: created initialization part: time 0.02403/12.09, allocations: 5.459 MB / 4.395 GB, free: 83.16 MB / 0.8777 GB Notification: Performance of simCode: created event and clocks part: time 2.376e-05/12.09, allocations: 3.156 kB / 4.395 GB, free: 83.16 MB / 0.8777 GB Notification: Performance of simCode: created simulation system equations: time 0.008252/12.1, allocations: 1.707 MB / 4.397 GB, free: 83.05 MB / 0.8777 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02148/12.12, allocations: 1.664 MB / 4.399 GB, free: 83.02 MB / 0.8777 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0471/12.17, allocations: 7.966 MB / 4.407 GB, free: 81.5 MB / 0.8777 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01599/12.18, allocations: 3.584 MB / 4.41 GB, free: 80.73 MB / 0.8777 GB Notification: Performance of SimCode: time 1.874e-06/12.18, allocations: 0 / 4.41 GB, free: 80.73 MB / 0.8777 GB