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: translateModel(BuildingSystems.Fluid.HeatExchangers.Examples.AirHeater_u,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.AirHeater_u") translateModel(BuildingSystems.Fluid.HeatExchangers.Examples.AirHeater_u,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.AirHeater_u") [: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.8123/0.8123, allocations: 141.8 MB / 149.1 MB, free: 4.008 MB / 122.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001148/0.001148, allocations: 183.4 kB / 181.9 MB, free: 15.74 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.491/1.491, allocations: 221.4 MB / 436 MB, free: 8.879 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.0009799/0.0009799, allocations: 98.38 kB / 0.507 GB, free: 24.2 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001855/0.001856, allocations: 280.3 kB / 0.5884 GB, free: 11.92 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 1.297e-05/1.311e-05, allocations: 7.938 kB / 0.6759 GB, free: 2.281 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4366/0.4366, allocations: 82.76 MB / 0.7567 GB, free: 112.5 MB / 0.5263 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.965/4.402, allocations: 1.913 GB / 2.67 GB, free: 162.1 MB / 0.6982 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003406/4.402, allocations: 87.89 kB / 2.67 GB, free: 162 MB / 0.6982 GB Notification: Performance of FrontEnd: time 7.651/12.05, allocations: 2.003 GB / 4.673 GB, free: 42.98 MB / 0.7294 GB Notification: Performance of Transformations before backend: time 0.000472/12.05, allocations: 66.55 kB / 4.673 GB, free: 42.93 MB / 0.7294 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 0.009528/12.06, allocations: 2.565 MB / 4.676 GB, free: 40.33 MB / 0.7294 GB Notification: Performance of prepare preOptimizeDAE: time 4.764e-05/12.06, allocations: 9.281 kB / 4.676 GB, free: 40.32 MB / 0.7294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00686/12.07, allocations: 0.85 MB / 4.677 GB, free: 39.5 MB / 0.7294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008347/12.08, allocations: 2.364 MB / 4.679 GB, free: 37.14 MB / 0.7294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001044/12.08, allocations: 52.45 kB / 4.679 GB, free: 37.09 MB / 0.7294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006957/12.08, allocations: 99.91 kB / 4.679 GB, free: 37 MB / 0.7294 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003705/12.08, allocations: 1.35 MB / 4.68 GB, free: 35.64 MB / 0.7294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003908/12.09, allocations: 1.532 MB / 4.682 GB, free: 34.05 MB / 0.7294 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.19e-05/12.09, allocations: 4.5 kB / 4.682 GB, free: 34.05 MB / 0.7294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002568/12.09, allocations: 0.5 kB / 4.682 GB, free: 34.05 MB / 0.7294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.707e-05/12.09, allocations: 63.56 kB / 4.682 GB, free: 33.98 MB / 0.7294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01877/12.11, allocations: 8.349 MB / 4.69 GB, free: 25.19 MB / 0.7294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001233/12.11, allocations: 0.697 MB / 4.691 GB, free: 24.49 MB / 0.7294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001081/12.11, allocations: 0.6314 MB / 4.691 GB, free: 23.86 MB / 0.7294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000648/12.11, allocations: 384.7 kB / 4.692 GB, free: 23.41 MB / 0.7294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001005/12.11, allocations: 0.6083 MB / 4.692 GB, free: 22.79 MB / 0.7294 GB Notification: Performance of pre-optimization done (n=104): time 4.268e-06/12.11, allocations: 0 / 4.692 GB, free: 22.79 MB / 0.7294 GB Notification: Performance of matching and sorting (n=107): time 0.008651/12.12, allocations: 3.031 MB / 4.695 GB, free: 19.69 MB / 0.7294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.574e-05/12.12, allocations: 115.8 kB / 4.695 GB, free: 19.55 MB / 0.7294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001772/12.12, allocations: 1.182 MB / 4.697 GB, free: 18.38 MB / 0.7294 GB Notification: Performance of collectPreVariables (initialization): time 9.753e-05/12.12, allocations: 29.64 kB / 4.697 GB, free: 18.34 MB / 0.7294 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004855/12.12, allocations: 0.6236 MB / 4.697 GB, free: 17.7 MB / 0.7294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002994/12.12, allocations: 362.6 kB / 4.698 GB, free: 17.34 MB / 0.7294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.971e-05/12.12, allocations: 0 / 4.698 GB, free: 17.34 MB / 0.7294 GB Notification: Performance of setup shared object (initialization): time 8.664e-05/12.12, allocations: 349.9 kB / 4.698 GB, free: 17 MB / 0.7294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005733/12.12, allocations: 442.5 kB / 4.698 GB, free: 16.56 MB / 0.7294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007311/12.12, allocations: 0.7678 MB / 4.699 GB, free: 15.65 MB / 0.7294 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.006453/12.13, allocations: 2.031 MB / 4.701 GB, free: 13.61 MB / 0.7294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.523e-06/12.13, allocations: 0 / 4.701 GB, free: 13.61 MB / 0.7294 GB Notification: Performance of matching and sorting (n=152) (initialization): time 0.003319/12.13, allocations: 1.438 MB / 4.702 GB, free: 12.16 MB / 0.7294 GB Notification: Performance of prepare postOptimizeDAE: time 0.00149/12.13, allocations: 2.91 MB / 4.705 GB, free: 9.02 MB / 0.7294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.355e-05/12.13, allocations: 8 kB / 4.705 GB, free: 9.012 MB / 0.7294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002881/12.13, allocations: 52.78 kB / 4.705 GB, free: 8.961 MB / 0.7294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001468/12.14, allocations: 279.6 kB / 4.706 GB, free: 8.688 MB / 0.7294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001739/12.14, allocations: 1.415 MB / 4.707 GB, free: 7.156 MB / 0.7294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00351/12.14, allocations: 143.7 kB / 4.707 GB, free: 7.016 MB / 0.7294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002762/12.14, allocations: 51.98 kB / 4.707 GB, free: 6.965 MB / 0.7294 GB Notification: Performance of prepare postOptimizeDAE: time 1.506e-05/12.14, allocations: 4 kB / 4.707 GB, free: 6.961 MB / 0.7294 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002767/12.14, allocations: 1.185 MB / 4.708 GB, free: 5.773 MB / 0.7294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.041e-05/12.14, allocations: 8.781 kB / 4.708 GB, free: 5.766 MB / 0.7294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001496/12.14, allocations: 52.69 kB / 4.708 GB, free: 5.711 MB / 0.7294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001243/12.15, allocations: 283.6 kB / 4.709 GB, free: 5.434 MB / 0.7294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001003/12.15, allocations: 1.423 MB / 4.71 GB, free: 3.898 MB / 0.7294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002336/12.15, allocations: 135.8 kB / 4.71 GB, free: 3.766 MB / 0.7294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001536/12.15, allocations: 59.98 kB / 4.71 GB, free: 3.707 MB / 0.7294 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.0003623/12.15, allocations: 140.5 kB / 4.71 GB, free: 3.562 MB / 0.7294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005688/12.15, allocations: 189.7 kB / 4.711 GB, free: 3.375 MB / 0.7294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002987/12.15, allocations: 1.299 MB / 4.712 GB, free: 2.059 MB / 0.7294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.406e-06/12.15, allocations: 8 kB / 4.712 GB, free: 2.051 MB / 0.7294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.905e-06/12.15, allocations: 8 kB / 4.712 GB, free: 2.043 MB / 0.7294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001686/12.16, allocations: 1.034 MB / 4.713 GB, free: 0.9922 MB / 0.7294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007775/12.16, allocations: 3.072 MB / 4.716 GB, free: 13.87 MB / 0.745 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.203e-06/12.16, allocations: 0 / 4.716 GB, free: 13.87 MB / 0.745 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001424/12.16, allocations: 235.9 kB / 4.716 GB, free: 13.64 MB / 0.745 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003033/12.16, allocations: 73.67 kB / 4.716 GB, free: 13.56 MB / 0.745 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001253/12.17, allocations: 23.3 kB / 4.716 GB, free: 13.54 MB / 0.745 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002699/12.17, allocations: 2.643 MB / 4.719 GB, free: 10.67 MB / 0.745 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.658e-06/12.17, allocations: 0 / 4.719 GB, free: 10.67 MB / 0.745 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004127/12.17, allocations: 2.06 MB / 4.721 GB, free: 8.555 MB / 0.745 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001404/12.17, allocations: 378.6 kB / 4.721 GB, free: 8.164 MB / 0.745 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006249/12.17, allocations: 8 kB / 4.721 GB, free: 8.156 MB / 0.745 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001963/12.18, allocations: 131.7 kB / 4.721 GB, free: 8.027 MB / 0.745 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001696/12.18, allocations: 68.81 kB / 4.721 GB, free: 7.961 MB / 0.745 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001182/12.18, allocations: 39.97 kB / 4.721 GB, free: 7.922 MB / 0.745 GB Notification: Performance of sort global known variables: time 0.002309/12.18, allocations: 0.8933 MB / 4.722 GB, free: 7.039 MB / 0.745 GB Notification: Performance of remove unused functions: time 0.006668/12.19, allocations: 1.136 MB / 4.723 GB, free: 5.902 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.007132/12.19, allocations: 3.61 MB / 4.727 GB, free: 2.258 MB / 0.745 GB Notification: Performance of simCode: created initialization part: time 0.004683/12.2, allocations: 2.064 MB / 4.729 GB, free: 168 kB / 0.745 GB Notification: Performance of simCode: created event and clocks part: time 1.039e-05/12.2, allocations: 0 / 4.729 GB, free: 168 kB / 0.745 GB Notification: Performance of simCode: created simulation system equations: time 0.4496/12.65, allocations: 0.7556 MB / 4.73 GB, free: 123.1 MB / 0.745 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005164/12.65, allocations: 0.8751 MB / 4.73 GB, free: 123.1 MB / 0.745 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008091/12.66, allocations: 3.213 MB / 4.734 GB, free: 122.4 MB / 0.745 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001625/12.66, allocations: 1.767 MB / 4.735 GB, free: 121.6 MB / 0.745 GB Notification: Performance of SimCode: time 1.443e-06/12.66, allocations: 3.75 kB / 4.735 GB, free: 121.6 MB / 0.745 GB Notification: Performance of Templates: time 0.1089/12.77, allocations: 57.99 MB / 4.792 GB, free: 120.7 MB / 0.745 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.AirHeater_u.makefile (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 & ./BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.AirHeater_u -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.AirHeater_u.pipe 2>&1)