Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Storage.Examples.Stratified.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.Storage.Examples.Stratified,fileNamePrefix="Buildings_latest_Buildings_Fluid_Storage_Examples_Stratified",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Examples.Stratified,fileNamePrefix="Buildings_latest_Buildings_Fluid_Storage_Examples_Stratified",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.039/2.039, allocations: 390.4 MB / 397.7 MB, free: 11.28 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.001224/0.001224, allocations: 189.2 kB / 490.8 MB, free: 1.934 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.455/1.455, allocations: 221.4 MB / 0.7863 GB, free: 13.73 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.0009105/0.0009107, allocations: 95.34 kB / 0.9264 GB, free: 14.27 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 0.6749/0.6758, allocations: 149.1 MB / 1.072 GB, free: 182.5 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2989/0.9748, allocations: 143 MB / 1.212 GB, free: 40.05 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9585/1.933, allocations: 423.4 MB / 1.625 GB, free: 8.422 MB / 1.042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002646/1.934, allocations: 90.19 kB / 1.625 GB, free: 8.375 MB / 1.042 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2145 * Number of variables: 2145 Notification: Performance of Generate backend data structure: time 10.05/11.99, allocations: 3.022 GB / 4.648 GB, free: 191.4 MB / 1.214 GB Notification: Performance of prepare preOptimizeDAE: time 4.959e-05/11.99, allocations: 14.38 kB / 4.648 GB, free: 191.4 MB / 1.214 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008787/12, allocations: 1.176 MB / 4.649 GB, free: 190.9 MB / 1.214 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02967/12.03, allocations: 11.2 MB / 4.66 GB, free: 189.6 MB / 1.214 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006299/12.03, allocations: 267.1 kB / 4.66 GB, free: 189.6 MB / 1.214 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003998/12.03, allocations: 484.7 kB / 4.66 GB, free: 189.6 MB / 1.214 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02356/12.05, allocations: 9.176 MB / 4.669 GB, free: 189.5 MB / 1.214 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03628/12.09, allocations: 10.55 MB / 4.68 GB, free: 188.3 MB / 1.214 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006675/12.09, allocations: 28.53 kB / 4.68 GB, free: 188.3 MB / 1.214 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003986/12.09, allocations: 16.75 kB / 4.68 GB, free: 188.3 MB / 1.214 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000288/12.1, allocations: 254.8 kB / 4.68 GB, free: 188.3 MB / 1.214 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09401/12.19, allocations: 46.19 MB / 4.725 GB, free: 159.6 MB / 1.214 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01268/12.2, allocations: 5.766 MB / 4.731 GB, free: 157.6 MB / 1.214 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.009208/12.21, allocations: 4.784 MB / 4.735 GB, free: 155.6 MB / 1.214 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001461/12.21, allocations: 0.8206 MB / 4.736 GB, free: 154.8 MB / 1.214 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007645/12.22, allocations: 3.281 MB / 4.739 GB, free: 153 MB / 1.214 GB Notification: Performance of pre-optimization done (n=449): time 8.706e-06/12.22, allocations: 0 / 4.739 GB, free: 153 MB / 1.214 GB Notification: Performance of matching and sorting (n=449): time 0.01632/12.24, allocations: 6.356 MB / 4.746 GB, free: 149.9 MB / 1.214 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.587e-05/12.24, allocations: 151.7 kB / 4.746 GB, free: 149.8 MB / 1.214 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01431/12.25, allocations: 6.08 MB / 4.752 GB, free: 145.4 MB / 1.214 GB Notification: Performance of collectPreVariables (initialization): time 0.001618/12.25, allocations: 29.7 kB / 4.752 GB, free: 145.4 MB / 1.214 GB Notification: Performance of collectInitialEqns (initialization): time 0.005122/12.26, allocations: 3.222 MB / 4.755 GB, free: 142.1 MB / 1.214 GB Notification: Performance of collectInitialBindings (initialization): time 0.004159/12.26, allocations: 1.501 MB / 4.756 GB, free: 140.6 MB / 1.214 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004486/12.26, allocations: 0 / 4.756 GB, free: 140.6 MB / 1.214 GB Notification: Performance of setup shared object (initialization): time 0.0003721/12.26, allocations: 0.5497 MB / 4.757 GB, free: 140.1 MB / 1.214 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003768/12.27, allocations: 2.916 MB / 4.76 GB, free: 137.1 MB / 1.214 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004513/12.27, allocations: 4.755 MB / 4.764 GB, free: 131.6 MB / 1.214 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00592/12.28, allocations: 4.285 MB / 4.769 GB, free: 127.4 MB / 1.214 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.827e-05/12.28, allocations: 20 kB / 4.769 GB, free: 127.4 MB / 1.214 GB Notification: Performance of matching and sorting (n=754) (initialization): time 0.0143/12.29, allocations: 8.487 MB / 4.777 GB, free: 118.9 MB / 1.214 GB Notification: Performance of prepare postOptimizeDAE: time 0.005622/12.3, allocations: 28.03 MB / 4.804 GB, free: 89.2 MB / 1.214 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001434/12.3, allocations: 63.98 kB / 4.804 GB, free: 89.13 MB / 1.214 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001404/12.3, allocations: 96 kB / 4.804 GB, free: 89.04 MB / 1.214 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00749/12.31, allocations: 1.417 MB / 4.806 GB, free: 87.63 MB / 1.214 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001152/12.31, allocations: 127.6 kB / 4.806 GB, free: 87.5 MB / 1.214 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00952/12.31, allocations: 0.7841 MB / 4.807 GB, free: 86.75 MB / 1.214 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001546/12.32, allocations: 280 kB / 4.807 GB, free: 86.47 MB / 1.214 GB Notification: Performance of prepare postOptimizeDAE: time 1.322e-05/12.32, allocations: 5.969 kB / 4.807 GB, free: 86.47 MB / 1.214 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01634/12.33, allocations: 7.814 MB / 4.815 GB, free: 78.7 MB / 1.214 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001367/12.33, allocations: 63.98 kB / 4.815 GB, free: 78.63 MB / 1.214 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.524e-05/12.33, allocations: 96 kB / 4.815 GB, free: 78.54 MB / 1.214 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006333/12.34, allocations: 1.422 MB / 4.816 GB, free: 77.12 MB / 1.214 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001031/12.34, allocations: 123.6 kB / 4.816 GB, free: 77 MB / 1.214 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009182/12.35, allocations: 0.6772 MB / 4.817 GB, free: 76.36 MB / 1.214 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001929/12.35, allocations: 280 kB / 4.817 GB, free: 76.08 MB / 1.214 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 264 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition1,$whenCondition2,TWat.a,TWat.b,TWat.last,$PRE.TWat.nextEvent,TWat.nextEvent,TWat.nextEventScaled,P.a,P.b,P.last,$PRE.P.nextEvent,P.nextEvent,P.nextEventScaled,dH.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (744): * Single equations (assignments): 742 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003374/12.35, allocations: 350.3 kB / 4.817 GB, free: 75.72 MB / 1.214 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003561/12.36, allocations: 0.6484 MB / 4.818 GB, free: 75.07 MB / 1.214 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01674/12.37, allocations: 7.076 MB / 4.825 GB, free: 68 MB / 1.214 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.643e-05/12.37, allocations: 44 kB / 4.825 GB, free: 67.96 MB / 1.214 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.463e-05/12.37, allocations: 0 / 4.825 GB, free: 67.96 MB / 1.214 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009525/12.38, allocations: 5.863 MB / 4.831 GB, free: 62.08 MB / 1.214 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04081/12.42, allocations: 15.87 MB / 4.846 GB, free: 46.2 MB / 1.214 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.297e-05/12.42, allocations: 0 / 4.846 GB, free: 46.2 MB / 1.214 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004332/12.43, allocations: 0.8895 MB / 4.847 GB, free: 45.31 MB / 1.214 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.461e-05/12.43, allocations: 19.94 kB / 4.847 GB, free: 45.3 MB / 1.214 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003991/12.43, allocations: 63.94 kB / 4.847 GB, free: 45.23 MB / 1.214 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.569e-05/12.43, allocations: 19.61 kB / 4.847 GB, free: 45.22 MB / 1.214 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.018e-06/12.43, allocations: 0 / 4.847 GB, free: 45.22 MB / 1.214 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01513/12.44, allocations: 10.91 MB / 4.858 GB, free: 34.23 MB / 1.214 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01932/12.46, allocations: 15.62 MB / 4.873 GB, free: 18.54 MB / 1.214 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006155/12.47, allocations: 1.765 MB / 4.875 GB, free: 16.75 MB / 1.214 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002548/12.47, allocations: 31.3 kB / 4.875 GB, free: 16.72 MB / 1.214 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007066/12.48, allocations: 446.9 kB / 4.875 GB, free: 16.28 MB / 1.214 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005399/12.48, allocations: 223.1 kB / 4.876 GB, free: 16.06 MB / 1.214 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000663/12.48, allocations: 207.8 kB / 4.876 GB, free: 15.86 MB / 1.214 GB Notification: Performance of sort global known variables: time 0.008167/12.49, allocations: 4.646 MB / 4.88 GB, free: 11.22 MB / 1.214 GB Notification: Performance of remove unused functions: time 0.02304/12.51, allocations: 4.995 MB / 4.885 GB, free: 6.215 MB / 1.214 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 21 (tanSim.vol[1].dynBal.U,tanSim.vol[2].dynBal.U,tanSim.vol[3].dynBal.U,tanSim.vol[4].dynBal.U,tanSim.vol[5].dynBal.U,tanSim.vol[6].dynBal.U,tanSim.vol[7].dynBal.U,tanSim.vol[8].dynBal.U,tanSim.vol[9].dynBal.U,tanSim.vol[10].dynBal.U,tanEnh.vol[1].dynBal.U,tanEnh.vol[2].dynBal.U,tanEnh.vol[3].dynBal.U,tanEnh.vol[4].dynBal.U,tanEnh.vol[5].dynBal.U,tanEnh.vol[6].dynBal.U,tanEnh.vol[7].dynBal.U,tanEnh.vol[8].dynBal.U,tanEnh.vol[9].dynBal.U,tanEnh.vol[10].dynBal.U,dH.y) * Number of discrete variables: 12 ($whenCondition1,$whenCondition2,TWat.a,TWat.b,TWat.last,TWat.nextEvent,TWat.nextEventScaled,P.a,P.b,P.last,P.nextEvent,P.nextEventScaled) * Number of discrete states: 12 (P.nextEvent,P.last,P.nextEventScaled,P.b,P.a,$whenCondition2,TWat.nextEvent,TWat.last,TWat.nextEventScaled,TWat.b,TWat.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (445): * Single equations (assignments): 441 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002772/12.52, allocations: 0.8672 MB / 4.886 GB, free: 5.445 MB / 1.214 GB Notification: Performance of simCode: created initialization part: time 0.02061/12.54, allocations: 11.17 MB / 4.897 GB, free: 10.28 MB / 1.229 GB Notification: Performance of simCode: created event and clocks part: time 2.196e-05/12.54, allocations: 4.5 kB / 4.897 GB, free: 10.28 MB / 1.229 GB Notification: Performance of simCode: created simulation system equations: time 0.0061/12.54, allocations: 3.135 MB / 4.9 GB, free: 7.133 MB / 1.229 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02031/12.56, allocations: 3.317 MB / 4.903 GB, free: 3.957 MB / 1.229 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 1.047/13.61, allocations: 16.88 MB / 4.92 GB, free: 360.4 MB / 1.229 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01133/13.62, allocations: 7.021 MB / 4.927 GB, free: 359.5 MB / 1.229 GB Notification: Performance of SimCode: time 1.282e-06/13.62, allocations: 0 / 4.927 GB, free: 359.5 MB / 1.229 GB (rm -f Buildings_latest_Buildings.Fluid.Storage.Examples.Stratified.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Storage.Examples.Stratified.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Storage.Examples.Stratified.pipe >> ../files/Buildings_latest_Buildings.Fluid.Storage.Examples.Stratified.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Storage.Examples.Stratified_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Storage_Examples_Stratified_fmu --startTime=0 --stopTime=10800 --timeout=50 --tolerance=1e-08 Buildings_latest_Buildings_Fluid_Storage_Examples_Stratified.fmu > Buildings_latest_Buildings.Fluid.Storage.Examples.Stratified.pipe 2>&1)