Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_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.WaterHeater_u,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_u") translateModel(BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_u,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_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.7692/0.7692, allocations: 141.8 MB / 149.1 MB, free: 12.09 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.001265/0.001264, allocations: 181.9 kB / 182 MB, free: 8.863 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.525/1.525, allocations: 221.3 MB / 436 MB, free: 1.215 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.001109/0.001109, allocations: 89.17 kB / 0.507 GB, free: 10.13 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002076/0.002076, allocations: 282.8 kB / 0.5885 GB, free: 6.949 MB / 474.9 MB Notification: Performance of FrontEnd - loaded program: time 1.329e-05/1.332e-05, allocations: 7.938 kB / 0.6759 GB, free: 13.32 MB / 0.5575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5995/0.5995, allocations: 82.78 MB / 0.7567 GB, free: 138.1 MB / 0.5575 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.9199/1.519, allocations: 404.8 MB / 1.152 GB, free: 14.34 MB / 0.6982 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003072/1.52, allocations: 88.17 kB / 1.152 GB, free: 14.29 MB / 0.6982 GB Notification: Performance of FrontEnd: time 4.873/6.393, allocations: 1.149 GB / 2.301 GB, free: 66.43 MB / 0.7294 GB Notification: Performance of Transformations before backend: time 0.0004403/6.393, allocations: 51.11 kB / 2.301 GB, free: 66.43 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: 310 * Number of variables: 310 Notification: Performance of Generate backend data structure: time 0.007306/6.401, allocations: 2.137 MB / 2.303 GB, free: 65.51 MB / 0.7294 GB Notification: Performance of prepare preOptimizeDAE: time 5.634e-05/6.401, allocations: 14.45 kB / 2.303 GB, free: 65.51 MB / 0.7294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002788/6.403, allocations: 394 kB / 2.303 GB, free: 65.39 MB / 0.7294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008501/6.412, allocations: 2.449 MB / 2.306 GB, free: 65.03 MB / 0.7294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001154/6.412, allocations: 41.8 kB / 2.306 GB, free: 65.03 MB / 0.7294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005602/6.413, allocations: 87.19 kB / 2.306 GB, free: 65.02 MB / 0.7294 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002756/6.416, allocations: 0.8615 MB / 2.307 GB, free: 65.02 MB / 0.7294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002971/6.419, allocations: 1.154 MB / 2.308 GB, free: 64.77 MB / 0.7294 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.451e-05/6.419, allocations: 6.062 kB / 2.308 GB, free: 64.77 MB / 0.7294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001719/6.419, allocations: 0 / 2.308 GB, free: 64.77 MB / 0.7294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.363e-05/6.419, allocations: 58.14 kB / 2.308 GB, free: 64.76 MB / 0.7294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01299/6.432, allocations: 7.712 MB / 2.316 GB, free: 60.3 MB / 0.7294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007723/6.433, allocations: 473.6 kB / 2.316 GB, free: 60.27 MB / 0.7294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006075/6.433, allocations: 395.2 kB / 2.316 GB, free: 60.25 MB / 0.7294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005714/6.439, allocations: 2.515 MB / 2.319 GB, free: 58.98 MB / 0.7294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006639/6.44, allocations: 410.7 kB / 2.319 GB, free: 58.91 MB / 0.7294 GB Notification: Performance of pre-optimization done (n=70): time 3.577e-06/6.44, allocations: 0 / 2.319 GB, free: 58.91 MB / 0.7294 GB Notification: Performance of matching and sorting (n=70): time 0.002612/6.442, allocations: 0.8257 MB / 2.32 GB, free: 58.76 MB / 0.7294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.581e-05/6.442, allocations: 167.8 kB / 2.32 GB, free: 58.57 MB / 0.7294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002933/6.445, allocations: 1.18 MB / 2.321 GB, free: 58.41 MB / 0.7294 GB Notification: Performance of collectPreVariables (initialization): time 0.0001341/6.446, allocations: 29.45 kB / 2.321 GB, free: 58.38 MB / 0.7294 GB Notification: Performance of collectInitialEqns (initialization): time 0.000721/6.446, allocations: 0.5842 MB / 2.322 GB, free: 58.06 MB / 0.7294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003303/6.447, allocations: 235 kB / 2.322 GB, free: 57.91 MB / 0.7294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.101e-05/6.447, allocations: 0 / 2.322 GB, free: 57.91 MB / 0.7294 GB Notification: Performance of setup shared object (initialization): time 0.0001217/6.447, allocations: 350 kB / 2.322 GB, free: 57.61 MB / 0.7294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004549/6.447, allocations: 268.3 kB / 2.323 GB, free: 57.61 MB / 0.7294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006931/6.448, allocations: 0.6436 MB / 2.323 GB, free: 57.15 MB / 0.7294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001453/6.449, allocations: 476.8 kB / 2.324 GB, free: 57.14 MB / 0.7294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.284e-05/6.449, allocations: 3.719 kB / 2.324 GB, free: 57.14 MB / 0.7294 GB Notification: Performance of matching and sorting (n=124) (initialization): time 0.002769/6.452, allocations: 1.083 MB / 2.325 GB, free: 57.01 MB / 0.7294 GB Notification: Performance of prepare postOptimizeDAE: time 0.00116/6.453, allocations: 3.961 MB / 2.329 GB, free: 52.84 MB / 0.7294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.611e-05/6.453, allocations: 11.5 kB / 2.329 GB, free: 52.84 MB / 0.7294 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.645e-05/6.454, allocations: 18.25 kB / 2.329 GB, free: 52.84 MB / 0.7294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001054/6.455, allocations: 251.1 kB / 2.329 GB, free: 52.84 MB / 0.7294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.955e-05/6.455, allocations: 20.97 kB / 2.329 GB, free: 52.84 MB / 0.7294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001853/6.457, allocations: 153.3 kB / 2.329 GB, free: 52.79 MB / 0.7294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001411/6.457, allocations: 52.61 kB / 2.329 GB, free: 52.79 MB / 0.7294 GB Notification: Performance of prepare postOptimizeDAE: time 1.27e-05/6.457, allocations: 3.156 kB / 2.329 GB, free: 52.79 MB / 0.7294 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002123/6.459, allocations: 0.8651 MB / 2.33 GB, free: 52.78 MB / 0.7294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.543e-05/6.459, allocations: 9.656 kB / 2.33 GB, free: 52.78 MB / 0.7294 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.039e-05/6.459, allocations: 22.84 kB / 2.33 GB, free: 52.78 MB / 0.7294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009608/6.46, allocations: 247 kB / 2.33 GB, free: 52.78 MB / 0.7294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.851e-05/6.46, allocations: 27.52 kB / 2.33 GB, free: 52.78 MB / 0.7294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00175/6.462, allocations: 127.8 kB / 2.33 GB, free: 52.75 MB / 0.7294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001425/6.462, allocations: 49.62 kB / 2.331 GB, free: 52.75 MB / 0.7294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * 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 (122): * Single equations (assignments): 120 * 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.0003559/6.462, allocations: 146.5 kB / 2.331 GB, free: 52.63 MB / 0.7294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005771/6.463, allocations: 164.8 kB / 2.331 GB, free: 52.54 MB / 0.7294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002871/6.466, allocations: 1.051 MB / 2.332 GB, free: 52.45 MB / 0.7294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.012e-05/6.466, allocations: 7.781 kB / 2.332 GB, free: 52.45 MB / 0.7294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.303e-05/6.466, allocations: 4.062 kB / 2.332 GB, free: 52.45 MB / 0.7294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001468/6.467, allocations: 0.7041 MB / 2.333 GB, free: 52.37 MB / 0.7294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005962/6.473, allocations: 2.398 MB / 2.335 GB, free: 51.84 MB / 0.7294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.157e-06/6.473, allocations: 0 / 2.335 GB, free: 51.84 MB / 0.7294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008427/6.474, allocations: 172.1 kB / 2.335 GB, free: 51.84 MB / 0.7294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002031/6.474, allocations: 28.92 kB / 2.335 GB, free: 51.84 MB / 0.7294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.685e-05/6.474, allocations: 13.2 kB / 2.335 GB, free: 51.84 MB / 0.7294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009745/6.475, allocations: 1.262 MB / 2.336 GB, free: 50.64 MB / 0.7294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.479e-06/6.475, allocations: 5.125 kB / 2.336 GB, free: 50.64 MB / 0.7294 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002785/6.478, allocations: 1.534 MB / 2.338 GB, free: 50.18 MB / 0.7294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001115/6.479, allocations: 358.6 kB / 2.338 GB, free: 49.99 MB / 0.7294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005445/6.48, allocations: 6.531 kB / 2.338 GB, free: 49.99 MB / 0.7294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001471/6.481, allocations: 84.66 kB / 2.338 GB, free: 49.98 MB / 0.7294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001365/6.481, allocations: 55.69 kB / 2.338 GB, free: 49.98 MB / 0.7294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001078/6.482, allocations: 37.92 kB / 2.338 GB, free: 49.98 MB / 0.7294 GB Notification: Performance of sort global known variables: time 0.002173/6.484, allocations: 0.89 MB / 2.339 GB, free: 49.88 MB / 0.7294 GB Notification: Performance of remove unused functions: time 0.006459/6.49, allocations: 1.053 MB / 2.34 GB, free: 49.69 MB / 0.7294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 6 (vol.dynBal.U,mov.filter.s[1],mov.filter.s[2],conPI.I.y,THeaOut.T,hea.vol.dynBal.U) * 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 (82): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * 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%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003384/6.494, allocations: 1.099 MB / 2.341 GB, free: 49.41 MB / 0.7294 GB Notification: Performance of simCode: created initialization part: time 0.002992/6.497, allocations: 1.299 MB / 2.343 GB, free: 49.33 MB / 0.7294 GB Notification: Performance of simCode: created event and clocks part: time 9.388e-06/6.497, allocations: 0 / 2.343 GB, free: 49.33 MB / 0.7294 GB Notification: Performance of simCode: created simulation system equations: time 0.0009517/6.498, allocations: 487.4 kB / 2.343 GB, free: 49.23 MB / 0.7294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004374/6.502, allocations: 0.7047 MB / 2.344 GB, free: 49.22 MB / 0.7294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007317/6.509, allocations: 2.4 MB / 2.346 GB, free: 48.55 MB / 0.7294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002111/6.512, allocations: 1.596 MB / 2.348 GB, free: 47.83 MB / 0.7294 GB Notification: Performance of SimCode: time 1.623e-06/6.512, allocations: 0 / 2.348 GB, free: 47.83 MB / 0.7294 GB Notification: Performance of Templates: time 0.07826/6.59, allocations: 38.57 MB / 2.385 GB, free: 45.92 MB / 0.7294 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_u.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_u.sim & ./BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_u -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe 2>&1)