Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.AirHeater_T.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_T,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.AirHeater_T") translateModel(BuildingSystems.Fluid.HeatExchangers.Examples.AirHeater_T,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.AirHeater_T") [: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.7837/0.7837, allocations: 141.8 MB / 149.1 MB, free: 3.672 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.001293/0.001293, allocations: 182.8 kB / 181.9 MB, free: 15.45 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.41/1.41, allocations: 221.4 MB / 436 MB, free: 8.691 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.001025/0.001025, allocations: 100.2 kB / 0.507 GB, free: 24.21 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002111/0.00211, allocations: 273.8 kB / 0.5884 GB, free: 11.64 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 1.007e-05/1.04e-05, allocations: 3.938 kB / 0.6759 GB, free: 2.004 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.481/0.481, allocations: 82.76 MB / 0.7567 GB, free: 112.2 MB / 0.5263 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.155/4.636, allocations: 1.92 GB / 2.677 GB, free: 133.5 MB / 0.6982 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002536/4.636, allocations: 99.88 kB / 2.677 GB, free: 133.4 MB / 0.6982 GB Notification: Performance of FrontEnd: time 8.343/12.98, allocations: 2.091 GB / 4.768 GB, free: 80.14 MB / 0.745 GB Notification: Performance of Transformations before backend: time 0.0004782/12.98, allocations: 56.33 kB / 4.768 GB, free: 80.14 MB / 0.745 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 333 * Number of variables: 333 Notification: Performance of Generate backend data structure: time 0.009733/12.99, allocations: 2.404 MB / 4.77 GB, free: 79.21 MB / 0.745 GB Notification: Performance of prepare preOptimizeDAE: time 5.612e-05/12.99, allocations: 10.53 kB / 4.771 GB, free: 79.21 MB / 0.745 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006665/13, allocations: 0.8353 MB / 4.771 GB, free: 79.09 MB / 0.745 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009634/13.01, allocations: 2.223 MB / 4.773 GB, free: 78.72 MB / 0.745 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001425/13.01, allocations: 40.12 kB / 4.774 GB, free: 78.72 MB / 0.745 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007581/13.01, allocations: 89.66 kB / 4.774 GB, free: 78.71 MB / 0.745 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003709/13.01, allocations: 1.165 MB / 4.775 GB, free: 78.71 MB / 0.745 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004314/13.01, allocations: 1.353 MB / 4.776 GB, free: 78.49 MB / 0.745 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.452e-05/13.01, allocations: 3.75 kB / 4.776 GB, free: 78.49 MB / 0.745 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002882/13.02, allocations: 0 / 4.776 GB, free: 78.49 MB / 0.745 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.172e-05/13.02, allocations: 55.27 kB / 4.776 GB, free: 78.49 MB / 0.745 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01529/13.03, allocations: 7.621 MB / 4.784 GB, free: 74.52 MB / 0.745 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001103/13.03, allocations: 0.5788 MB / 4.784 GB, free: 74.5 MB / 0.745 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007936/13.03, allocations: 489.5 kB / 4.785 GB, free: 74.49 MB / 0.745 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001328/13.03, allocations: 0.9191 MB / 4.786 GB, free: 73.55 MB / 0.745 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008922/13.03, allocations: 0.498 MB / 4.786 GB, free: 73.49 MB / 0.745 GB Notification: Performance of pre-optimization done (n=86): time 4.92e-06/13.03, allocations: 0 / 4.786 GB, free: 73.49 MB / 0.745 GB Notification: Performance of matching and sorting (n=86): time 0.004225/13.04, allocations: 1.14 MB / 4.787 GB, free: 73.34 MB / 0.745 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.238e-05/13.04, allocations: 111 kB / 4.787 GB, free: 73.21 MB / 0.745 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003311/13.04, allocations: 1.215 MB / 4.788 GB, free: 73.04 MB / 0.745 GB Notification: Performance of collectPreVariables (initialization): time 0.0002244/13.04, allocations: 30.09 kB / 4.788 GB, free: 73.01 MB / 0.745 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009731/13.04, allocations: 0.5921 MB / 4.789 GB, free: 72.77 MB / 0.745 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005133/13.04, allocations: 295.2 kB / 4.789 GB, free: 72.6 MB / 0.745 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.538e-05/13.04, allocations: 0 / 4.789 GB, free: 72.6 MB / 0.745 GB Notification: Performance of setup shared object (initialization): time 0.0001498/13.04, allocations: 351 kB / 4.79 GB, free: 72.29 MB / 0.745 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006916/13.05, allocations: 340 kB / 4.79 GB, free: 72.29 MB / 0.745 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009948/13.05, allocations: 0.7073 MB / 4.791 GB, free: 71.86 MB / 0.745 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00166/13.05, allocations: 0.542 MB / 4.791 GB, free: 71.85 MB / 0.745 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.268e-05/13.05, allocations: 0 / 4.791 GB, free: 71.85 MB / 0.745 GB Notification: Performance of matching and sorting (n=135) (initialization): time 0.003527/13.05, allocations: 1.251 MB / 4.792 GB, free: 71.71 MB / 0.745 GB Notification: Performance of prepare postOptimizeDAE: time 0.001174/13.05, allocations: 3.35 MB / 4.796 GB, free: 68.2 MB / 0.745 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.673e-05/13.05, allocations: 7.875 kB / 4.796 GB, free: 68.2 MB / 0.745 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.721e-05/13.05, allocations: 15.03 kB / 4.796 GB, free: 68.2 MB / 0.745 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001318/13.05, allocations: 272.1 kB / 4.796 GB, free: 68.2 MB / 0.745 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.616e-05/13.05, allocations: 23.77 kB / 4.796 GB, free: 68.2 MB / 0.745 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002411/13.06, allocations: 174.9 kB / 4.796 GB, free: 68.15 MB / 0.745 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002056/13.06, allocations: 57.42 kB / 4.796 GB, free: 68.15 MB / 0.745 GB Notification: Performance of prepare postOptimizeDAE: time 1.578e-05/13.06, allocations: 6.531 kB / 4.796 GB, free: 68.15 MB / 0.745 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002431/13.06, allocations: 1.01 MB / 4.797 GB, free: 68.14 MB / 0.745 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.021e-05/13.06, allocations: 6.844 kB / 4.797 GB, free: 68.14 MB / 0.745 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.281e-05/13.06, allocations: 18.78 kB / 4.797 GB, free: 68.14 MB / 0.745 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001136/13.06, allocations: 264.3 kB / 4.797 GB, free: 68.14 MB / 0.745 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.688e-05/13.06, allocations: 21.22 kB / 4.797 GB, free: 68.14 MB / 0.745 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002141/13.06, allocations: 158.5 kB / 4.798 GB, free: 68.1 MB / 0.745 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001531/13.06, allocations: 52.22 kB / 4.798 GB, free: 68.1 MB / 0.745 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * 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 (133): * Single equations (assignments): 131 * 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.0003686/13.06, allocations: 135.7 kB / 4.798 GB, free: 67.99 MB / 0.745 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006311/13.06, allocations: 178.8 kB / 4.798 GB, free: 67.9 MB / 0.745 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003164/13.07, allocations: 1.094 MB / 4.799 GB, free: 67.81 MB / 0.745 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.364e-05/13.07, allocations: 9.125 kB / 4.799 GB, free: 67.81 MB / 0.745 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.431e-05/13.07, allocations: 0 / 4.799 GB, free: 67.81 MB / 0.745 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00182/13.07, allocations: 1.164 MB / 4.8 GB, free: 67.35 MB / 0.745 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006997/13.08, allocations: 2.486 MB / 4.803 GB, free: 66.99 MB / 0.745 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.083e-06/13.08, allocations: 0 / 4.803 GB, free: 66.99 MB / 0.745 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001038/13.08, allocations: 186.9 kB / 4.803 GB, free: 66.99 MB / 0.745 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002752/13.08, allocations: 46.66 kB / 4.803 GB, free: 66.98 MB / 0.745 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.69e-05/13.08, allocations: 16.2 kB / 4.803 GB, free: 66.98 MB / 0.745 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00138/13.08, allocations: 1.37 MB / 4.804 GB, free: 65.79 MB / 0.745 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.859e-06/13.08, allocations: 3.656 kB / 4.804 GB, free: 65.79 MB / 0.745 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00323/13.08, allocations: 1.694 MB / 4.806 GB, free: 65.41 MB / 0.745 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001291/13.08, allocations: 347 kB / 4.806 GB, free: 65.22 MB / 0.745 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006291/13.08, allocations: 7.25 kB / 4.806 GB, free: 65.22 MB / 0.745 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001843/13.09, allocations: 118.5 kB / 4.806 GB, free: 65.21 MB / 0.745 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001618/13.09, allocations: 57.23 kB / 4.806 GB, free: 65.21 MB / 0.745 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001033/13.09, allocations: 34.45 kB / 4.806 GB, free: 65.21 MB / 0.745 GB Notification: Performance of sort global known variables: time 0.002369/13.09, allocations: 0.9107 MB / 4.807 GB, free: 65.1 MB / 0.745 GB Notification: Performance of remove unused functions: time 0.005963/13.09, allocations: 1.162 MB / 4.808 GB, free: 64.93 MB / 0.745 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 8 (vol.dynBal.U,vol.dynBal.m,vol.dynBal.mXi[1],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 (87): * Single equations (assignments): 84 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.007333/13.1, allocations: 3.682 MB / 4.812 GB, free: 63.65 MB / 0.745 GB Notification: Performance of simCode: created initialization part: time 0.003644/13.11, allocations: 1.503 MB / 4.813 GB, free: 63.56 MB / 0.745 GB Notification: Performance of simCode: created event and clocks part: time 1.097e-05/13.11, allocations: 3.125 kB / 4.813 GB, free: 63.56 MB / 0.745 GB Notification: Performance of simCode: created simulation system equations: time 0.001171/13.11, allocations: 0.5202 MB / 4.814 GB, free: 63.46 MB / 0.745 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004922/13.11, allocations: 0.7222 MB / 4.815 GB, free: 63.43 MB / 0.745 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01131/13.12, allocations: 2.975 MB / 4.818 GB, free: 62.74 MB / 0.745 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003074/13.13, allocations: 1.674 MB / 4.819 GB, free: 62.01 MB / 0.745 GB Notification: Performance of SimCode: time 1.824e-06/13.13, allocations: 0 / 4.819 GB, free: 62.01 MB / 0.745 GB Notification: Performance of Templates: time 0.09513/13.22, allocations: 51.47 MB / 4.869 GB, free: 59.6 MB / 0.745 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.AirHeater_T.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.AirHeater_T.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.AirHeater_T.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.AirHeater_T.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.AirHeater_T.sim & ./BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.AirHeater_T -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.AirHeater_T.pipe 2>&1)