Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.AirHeater_u.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Fluid.HeatExchangers.Examples.AirHeater_u,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_HeatExchangers_Examples_AirHeater_u",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.HeatExchangers.Examples.AirHeater_u,fileNamePrefix="BuildingSystems_BuildingSystems_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/BuildingSystems 2.0.0-master/package.mo): time 0.7209/0.7209, allocations: 141.8 MB / 149.1 MB, free: 13.08 MB / 138.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001131/0.001131, allocations: 180.8 kB / 181.9 MB, free: 9.762 MB / 154.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.342/1.342, allocations: 221.3 MB / 436 MB, free: 2.18 MB / 330.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001064/0.001064, allocations: 105.2 kB / 0.507 GB, free: 10.93 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001805/0.001804, allocations: 283.2 kB / 0.5884 GB, free: 7.766 MB / 474.9 MB Notification: Performance of FrontEnd - loaded program: time 0.1912/0.193, allocations: 89.64 MB / 0.676 GB, free: 14.04 MB / 0.5575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4087/0.6017, allocations: 82.77 MB / 0.7568 GB, free: 139 MB / 0.5575 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.448/4.049, allocations: 1.913 GB / 2.67 GB, free: 121.4 MB / 0.6982 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002291/4.05, allocations: 100.5 kB / 2.67 GB, free: 121.3 MB / 0.6982 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 377 * Number of variables: 377 Notification: Performance of Generate backend data structure: time 6.41/10.46, allocations: 2.006 GB / 4.676 GB, free: 4.148 MB / 0.745 GB Notification: Performance of prepare preOptimizeDAE: time 4.016e-05/10.46, allocations: 8 kB / 4.676 GB, free: 4.141 MB / 0.745 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006508/10.47, allocations: 0.8476 MB / 4.677 GB, free: 3.289 MB / 0.745 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008293/10.47, allocations: 2.362 MB / 4.679 GB, free: 0.8789 MB / 0.745 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001205/10.48, allocations: 51.98 kB / 4.679 GB, free: 0.8281 MB / 0.745 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006056/10.48, allocations: 107.9 kB / 4.679 GB, free: 0.7227 MB / 0.745 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.3257/10.8, allocations: 1.351 MB / 4.68 GB, free: 114.7 MB / 0.745 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002899/10.8, allocations: 1.537 MB / 4.682 GB, free: 114.5 MB / 0.745 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.002e-05/10.8, allocations: 0 / 4.682 GB, free: 114.5 MB / 0.745 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001445/10.8, allocations: 3.875 kB / 4.682 GB, free: 114.5 MB / 0.745 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.442e-05/10.8, allocations: 56.02 kB / 4.682 GB, free: 114.5 MB / 0.745 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01277/10.82, allocations: 8.339 MB / 4.69 GB, free: 110.7 MB / 0.745 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000973/10.82, allocations: 0.7001 MB / 4.691 GB, free: 110.7 MB / 0.745 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008398/10.82, allocations: 0.6207 MB / 4.691 GB, free: 110.6 MB / 0.745 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005643/10.82, allocations: 388.3 kB / 4.692 GB, free: 110.3 MB / 0.745 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008841/10.82, allocations: 0.6125 MB / 4.692 GB, free: 110.2 MB / 0.745 GB Notification: Performance of pre-optimization done (n=104): time 3.997e-06/10.82, allocations: 0 / 4.692 GB, free: 110.2 MB / 0.745 GB Notification: Performance of matching and sorting (n=107): time 0.008483/10.83, allocations: 3.022 MB / 4.695 GB, free: 109.5 MB / 0.745 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.081e-05/10.83, allocations: 120.1 kB / 4.695 GB, free: 109.4 MB / 0.745 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001923/10.83, allocations: 1.185 MB / 4.697 GB, free: 109.2 MB / 0.745 GB Notification: Performance of collectPreVariables (initialization): time 0.0001845/10.83, allocations: 28.67 kB / 4.697 GB, free: 109.2 MB / 0.745 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005827/10.83, allocations: 0.6148 MB / 4.697 GB, free: 109 MB / 0.745 GB Notification: Performance of collectInitialBindings (initialization): time 0.000435/10.83, allocations: 370.8 kB / 4.698 GB, free: 108.8 MB / 0.745 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.306e-05/10.83, allocations: 0 / 4.698 GB, free: 108.8 MB / 0.745 GB Notification: Performance of setup shared object (initialization): time 9.858e-05/10.83, allocations: 354.4 kB / 4.698 GB, free: 108.5 MB / 0.745 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006758/10.83, allocations: 437.7 kB / 4.698 GB, free: 108.5 MB / 0.745 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007995/10.83, allocations: 0.7719 MB / 4.699 GB, free: 108.1 MB / 0.745 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.007055/10.84, allocations: 2.035 MB / 4.701 GB, free: 107.9 MB / 0.745 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.984e-06/10.84, allocations: 3.312 kB / 4.701 GB, free: 107.9 MB / 0.745 GB Notification: Performance of matching and sorting (n=152) (initialization): time 0.002955/10.84, allocations: 1.434 MB / 4.703 GB, free: 107.8 MB / 0.745 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006188/10.84, allocations: 2.904 MB / 4.705 GB, free: 104.7 MB / 0.745 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.656e-05/10.84, allocations: 7.562 kB / 4.705 GB, free: 104.7 MB / 0.745 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001865/10.85, allocations: 43.53 kB / 4.705 GB, free: 104.7 MB / 0.745 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001354/10.85, allocations: 293.4 kB / 4.706 GB, free: 104.7 MB / 0.745 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001017/10.85, allocations: 1.42 MB / 4.707 GB, free: 103.5 MB / 0.745 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002528/10.85, allocations: 136.4 kB / 4.707 GB, free: 103.5 MB / 0.745 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001443/10.85, allocations: 54.58 kB / 4.707 GB, free: 103.5 MB / 0.745 GB Notification: Performance of prepare postOptimizeDAE: time 9.228e-06/10.85, allocations: 6.531 kB / 4.707 GB, free: 103.5 MB / 0.745 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002267/10.85, allocations: 1.188 MB / 4.708 GB, free: 103.4 MB / 0.745 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.257e-05/10.85, allocations: 10.22 kB / 4.708 GB, free: 103.4 MB / 0.745 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001234/10.85, allocations: 42.97 kB / 4.708 GB, free: 103.4 MB / 0.745 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001263/10.85, allocations: 290 kB / 4.709 GB, free: 103.4 MB / 0.745 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00106/10.85, allocations: 1.426 MB / 4.71 GB, free: 102.2 MB / 0.745 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002216/10.86, allocations: 137.8 kB / 4.71 GB, free: 102.1 MB / 0.745 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001159/10.86, allocations: 52.59 kB / 4.71 GB, free: 102.1 MB / 0.745 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: 32 * 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 (147): * Single equations (assignments): 144 * 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: 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.0003512/10.86, allocations: 139.8 kB / 4.71 GB, free: 102 MB / 0.745 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002969/10.86, allocations: 188.8 kB / 4.711 GB, free: 101.9 MB / 0.745 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002646/10.86, allocations: 1.301 MB / 4.712 GB, free: 101.8 MB / 0.745 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.889e-06/10.86, allocations: 11.56 kB / 4.712 GB, free: 101.8 MB / 0.745 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.813e-06/10.86, allocations: 6.844 kB / 4.712 GB, free: 101.8 MB / 0.745 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001751/10.86, allocations: 1.042 MB / 4.713 GB, free: 101.7 MB / 0.745 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00585/10.87, allocations: 3.064 MB / 4.716 GB, free: 101.3 MB / 0.745 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.081e-06/10.87, allocations: 10.34 kB / 4.716 GB, free: 101.3 MB / 0.745 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00126/10.87, allocations: 233.8 kB / 4.716 GB, free: 101.3 MB / 0.745 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000235/10.87, allocations: 76.39 kB / 4.716 GB, free: 101.3 MB / 0.745 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.11e-05/10.87, allocations: 14.75 kB / 4.716 GB, free: 101.3 MB / 0.745 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001676/10.87, allocations: 2.643 MB / 4.719 GB, free: 98.93 MB / 0.745 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.689e-06/10.87, allocations: 3.938 kB / 4.719 GB, free: 98.93 MB / 0.745 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002961/10.87, allocations: 2.059 MB / 4.721 GB, free: 98.53 MB / 0.745 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004214/10.88, allocations: 3.286 MB / 4.724 GB, free: 97.75 MB / 0.745 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009992/10.88, allocations: 378.9 kB / 4.724 GB, free: 97.56 MB / 0.745 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003/10.88, allocations: 11.62 kB / 4.724 GB, free: 97.56 MB / 0.745 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001512/10.88, allocations: 127.2 kB / 4.725 GB, free: 97.55 MB / 0.745 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001725/10.88, allocations: 68.61 kB / 4.725 GB, free: 97.55 MB / 0.745 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001139/10.88, allocations: 41.27 kB / 4.725 GB, free: 97.55 MB / 0.745 GB Notification: Performance of sort global known variables: time 0.001644/10.88, allocations: 0.8932 MB / 4.726 GB, free: 97.45 MB / 0.745 GB Notification: Performance of remove unused functions: time 0.008684/10.89, allocations: 1.961 MB / 4.727 GB, free: 97.44 MB / 0.745 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.s[1],mov.filter.s[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 (106): * Single equations (assignments): 102 * 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.006421/10.9, allocations: 3.625 MB / 4.731 GB, free: 96.19 MB / 0.745 GB Notification: Performance of simCode: created initialization part: time 0.003998/10.9, allocations: 2.068 MB / 4.733 GB, free: 95.9 MB / 0.745 GB Notification: Performance of simCode: created event and clocks part: time 8.005e-06/10.9, allocations: 0 / 4.733 GB, free: 95.9 MB / 0.745 GB Notification: Performance of simCode: created simulation system equations: time 0.001069/10.9, allocations: 0.7499 MB / 4.734 GB, free: 95.7 MB / 0.745 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005035/10.91, allocations: 0.8877 MB / 4.735 GB, free: 95.69 MB / 0.745 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008877/10.92, allocations: 3.218 MB / 4.738 GB, free: 94.95 MB / 0.745 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001693/10.92, allocations: 1.793 MB / 4.739 GB, free: 94.21 MB / 0.745 GB Notification: Performance of SimCode: time 1.082e-06/10.92, allocations: 0 / 4.739 GB, free: 94.21 MB / 0.745 GB (rm -f BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.AirHeater_u.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.AirHeater_u.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.AirHeater_u.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.AirHeater_u.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_HeatExchangers_Examples_AirHeater_u_fmu --startTime=0 --stopTime=172800 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_HeatExchangers_Examples_AirHeater_u.fmu > BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.AirHeater_u.pipe 2>&1)