Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.SolarCollectors.Examples.Tubular.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.Tubular,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_SolarCollectors_Examples_Tubular",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Examples.Tubular,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_SolarCollectors_Examples_Tubular",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.239/1.239, allocations: 249.4 MB / 256.7 MB, free: 15.86 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00101/0.00101, allocations: 180.3 kB / 316 MB, free: 7.234 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.368/1.368, allocations: 205.1 MB / 0.5667 GB, free: 23.65 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.0008703/0.0008703, allocations: 79.41 kB / 0.671 GB, free: 0.9766 MB / 0.4948 GB Notification: Performance of FrontEnd - loaded program: time 0.2142/0.2151, allocations: 112.5 MB / 0.7808 GB, free: 412 kB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.477/0.6921, allocations: 106.3 MB / 0.8846 GB, free: 76.28 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.074/4.766, allocations: 2.474 GB / 3.358 GB, free: 23.44 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002724/4.766, allocations: 91.95 kB / 3.358 GB, free: 23.35 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: 967 * Number of variables: 967 Notification: Performance of Generate backend data structure: time 2.638/7.404, allocations: 0.909 GB / 4.268 GB, free: 121.5 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 3.421e-05/7.405, allocations: 11.94 kB / 4.268 GB, free: 121.5 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00682/7.411, allocations: 1.363 MB / 4.269 GB, free: 120.1 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01086/7.422, allocations: 5.445 MB / 4.274 GB, free: 114.6 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001314/7.422, allocations: 123.7 kB / 4.274 GB, free: 114.5 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008488/7.423, allocations: 220 kB / 4.275 GB, free: 114.3 MB / 0.8698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006413/7.43, allocations: 4.427 MB / 4.279 GB, free: 109.9 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005993/7.436, allocations: 4.536 MB / 4.283 GB, free: 105.2 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.265e-05/7.436, allocations: 11.84 kB / 4.283 GB, free: 105.2 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003564/7.436, allocations: 8 kB / 4.283 GB, free: 105.2 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001027/7.436, allocations: 175.2 kB / 4.283 GB, free: 105 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02398/7.46, allocations: 19.23 MB / 4.302 GB, free: 85.19 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003753/7.464, allocations: 3.004 MB / 4.305 GB, free: 82.18 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001724/7.466, allocations: 1.642 MB / 4.307 GB, free: 80.54 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001611/7.467, allocations: 1.864 MB / 4.309 GB, free: 78.29 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002096/7.469, allocations: 1.769 MB / 4.31 GB, free: 76.47 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=267): time 4.037e-06/7.469, allocations: 0 / 4.31 GB, free: 76.47 MB / 0.8698 GB Notification: Performance of matching and sorting (n=267): time 0.009419/7.479, allocations: 3.697 MB / 4.314 GB, free: 72.72 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.26e-05/7.479, allocations: 291.1 kB / 4.314 GB, free: 72.37 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003558/7.483, allocations: 3.026 MB / 4.317 GB, free: 69.34 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 0.0002721/7.483, allocations: 33.64 kB / 4.317 GB, free: 69.3 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.001376/7.484, allocations: 1.387 MB / 4.319 GB, free: 67.9 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 0.001056/7.485, allocations: 0.8815 MB / 4.319 GB, free: 67 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001714/7.485, allocations: 0 / 4.319 GB, free: 67 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001469/7.486, allocations: 420 kB / 4.32 GB, free: 66.59 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00166/7.487, allocations: 1.326 MB / 4.321 GB, free: 65.26 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001941/7.489, allocations: 1.993 MB / 4.323 GB, free: 63 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01154/7.501, allocations: 2.882 MB / 4.326 GB, free: 60.09 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.302e-05/7.501, allocations: 4 kB / 4.326 GB, free: 60.09 MB / 0.8698 GB Notification: Performance of matching and sorting (n=372) (initialization): time 0.01594/7.517, allocations: 4.96 MB / 4.331 GB, free: 55.08 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.000927/7.518, allocations: 7.276 MB / 4.338 GB, free: 47.34 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.087e-05/7.518, allocations: 19.98 kB / 4.338 GB, free: 47.32 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006161/7.518, allocations: 116.2 kB / 4.338 GB, free: 47.21 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003846/7.522, allocations: 0.8152 MB / 4.339 GB, free: 46.39 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001787/7.524, allocations: 2.093 MB / 4.341 GB, free: 44.14 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004209/7.528, allocations: 436.8 kB / 4.341 GB, free: 43.71 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003048/7.529, allocations: 143.9 kB / 4.341 GB, free: 43.57 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 6.261e-06/7.529, allocations: 4 kB / 4.341 GB, free: 43.57 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01602/7.545, allocations: 4.587 MB / 4.346 GB, free: 38.95 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.638e-05/7.545, allocations: 20.73 kB / 4.346 GB, free: 38.93 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000579/7.545, allocations: 112.8 kB / 4.346 GB, free: 38.82 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003948/7.549, allocations: 0.8073 MB / 4.347 GB, free: 38.01 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001623/7.551, allocations: 1.496 MB / 4.348 GB, free: 36.4 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004516/7.555, allocations: 401.2 kB / 4.349 GB, free: 36 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003432/7.556, allocations: 147.9 kB / 4.349 GB, free: 35.86 MB / 0.8698 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 (370): * Single equations (assignments): 368 * 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.0007421/7.557, allocations: 176.1 kB / 4.349 GB, free: 35.68 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008436/7.557, allocations: 359.6 kB / 4.349 GB, free: 35.32 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01171/7.569, allocations: 4.544 MB / 4.354 GB, free: 30.74 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.888e-05/7.569, allocations: 35.98 kB / 4.354 GB, free: 30.7 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.231e-06/7.569, allocations: 0 / 4.354 GB, free: 30.7 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008493/7.578, allocations: 3.64 MB / 4.357 GB, free: 26.98 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01719/7.595, allocations: 8.669 MB / 4.366 GB, free: 18.19 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.668e-06/7.595, allocations: 0 / 4.366 GB, free: 18.19 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003315/7.598, allocations: 0.6399 MB / 4.366 GB, free: 17.55 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005055/7.599, allocations: 88.78 kB / 4.366 GB, free: 17.46 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002064/7.599, allocations: 55.92 kB / 4.366 GB, free: 17.4 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001597/7.601, allocations: 2.093 MB / 4.369 GB, free: 15.17 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/7.601, allocations: 0 / 4.369 GB, free: 15.17 MB / 0.8698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01138/7.612, allocations: 6.029 MB / 4.374 GB, free: 9.031 MB / 0.8698 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0134/7.625, allocations: 8.517 MB / 4.383 GB, free: 404 kB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.2954/7.921, allocations: 1.036 MB / 4.384 GB, free: 218.4 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001397/7.922, allocations: 17.72 kB / 4.384 GB, free: 218.4 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004234/7.927, allocations: 286.7 kB / 4.384 GB, free: 218.4 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003005/7.927, allocations: 156.2 kB / 4.384 GB, free: 218.4 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003263/7.927, allocations: 124 kB / 4.384 GB, free: 218.4 MB / 0.8698 GB Notification: Performance of sort global known variables: time 0.003392/7.931, allocations: 2.336 MB / 4.387 GB, free: 218.3 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.009514/7.94, allocations: 2.666 MB / 4.389 GB, free: 218.3 MB / 0.8698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (286): * Single equations (assignments): 276 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 2 * 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 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.002816/7.943, allocations: 1.59 MB / 4.391 GB, free: 218.1 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.008439/7.951, allocations: 5.485 MB / 4.396 GB, free: 217.8 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 8.546e-06/7.951, allocations: 0.6562 kB / 4.396 GB, free: 217.8 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0025/7.954, allocations: 1.725 MB / 4.398 GB, free: 217.7 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008847/7.963, allocations: 1.665 MB / 4.399 GB, free: 217.7 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01693/7.98, allocations: 7.872 MB / 4.407 GB, free: 216.3 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003882/7.984, allocations: 3.581 MB / 4.411 GB, free: 215.5 MB / 0.8698 GB Notification: Performance of SimCode: time 6.61e-07/7.984, allocations: 2.156 kB / 4.411 GB, free: 215.5 MB / 0.8698 GB (rm -f Buildings_maint.7.0.x_Buildings.Fluid.SolarCollectors.Examples.Tubular.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.SolarCollectors.Examples.Tubular.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.SolarCollectors.Examples.Tubular.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.SolarCollectors.Examples.Tubular.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Fluid_SolarCollectors_Examples_Tubular_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Fluid_SolarCollectors_Examples_Tubular.fmu > Buildings_maint.7.0.x_Buildings.Fluid.SolarCollectors.Examples.Tubular.pipe 2>&1)