Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.SolarCollectors.Examples.Tubular.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Examples.Tubular,fileNamePrefix="Buildings_8_Buildings_Fluid_SolarCollectors_Examples_Tubular",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Examples.Tubular,fileNamePrefix="Buildings_8_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 8.1.4-maint.8.1.x/package.mo): time 1.564/1.564, allocations: 289.8 MB / 297.1 MB, free: 6.676 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001218/0.001218, allocations: 197.2 kB / 366.3 MB, free: 1.969 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.5/1.5, allocations: 205.1 MB / 0.6256 GB, free: 5.82 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001011/0.00101, allocations: 81.42 kB / 0.7395 GB, free: 39.68 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.29/0.2911, allocations: 122.4 MB / 0.8591 GB, free: 13.3 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6911/0.9822, allocations: 116.3 MB / 0.9726 GB, free: 68.64 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.869/5.852, allocations: 2.358 GB / 3.331 GB, free: 77.39 MB / 0.948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003078/5.852, allocations: 102.1 kB / 3.331 GB, free: 77.29 MB / 0.948 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 3.659/9.511, allocations: 0.9303 GB / 4.261 GB, free: 192.3 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 4.825e-05/9.512, allocations: 7.906 kB / 4.261 GB, free: 192.3 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009676/9.521, allocations: 1.361 MB / 4.262 GB, free: 192 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01714/9.538, allocations: 5.464 MB / 4.268 GB, free: 191.4 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003467/9.539, allocations: 118.2 kB / 4.268 GB, free: 191.4 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002139/9.541, allocations: 222.5 kB / 4.268 GB, free: 191.4 MB / 0.948 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01354/9.555, allocations: 4.429 MB / 4.272 GB, free: 189.9 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01495/9.569, allocations: 4.58 MB / 4.277 GB, free: 188.1 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002507/9.57, allocations: 8.938 kB / 4.277 GB, free: 188.1 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001504/9.571, allocations: 19.05 kB / 4.277 GB, free: 188.1 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001863/9.572, allocations: 179.5 kB / 4.277 GB, free: 188 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04043/9.612, allocations: 19.26 MB / 4.296 GB, free: 176.7 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005504/9.618, allocations: 2.998 MB / 4.299 GB, free: 175.7 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002303/9.62, allocations: 1.643 MB / 4.3 GB, free: 175 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001954/9.622, allocations: 1.867 MB / 4.302 GB, free: 173 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002785/9.625, allocations: 1.793 MB / 4.304 GB, free: 172.3 MB / 0.948 GB Notification: Performance of pre-optimization done (n=267): time 4.428e-06/9.625, allocations: 0 / 4.304 GB, free: 172.3 MB / 0.948 GB Notification: Performance of matching and sorting (n=267): time 0.0121/9.637, allocations: 3.699 MB / 4.307 GB, free: 171.1 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001333/9.637, allocations: 292.4 kB / 4.308 GB, free: 170.8 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006275/9.643, allocations: 3.039 MB / 4.311 GB, free: 169.6 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 0.0008697/9.644, allocations: 32.5 kB / 4.311 GB, free: 169.6 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.002221/9.646, allocations: 1.388 MB / 4.312 GB, free: 168.7 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.001778/9.648, allocations: 0.8677 MB / 4.313 GB, free: 168 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001862/9.648, allocations: 0 / 4.313 GB, free: 168 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 0.0002545/9.649, allocations: 424.8 kB / 4.313 GB, free: 167.6 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002311/9.651, allocations: 1.323 MB / 4.315 GB, free: 167.1 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002854/9.654, allocations: 1.999 MB / 4.317 GB, free: 165.8 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01408/9.668, allocations: 2.873 MB / 4.319 GB, free: 165.1 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.8e-05/9.668, allocations: 4.125 kB / 4.319 GB, free: 165.1 MB / 0.948 GB Notification: Performance of matching and sorting (n=372) (initialization): time 0.01958/9.688, allocations: 4.96 MB / 4.324 GB, free: 163.6 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 0.001835/9.689, allocations: 7.282 MB / 4.331 GB, free: 156 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.973e-05/9.689, allocations: 19.62 kB / 4.331 GB, free: 156 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007564/9.69, allocations: 115.4 kB / 4.331 GB, free: 156 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00468/9.695, allocations: 0.8154 MB / 4.332 GB, free: 156 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002146/9.697, allocations: 2.107 MB / 4.334 GB, free: 154 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005509/9.703, allocations: 426.6 kB / 4.335 GB, free: 153.9 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006371/9.703, allocations: 143.4 kB / 4.335 GB, free: 153.8 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.246e-05/9.703, allocations: 7.5 kB / 4.335 GB, free: 153.8 MB / 0.948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01804/9.721, allocations: 4.589 MB / 4.339 GB, free: 151.1 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.492e-05/9.721, allocations: 22.44 kB / 4.339 GB, free: 151.1 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006311/9.722, allocations: 111.8 kB / 4.34 GB, free: 151 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004106/9.726, allocations: 0.8066 MB / 4.34 GB, free: 150.4 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001762/9.728, allocations: 1.506 MB / 4.342 GB, free: 148.8 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005458/9.733, allocations: 385.8 kB / 4.342 GB, free: 148.5 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004981/9.734, allocations: 146.5 kB / 4.342 GB, free: 148.4 MB / 0.948 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.001182/9.735, allocations: 183.8 kB / 4.342 GB, free: 148.2 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001277/9.736, allocations: 355.7 kB / 4.343 GB, free: 147.9 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01335/9.75, allocations: 4.552 MB / 4.347 GB, free: 143.6 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.67e-05/9.75, allocations: 35.98 kB / 4.347 GB, free: 143.6 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.696e-06/9.75, allocations: 3.906 kB / 4.347 GB, free: 143.6 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009035/9.759, allocations: 3.637 MB / 4.351 GB, free: 139.9 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01992/9.779, allocations: 8.692 MB / 4.359 GB, free: 131.1 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.208e-05/9.779, allocations: 4 kB / 4.359 GB, free: 131.1 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003555/9.782, allocations: 0.6315 MB / 4.36 GB, free: 130.5 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005599/9.783, allocations: 99.77 kB / 4.36 GB, free: 130.4 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002437/9.783, allocations: 62.98 kB / 4.36 GB, free: 130.4 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001885/9.785, allocations: 2.086 MB / 4.362 GB, free: 128.2 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.098e-06/9.785, allocations: 0 / 4.362 GB, free: 128.2 MB / 0.948 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01333/9.799, allocations: 6.03 MB / 4.368 GB, free: 122 MB / 0.948 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01573/9.814, allocations: 8.516 MB / 4.376 GB, free: 113.4 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003565/9.818, allocations: 1.054 MB / 4.377 GB, free: 112.4 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009964/9.819, allocations: 15.27 kB / 4.377 GB, free: 112.3 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003775/9.823, allocations: 285.2 kB / 4.378 GB, free: 112.1 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003223/9.823, allocations: 157.7 kB / 4.378 GB, free: 111.9 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003052/9.823, allocations: 127.9 kB / 4.378 GB, free: 111.8 MB / 0.948 GB Notification: Performance of sort global known variables: time 0.003481/9.827, allocations: 2.339 MB / 4.38 GB, free: 109.5 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.009773/9.837, allocations: 2.676 MB / 4.383 GB, free: 106.8 MB / 0.948 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.003034/9.84, allocations: 1.608 MB / 4.384 GB, free: 105.6 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.008541/9.848, allocations: 5.49 MB / 4.39 GB, free: 100.1 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.133e-05/9.848, allocations: 8.672 kB / 4.39 GB, free: 100.1 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.002386/9.851, allocations: 1.72 MB / 4.391 GB, free: 98.34 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009995/9.861, allocations: 1.675 MB / 4.393 GB, free: 96.8 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01894/9.88, allocations: 7.868 MB / 4.401 GB, free: 88.92 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004564/9.884, allocations: 3.582 MB / 4.404 GB, free: 85.31 MB / 0.948 GB Notification: Performance of SimCode: time 1.543e-06/9.884, allocations: 0 / 4.404 GB, free: 85.31 MB / 0.948 GB (rm -f Buildings_8_Buildings.Fluid.SolarCollectors.Examples.Tubular.pipe ; mkfifo Buildings_8_Buildings.Fluid.SolarCollectors.Examples.Tubular.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.SolarCollectors.Examples.Tubular.pipe >> ../files/Buildings_8_Buildings.Fluid.SolarCollectors.Examples.Tubular.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Fluid_SolarCollectors_Examples_Tubular_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Fluid_SolarCollectors_Examples_Tubular.fmu > Buildings_8_Buildings.Fluid.SolarCollectors.Examples.Tubular.pipe 2>&1)