Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_T.conf.json 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/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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_T,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_T") translateModel(IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_T,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_latest_IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_T") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001178/0.001178, allocations: 107.9 kB / 16.41 MB, free: 6.508 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00122/0.00122, allocations: 189.2 kB / 17.34 MB, free: 5.738 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.302/1.302, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7552/0.7552, allocations: 122.9 MB / 414.1 MB, free: 15.81 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001288/0.001289, allocations: 63.23 kB / 0.5685 GB, free: 28.68 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1399/0.1412, allocations: 77.93 MB / 0.6446 GB, free: 8.965 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_T): time 0.05398/0.1952, allocations: 53.69 MB / 0.697 GB, free: 3.082 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.02543/0.2207, allocations: 17.02 MB / 0.7136 GB, free: 2.023 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003306/0.224, allocations: 87.5 kB / 0.7137 GB, free: 1.938 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.00623/0.2303, allocations: 1.905 MB / 0.7156 GB, free: 28 kB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.008523/0.2388, allocations: 2.514 MB / 0.718 GB, free: 13.5 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.006541/0.2454, allocations: 2.353 MB / 0.7203 GB, free: 11.16 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.01185/0.2572, allocations: 7.531 MB / 0.7277 GB, free: 3.625 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003181/0.2604, allocations: 1.678 MB / 0.7293 GB, free: 1.91 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004527/0.265, allocations: 1.911 MB / 0.7312 GB, free: 15.99 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002468/0.2675, allocations: 1.428 MB / 0.7326 GB, free: 14.56 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0005965/0.2681, allocations: 180 kB / 0.7327 GB, free: 14.39 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004248/0.2723, allocations: 2.028 MB / 0.7347 GB, free: 12.36 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0008967/0.2733, allocations: 0.658 MB / 0.7354 GB, free: 11.7 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.001974/0.2752, allocations: 1.224 MB / 0.7366 GB, free: 10.46 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.006593/0.2819, allocations: 3.935 MB / 0.7404 GB, free: 6.516 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 6.172e-06/0.2819, allocations: 0 / 0.7404 GB, free: 6.516 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.463e-06/0.2819, allocations: 7.875 kB / 0.7404 GB, free: 6.508 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 0.0001098/0.282, allocations: 4 kB / 0.7404 GB, free: 6.504 MB / 0.5762 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 285 * Number of variables: 285 Notification: Performance of Generate backend data structure: time 0.006289/0.2883, allocations: 3.042 MB / 0.7434 GB, free: 3.379 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.581e-05/0.2884, allocations: 12.62 kB / 0.7434 GB, free: 3.367 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002806/0.2912, allocations: 0.5604 MB / 0.7439 GB, free: 2.805 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3501/0.6413, allocations: 2.745 MB / 0.7466 GB, free: 96.15 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002269/0.6415, allocations: 96.03 kB / 0.7467 GB, free: 96.15 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006177/0.6422, allocations: 117 kB / 0.7468 GB, free: 96.15 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00615/0.6484, allocations: 1.363 MB / 0.7482 GB, free: 95.89 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.667e-05/0.6485, allocations: 2.719 kB / 0.7482 GB, free: 95.89 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000257/0.6488, allocations: 47.44 kB / 0.7482 GB, free: 95.89 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.708e-05/0.6489, allocations: 46.58 kB / 0.7483 GB, free: 95.89 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005042/0.6539, allocations: 1.104 MB / 0.7493 GB, free: 95.81 MB / 0.5762 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0158/0.6698, allocations: 7.459 MB / 0.7566 GB, free: 90.49 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004147/0.6739, allocations: 1.345 MB / 0.7579 GB, free: 89.61 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001739/0.6757, allocations: 418.7 kB / 0.7583 GB, free: 89.48 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.009178/0.6849, allocations: 3.175 MB / 0.7614 GB, free: 87.07 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001723/0.6867, allocations: 427.5 kB / 0.7618 GB, free: 86.92 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=59): time 4.639e-06/0.6867, allocations: 1.188 kB / 0.7618 GB, free: 86.92 MB / 0.5762 GB Notification: Performance of matching and sorting (n=59): time 0.005769/0.6925, allocations: 1.253 MB / 0.7631 GB, free: 86.41 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.802e-05/0.6926, allocations: 60.16 kB / 0.7631 GB, free: 86.34 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005262/0.6978, allocations: 2.126 MB / 0.7652 GB, free: 85.54 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.0002058/0.6981, allocations: 46.83 kB / 0.7652 GB, free: 85.5 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.001236/0.6993, allocations: 1.036 MB / 0.7662 GB, free: 84.77 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003096/0.6997, allocations: 226.8 kB / 0.7665 GB, free: 84.62 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006321/0.7003, allocations: 316.9 kB / 0.7668 GB, free: 84.48 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 4.167e-05/0.7004, allocations: 305.1 kB / 0.7671 GB, free: 84.18 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001107/0.7015, allocations: 0.5456 MB / 0.7676 GB, free: 83.99 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001501/0.703, allocations: 0.9921 MB / 0.7686 GB, free: 83.28 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002272/0.7053, allocations: 1.453 MB / 0.77 GB, free: 82.39 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.424e-05/0.7053, allocations: 3.344 kB / 0.77 GB, free: 82.39 MB / 0.5762 GB Notification: Performance of matching and sorting (n=188) (initialization): time 0.003637/0.709, allocations: 1.772 MB / 0.7717 GB, free: 81.7 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 4.158e-05/0.709, allocations: 36.33 kB / 0.7717 GB, free: 81.66 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.309e-05/0.7091, allocations: 12.25 kB / 0.7718 GB, free: 81.66 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.355e-05/0.7091, allocations: 17.84 kB / 0.7718 GB, free: 81.66 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001083/0.7102, allocations: 311 kB / 0.7721 GB, free: 81.64 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.871e-05/0.7102, allocations: 26.31 kB / 0.7721 GB, free: 81.63 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001607/0.7118, allocations: 193.2 kB / 0.7723 GB, free: 81.57 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000114/0.712, allocations: 63.25 kB / 0.7723 GB, free: 81.56 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001759/0.7137, allocations: 0.974 MB / 0.7733 GB, free: 81.06 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001253/0.715, allocations: 0.9951 MB / 0.7743 GB, free: 80.23 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002141/0.7171, allocations: 1.448 MB / 0.7757 GB, free: 79.19 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.091e-05/0.7172, allocations: 4.5 kB / 0.7757 GB, free: 79.19 MB / 0.5762 GB Notification: Performance of matching and sorting (n=188) (initialization_lambda0): time 0.003242/0.7204, allocations: 1.775 MB / 0.7774 GB, free: 78.3 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 3.033e-05/0.7205, allocations: 36.7 kB / 0.7775 GB, free: 78.27 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.367e-05/0.7205, allocations: 14.23 kB / 0.7775 GB, free: 78.27 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.56e-05/0.7205, allocations: 22.41 kB / 0.7775 GB, free: 78.27 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009941/0.7215, allocations: 316.5 kB / 0.7778 GB, free: 78.19 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.874e-05/0.7215, allocations: 27.7 kB / 0.7778 GB, free: 78.18 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001478/0.723, allocations: 162.8 kB / 0.778 GB, free: 78.11 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.938e-05/0.7231, allocations: 58.8 kB / 0.778 GB, free: 78.1 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 6 (TSet.count,$PRE.TSet.count,TSet.T_start,$PRE.TSet.T_start,$whenCondition1,conPI.I.trigger_internal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (154): * Single equations (assignments): 151 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003074/0.7234, allocations: 263.4 kB / 0.7783 GB, free: 77.86 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000281/0.7237, allocations: 213.5 kB / 0.7785 GB, free: 77.74 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002397/0.7261, allocations: 1.124 MB / 0.7796 GB, free: 77.13 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.284e-05/0.7262, allocations: 11.78 kB / 0.7796 GB, free: 77.13 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.464e-06/0.7262, allocations: 0 / 0.7796 GB, free: 77.13 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001661/0.7278, allocations: 0.9552 MB / 0.7805 GB, free: 76.52 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004777/0.7326, allocations: 2.615 MB / 0.7831 GB, free: 74.84 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.41e-06/0.7327, allocations: 7.469 kB / 0.7831 GB, free: 74.84 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006758/0.7333, allocations: 148.4 kB / 0.7832 GB, free: 74.8 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001725/0.7335, allocations: 29.78 kB / 0.7833 GB, free: 74.78 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.703e-05/0.7336, allocations: 18.52 kB / 0.7833 GB, free: 74.77 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007784/0.7344, allocations: 1.429 MB / 0.7847 GB, free: 73.3 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.7344, allocations: 3.938 kB / 0.7847 GB, free: 73.29 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002997/0.7374, allocations: 1.584 MB / 0.7862 GB, free: 72.41 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006979/0.7381, allocations: 409.2 kB / 0.7866 GB, free: 72.09 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002414/0.7384, allocations: 14.25 kB / 0.7866 GB, free: 72.08 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009076/0.7393, allocations: 68.19 kB / 0.7867 GB, free: 72.05 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001156/0.7394, allocations: 62.2 kB / 0.7867 GB, free: 72.02 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.342e-05/0.7395, allocations: 30.36 kB / 0.7868 GB, free: 72 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.001794/0.7413, allocations: 1.48 MB / 0.7882 GB, free: 70.7 MB / 0.5762 GB Notification: Performance of sort global known variables: time 4.3e-07/0.7413, allocations: 0 / 0.7882 GB, free: 70.7 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.002322/0.7436, allocations: 1.039 MB / 0.7892 GB, free: 69.75 MB / 0.5762 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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (69): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00171/0.7453, allocations: 0.8753 MB / 0.7901 GB, free: 69.13 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.00363/0.749, allocations: 2.086 MB / 0.7921 GB, free: 67.03 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 4.018e-06/0.749, allocations: 0 / 0.7921 GB, free: 67.03 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.001057/0.7501, allocations: 0.5372 MB / 0.7927 GB, free: 66.48 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003711/0.7538, allocations: 0.9729 MB / 0.7936 GB, free: 65.55 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005296/0.7591, allocations: 3.671 MB / 0.7972 GB, free: 61.84 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007583/0.7599, allocations: 1.546 MB / 0.7987 GB, free: 60.26 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.001729/0.7616, allocations: 0.5163 MB / 0.7992 GB, free: 59.74 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000398/0.762, allocations: 171.4 kB / 0.7994 GB, free: 59.57 MB / 0.5762 GB Notification: Performance of SimCode: time 6.01e-07/0.7621, allocations: 0 / 0.7994 GB, free: 59.57 MB / 0.5762 GB Notification: Performance of Templates: time 0.05155/0.8136, allocations: 39.55 MB / 0.838 GB, free: 20.52 MB / 0.5762 GB make -j1 -f IBPSA_latest_IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_T.makefile (rm -f IBPSA_latest_IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_T.sim & ./IBPSA_latest_IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_T -abortSlowSimulation -alarm=480 -lv LOG_STATS > IBPSA_latest_IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_T.pipe 2>&1)