Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_6.0.0_Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Examples.FlatPlateShaCoeTrue,fileNamePrefix="Buildings_6_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 loadModel(Buildings): time 4.126/4.126, allocations: 433 MB / 440.3 MB, free: 8.301 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.5624/4.689, allocations: 104.3 MB / 0.5319 GB, free: 16.36 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2666/4.956, allocations: 98.72 MB / 0.6283 GB, free: 0.5781 MB / 0.4981 GB Notification: Performance of FrontEnd - scodeFlatten: time 6.216/11.17, allocations: 2.468 GB / 3.096 GB, free: 205.7 MB / 0.8262 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003589/11.17, allocations: 90.69 kB / 3.096 GB, free: 205.7 MB / 0.8262 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 965 * Number of variables: 965 Notification: Performance of Generate backend data structure: time 4.41/15.58, allocations: 0.902 GB / 3.998 GB, free: 92.33 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.859e-05/15.58, allocations: 9.781 kB / 3.998 GB, free: 92.33 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01709/15.6, allocations: 1.489 MB / 4 GB, free: 92.06 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02289/15.62, allocations: 5.339 MB / 4.005 GB, free: 91.39 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002844/15.62, allocations: 120.8 kB / 4.005 GB, free: 91.39 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001946/15.63, allocations: 226 kB / 4.005 GB, free: 91.39 MB / 0.8419 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01624/15.64, allocations: 4.505 MB / 4.01 GB, free: 91.37 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01771/15.66, allocations: 4.511 MB / 4.014 GB, free: 90.86 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002215/15.66, allocations: 15.03 kB / 4.014 GB, free: 90.86 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00156/15.66, allocations: 9.047 kB / 4.014 GB, free: 90.86 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001998/15.66, allocations: 177 kB / 4.014 GB, free: 90.86 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05663/15.72, allocations: 19.41 MB / 4.033 GB, free: 83.89 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009205/15.73, allocations: 3.01 MB / 4.036 GB, free: 83.83 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004576/15.73, allocations: 1.634 MB / 4.038 GB, free: 83.8 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003099/15.73, allocations: 1.708 MB / 4.039 GB, free: 82.02 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005756/15.74, allocations: 1.744 MB / 4.041 GB, free: 81.89 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=260): time 7.294e-06/15.74, allocations: 0 / 4.041 GB, free: 81.89 MB / 0.8419 GB Notification: Performance of matching and sorting (n=260): time 0.02186/15.76, allocations: 3.805 MB / 4.045 GB, free: 81.59 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001021/15.76, allocations: 260.3 kB / 4.045 GB, free: 81.31 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01038/15.77, allocations: 3.025 MB / 4.048 GB, free: 81.04 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 0.001047/15.77, allocations: 25.7 kB / 4.048 GB, free: 81.01 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.003165/15.78, allocations: 1.402 MB / 4.049 GB, free: 80.24 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.002726/15.78, allocations: 0.8573 MB / 4.05 GB, free: 79.68 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000498/15.78, allocations: 0 / 4.05 GB, free: 79.68 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0003117/15.78, allocations: 426.3 kB / 4.051 GB, free: 79.37 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004181/15.79, allocations: 1.361 MB / 4.052 GB, free: 79.36 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005187/15.79, allocations: 2.036 MB / 4.054 GB, free: 78.64 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02606/15.82, allocations: 3.014 MB / 4.057 GB, free: 78.6 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.212e-05/15.82, allocations: 7.062 kB / 4.057 GB, free: 78.6 MB / 0.8419 GB Notification: Performance of matching and sorting (n=375) (initialization): time 0.03435/15.85, allocations: 5.164 MB / 4.062 GB, free: 78.31 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 0.001737/15.85, allocations: 7.233 MB / 4.069 GB, free: 70.82 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001002/15.85, allocations: 20.59 kB / 4.069 GB, free: 70.82 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001248/15.85, allocations: 114.2 kB / 4.069 GB, free: 70.81 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00892/15.86, allocations: 0.8296 MB / 4.07 GB, free: 70.81 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003248/15.87, allocations: 1.489 MB / 4.071 GB, free: 69.59 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008863/15.88, allocations: 457.7 kB / 4.072 GB, free: 69.44 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001017/15.88, allocations: 152 kB / 4.072 GB, free: 69.44 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 1.472e-05/15.88, allocations: 3.719 kB / 4.072 GB, free: 69.44 MB / 0.8419 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.03533/15.91, allocations: 4.81 MB / 4.077 GB, free: 69.35 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001007/15.91, allocations: 16.31 kB / 4.077 GB, free: 69.35 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001531/15.91, allocations: 118.9 kB / 4.077 GB, free: 69.34 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01207/15.93, allocations: 0.8273 MB / 4.078 GB, free: 69.34 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002938/15.93, allocations: 1.497 MB / 4.079 GB, free: 68.11 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008763/15.94, allocations: 404.5 kB / 4.079 GB, free: 67.99 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001248/15.94, allocations: 155.1 kB / 4.08 GB, free: 67.99 MB / 0.8419 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.conTim1.tNext,weaDat.conTim1.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTim.tNext) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (373): * Single equations (assignments): 370 * Array equations: 0 * Algorithm blocks: 2 * 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.00116/15.94, allocations: 176.7 kB / 4.08 GB, free: 67.87 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001646/15.94, allocations: 350.7 kB / 4.08 GB, free: 67.69 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02513/15.97, allocations: 4.599 MB / 4.084 GB, free: 67.49 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.251e-05/15.97, allocations: 30.14 kB / 4.085 GB, free: 67.49 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.067e-06/15.97, allocations: 0 / 4.085 GB, free: 67.49 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01928/15.99, allocations: 3.721 MB / 4.088 GB, free: 67.15 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03731/16.02, allocations: 8.882 MB / 4.097 GB, free: 66.3 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.863e-05/16.02, allocations: 5.312 kB / 4.097 GB, free: 66.3 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007608/16.03, allocations: 0.6454 MB / 4.097 GB, free: 66.3 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001025/16.03, allocations: 100.2 kB / 4.098 GB, free: 66.29 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008354/16.03, allocations: 63.36 kB / 4.098 GB, free: 66.29 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002628/16.04, allocations: 1.496 MB / 4.099 GB, free: 65.07 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.626e-06/16.04, allocations: 3.938 kB / 4.099 GB, free: 65.07 MB / 0.8419 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02569/16.06, allocations: 6.383 MB / 4.105 GB, free: 64.04 MB / 0.8419 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.04006/16.1, allocations: 8.833 MB / 4.114 GB, free: 62.62 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004932/16.11, allocations: 1.024 MB / 4.115 GB, free: 62.31 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001898/16.11, allocations: 19.09 kB / 4.115 GB, free: 62.31 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007776/16.12, allocations: 270.8 kB / 4.115 GB, free: 62.29 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008417/16.12, allocations: 158.7 kB / 4.115 GB, free: 62.29 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005081/16.12, allocations: 108.2 kB / 4.115 GB, free: 62.29 MB / 0.8419 GB Notification: Performance of sort global known variables: time 0.006106/16.12, allocations: 2.323 MB / 4.118 GB, free: 62.14 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.01599/16.14, allocations: 2.703 MB / 4.12 GB, free: 61.71 MB / 0.8419 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * 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.conTim1.tNext,weaDat.conTim.tNext) * Number of discrete states: 2 (weaDat.conTim1.tNext,weaDat.conTim.tNext) * Top-level inputs: 0 Notification: Strong component statistics for simulation (273): * Single equations (assignments): 266 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.004666/16.14, allocations: 1.635 MB / 4.122 GB, free: 61.36 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.01746/16.16, allocations: 5.645 MB / 4.127 GB, free: 60.95 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 1.816e-05/16.16, allocations: 4.531 kB / 4.127 GB, free: 60.95 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 0.00563/16.17, allocations: 1.702 MB / 4.129 GB, free: 60.5 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0153/16.18, allocations: 1.59 MB / 4.131 GB, free: 60.22 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0316/16.22, allocations: 7.881 MB / 4.138 GB, free: 57.61 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01008/16.23, allocations: 3.558 MB / 4.142 GB, free: 56.44 MB / 0.8419 GB Notification: Performance of SimCode: time 1.283e-06/16.23, allocations: 1.875 kB / 4.142 GB, free: 56.44 MB / 0.8419 GB