Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.HeaterCooler_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.Interfaces.Examples.HeaterCooler_u,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.HeaterCooler_u") translateModel(BuildingSystems.Fluid.Interfaces.Examples.HeaterCooler_u,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.HeaterCooler_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.8057/0.8057, allocations: 141.8 MB / 149.1 MB, free: 3.668 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.001124/0.001124, allocations: 179.4 kB / 181.9 MB, free: 15.43 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.463/1.463, allocations: 221.3 MB / 436 MB, free: 8.621 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.0009707/0.0009708, allocations: 92.14 kB / 0.507 GB, free: 24.24 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001825/0.001825, allocations: 266.1 kB / 0.5884 GB, free: 11.64 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 1.044e-05/1.047e-05, allocations: 4 kB / 0.6759 GB, free: 2.008 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5091/0.5092, allocations: 82.76 MB / 0.7567 GB, free: 112.3 MB / 0.5263 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.798/1.307, allocations: 380.6 MB / 1.128 GB, free: 1.238 MB / 0.6513 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002725/1.308, allocations: 92.27 kB / 1.128 GB, free: 1.195 MB / 0.6513 GB Notification: Performance of FrontEnd: time 11.46/12.76, allocations: 2.792 GB / 3.921 GB, free: 39.14 MB / 0.8544 GB Notification: Performance of Transformations before backend: time 0.001134/12.76, allocations: 167.8 kB / 3.921 GB, free: 39.12 MB / 0.8544 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1035 * Number of variables: 1035 Notification: Performance of Generate backend data structure: time 0.02147/12.79, allocations: 5.94 MB / 3.927 GB, free: 36.27 MB / 0.8544 GB Notification: Performance of prepare preOptimizeDAE: time 4.894e-05/12.79, allocations: 7.562 kB / 3.927 GB, free: 36.27 MB / 0.8544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005234/12.79, allocations: 0.782 MB / 3.928 GB, free: 35.89 MB / 0.8544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1631/12.95, allocations: 60.88 MB / 3.987 GB, free: 32.79 MB / 0.8544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003261/12.95, allocations: 130.5 kB / 3.987 GB, free: 32.79 MB / 0.8544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001671/12.96, allocations: 250.3 kB / 3.987 GB, free: 32.79 MB / 0.8544 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008071/12.96, allocations: 2.542 MB / 3.99 GB, free: 32.77 MB / 0.8544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01021/12.97, allocations: 3.616 MB / 3.993 GB, free: 32.01 MB / 0.8544 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001253/12.97, allocations: 20.86 kB / 3.993 GB, free: 32 MB / 0.8544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004414/12.98, allocations: 8.719 kB / 3.993 GB, free: 32 MB / 0.8544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001291/12.98, allocations: 123.2 kB / 3.994 GB, free: 32 MB / 0.8544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03112/13.01, allocations: 26.06 MB / 4.019 GB, free: 15.89 MB / 0.8544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001991/13.01, allocations: 1.089 MB / 4.02 GB, free: 15.86 MB / 0.8544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001669/13.01, allocations: 1.104 MB / 4.021 GB, free: 15.84 MB / 0.8544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002991/13.01, allocations: 3.937 MB / 4.025 GB, free: 11.43 MB / 0.8544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.14e-05/13.01, allocations: 63.72 kB / 4.025 GB, free: 11.39 MB / 0.8544 GB Notification: Performance of pre-optimization done (n=225): time 6.152e-06/13.01, allocations: 384 / 4.025 GB, free: 11.39 MB / 0.8544 GB Notification: Performance of matching and sorting (n=225): time 0.008936/13.02, allocations: 2.975 MB / 4.028 GB, free: 10.99 MB / 0.8544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.178e-05/13.02, allocations: 72.66 kB / 4.028 GB, free: 10.93 MB / 0.8544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006272/13.03, allocations: 3.279 MB / 4.031 GB, free: 10.63 MB / 0.8544 GB Notification: Performance of collectPreVariables (initialization): time 0.0006736/13.03, allocations: 33.27 kB / 4.031 GB, free: 10.6 MB / 0.8544 GB Notification: Performance of collectInitialEqns (initialization): time 0.001459/13.03, allocations: 1.705 MB / 4.033 GB, free: 9.707 MB / 0.8544 GB Notification: Performance of collectInitialBindings (initialization): time 0.001368/13.03, allocations: 0.7576 MB / 4.034 GB, free: 9.199 MB / 0.8544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001042/13.03, allocations: 0 / 4.034 GB, free: 9.199 MB / 0.8544 GB Notification: Performance of setup shared object (initialization): time 0.0001384/13.03, allocations: 409.9 kB / 4.034 GB, free: 8.895 MB / 0.8544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001116/13.03, allocations: 0.7392 MB / 4.035 GB, free: 8.887 MB / 0.8544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001639/13.04, allocations: 1.714 MB / 4.036 GB, free: 7.715 MB / 0.8544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003782/13.04, allocations: 1.413 MB / 4.038 GB, free: 7.664 MB / 0.8544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.382e-05/13.04, allocations: 4.938 kB / 4.038 GB, free: 7.664 MB / 0.8544 GB Notification: Performance of matching and sorting (n=341) (initialization): time 0.009199/13.05, allocations: 3.546 MB / 4.041 GB, free: 7.188 MB / 0.8544 GB Notification: Performance of prepare postOptimizeDAE: time 0.003719/13.05, allocations: 10.29 MB / 4.051 GB, free: 12.41 MB / 0.87 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.382e-05/13.05, allocations: 22.03 kB / 4.051 GB, free: 12.41 MB / 0.87 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008712/13.05, allocations: 386.7 kB / 4.052 GB, free: 12.38 MB / 0.87 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002046/13.06, allocations: 0.5135 MB / 4.052 GB, free: 12.34 MB / 0.87 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002481/13.06, allocations: 2.847 MB / 4.055 GB, free: 10.23 MB / 0.87 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006492/13.06, allocations: 0.4962 MB / 4.055 GB, free: 10.09 MB / 0.87 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005617/13.06, allocations: 137 kB / 4.056 GB, free: 10.09 MB / 0.87 GB Notification: Performance of prepare postOptimizeDAE: time 1.365e-05/13.06, allocations: 6.375 kB / 4.056 GB, free: 10.09 MB / 0.87 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007286/13.07, allocations: 2.827 MB / 4.058 GB, free: 9.891 MB / 0.87 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.709e-05/13.07, allocations: 24.81 kB / 4.058 GB, free: 9.891 MB / 0.87 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001041/13.07, allocations: 399.2 kB / 4.059 GB, free: 9.852 MB / 0.87 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001777/13.07, allocations: 0.5155 MB / 4.059 GB, free: 9.816 MB / 0.87 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009068/13.08, allocations: 7.308 MB / 4.066 GB, free: 4.617 MB / 0.87 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006676/13.09, allocations: 472 kB / 4.067 GB, free: 4.504 MB / 0.87 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000769/13.09, allocations: 124.5 kB / 4.067 GB, free: 4.504 MB / 0.87 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 97 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (291): * Single equations (assignments): 287 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 14,1 11,1 14,1 11} Notification: Performance of prepare postOptimizeDAE: time 0.0009434/13.09, allocations: 177.8 kB / 4.067 GB, free: 4.352 MB / 0.87 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002003/13.09, allocations: 0.5025 MB / 4.068 GB, free: 4.09 MB / 0.87 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01373/13.11, allocations: 4.157 MB / 4.072 GB, free: 3.664 MB / 0.87 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001198/13.11, allocations: 35.61 kB / 4.072 GB, free: 3.664 MB / 0.87 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.705e-05/13.11, allocations: 1.219 kB / 4.072 GB, free: 3.664 MB / 0.87 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00716/13.12, allocations: 2.747 MB / 4.074 GB, free: 3.43 MB / 0.87 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02685/13.14, allocations: 8.157 MB / 4.082 GB, free: 17.91 MB / 0.8857 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.7e-05/13.14, allocations: 3.25 kB / 4.082 GB, free: 17.91 MB / 0.8857 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001871/13.14, allocations: 384.4 kB / 4.083 GB, free: 17.9 MB / 0.8857 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005612/13.15, allocations: 226.9 kB / 4.083 GB, free: 17.86 MB / 0.8857 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003483/13.15, allocations: 40.92 kB / 4.083 GB, free: 17.86 MB / 0.8857 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002333/13.15, allocations: 2.525 MB / 4.085 GB, free: 15.77 MB / 0.8857 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.029e-06/13.15, allocations: 0 / 4.085 GB, free: 15.77 MB / 0.8857 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01219/13.16, allocations: 4.842 MB / 4.09 GB, free: 14.99 MB / 0.8857 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004826/13.16, allocations: 0.9697 MB / 4.091 GB, free: 14.6 MB / 0.8857 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002571/13.17, allocations: 8.141 kB / 4.091 GB, free: 14.6 MB / 0.8857 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.006888/13.17, allocations: 399.5 kB / 4.092 GB, free: 14.57 MB / 0.8857 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004044/13.17, allocations: 144.1 kB / 4.092 GB, free: 14.56 MB / 0.8857 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006021/13.18, allocations: 114.7 kB / 4.092 GB, free: 14.56 MB / 0.8857 GB Notification: Performance of sort global known variables: time 0.008793/13.18, allocations: 2.434 MB / 4.094 GB, free: 14.38 MB / 0.8857 GB Notification: Performance of remove unused functions: time 0.02314/13.21, allocations: 3.417 MB / 4.098 GB, free: 13.84 MB / 0.8857 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 10 (hea1.vol.dynBal.U,hea2.vol.dynBal.U,hea3.vol.dynBal.U,hea4.vol.dynBal.U,mix1.dynBal.U,hea5.vol.dynBal.U,hea6.vol.dynBal.U,hea7.vol.dynBal.U,hea8.vol.dynBal.U,mix2.dynBal.U) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (227): * Single equations (assignments): 189 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 34 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 9,1 7,1 9,1 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.009868/13.22, allocations: 3.458 MB / 4.101 GB, free: 12.17 MB / 0.8857 GB Notification: Performance of simCode: created initialization part: time 0.01377/13.23, allocations: 4.248 MB / 4.105 GB, free: 11.52 MB / 0.8857 GB Notification: Performance of simCode: created event and clocks part: time 2.37e-05/13.23, allocations: 7.812 kB / 4.105 GB, free: 11.52 MB / 0.8857 GB Notification: Performance of simCode: created simulation system equations: time 0.004048/13.24, allocations: 1.252 MB / 4.106 GB, free: 11.46 MB / 0.8857 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01919/13.25, allocations: 2.544 MB / 4.109 GB, free: 11.26 MB / 0.8857 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02738/13.28, allocations: 7.294 MB / 4.116 GB, free: 9.09 MB / 0.8857 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008202/13.29, allocations: 3.462 MB / 4.119 GB, free: 8.184 MB / 0.8857 GB Notification: Performance of SimCode: time 2.975e-06/13.29, allocations: 0 / 4.119 GB, free: 8.184 MB / 0.8857 GB Notification: Performance of Templates: time 0.8822/14.17, allocations: 123.3 MB / 4.24 GB, free: 123.9 MB / 0.9013 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.HeaterCooler_u.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.HeaterCooler_u.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.HeaterCooler_u.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.HeaterCooler_u.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.HeaterCooler_u.sim & ./BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.HeaterCooler_u -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.HeaterCooler_u.pipe 2>&1)