Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.SolarCollectors.Examples.Tubular.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Examples.Tubular,fileNamePrefix="Buildings_latest_Buildings_Fluid_SolarCollectors_Examples_Tubular",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Examples.Tubular,fileNamePrefix="Buildings_latest_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 10.0.0-master/package.mo): time 2.148/2.148, allocations: 390.4 MB / 397.7 MB, free: 11.3 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00141/0.00141, allocations: 177.3 kB / 490.8 MB, free: 1.988 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.471/1.471, allocations: 221.3 MB / 0.7863 GB, free: 13.66 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00108/0.00108, allocations: 81.94 kB / 0.9264 GB, free: 14.21 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 0.6951/0.6962, allocations: 149.1 MB / 1.072 GB, free: 182.5 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3399/1.036, allocations: 143 MB / 1.212 GB, free: 40.04 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.46/5.496, allocations: 2.199 GB / 3.411 GB, free: 108.2 MB / 1.151 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002002/5.496, allocations: 91.8 kB / 3.411 GB, free: 108.1 MB / 1.151 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 984 * Number of variables: 984 Notification: Performance of Generate backend data structure: time 3.014/8.51, allocations: 0.947 GB / 4.358 GB, free: 45.14 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.053e-05/8.51, allocations: 8 kB / 4.358 GB, free: 45.13 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009162/8.519, allocations: 1.398 MB / 4.359 GB, free: 43.73 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01609/8.535, allocations: 5.631 MB / 4.365 GB, free: 38.03 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002437/8.536, allocations: 120 kB / 4.365 GB, free: 37.91 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001621/8.537, allocations: 220 kB / 4.365 GB, free: 37.7 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.009263/8.546, allocations: 4.478 MB / 4.37 GB, free: 33.22 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008088/8.555, allocations: 4.631 MB / 4.374 GB, free: 28.43 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.073e-05/8.555, allocations: 11.92 kB / 4.374 GB, free: 28.42 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004172/8.555, allocations: 4 kB / 4.374 GB, free: 28.41 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000115/8.555, allocations: 179.3 kB / 4.374 GB, free: 28.24 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03073/8.586, allocations: 19.55 MB / 4.393 GB, free: 7.996 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004308/8.59, allocations: 2.988 MB / 4.396 GB, free: 5.016 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001946/8.592, allocations: 1.642 MB / 4.398 GB, free: 3.367 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00178/8.594, allocations: 1.88 MB / 4.4 GB, free: 1.098 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.539/9.133, allocations: 1.799 MB / 4.401 GB, free: 337.5 MB / 1.151 GB Notification: Performance of pre-optimization done (n=268): time 5.711e-06/9.133, allocations: 3.031 kB / 4.401 GB, free: 337.5 MB / 1.151 GB Notification: Performance of matching and sorting (n=268): time 0.01153/9.145, allocations: 3.73 MB / 4.405 GB, free: 337.4 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.615e-05/9.145, allocations: 294.2 kB / 4.405 GB, free: 337.1 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004799/9.15, allocations: 3.069 MB / 4.408 GB, free: 336.8 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 0.0006718/9.15, allocations: 33.02 kB / 4.408 GB, free: 336.8 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.001659/9.152, allocations: 1.404 MB / 4.41 GB, free: 336.4 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.00142/9.153, allocations: 0.8761 MB / 4.411 GB, free: 336 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001808/9.154, allocations: 0 / 4.411 GB, free: 336 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 0.0001491/9.154, allocations: 421.4 kB / 4.411 GB, free: 335.7 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001939/9.156, allocations: 1.33 MB / 4.412 GB, free: 335.7 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002235/9.158, allocations: 2.005 MB / 4.414 GB, free: 334.9 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01372/9.172, allocations: 2.897 MB / 4.417 GB, free: 334.9 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.972e-05/9.172, allocations: 3.906 kB / 4.417 GB, free: 334.9 MB / 1.151 GB Notification: Performance of matching and sorting (n=373) (initialization): time 0.01832/9.19, allocations: 4.99 MB / 4.422 GB, free: 334.6 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.001309/9.191, allocations: 7.299 MB / 4.429 GB, free: 326.8 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.879e-05/9.191, allocations: 18.31 kB / 4.429 GB, free: 326.8 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006793/9.192, allocations: 116.9 kB / 4.429 GB, free: 326.8 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00446/9.197, allocations: 0.8227 MB / 4.43 GB, free: 326.8 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002046/9.199, allocations: 2.1 MB / 4.432 GB, free: 325 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005264/9.204, allocations: 433.7 kB / 4.433 GB, free: 324.9 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007226/9.205, allocations: 143.8 kB / 4.433 GB, free: 324.9 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.104e-05/9.205, allocations: 10.78 kB / 4.433 GB, free: 324.9 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01884/9.224, allocations: 4.606 MB / 4.437 GB, free: 324.8 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.878e-05/9.224, allocations: 21.22 kB / 4.437 GB, free: 324.8 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006377/9.224, allocations: 117 kB / 4.437 GB, free: 324.8 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004778/9.229, allocations: 0.8173 MB / 4.438 GB, free: 324.8 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002016/9.231, allocations: 1.507 MB / 4.44 GB, free: 323.6 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005998/9.237, allocations: 396.4 kB / 4.44 GB, free: 323.6 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001016/9.238, allocations: 144.4 kB / 4.44 GB, free: 323.6 MB / 1.151 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): 369 * 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.001806/9.24, allocations: 179.8 kB / 4.44 GB, free: 323.4 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002053/9.242, allocations: 363.2 kB / 4.441 GB, free: 323.3 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01639/9.259, allocations: 4.586 MB / 4.445 GB, free: 323.1 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.991e-05/9.259, allocations: 30.91 kB / 4.445 GB, free: 323.1 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.415e-05/9.259, allocations: 3.906 kB / 4.445 GB, free: 323.1 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01103/9.27, allocations: 3.675 MB / 4.449 GB, free: 322.7 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02489/9.295, allocations: 8.774 MB / 4.457 GB, free: 322.2 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.179e-05/9.295, allocations: 3.312 kB / 4.457 GB, free: 322.2 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004019/9.299, allocations: 0.6383 MB / 4.458 GB, free: 322.2 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006128/9.299, allocations: 97.02 kB / 4.458 GB, free: 322.2 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000582/9.3, allocations: 64.56 kB / 4.458 GB, free: 322.2 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001991/9.302, allocations: 2.092 MB / 4.46 GB, free: 320.4 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.641e-06/9.302, allocations: 0 / 4.46 GB, free: 320.4 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01643/9.318, allocations: 6.087 MB / 4.466 GB, free: 319.8 MB / 1.151 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0185/9.337, allocations: 8.584 MB / 4.474 GB, free: 318.8 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003322/9.34, allocations: 1.058 MB / 4.475 GB, free: 318.5 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001614/9.342, allocations: 13.34 kB / 4.475 GB, free: 318.5 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004787/9.347, allocations: 294.7 kB / 4.476 GB, free: 318.5 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004788/9.347, allocations: 154.3 kB / 4.476 GB, free: 318.5 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006387/9.348, allocations: 128 kB / 4.476 GB, free: 318.5 MB / 1.151 GB Notification: Performance of sort global known variables: time 0.005396/9.353, allocations: 2.368 MB / 4.478 GB, free: 318.3 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.01374/9.367, allocations: 2.742 MB / 4.481 GB, free: 318.1 MB / 1.151 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 (288): * Single equations (assignments): 278 * 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.004215/9.371, allocations: 1.662 MB / 4.483 GB, free: 317.9 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.01108/9.382, allocations: 5.508 MB / 4.488 GB, free: 317.7 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 1.106e-05/9.383, allocations: 1.109 kB / 4.488 GB, free: 317.7 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.003298/9.386, allocations: 1.739 MB / 4.49 GB, free: 317.6 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01014/9.396, allocations: 1.686 MB / 4.491 GB, free: 317.5 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02314/9.419, allocations: 7.984 MB / 4.499 GB, free: 316.1 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006563/9.426, allocations: 3.636 MB / 4.503 GB, free: 315.3 MB / 1.151 GB Notification: Performance of SimCode: time 1.753e-06/9.426, allocations: 0 / 4.503 GB, free: 315.3 MB / 1.151 GB (rm -f Buildings_latest_Buildings.Fluid.SolarCollectors.Examples.Tubular.pipe ; mkfifo Buildings_latest_Buildings.Fluid.SolarCollectors.Examples.Tubular.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.SolarCollectors.Examples.Tubular.pipe >> ../files/Buildings_latest_Buildings.Fluid.SolarCollectors.Examples.Tubular.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.SolarCollectors.Examples.Tubular_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_SolarCollectors_Examples_Tubular_fmu --startTime=0 --stopTime=86400 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_SolarCollectors_Examples_Tubular.fmu > Buildings_latest_Buildings.Fluid.SolarCollectors.Examples.Tubular.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Buildings_latest_Buildings.Fluid.SolarCollectors.Examples.Tubular_res.mat does not exist to compare? outputFormat=mat