Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData.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.Sources.Examples.MassFlowSource_WeatherData,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData") translateModel(BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData") [: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.772/0.772, allocations: 141.8 MB / 149.1 MB, free: 1.75 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.001224/0.001223, allocations: 173.3 kB / 181.9 MB, free: 1.219 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.427/1.427, allocations: 221.4 MB / 436 MB, free: 6.094 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.001195/0.001195, allocations: 92.59 kB / 0.507 GB, free: 2.773 MB / 410.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001758/0.001758, allocations: 271.3 kB / 0.5885 GB, free: 47.75 MB / 410.9 MB Notification: Performance of FrontEnd - loaded program: time 1.025e-05/1.05e-05, allocations: 1.781 kB / 0.6759 GB, free: 59.91 MB / 442.9 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1901/0.1901, allocations: 82.77 MB / 0.7567 GB, free: 1.199 MB / 442.9 MB Notification: Performance of FrontEnd - scodeFlatten: time 3.898/4.088, allocations: 1.866 GB / 2.623 GB, free: 114.2 MB / 0.6982 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002364/4.088, allocations: 91.61 kB / 2.623 GB, free: 114.1 MB / 0.6982 GB Notification: Performance of FrontEnd: time 1.675/5.764, allocations: 410.3 MB / 3.024 GB, free: 138.4 MB / 0.6982 GB Notification: Performance of Transformations before backend: time 0.0001771/5.764, allocations: 42.34 kB / 3.024 GB, free: 138.4 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: 333 * Number of variables: 333 Notification: Performance of Generate backend data structure: time 0.004799/5.769, allocations: 1.654 MB / 3.025 GB, free: 137.6 MB / 0.6982 GB Notification: Performance of prepare preOptimizeDAE: time 4.616e-05/5.769, allocations: 7.531 kB / 3.025 GB, free: 137.6 MB / 0.6982 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003249/5.772, allocations: 423.2 kB / 3.026 GB, free: 137.5 MB / 0.6982 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003318/5.775, allocations: 1.169 MB / 3.027 GB, free: 137.3 MB / 0.6982 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.94e-05/5.775, allocations: 42.03 kB / 3.027 GB, free: 137.3 MB / 0.6982 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002825/5.776, allocations: 76.25 kB / 3.027 GB, free: 137.3 MB / 0.6982 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002806/5.778, allocations: 1.41 MB / 3.028 GB, free: 137.3 MB / 0.6982 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002092/5.781, allocations: 1.218 MB / 3.03 GB, free: 137.1 MB / 0.6982 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.913e-05/5.781, allocations: 5.484 kB / 3.03 GB, free: 137.1 MB / 0.6982 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001115/5.781, allocations: 3.594 kB / 3.03 GB, free: 137.1 MB / 0.6982 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.899e-05/5.781, allocations: 31.38 kB / 3.03 GB, free: 137.1 MB / 0.6982 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006482/5.787, allocations: 4.676 MB / 3.034 GB, free: 135.1 MB / 0.6982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00135/5.789, allocations: 1.159 MB / 3.035 GB, free: 134.9 MB / 0.6982 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005456/5.789, allocations: 429.1 kB / 3.036 GB, free: 134.9 MB / 0.6982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006893/5.79, allocations: 0.4991 MB / 3.036 GB, free: 134.4 MB / 0.6982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000777/5.791, allocations: 0.5956 MB / 3.037 GB, free: 134.4 MB / 0.6982 GB Notification: Performance of pre-optimization done (n=98): time 3.396e-06/5.791, allocations: 0 / 3.037 GB, free: 134.4 MB / 0.6982 GB Notification: Performance of matching and sorting (n=98): time 0.00301/5.794, allocations: 1.144 MB / 3.038 GB, free: 134.2 MB / 0.6982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.952e-05/5.794, allocations: 244.1 kB / 3.038 GB, free: 134 MB / 0.6982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008009/5.795, allocations: 0.6192 MB / 3.039 GB, free: 133.8 MB / 0.6982 GB Notification: Performance of collectPreVariables (initialization): time 7.97e-05/5.795, allocations: 28.7 kB / 3.039 GB, free: 133.8 MB / 0.6982 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003223/5.795, allocations: 471.7 kB / 3.039 GB, free: 133.6 MB / 0.6982 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002379/5.795, allocations: 316.8 kB / 3.04 GB, free: 133.4 MB / 0.6982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.619e-05/5.795, allocations: 0 / 3.04 GB, free: 133.4 MB / 0.6982 GB Notification: Performance of setup shared object (initialization): time 8.597e-05/5.795, allocations: 339.6 kB / 3.04 GB, free: 133.1 MB / 0.6982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004528/5.796, allocations: 332.9 kB / 3.04 GB, free: 133.1 MB / 0.6982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005514/5.796, allocations: 0.5135 MB / 3.041 GB, free: 132.9 MB / 0.6982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00105/5.798, allocations: 0.5086 MB / 3.041 GB, free: 132.9 MB / 0.6982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.178e-06/5.798, allocations: 0 / 3.041 GB, free: 132.9 MB / 0.6982 GB Notification: Performance of matching and sorting (n=112) (initialization): time 0.002298/5.8, allocations: 1.144 MB / 3.042 GB, free: 132.8 MB / 0.6982 GB Notification: Performance of prepare postOptimizeDAE: time 1.476e-05/5.8, allocations: 8.734 kB / 3.042 GB, free: 132.8 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.806e-06/5.8, allocations: 3.719 kB / 3.042 GB, free: 132.8 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005866/5.8, allocations: 85.36 kB / 3.042 GB, free: 132.8 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001053/5.802, allocations: 228.9 kB / 3.043 GB, free: 132.8 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001682/5.803, allocations: 1.479 MB / 3.044 GB, free: 131.6 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009872/5.804, allocations: 108.2 kB / 3.044 GB, free: 131.6 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.403e-05/5.804, allocations: 36.67 kB / 3.044 GB, free: 131.6 MB / 0.6982 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,$PRE.weaDat.conTimMin.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTim.tNext) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (110): * Single equations (assignments): 109 * Array equations: 0 * Algorithm blocks: 0 * 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: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0002207/5.805, allocations: 131 kB / 3.044 GB, free: 131.5 MB / 0.6982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001626/5.805, allocations: 102.6 kB / 3.044 GB, free: 131.4 MB / 0.6982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00308/5.808, allocations: 1.406 MB / 3.046 GB, free: 131.3 MB / 0.6982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.798e-06/5.808, allocations: 12.88 kB / 3.046 GB, free: 131.3 MB / 0.6982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.226e-06/5.808, allocations: 0 / 3.046 GB, free: 131.3 MB / 0.6982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.155e-05/5.808, allocations: 7.734 kB / 3.046 GB, free: 131.3 MB / 0.6982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004388/5.812, allocations: 2.57 MB / 3.048 GB, free: 131 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.648e-06/5.812, allocations: 3.656 kB / 3.048 GB, free: 131 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001046/5.813, allocations: 223.8 kB / 3.049 GB, free: 131 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005125/5.814, allocations: 83.8 kB / 3.049 GB, free: 131 MB / 0.6982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.946e-05/5.814, allocations: 14.5 kB / 3.049 GB, free: 131 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001537/5.815, allocations: 1.493 MB / 3.05 GB, free: 129.8 MB / 0.6982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.996e-06/5.815, allocations: 0 / 3.05 GB, free: 129.8 MB / 0.6982 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00244/5.818, allocations: 1.26 MB / 3.051 GB, free: 129.5 MB / 0.6982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005727/5.819, allocations: 360.8 kB / 3.052 GB, free: 129.4 MB / 0.6982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000166/5.819, allocations: 1.625 kB / 3.052 GB, free: 129.4 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009108/5.82, allocations: 84.56 kB / 3.052 GB, free: 129.4 MB / 0.6982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001324/5.82, allocations: 64.61 kB / 3.052 GB, free: 129.4 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001056/5.82, allocations: 55.22 kB / 3.052 GB, free: 129.4 MB / 0.6982 GB Notification: Performance of sort global known variables: time 0.0006175/5.82, allocations: 495.4 kB / 3.052 GB, free: 129.3 MB / 0.6982 GB Notification: Performance of remove unused functions: time 0.001849/5.822, allocations: 0.5572 MB / 3.053 GB, free: 129.2 MB / 0.6982 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition2,$whenCondition1,weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Number of discrete states: 2 (weaDat.conTim.tNext,weaDat.conTimMin.tNext) * Top-level inputs: 0 Notification: Strong component statistics for simulation (109): * Single equations (assignments): 106 * 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: 0 * Non-linear torn systems: 1 {1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.002764/5.825, allocations: 1.977 MB / 3.055 GB, free: 128.8 MB / 0.6982 GB Notification: Performance of simCode: created initialization part: time 0.001571/5.827, allocations: 0.9898 MB / 3.056 GB, free: 128.6 MB / 0.6982 GB Notification: Performance of simCode: created event and clocks part: time 4.679e-06/5.827, allocations: 3.406 kB / 3.056 GB, free: 128.6 MB / 0.6982 GB Notification: Performance of simCode: created simulation system equations: time 0.0007885/5.828, allocations: 0.6033 MB / 3.056 GB, free: 128.5 MB / 0.6982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001599/5.829, allocations: 357.1 kB / 3.057 GB, free: 128.5 MB / 0.6982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004521/5.834, allocations: 1.873 MB / 3.059 GB, free: 128.1 MB / 0.6982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001009/5.835, allocations: 1.353 MB / 3.06 GB, free: 127.4 MB / 0.6982 GB Notification: Performance of SimCode: time 1.302e-06/5.835, allocations: 0 / 3.06 GB, free: 127.4 MB / 0.6982 GB Notification: Performance of Templates: time 0.04665/5.881, allocations: 29.63 MB / 3.089 GB, free: 126.5 MB / 0.6982 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData.sim & ./BuildingSystems_BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe 2>&1)