Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_T",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_T",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 9.1.1-maint.9.1.x/package.mo): time 2.102/2.102, allocations: 387.2 MB / 394.5 MB, free: 4.434 MB / 306.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001092/0.001092, allocations: 165.4 kB / 487 MB, free: 10.95 MB / 402.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.42/1.42, allocations: 221.3 MB / 0.7819 GB, free: 3.852 MB / 0.5496 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009336/0.0009338, allocations: 92.62 kB / 0.9213 GB, free: 4.961 MB / 0.6902 GB Notification: Performance of FrontEnd - loaded program: time 0.5726/0.5736, allocations: 148.5 MB / 1.066 GB, free: 140.9 MB / 0.7215 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2571/0.8307, allocations: 142.3 MB / 1.205 GB, free: 14.58 MB / 0.7371 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.028/1.858, allocations: 452.4 MB / 1.647 GB, free: 3.062 MB / 1.112 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002945/1.859, allocations: 95.94 kB / 1.647 GB, free: 2.969 MB / 1.112 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 281 * Number of variables: 281 Notification: Performance of Generate backend data structure: time 4.372/6.231, allocations: 1.185 GB / 2.832 GB, free: 155 MB / 1.175 GB Notification: Performance of prepare preOptimizeDAE: time 4.245e-05/6.231, allocations: 8 kB / 2.832 GB, free: 155 MB / 1.175 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002752/6.234, allocations: 0.5754 MB / 2.832 GB, free: 154.5 MB / 1.175 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005932/6.24, allocations: 2.322 MB / 2.835 GB, free: 152.2 MB / 1.175 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.653e-05/6.24, allocations: 40 kB / 2.835 GB, free: 152.1 MB / 1.175 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001838/6.24, allocations: 68 kB / 2.835 GB, free: 152.1 MB / 1.175 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00151/6.241, allocations: 0.7971 MB / 2.836 GB, free: 151.2 MB / 1.175 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001532/6.243, allocations: 1.081 MB / 2.837 GB, free: 150.1 MB / 1.175 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.077e-05/6.243, allocations: 0 / 2.837 GB, free: 150.1 MB / 1.175 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.271e-05/6.243, allocations: 4 kB / 2.837 GB, free: 150.1 MB / 1.175 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.021e-05/6.243, allocations: 38.08 kB / 2.837 GB, free: 150 MB / 1.175 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008515/6.252, allocations: 7.009 MB / 2.844 GB, free: 142.6 MB / 1.175 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005993/6.252, allocations: 446.3 kB / 2.844 GB, free: 142.2 MB / 1.175 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004247/6.253, allocations: 358.8 kB / 2.844 GB, free: 141.9 MB / 1.175 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005116/6.258, allocations: 2.954 MB / 2.847 GB, free: 138.6 MB / 1.175 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004973/6.258, allocations: 354.3 kB / 2.847 GB, free: 138.3 MB / 1.175 GB Notification: Performance of pre-optimization done (n=66): time 3.176e-06/6.258, allocations: 0 / 2.847 GB, free: 138.3 MB / 1.175 GB Notification: Performance of matching and sorting (n=66): time 0.002194/6.261, allocations: 0.8533 MB / 2.848 GB, free: 137.4 MB / 1.175 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.711e-05/6.261, allocations: 115.5 kB / 2.848 GB, free: 137.3 MB / 1.175 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00158/6.262, allocations: 1.231 MB / 2.85 GB, free: 136 MB / 1.175 GB Notification: Performance of collectPreVariables (initialization): time 6.448e-05/6.262, allocations: 25.7 kB / 2.85 GB, free: 136 MB / 1.175 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003965/6.263, allocations: 0.5745 MB / 2.85 GB, free: 135.4 MB / 1.175 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001998/6.263, allocations: 220.7 kB / 2.85 GB, free: 135.2 MB / 1.175 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.316e-05/6.263, allocations: 0 / 2.85 GB, free: 135.2 MB / 1.175 GB Notification: Performance of setup shared object (initialization): time 7.668e-05/6.263, allocations: 345.9 kB / 2.851 GB, free: 134.9 MB / 1.175 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003651/6.263, allocations: 265.9 kB / 2.851 GB, free: 134.6 MB / 1.175 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005187/6.264, allocations: 0.6722 MB / 2.852 GB, free: 133.7 MB / 1.175 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001407/6.265, allocations: 0.5106 MB / 2.852 GB, free: 133.3 MB / 1.175 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.561e-06/6.265, allocations: 0 / 2.852 GB, free: 133.3 MB / 1.175 GB Notification: Performance of matching and sorting (n=126) (initialization): time 0.002372/6.268, allocations: 1.153 MB / 2.853 GB, free: 132.1 MB / 1.175 GB Notification: Performance of prepare postOptimizeDAE: time 0.0008259/6.269, allocations: 4.416 MB / 2.858 GB, free: 127.3 MB / 1.175 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.362e-05/6.269, allocations: 12 kB / 2.858 GB, free: 127.3 MB / 1.175 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.783e-05/6.269, allocations: 16 kB / 2.858 GB, free: 127.3 MB / 1.175 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001059/6.27, allocations: 270.7 kB / 2.858 GB, free: 127.1 MB / 1.175 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.585e-05/6.27, allocations: 27.86 kB / 2.858 GB, free: 127 MB / 1.175 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001496/6.271, allocations: 161.4 kB / 2.858 GB, free: 126.9 MB / 1.175 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001008/6.271, allocations: 55.98 kB / 2.858 GB, free: 126.8 MB / 1.175 GB Notification: Performance of prepare postOptimizeDAE: time 9.147e-06/6.271, allocations: 4 kB / 2.858 GB, free: 126.8 MB / 1.175 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001978/6.273, allocations: 0.9256 MB / 2.859 GB, free: 125.9 MB / 1.175 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.618e-06/6.273, allocations: 12 kB / 2.859 GB, free: 125.9 MB / 1.175 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.366e-05/6.273, allocations: 19.84 kB / 2.859 GB, free: 125.9 MB / 1.175 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009518/6.274, allocations: 262.8 kB / 2.859 GB, free: 125.6 MB / 1.175 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.22e-05/6.274, allocations: 23.92 kB / 2.859 GB, free: 125.6 MB / 1.175 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001317/6.276, allocations: 137.9 kB / 2.859 GB, free: 125.5 MB / 1.175 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.709e-05/6.276, allocations: 55.92 kB / 2.86 GB, free: 125.4 MB / 1.175 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$PRE.TSet.T_start,TSet.T_start,$PRE.TSet.count,TSet.count,conPI.I.trigger_internal) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (124): * Single equations (assignments): 122 * Array equations: 1 * Algorithm blocks: 1 * 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.0002225/6.276, allocations: 147 kB / 2.86 GB, free: 125.3 MB / 1.175 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002022/6.276, allocations: 161.9 kB / 2.86 GB, free: 125.1 MB / 1.175 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00259/6.279, allocations: 1.136 MB / 2.861 GB, free: 124 MB / 1.175 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.273e-05/6.279, allocations: 8 kB / 2.861 GB, free: 124 MB / 1.175 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.348e-06/6.279, allocations: 7.906 kB / 2.861 GB, free: 124 MB / 1.175 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001431/6.28, allocations: 0.904 MB / 2.862 GB, free: 123 MB / 1.175 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004056/6.284, allocations: 2.181 MB / 2.864 GB, free: 120.8 MB / 1.175 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.819e-06/6.284, allocations: 4 kB / 2.864 GB, free: 120.8 MB / 1.175 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008115/6.285, allocations: 158.9 kB / 2.864 GB, free: 120.7 MB / 1.175 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001764/6.285, allocations: 31.89 kB / 2.864 GB, free: 120.6 MB / 1.175 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.591e-05/6.286, allocations: 15.98 kB / 2.864 GB, free: 120.6 MB / 1.175 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007991/6.286, allocations: 1.255 MB / 2.865 GB, free: 119.2 MB / 1.175 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.096e-06/6.286, allocations: 3.938 kB / 2.865 GB, free: 119.2 MB / 1.175 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002269/6.289, allocations: 1.439 MB / 2.867 GB, free: 117.8 MB / 1.175 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002804/6.291, allocations: 2.285 MB / 2.869 GB, free: 115.4 MB / 1.175 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000687/6.292, allocations: 342.7 kB / 2.869 GB, free: 115.1 MB / 1.175 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002142/6.292, allocations: 8 kB / 2.869 GB, free: 115.1 MB / 1.175 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009624/6.293, allocations: 91.81 kB / 2.869 GB, free: 115 MB / 1.175 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001077/6.293, allocations: 44.58 kB / 2.869 GB, free: 114.9 MB / 1.175 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.761e-05/6.294, allocations: 35.97 kB / 2.87 GB, free: 114.9 MB / 1.175 GB Notification: Performance of sort global known variables: time 0.001214/6.295, allocations: 0.9188 MB / 2.87 GB, free: 114 MB / 1.175 GB Notification: Performance of remove unused functions: time 0.004977/6.3, allocations: 1.24 MB / 2.872 GB, free: 112.8 MB / 1.175 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 6 (vol.dynBal.U,mov.filter.s[1],mov.filter.s[2],conPI.I.y,THeaOut.T,hea.outCon.T) * Number of discrete variables: 3 ($whenCondition1,TSet.T_start,TSet.count) * Number of discrete states: 1 (TSet.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (76): * Single equations (assignments): 67 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002274/6.302, allocations: 1.185 MB / 2.873 GB, free: 111.8 MB / 1.175 GB Notification: Performance of simCode: created initialization part: time 0.002021/6.304, allocations: 1.3 MB / 2.874 GB, free: 110.5 MB / 1.175 GB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/6.304, allocations: 0 / 2.874 GB, free: 110.5 MB / 1.175 GB Notification: Performance of simCode: created simulation system equations: time 0.0006224/6.305, allocations: 456.2 kB / 2.874 GB, free: 110 MB / 1.175 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00281/6.308, allocations: 0.5992 MB / 2.875 GB, free: 109.4 MB / 1.175 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005098/6.313, allocations: 2.373 MB / 2.877 GB, free: 107.1 MB / 1.175 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00118/6.314, allocations: 1.577 MB / 2.879 GB, free: 105.4 MB / 1.175 GB Notification: Performance of SimCode: time 1.142e-06/6.314, allocations: 0 / 2.879 GB, free: 105.4 MB / 1.175 GB (rm -f Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_T_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_HeatExchangers_Examples_WaterHeater_T.fmu > Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe 2>&1)