Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_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.WaterHeater_T,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_T") translateModel(BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_T,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_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.8188/0.8188, allocations: 141.8 MB / 149.1 MB, free: 11.11 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.001165/0.001165, allocations: 183.1 kB / 182 MB, free: 7.965 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.547/1.547, allocations: 221.4 MB / 436 MB, free: 184 kB / 330.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001081/0.001081, allocations: 102.2 kB / 0.507 GB, free: 9.195 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001916/0.001916, allocations: 280.9 kB / 0.5884 GB, free: 6.023 MB / 474.9 MB Notification: Performance of FrontEnd - loaded program: time 1.056e-05/1.065e-05, allocations: 2.625 kB / 0.6759 GB, free: 167.4 MB / 0.5419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2173/0.2173, allocations: 82.79 MB / 0.7567 GB, free: 115.9 MB / 0.5419 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.403/1.62, allocations: 411.8 MB / 1.159 GB, free: 267.8 MB / 0.7138 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002912/1.62, allocations: 89.47 kB / 1.159 GB, free: 267.8 MB / 0.7138 GB Notification: Performance of FrontEnd: time 4.267/5.888, allocations: 1.184 GB / 2.343 GB, free: 87.02 MB / 0.7138 GB Notification: Performance of Transformations before backend: time 0.0004171/5.888, allocations: 51.23 kB / 2.343 GB, free: 87 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: 281 * Number of variables: 281 Notification: Performance of Generate backend data structure: time 0.006862/5.895, allocations: 2.034 MB / 2.345 GB, free: 86.1 MB / 0.7138 GB Notification: Performance of prepare preOptimizeDAE: time 5.222e-05/5.895, allocations: 11.66 kB / 2.345 GB, free: 86.1 MB / 0.7138 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003096/5.898, allocations: 476.8 kB / 2.345 GB, free: 85.99 MB / 0.7138 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008193/5.907, allocations: 2.288 MB / 2.347 GB, free: 85.57 MB / 0.7138 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001246/5.907, allocations: 34.81 kB / 2.347 GB, free: 85.57 MB / 0.7138 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005506/5.907, allocations: 80.52 kB / 2.347 GB, free: 85.57 MB / 0.7138 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002436/5.91, allocations: 0.7799 MB / 2.348 GB, free: 85.57 MB / 0.7138 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002753/5.913, allocations: 1.062 MB / 2.349 GB, free: 85.31 MB / 0.7138 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.59e-05/5.913, allocations: 3.188 kB / 2.349 GB, free: 85.31 MB / 0.7138 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001896/5.913, allocations: 3.781 kB / 2.349 GB, free: 85.31 MB / 0.7138 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.586e-05/5.913, allocations: 46.36 kB / 2.349 GB, free: 85.3 MB / 0.7138 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01184/5.925, allocations: 6.959 MB / 2.356 GB, free: 81.12 MB / 0.7138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007281/5.925, allocations: 456.3 kB / 2.356 GB, free: 81.09 MB / 0.7138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005153/5.926, allocations: 332.6 kB / 2.357 GB, free: 81.08 MB / 0.7138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.005979/5.932, allocations: 2.934 MB / 2.36 GB, free: 79.26 MB / 0.7138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005582/5.933, allocations: 336.5 kB / 2.36 GB, free: 79.2 MB / 0.7138 GB Notification: Performance of pre-optimization done (n=66): time 3.627e-06/5.933, allocations: 0 / 2.36 GB, free: 79.2 MB / 0.7138 GB Notification: Performance of matching and sorting (n=66): time 0.002826/5.935, allocations: 0.848 MB / 2.361 GB, free: 79.06 MB / 0.7138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.791e-05/5.936, allocations: 115.1 kB / 2.361 GB, free: 78.93 MB / 0.7138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002994/5.939, allocations: 1.225 MB / 2.362 GB, free: 78.76 MB / 0.7138 GB Notification: Performance of collectPreVariables (initialization): time 0.0001294/5.939, allocations: 29.64 kB / 2.362 GB, free: 78.73 MB / 0.7138 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006823/5.939, allocations: 0.5672 MB / 2.363 GB, free: 78.41 MB / 0.7138 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003017/5.94, allocations: 226.7 kB / 2.363 GB, free: 78.27 MB / 0.7138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.88e-05/5.94, allocations: 2.125 kB / 2.363 GB, free: 78.27 MB / 0.7138 GB Notification: Performance of setup shared object (initialization): time 0.000105/5.94, allocations: 342.7 kB / 2.363 GB, free: 77.96 MB / 0.7138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004576/5.94, allocations: 260.4 kB / 2.364 GB, free: 77.96 MB / 0.7138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006777/5.941, allocations: 0.6703 MB / 2.364 GB, free: 77.46 MB / 0.7138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001753/5.943, allocations: 0.5109 MB / 2.365 GB, free: 77.45 MB / 0.7138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.255e-05/5.943, allocations: 0 / 2.365 GB, free: 77.45 MB / 0.7138 GB Notification: Performance of matching and sorting (n=126) (initialization): time 0.003188/5.946, allocations: 1.143 MB / 2.366 GB, free: 77.32 MB / 0.7138 GB Notification: Performance of prepare postOptimizeDAE: time 0.001155/5.947, allocations: 4.407 MB / 2.37 GB, free: 72.68 MB / 0.7138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.646e-05/5.947, allocations: 10.94 kB / 2.37 GB, free: 72.68 MB / 0.7138 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.64e-05/5.947, allocations: 17.72 kB / 2.37 GB, free: 72.68 MB / 0.7138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001056/5.948, allocations: 264 kB / 2.37 GB, free: 72.68 MB / 0.7138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.933e-05/5.948, allocations: 22.7 kB / 2.37 GB, free: 72.68 MB / 0.7138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001812/5.95, allocations: 158 kB / 2.371 GB, free: 72.63 MB / 0.7138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001497/5.95, allocations: 57.88 kB / 2.371 GB, free: 72.63 MB / 0.7138 GB Notification: Performance of prepare postOptimizeDAE: time 1.103e-05/5.95, allocations: 3.844 kB / 2.371 GB, free: 72.63 MB / 0.7138 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002476/5.953, allocations: 0.9191 MB / 2.371 GB, free: 72.62 MB / 0.7138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.543e-05/5.953, allocations: 10.97 kB / 2.371 GB, free: 72.62 MB / 0.7138 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.255e-05/5.953, allocations: 20.59 kB / 2.372 GB, free: 72.62 MB / 0.7138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000975/5.954, allocations: 248.8 kB / 2.372 GB, free: 72.62 MB / 0.7138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.516e-05/5.954, allocations: 24.19 kB / 2.372 GB, free: 72.62 MB / 0.7138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001803/5.956, allocations: 131.2 kB / 2.372 GB, free: 72.58 MB / 0.7138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001462/5.956, allocations: 56.2 kB / 2.372 GB, free: 72.58 MB / 0.7138 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * 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 (124): * Single equations (assignments): 122 * 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.0003458/5.956, allocations: 145.8 kB / 2.372 GB, free: 72.47 MB / 0.7138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006129/5.957, allocations: 165.2 kB / 2.372 GB, free: 72.38 MB / 0.7138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003328/5.96, allocations: 1.118 MB / 2.373 GB, free: 72.29 MB / 0.7138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.232e-05/5.96, allocations: 7.5 kB / 2.373 GB, free: 72.29 MB / 0.7138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.156e-05/5.96, allocations: 5.219 kB / 2.373 GB, free: 72.29 MB / 0.7138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001712/5.962, allocations: 0.8993 MB / 2.374 GB, free: 72.02 MB / 0.7138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006133/5.968, allocations: 2.154 MB / 2.376 GB, free: 71.69 MB / 0.7138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.094e-06/5.968, allocations: 0 / 2.376 GB, free: 71.69 MB / 0.7138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007882/5.969, allocations: 149.5 kB / 2.376 GB, free: 71.69 MB / 0.7138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002283/5.969, allocations: 34.75 kB / 2.377 GB, free: 71.68 MB / 0.7138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.818e-05/5.969, allocations: 13.8 kB / 2.377 GB, free: 71.68 MB / 0.7138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009675/5.97, allocations: 1.254 MB / 2.378 GB, free: 70.48 MB / 0.7138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.903e-06/5.97, allocations: 11.42 kB / 2.378 GB, free: 70.48 MB / 0.7138 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003038/5.973, allocations: 1.422 MB / 2.379 GB, free: 70.17 MB / 0.7138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001161/5.975, allocations: 336.7 kB / 2.379 GB, free: 69.98 MB / 0.7138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006323/5.975, allocations: 6.578 kB / 2.379 GB, free: 69.98 MB / 0.7138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001418/5.977, allocations: 83.14 kB / 2.38 GB, free: 69.98 MB / 0.7138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001408/5.977, allocations: 48.59 kB / 2.38 GB, free: 69.98 MB / 0.7138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.865e-05/5.977, allocations: 36.48 kB / 2.38 GB, free: 69.98 MB / 0.7138 GB Notification: Performance of sort global known variables: time 0.002182/5.979, allocations: 0.9105 MB / 2.381 GB, free: 69.87 MB / 0.7138 GB Notification: Performance of remove unused functions: time 0.00533/5.984, allocations: 0.9498 MB / 2.381 GB, free: 69.7 MB / 0.7138 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 6 (vol.dynBal.U,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 (76): * Single equations (assignments): 67 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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.003771/5.988, allocations: 1.182 MB / 2.383 GB, free: 69.45 MB / 0.7138 GB Notification: Performance of simCode: created initialization part: time 0.003613/5.992, allocations: 1.279 MB / 2.384 GB, free: 69.35 MB / 0.7138 GB Notification: Performance of simCode: created event and clocks part: time 7.965e-06/5.992, allocations: 3.781 kB / 2.384 GB, free: 69.35 MB / 0.7138 GB Notification: Performance of simCode: created simulation system equations: time 0.001227/5.993, allocations: 459 kB / 2.384 GB, free: 69.25 MB / 0.7138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004364/5.998, allocations: 0.5994 MB / 2.385 GB, free: 69.23 MB / 0.7138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00804/6.006, allocations: 2.33 MB / 2.387 GB, free: 68.64 MB / 0.7138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002559/6.008, allocations: 1.549 MB / 2.389 GB, free: 67.91 MB / 0.7138 GB Notification: Performance of SimCode: time 2.816e-06/6.008, allocations: 0 / 2.389 GB, free: 67.91 MB / 0.7138 GB Notification: Performance of Templates: time 0.07413/6.082, allocations: 36.11 MB / 2.424 GB, free: 65.93 MB / 0.7138 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_T.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_T.sim & ./BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_T -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe 2>&1)