Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterCooler_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.WaterCooler_T,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatExchangers_Examples_WaterCooler_T",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.WaterCooler_T,fileNamePrefix="Buildings_9_Buildings_Fluid_HeatExchangers_Examples_WaterCooler_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.131/2.131, allocations: 387.2 MB / 394.5 MB, free: 13.64 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.001087/0.001087, allocations: 180.3 kB / 487 MB, free: 5.371 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.419/1.419, allocations: 221.3 MB / 0.7819 GB, free: 1.375 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001271/0.001271, allocations: 103 kB / 0.9213 GB, free: 2.621 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.7326/0.7339, allocations: 148.4 MB / 1.066 GB, free: 168.2 MB / 0.7448 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3435/1.077, allocations: 142.3 MB / 1.205 GB, free: 26.15 MB / 0.7448 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.05/2.128, allocations: 452.5 MB / 1.647 GB, free: 3.246 MB / 1.073 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003078/2.128, allocations: 100.6 kB / 1.647 GB, free: 3.195 MB / 1.073 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.074/6.203, allocations: 1.185 GB / 2.832 GB, free: 194.7 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 3.901e-05/6.203, allocations: 12 kB / 2.832 GB, free: 194.7 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00304/6.206, allocations: 0.5703 MB / 2.833 GB, free: 194.1 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006376/6.212, allocations: 2.326 MB / 2.835 GB, free: 191.8 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.941e-05/6.212, allocations: 36 kB / 2.835 GB, free: 191.8 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000213/6.212, allocations: 72 kB / 2.835 GB, free: 191.7 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001555/6.214, allocations: 0.7932 MB / 2.836 GB, free: 190.9 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001629/6.216, allocations: 1.074 MB / 2.837 GB, free: 189.7 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.629e-05/6.216, allocations: 7.938 kB / 2.837 GB, free: 189.7 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.415e-05/6.216, allocations: 0 / 2.837 GB, free: 189.7 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.889e-05/6.216, allocations: 42.08 kB / 2.837 GB, free: 189.7 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008981/6.225, allocations: 7.014 MB / 2.844 GB, free: 182.3 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006411/6.226, allocations: 451.3 kB / 2.844 GB, free: 181.9 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004161/6.226, allocations: 353.3 kB / 2.845 GB, free: 181.5 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004877/6.231, allocations: 2.961 MB / 2.848 GB, free: 178.3 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004756/6.231, allocations: 351 kB / 2.848 GB, free: 177.9 MB / 1.151 GB Notification: Performance of pre-optimization done (n=66): time 3.597e-06/6.231, allocations: 0 / 2.848 GB, free: 177.9 MB / 1.151 GB Notification: Performance of matching and sorting (n=66): time 0.002381/6.234, allocations: 0.8715 MB / 2.849 GB, free: 177 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.553e-05/6.234, allocations: 115.1 kB / 2.849 GB, free: 176.9 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001657/6.236, allocations: 1.233 MB / 2.85 GB, free: 175.7 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 7.023e-05/6.236, allocations: 29.7 kB / 2.85 GB, free: 175.6 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004168/6.236, allocations: 0.5637 MB / 2.851 GB, free: 175.1 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002105/6.236, allocations: 228.7 kB / 2.851 GB, free: 174.8 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.347e-05/6.236, allocations: 0 / 2.851 GB, free: 174.8 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 8.225e-05/6.236, allocations: 341.9 kB / 2.851 GB, free: 174.5 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003808/6.237, allocations: 269.2 kB / 2.851 GB, free: 174.2 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005918/6.237, allocations: 0.6707 MB / 2.852 GB, free: 173.4 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001536/6.239, allocations: 0.5316 MB / 2.853 GB, free: 172.9 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.983e-06/6.239, allocations: 4 kB / 2.853 GB, free: 172.9 MB / 1.151 GB Notification: Performance of matching and sorting (n=126) (initialization): time 0.002699/6.242, allocations: 1.175 MB / 2.854 GB, free: 171.7 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007956/6.242, allocations: 4.407 MB / 2.858 GB, free: 166.9 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.48e-05/6.242, allocations: 15.31 kB / 2.858 GB, free: 166.9 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.819e-05/6.242, allocations: 16 kB / 2.858 GB, free: 166.9 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001058/6.244, allocations: 262.8 kB / 2.858 GB, free: 166.7 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.739e-05/6.244, allocations: 23.92 kB / 2.858 GB, free: 166.6 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001731/6.245, allocations: 162.2 kB / 2.858 GB, free: 166.5 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001173/6.245, allocations: 59.89 kB / 2.859 GB, free: 166.4 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 1.281e-05/6.245, allocations: 7.938 kB / 2.859 GB, free: 166.4 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002219/6.248, allocations: 0.9504 MB / 2.859 GB, free: 165.5 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.668e-06/6.248, allocations: 12 kB / 2.859 GB, free: 165.5 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.549e-05/6.248, allocations: 19.94 kB / 2.859 GB, free: 165.5 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009724/6.249, allocations: 262.8 kB / 2.86 GB, free: 165.2 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.234e-05/6.249, allocations: 19.94 kB / 2.86 GB, free: 165.2 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001513/6.25, allocations: 140.5 kB / 2.86 GB, free: 165.1 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.225e-05/6.25, allocations: 55.97 kB / 2.86 GB, free: 165 MB / 1.151 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.0002663/6.251, allocations: 149.7 kB / 2.86 GB, free: 164.9 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002415/6.251, allocations: 161.9 kB / 2.86 GB, free: 164.7 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00276/6.254, allocations: 1.153 MB / 2.861 GB, free: 163.6 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.498e-05/6.254, allocations: 11.98 kB / 2.861 GB, free: 163.5 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.945e-06/6.254, allocations: 3.906 kB / 2.861 GB, free: 163.5 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001562/6.255, allocations: 0.9269 MB / 2.862 GB, free: 162.6 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004197/6.259, allocations: 2.193 MB / 2.864 GB, free: 160.3 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.119e-06/6.259, allocations: 0 / 2.864 GB, free: 160.3 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000793/6.26, allocations: 159 kB / 2.865 GB, free: 160.2 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001744/6.26, allocations: 28.59 kB / 2.865 GB, free: 160.2 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.79e-05/6.261, allocations: 15.98 kB / 2.865 GB, free: 160.1 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007497/6.261, allocations: 1.262 MB / 2.866 GB, free: 158.8 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.454e-06/6.261, allocations: 0 / 2.866 GB, free: 158.8 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002413/6.264, allocations: 1.462 MB / 2.867 GB, free: 157.3 MB / 1.151 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003013/6.267, allocations: 2.299 MB / 2.87 GB, free: 154.9 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007074/6.267, allocations: 350 kB / 2.87 GB, free: 154.6 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002183/6.268, allocations: 7.938 kB / 2.87 GB, free: 154.6 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009736/6.269, allocations: 91.06 kB / 2.87 GB, free: 154.5 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001171/6.269, allocations: 48.58 kB / 2.87 GB, free: 154.5 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.407e-05/6.269, allocations: 39.91 kB / 2.87 GB, free: 154.4 MB / 1.151 GB Notification: Performance of sort global known variables: time 0.001296/6.27, allocations: 0.911 MB / 2.871 GB, free: 153.5 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.005075/6.275, allocations: 1.247 MB / 2.872 GB, free: 152.3 MB / 1.151 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,coo.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.002448/6.278, allocations: 1.179 MB / 2.873 GB, free: 151.4 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.002043/6.28, allocations: 1.292 MB / 2.875 GB, free: 150.1 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 3.978e-06/6.28, allocations: 3.938 kB / 2.875 GB, free: 150.1 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0006695/6.281, allocations: 464.1 kB / 2.875 GB, free: 149.6 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002929/6.283, allocations: 0.5947 MB / 2.876 GB, free: 149.1 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004866/6.288, allocations: 2.372 MB / 2.878 GB, free: 146.8 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001117/6.289, allocations: 1.566 MB / 2.879 GB, free: 145.2 MB / 1.151 GB Notification: Performance of SimCode: time 4.71e-07/6.289, allocations: 0 / 2.879 GB, free: 145.2 MB / 1.151 GB (rm -f Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterCooler_T.pipe ; mkfifo Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterCooler_T.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterCooler_T.pipe >> ../files/Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterCooler_T.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterCooler_T_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_HeatExchangers_Examples_WaterCooler_T_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-08 Buildings_9_Buildings_Fluid_HeatExchangers_Examples_WaterCooler_T.fmu > Buildings_9_Buildings.Fluid.HeatExchangers.Examples.WaterCooler_T.pipe 2>&1)