Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.HeatExchangers.Examples.AirHeater_u.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.HeatExchangers.Examples.AirHeater_u,fileNamePrefix="Buildings_8_Buildings_Fluid_HeatExchangers_Examples_AirHeater_u",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.HeatExchangers.Examples.AirHeater_u,fileNamePrefix="Buildings_8_Buildings_Fluid_HeatExchangers_Examples_AirHeater_u",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.588/1.588, allocations: 289.8 MB / 297.1 MB, free: 6.613 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.001727/0.001727, allocations: 188.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.633/1.633, allocations: 205.1 MB / 0.6256 GB, free: 5.809 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.00104/0.00104, allocations: 87.92 kB / 0.7395 GB, free: 39.65 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.3088/0.3099, allocations: 122.4 MB / 0.8591 GB, free: 13.27 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7517/1.062, allocations: 116.3 MB / 0.9726 GB, free: 68.28 MB / 0.6511 GB Notification: Performance of FrontEnd - scodeFlatten: time 5.21/6.271, allocations: 2.122 GB / 3.094 GB, free: 321.6 MB / 0.948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002438/6.272, allocations: 95.08 kB / 3.094 GB, free: 321.5 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: 378 * Number of variables: 378 Notification: Performance of Generate backend data structure: time 7.047/13.32, allocations: 1.987 GB / 5.082 GB, free: 113.6 MB / 0.9792 GB Notification: Performance of prepare preOptimizeDAE: time 4.633e-05/13.32, allocations: 8.75 kB / 5.082 GB, free: 113.6 MB / 0.9792 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006316/13.32, allocations: 0.8559 MB / 5.083 GB, free: 113.4 MB / 0.9792 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007115/13.33, allocations: 2.401 MB / 5.085 GB, free: 112.2 MB / 0.9792 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.585e-05/13.33, allocations: 50.52 kB / 5.085 GB, free: 112.2 MB / 0.9792 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003082/13.33, allocations: 95.41 kB / 5.085 GB, free: 112.2 MB / 0.9792 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002677/13.33, allocations: 1.354 MB / 5.086 GB, free: 111.7 MB / 0.9792 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002806/13.34, allocations: 1.568 MB / 5.088 GB, free: 111 MB / 0.9792 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.298e-05/13.34, allocations: 7.844 kB / 5.088 GB, free: 111 MB / 0.9792 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001404/13.34, allocations: 3.656 kB / 5.088 GB, free: 111 MB / 0.9792 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.163e-05/13.34, allocations: 54.08 kB / 5.088 GB, free: 111 MB / 0.9792 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01229/13.35, allocations: 8.282 MB / 5.096 GB, free: 105.3 MB / 0.9792 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001364/13.35, allocations: 0.9478 MB / 5.097 GB, free: 104.9 MB / 0.9792 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008629/13.35, allocations: 0.6226 MB / 5.098 GB, free: 104.7 MB / 0.9792 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006029/13.35, allocations: 380.3 kB / 5.098 GB, free: 104.3 MB / 0.9792 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009519/13.35, allocations: 0.6031 MB / 5.099 GB, free: 104.1 MB / 0.9792 GB Notification: Performance of pre-optimization done (n=102): time 4.439e-06/13.35, allocations: 0 / 5.099 GB, free: 104.1 MB / 0.9792 GB Notification: Performance of matching and sorting (n=105): time 0.008949/13.36, allocations: 3.01 MB / 5.102 GB, free: 102.5 MB / 0.9792 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.208e-05/13.36, allocations: 169.8 kB / 5.102 GB, free: 102.4 MB / 0.9792 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001935/13.37, allocations: 1.217 MB / 5.103 GB, free: 101.7 MB / 0.9792 GB Notification: Performance of collectPreVariables (initialization): time 0.0001226/13.37, allocations: 28.67 kB / 5.103 GB, free: 101.7 MB / 0.9792 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005345/13.37, allocations: 0.623 MB / 5.104 GB, free: 101.1 MB / 0.9792 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003306/13.37, allocations: 359.8 kB / 5.104 GB, free: 100.8 MB / 0.9792 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.334e-05/13.37, allocations: 0 / 5.104 GB, free: 100.8 MB / 0.9792 GB Notification: Performance of setup shared object (initialization): time 9.58e-05/13.37, allocations: 356.1 kB / 5.104 GB, free: 100.5 MB / 0.9792 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006747/13.37, allocations: 450.5 kB / 5.105 GB, free: 100.3 MB / 0.9792 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008749/13.37, allocations: 0.8073 MB / 5.105 GB, free: 99.6 MB / 0.9792 GB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: vol.dynBal.medium.p = vol.dynBal.p_start (hea.vol.dynBal.p_start = vol.dynBal.p_start) Notification: Performance of analyzeInitialSystem (initialization): time 0.007041/13.37, allocations: 2.08 MB / 5.107 GB, free: 98.59 MB / 0.9792 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.015e-06/13.37, allocations: 0.875 kB / 5.107 GB, free: 98.59 MB / 0.9792 GB Notification: Performance of matching and sorting (n=155) (initialization): time 0.003118/13.38, allocations: 1.463 MB / 5.109 GB, free: 97.89 MB / 0.9792 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006976/13.38, allocations: 3.008 MB / 5.112 GB, free: 94.7 MB / 0.9792 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.827e-05/13.38, allocations: 8.344 kB / 5.112 GB, free: 94.7 MB / 0.9792 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001923/13.38, allocations: 48.81 kB / 5.112 GB, free: 94.68 MB / 0.9792 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001365/13.38, allocations: 290.9 kB / 5.112 GB, free: 94.6 MB / 0.9792 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001179/13.38, allocations: 1.424 MB / 5.114 GB, free: 93.19 MB / 0.9792 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002516/13.38, allocations: 133.2 kB / 5.114 GB, free: 93.15 MB / 0.9792 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001563/13.38, allocations: 60.84 kB / 5.114 GB, free: 93.13 MB / 0.9792 GB Notification: Performance of prepare postOptimizeDAE: time 1.17e-05/13.38, allocations: 4.375 kB / 5.114 GB, free: 93.13 MB / 0.9792 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002914/13.39, allocations: 1.219 MB / 5.115 GB, free: 92.57 MB / 0.9792 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.121e-05/13.39, allocations: 11.75 kB / 5.115 GB, free: 92.57 MB / 0.9792 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001566/13.39, allocations: 44.75 kB / 5.115 GB, free: 92.55 MB / 0.9792 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001283/13.39, allocations: 283.7 kB / 5.115 GB, free: 92.31 MB / 0.9792 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001016/13.39, allocations: 1.426 MB / 5.117 GB, free: 90.78 MB / 0.9792 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002632/13.39, allocations: 132.7 kB / 5.117 GB, free: 90.66 MB / 0.9792 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001262/13.39, allocations: 59.83 kB / 5.117 GB, free: 90.6 MB / 0.9792 GB Warning: Assuming redundant initial conditions for the following 1 initial equations: vol.dynBal.medium.p = vol.dynBal.p_start Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * 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 (148): * Single equations (assignments): 143 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * 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%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004204/13.39, allocations: 144.6 kB / 5.117 GB, free: 90.45 MB / 0.9792 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003347/13.39, allocations: 189.7 kB / 5.117 GB, free: 90.27 MB / 0.9792 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002978/13.4, allocations: 1.289 MB / 5.118 GB, free: 88.98 MB / 0.9792 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.047e-05/13.4, allocations: 11.98 kB / 5.118 GB, free: 88.96 MB / 0.9792 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.175e-06/13.4, allocations: 4 kB / 5.118 GB, free: 88.96 MB / 0.9792 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001731/13.4, allocations: 1.036 MB / 5.119 GB, free: 87.91 MB / 0.9792 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006356/13.4, allocations: 3.019 MB / 5.122 GB, free: 84.84 MB / 0.9792 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.763e-06/13.4, allocations: 3.906 kB / 5.122 GB, free: 84.84 MB / 0.9792 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001257/13.41, allocations: 238.7 kB / 5.123 GB, free: 84.61 MB / 0.9792 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002668/13.41, allocations: 71.7 kB / 5.123 GB, free: 84.53 MB / 0.9792 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001169/13.41, allocations: 19.92 kB / 5.123 GB, free: 84.52 MB / 0.9792 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002125/13.41, allocations: 2.641 MB / 5.125 GB, free: 81.66 MB / 0.9792 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.262e-06/13.41, allocations: 4 kB / 5.125 GB, free: 81.66 MB / 0.9792 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003312/13.41, allocations: 2.055 MB / 5.127 GB, free: 79.53 MB / 0.9792 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004726/13.42, allocations: 3.274 MB / 5.13 GB, free: 76.19 MB / 0.9792 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001188/13.42, allocations: 386.6 kB / 5.131 GB, free: 75.79 MB / 0.9792 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005778/13.42, allocations: 7.984 kB / 5.131 GB, free: 75.79 MB / 0.9792 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001889/13.42, allocations: 130.6 kB / 5.131 GB, free: 75.67 MB / 0.9792 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001717/13.42, allocations: 68.48 kB / 5.131 GB, free: 75.61 MB / 0.9792 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000107/13.42, allocations: 35.98 kB / 5.131 GB, free: 75.57 MB / 0.9792 GB Notification: Performance of sort global known variables: time 0.002006/13.42, allocations: 0.91 MB / 5.132 GB, free: 74.64 MB / 0.9792 GB Notification: Performance of remove unused functions: time 0.008893/13.43, allocations: 2.039 MB / 5.134 GB, free: 72.6 MB / 0.9792 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 9 (vol.dynBal.U,vol.dynBal.mXi[1],mov.filter.x[1],mov.filter.x[2],conPI.I.y,THeaOut.T,hea.vol.dynBal.U,hea.vol.dynBal.m,hea.vol.dynBal.mXi[1]) * 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 (104): * Single equations (assignments): 100 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006443/13.44, allocations: 3.681 MB / 5.138 GB, free: 69.3 MB / 0.9792 GB Notification: Performance of simCode: created initialization part: time 0.00403/13.44, allocations: 2.154 MB / 5.14 GB, free: 67.11 MB / 0.9792 GB Notification: Performance of simCode: created event and clocks part: time 7.564e-06/13.44, allocations: 4 kB / 5.14 GB, free: 67.11 MB / 0.9792 GB Notification: Performance of simCode: created simulation system equations: time 0.001052/13.44, allocations: 0.736 MB / 5.14 GB, free: 66.36 MB / 0.9792 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005327/13.45, allocations: 0.8972 MB / 5.141 GB, free: 65.52 MB / 0.9792 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01042/13.46, allocations: 3.253 MB / 5.144 GB, free: 62.43 MB / 0.9792 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002957/13.46, allocations: 1.807 MB / 5.146 GB, free: 60.61 MB / 0.9792 GB Notification: Performance of SimCode: time 1.542e-06/13.46, allocations: 0 / 5.146 GB, free: 60.61 MB / 0.9792 GB (rm -f Buildings_8_Buildings.Fluid.HeatExchangers.Examples.AirHeater_u.pipe ; mkfifo Buildings_8_Buildings.Fluid.HeatExchangers.Examples.AirHeater_u.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.HeatExchangers.Examples.AirHeater_u.pipe >> ../files/Buildings_8_Buildings.Fluid.HeatExchangers.Examples.AirHeater_u.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Fluid_HeatExchangers_Examples_AirHeater_u_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Fluid_HeatExchangers_Examples_AirHeater_u.fmu > Buildings_8_Buildings.Fluid.HeatExchangers.Examples.AirHeater_u.pipe 2>&1)