Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.SolarCollectors.Examples.FlatPlate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) 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.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Examples.FlatPlate,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_SolarCollectors_Examples_FlatPlate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Examples.FlatPlate,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_SolarCollectors_Examples_FlatPlate",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.3-maint.7.0.x/package.mo): time 1.266/1.266, allocations: 249.4 MB / 256.7 MB, free: 7.055 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.001078/0.001079, allocations: 185.1 kB / 316 MB, free: 3.508 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.233/1.233, allocations: 205.1 MB / 0.5667 GB, free: 15.59 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.0008656/0.0008657, allocations: 92.88 kB / 0.671 GB, free: 4.723 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.3317/0.3326, allocations: 112.5 MB / 0.7808 GB, free: 103 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1742/0.5068, allocations: 106.3 MB / 0.8846 GB, free: 12.54 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.69/4.196, allocations: 2.228 GB / 3.113 GB, free: 190.1 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002439/4.197, allocations: 87.95 kB / 3.113 GB, free: 190 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: 976 * Number of variables: 976 Notification: Performance of Generate backend data structure: time 5.343/9.54, allocations: 1.909 GB / 5.022 GB, free: 126.5 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 3.664e-05/9.54, allocations: 8.906 kB / 5.022 GB, free: 126.5 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01201/9.552, allocations: 1.629 MB / 5.023 GB, free: 126.2 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01398/9.566, allocations: 5.489 MB / 5.029 GB, free: 125.5 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001598/9.566, allocations: 124.5 kB / 5.029 GB, free: 125.5 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009864/9.567, allocations: 220.5 kB / 5.029 GB, free: 125.5 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009595/9.577, allocations: 4.547 MB / 5.033 GB, free: 125.5 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009052/9.586, allocations: 4.717 MB / 5.038 GB, free: 125 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.982e-05/9.586, allocations: 7.781 kB / 5.038 GB, free: 125 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005142/9.586, allocations: 6.594 kB / 5.038 GB, free: 125 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001206/9.586, allocations: 164.4 kB / 5.038 GB, free: 125 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02889/9.615, allocations: 19.12 MB / 5.057 GB, free: 119.1 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00423/9.62, allocations: 3.191 MB / 5.06 GB, free: 119.1 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00205/9.622, allocations: 1.671 MB / 5.062 GB, free: 119 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002502/9.624, allocations: 3.055 MB / 5.065 GB, free: 115.8 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002741/9.627, allocations: 1.886 MB / 5.066 GB, free: 115.6 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=284): time 4.699e-06/9.627, allocations: 0 / 5.066 GB, free: 115.6 MB / 0.8698 GB Notification: Performance of matching and sorting (n=284): time 0.01503/9.642, allocations: 4.589 MB / 5.071 GB, free: 115.2 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.354e-05/9.642, allocations: 292.5 kB / 5.071 GB, free: 114.9 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004384/9.647, allocations: 2.931 MB / 5.074 GB, free: 114.6 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 0.0005993/9.647, allocations: 28.3 kB / 5.074 GB, free: 114.6 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.001317/9.648, allocations: 1.355 MB / 5.075 GB, free: 113.9 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 0.001651/9.65, allocations: 0.9319 MB / 5.076 GB, free: 113.3 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001958/9.65, allocations: 0 / 5.076 GB, free: 113.3 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001393/9.65, allocations: 429 kB / 5.077 GB, free: 113 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001862/9.652, allocations: 1.384 MB / 5.078 GB, free: 112.9 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002076/9.654, allocations: 2.009 MB / 5.08 GB, free: 112.3 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01514/9.67, allocations: 3.113 MB / 5.083 GB, free: 112.2 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.178e-05/9.67, allocations: 7.875 kB / 5.083 GB, free: 112.2 MB / 0.8698 GB Notification: Performance of matching and sorting (n=380) (initialization): time 0.02085/9.691, allocations: 5.376 MB / 5.088 GB, free: 111.9 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009754/9.692, allocations: 6.425 MB / 5.095 GB, free: 105.1 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.319e-05/9.692, allocations: 20.69 kB / 5.095 GB, free: 105.1 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006506/9.692, allocations: 112.5 kB / 5.095 GB, free: 105.1 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004144/9.696, allocations: 0.8172 MB / 5.095 GB, free: 105.1 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001962/9.698, allocations: 2.106 MB / 5.098 GB, free: 103.3 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005192/9.704, allocations: 434 kB / 5.098 GB, free: 103.1 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007269/9.704, allocations: 198 kB / 5.098 GB, free: 103.1 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.046e-05/9.704, allocations: 12.3 kB / 5.098 GB, free: 103.1 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.018/9.722, allocations: 4.905 MB / 5.103 GB, free: 103 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.898e-05/9.722, allocations: 16.03 kB / 5.103 GB, free: 103 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000574/9.723, allocations: 110.2 kB / 5.103 GB, free: 103 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003812/9.727, allocations: 0.8067 MB / 5.104 GB, free: 103 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001576/9.728, allocations: 1.497 MB / 5.105 GB, free: 101.8 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0053/9.734, allocations: 404.6 kB / 5.106 GB, free: 101.7 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009122/9.735, allocations: 204.4 kB / 5.106 GB, free: 101.7 MB / 0.8698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 67 * 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 (378): * Single equations (assignments): 376 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 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.0009331/9.736, allocations: 174.3 kB / 5.106 GB, free: 101.6 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001908/9.738, allocations: 434.5 kB / 5.106 GB, free: 101.4 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01788/9.755, allocations: 6.275 MB / 5.113 GB, free: 101 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.764e-05/9.755, allocations: 34.47 kB / 5.113 GB, free: 101 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.035e-06/9.755, allocations: 5.75 kB / 5.113 GB, free: 101 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01249/9.768, allocations: 4.649 MB / 5.117 GB, free: 100.5 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02345/9.791, allocations: 10.03 MB / 5.127 GB, free: 97.65 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.03e-05/9.792, allocations: 0 / 5.127 GB, free: 97.65 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003372/9.795, allocations: 0.6079 MB / 5.128 GB, free: 97.64 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001412/9.796, allocations: 496 kB / 5.128 GB, free: 97.47 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003421/9.797, allocations: 69.36 kB / 5.128 GB, free: 97.46 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005655/9.802, allocations: 7.71 MB / 5.136 GB, free: 90.57 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.322e-06/9.802, allocations: 1.281 kB / 5.136 GB, free: 90.57 MB / 0.8698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0209/9.823, allocations: 7.425 MB / 5.143 GB, free: 87.85 MB / 0.8698 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02328/9.847, allocations: 10.35 MB / 5.153 GB, free: 83.55 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003601/9.85, allocations: 1.151 MB / 5.154 GB, free: 82.9 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001472/9.852, allocations: 13.83 kB / 5.154 GB, free: 82.9 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004409/9.856, allocations: 270.8 kB / 5.154 GB, free: 82.89 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000374/9.857, allocations: 164.9 kB / 5.155 GB, free: 82.86 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003691/9.857, allocations: 129.7 kB / 5.155 GB, free: 82.84 MB / 0.8698 GB Notification: Performance of sort global known variables: time 0.004071/9.861, allocations: 2.258 MB / 5.157 GB, free: 81.99 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.01455/9.876, allocations: 3.438 MB / 5.16 GB, free: 80.77 MB / 0.8698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (274): * Single equations (assignments): 257 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 2 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 10 {1 3,1 3,1 3,1 3,1 3,1 3,1 3,1 3,1 3,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.00539/9.881, allocations: 2.141 MB / 5.162 GB, free: 80.21 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.01183/9.893, allocations: 5.837 MB / 5.168 GB, free: 77.78 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 9.558e-06/9.893, allocations: 0.5 kB / 5.168 GB, free: 77.78 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.003281/9.896, allocations: 2.026 MB / 5.17 GB, free: 76 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008112/9.904, allocations: 1.622 MB / 5.172 GB, free: 74.84 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04449/9.949, allocations: 23.53 MB / 5.195 GB, free: 58.09 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00427/9.953, allocations: 3.756 MB / 5.198 GB, free: 55.18 MB / 0.8698 GB Notification: Performance of SimCode: time 7.91e-07/9.953, allocations: 0 / 5.198 GB, free: 55.18 MB / 0.8698 GB (rm -f Buildings_maint.7.0.x_Buildings.Fluid.SolarCollectors.Examples.FlatPlate.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.SolarCollectors.Examples.FlatPlate.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.SolarCollectors.Examples.FlatPlate.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.SolarCollectors.Examples.FlatPlate.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Fluid_SolarCollectors_Examples_FlatPlate_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Fluid_SolarCollectors_Examples_FlatPlate.fmu > Buildings_maint.7.0.x_Buildings.Fluid.SolarCollectors.Examples.FlatPlate.pipe 2>&1)