Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Validation.PrescribedOutlet.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.Validation.PrescribedOutlet,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Validation.PrescribedOutlet") translateModel(BuildingSystems.Fluid.HeatExchangers.Validation.PrescribedOutlet,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Validation.PrescribedOutlet") [: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.7582/0.7582, allocations: 141.8 MB / 149.1 MB, free: 15.3 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.001142/0.001142, allocations: 179.4 kB / 182 MB, free: 11.67 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.387/1.387, allocations: 221.3 MB / 436 MB, free: 4.27 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.001011/0.001011, allocations: 97.7 kB / 0.5071 GB, free: 18.83 MB / 378.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001735/0.001735, allocations: 267.6 kB / 0.5885 GB, free: 5.594 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 1.107e-05/1.11e-05, allocations: 2.906 kB / 0.6759 GB, free: 138.6 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1903/0.1903, allocations: 82.78 MB / 0.7567 GB, free: 86.52 MB / 0.5107 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.765/0.9554, allocations: 360.4 MB / 1.109 GB, free: 7.578 MB / 0.6825 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002605/0.9557, allocations: 81.83 kB / 1.109 GB, free: 7.539 MB / 0.6825 GB Notification: Performance of FrontEnd: time 3.903/4.859, allocations: 0.9542 GB / 2.063 GB, free: 110.5 MB / 0.7138 GB Notification: Performance of Transformations before backend: time 0.0001738/4.859, allocations: 53.06 kB / 2.063 GB, free: 110.5 MB / 0.7138 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 260 * Number of variables: 260 Notification: Performance of Generate backend data structure: time 0.00502/4.864, allocations: 1.887 MB / 2.065 GB, free: 109.5 MB / 0.7138 GB Notification: Performance of prepare preOptimizeDAE: time 5.411e-05/4.864, allocations: 9.688 kB / 2.065 GB, free: 109.5 MB / 0.7138 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004121/4.868, allocations: 0.6585 MB / 2.066 GB, free: 109.4 MB / 0.7138 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004982/4.873, allocations: 1.501 MB / 2.067 GB, free: 109 MB / 0.7138 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.597e-05/4.873, allocations: 36 kB / 2.067 GB, free: 109 MB / 0.7138 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001884/4.873, allocations: 67.84 kB / 2.067 GB, free: 109 MB / 0.7138 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001863/4.875, allocations: 0.8595 MB / 2.068 GB, free: 109 MB / 0.7138 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00188/4.877, allocations: 1.051 MB / 2.069 GB, free: 108.8 MB / 0.7138 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.141e-05/4.877, allocations: 3.031 kB / 2.069 GB, free: 108.8 MB / 0.7138 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.289e-05/4.877, allocations: 2.562 kB / 2.069 GB, free: 108.8 MB / 0.7138 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.042e-05/4.877, allocations: 29.09 kB / 2.069 GB, free: 108.8 MB / 0.7138 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009988/4.887, allocations: 6.478 MB / 2.075 GB, free: 105.1 MB / 0.7138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001958/4.889, allocations: 0.8683 MB / 2.076 GB, free: 105.1 MB / 0.7138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009362/4.89, allocations: 0.5001 MB / 2.077 GB, free: 105.1 MB / 0.7138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002045/4.892, allocations: 2.261 MB / 2.079 GB, free: 102.5 MB / 0.7138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001435/4.894, allocations: 0.6432 MB / 2.08 GB, free: 102.4 MB / 0.7138 GB Notification: Performance of pre-optimization done (n=100): time 6.833e-06/4.894, allocations: 4.875 kB / 2.08 GB, free: 102.4 MB / 0.7138 GB Notification: Performance of matching and sorting (n=100): time 0.004887/4.899, allocations: 1.373 MB / 2.081 GB, free: 102.2 MB / 0.7138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.413e-05/4.899, allocations: 149.2 kB / 2.081 GB, free: 102.1 MB / 0.7138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002119/4.901, allocations: 0.8914 MB / 2.082 GB, free: 101.9 MB / 0.7138 GB Notification: Performance of collectPreVariables (initialization): time 0.0001492/4.901, allocations: 29.55 kB / 2.082 GB, free: 101.9 MB / 0.7138 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005494/4.902, allocations: 450.2 kB / 2.082 GB, free: 101.7 MB / 0.7138 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003999/4.902, allocations: 321.9 kB / 2.083 GB, free: 101.4 MB / 0.7138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.961e-05/4.902, allocations: 6.875 kB / 2.083 GB, free: 101.4 MB / 0.7138 GB Notification: Performance of setup shared object (initialization): time 0.0001247/4.902, allocations: 343.4 kB / 2.083 GB, free: 101.1 MB / 0.7138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006398/4.903, allocations: 406.3 kB / 2.083 GB, free: 101.1 MB / 0.7138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009743/4.904, allocations: 0.6573 MB / 2.084 GB, free: 100.9 MB / 0.7138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00233/4.906, allocations: 0.7279 MB / 2.085 GB, free: 100.9 MB / 0.7138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.481e-06/4.906, allocations: 2.281 kB / 2.085 GB, free: 100.9 MB / 0.7138 GB Notification: Performance of matching and sorting (n=126) (initialization): time 0.003599/4.91, allocations: 1.477 MB / 2.086 GB, free: 100.7 MB / 0.7138 GB Notification: Performance of prepare postOptimizeDAE: time 0.0004653/4.91, allocations: 1.621 MB / 2.088 GB, free: 99.01 MB / 0.7138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.499e-05/4.91, allocations: 3.438 kB / 2.088 GB, free: 99.01 MB / 0.7138 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.54e-05/4.91, allocations: 7.438 kB / 2.088 GB, free: 99.01 MB / 0.7138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001358/4.912, allocations: 292.4 kB / 2.088 GB, free: 99.01 MB / 0.7138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.666e-05/4.912, allocations: 13.44 kB / 2.088 GB, free: 99.01 MB / 0.7138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001961/4.914, allocations: 214.6 kB / 2.088 GB, free: 98.97 MB / 0.7138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001678/4.914, allocations: 63.61 kB / 2.088 GB, free: 98.97 MB / 0.7138 GB Notification: Performance of prepare postOptimizeDAE: time 1.308e-05/4.914, allocations: 4.594 kB / 2.088 GB, free: 98.97 MB / 0.7138 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003361/4.917, allocations: 1.285 MB / 2.09 GB, free: 98.96 MB / 0.7138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.024e-05/4.917, allocations: 3.938 kB / 2.09 GB, free: 98.96 MB / 0.7138 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.976e-05/4.917, allocations: 8.25 kB / 2.09 GB, free: 98.96 MB / 0.7138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00139/4.919, allocations: 291.3 kB / 2.09 GB, free: 98.96 MB / 0.7138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.002e-05/4.919, allocations: 9.938 kB / 2.09 GB, free: 98.96 MB / 0.7138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002156/4.921, allocations: 216 kB / 2.09 GB, free: 98.92 MB / 0.7138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001882/4.921, allocations: 62.02 kB / 2.09 GB, free: 98.92 MB / 0.7138 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 21 ($whenCondition1,$whenCondition2,$whenCondition3,TSetHeat.a,TSetHeat.b,TSetHeat.last,$PRE.TSetHeat.nextEvent,TSetHeat.nextEvent,TSetHeat.nextEventScaled,TSetCool.a,TSetCool.b,TSetCool.last,$PRE.TSetCool.nextEvent,TSetCool.nextEvent,TSetCool.nextEventScaled,TSetCoolHeat.a,TSetCoolHeat.b,TSetCoolHeat.last,$PRE.TSetCoolHeat.nextEvent,TSetCoolHeat.nextEvent,TSetCoolHeat.nextEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (111): * Single equations (assignments): 108 * Array equations: 0 * Algorithm blocks: 3 * 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.0004866/4.922, allocations: 238.5 kB / 2.09 GB, free: 98.72 MB / 0.7138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004199/4.922, allocations: 154.8 kB / 2.091 GB, free: 98.64 MB / 0.7138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005256/4.927, allocations: 2.123 MB / 2.093 GB, free: 98.54 MB / 0.7138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.97e-05/4.927, allocations: 17.86 kB / 2.093 GB, free: 98.54 MB / 0.7138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.277e-06/4.927, allocations: 3.688 kB / 2.093 GB, free: 98.54 MB / 0.7138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.319e-05/4.927, allocations: 7.125 kB / 2.093 GB, free: 98.54 MB / 0.7138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007482/4.935, allocations: 3.215 MB / 2.096 GB, free: 98.14 MB / 0.7138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.319e-05/4.935, allocations: 7.172 kB / 2.096 GB, free: 98.14 MB / 0.7138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001313/4.936, allocations: 249.8 kB / 2.096 GB, free: 98.14 MB / 0.7138 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.04e-05/4.936, allocations: 10.44 kB / 2.096 GB, free: 98.14 MB / 0.7138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000109/4.936, allocations: 28.09 kB / 2.096 GB, free: 98.14 MB / 0.7138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.247e-06/4.936, allocations: 7.812 kB / 2.096 GB, free: 98.14 MB / 0.7138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.781e-06/4.936, allocations: 0 / 2.096 GB, free: 98.14 MB / 0.7138 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005335/4.942, allocations: 2.673 MB / 2.099 GB, free: 97.73 MB / 0.7138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001234/4.943, allocations: 408 kB / 2.099 GB, free: 97.54 MB / 0.7138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000264/4.943, allocations: 14.94 kB / 2.099 GB, free: 97.54 MB / 0.7138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001423/4.945, allocations: 158.8 kB / 2.099 GB, free: 97.54 MB / 0.7138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001911/4.945, allocations: 77.62 kB / 2.099 GB, free: 97.54 MB / 0.7138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001448/4.945, allocations: 57.62 kB / 2.099 GB, free: 97.54 MB / 0.7138 GB Notification: Performance of sort global known variables: time 0.001263/4.946, allocations: 0.6747 MB / 2.1 GB, free: 97.43 MB / 0.7138 GB Notification: Performance of remove unused functions: time 0.003725/4.95, allocations: 0.8815 MB / 2.101 GB, free: 97.3 MB / 0.7138 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (heaHigPowOut.T,cooLimPowOut.T,heaCooUnlOut.T,heaHigPowIn.T,cooLimPowIn.T,heaCooUnlIn.T) * Number of discrete variables: 18 ($whenCondition1,$whenCondition2,$whenCondition3,TSetHeat.a,TSetHeat.b,TSetHeat.last,TSetHeat.nextEvent,TSetHeat.nextEventScaled,TSetCool.a,TSetCool.b,TSetCool.last,TSetCool.nextEvent,TSetCool.nextEventScaled,TSetCoolHeat.a,TSetCoolHeat.b,TSetCoolHeat.last,TSetCoolHeat.nextEvent,TSetCoolHeat.nextEventScaled) * Number of discrete states: 18 (TSetCoolHeat.nextEvent,TSetCoolHeat.last,TSetCoolHeat.nextEventScaled,TSetCoolHeat.b,TSetCoolHeat.a,$whenCondition3,TSetCool.nextEvent,TSetCool.last,TSetCool.nextEventScaled,TSetCool.b,TSetCool.a,$whenCondition2,TSetHeat.nextEvent,TSetHeat.last,TSetHeat.nextEventScaled,TSetHeat.b,TSetHeat.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (104): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 19 * 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 Backend phase and start with SimCode phase: time 0.002556/4.953, allocations: 0.9924 MB / 2.102 GB, free: 97.06 MB / 0.7138 GB Notification: Performance of simCode: created initialization part: time 0.00348/4.956, allocations: 1.927 MB / 2.104 GB, free: 96.84 MB / 0.7138 GB Notification: Performance of simCode: created event and clocks part: time 4.909e-06/4.956, allocations: 0 / 2.104 GB, free: 96.84 MB / 0.7138 GB Notification: Performance of simCode: created simulation system equations: time 0.001077/4.957, allocations: 0.821 MB / 2.105 GB, free: 96.74 MB / 0.7138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002856/4.96, allocations: 0.5149 MB / 2.105 GB, free: 96.73 MB / 0.7138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00555/4.966, allocations: 2.512 MB / 2.107 GB, free: 96.13 MB / 0.7138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001402/4.967, allocations: 1.5 MB / 2.109 GB, free: 95.39 MB / 0.7138 GB Notification: Performance of SimCode: time 1.233e-06/4.967, allocations: 0 / 2.109 GB, free: 95.39 MB / 0.7138 GB Notification: Performance of Templates: time 0.08504/5.052, allocations: 37.43 MB / 2.145 GB, free: 75.48 MB / 0.7138 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Validation.PrescribedOutlet.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Validation.PrescribedOutlet.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Validation.PrescribedOutlet.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Validation.PrescribedOutlet.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Validation.PrescribedOutlet.sim & ./BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Validation.PrescribedOutlet -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Validation.PrescribedOutlet.pipe 2>&1)