Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_u.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package BuildSysPro with version 3.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo) Running command: translateModel(BuildSysPro.IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_u,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_u") translateModel(BuildSysPro.IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_u,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_u") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo): time 0.6915/0.6915, allocations: 128.7 MB / 143.7 MB, free: 2.34 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001005/0.001005, allocations: 186.1 kB / 173.8 MB, free: 6.137 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.315/1.315, allocations: 205.4 MB / 409 MB, free: 10.51 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008258/0.0008259, allocations: 106.3 kB / 486.6 MB, free: 13.02 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003443/0.0003443, allocations: 9.125 kB / 0.5603 GB, free: 97.55 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1224/0.1227, allocations: 76.77 MB / 0.6353 GB, free: 30.58 MB / 442.7 MB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_u): time 0.04374/0.1665, allocations: 56.16 MB / 0.6902 GB, free: 6.277 MB / 474.7 MB Notification: Performance of NFInst.instExpressions: time 0.0227/0.1892, allocations: 17.03 MB / 0.7068 GB, free: 5.219 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002807/0.1921, allocations: 75.5 kB / 0.7069 GB, free: 5.145 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003394/0.1955, allocations: 0.9951 MB / 0.7078 GB, free: 4.145 MB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008253/0.2038, allocations: 2.66 MB / 0.7104 GB, free: 1.48 MB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008076/0.2119, allocations: 2.903 MB / 0.7133 GB, free: 14.61 MB / 0.4949 GB Notification: Performance of NFFlatten.flatten: time 0.006142/0.218, allocations: 3.186 MB / 0.7164 GB, free: 11.42 MB / 0.4949 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002625/0.2207, allocations: 1.353 MB / 0.7177 GB, free: 10.04 MB / 0.4949 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003628/0.2243, allocations: 1.475 MB / 0.7191 GB, free: 8.562 MB / 0.4949 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001736/0.2261, allocations: 0.9993 MB / 0.7201 GB, free: 7.559 MB / 0.4949 GB Notification: Performance of NFPackage.collectConstants: time 0.0002049/0.2263, allocations: 75.98 kB / 0.7202 GB, free: 7.484 MB / 0.4949 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002833/0.2291, allocations: 1.396 MB / 0.7215 GB, free: 6.086 MB / 0.4949 GB Notification: Performance of NFScalarize.scalarize: time 0.0004138/0.2296, allocations: 402.4 kB / 0.7219 GB, free: 5.691 MB / 0.4949 GB Notification: Performance of NFVerifyModel.verify: time 0.0005522/0.2301, allocations: 452.5 kB / 0.7224 GB, free: 5.242 MB / 0.4949 GB Notification: Performance of NFConvertDAE.convert: time 0.003081/0.2332, allocations: 2.817 MB / 0.7251 GB, free: 2.418 MB / 0.4949 GB Notification: Performance of FrontEnd - DAE generated: time 2.745e-06/0.2332, allocations: 0 / 0.7251 GB, free: 2.418 MB / 0.4949 GB Notification: Performance of FrontEnd: time 1.734e-06/0.2332, allocations: 0 / 0.7251 GB, free: 2.418 MB / 0.4949 GB Notification: Performance of Transformations before backend: time 2.608e-05/0.2333, allocations: 0 / 0.7251 GB, free: 2.418 MB / 0.4949 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 320 * Number of variables: 320 Notification: Performance of Generate backend data structure: time 0.003897/0.2372, allocations: 2.349 MB / 0.7274 GB, free: 15.99 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.046e-05/0.2372, allocations: 8.031 kB / 0.7274 GB, free: 15.98 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001327/0.2386, allocations: 404.8 kB / 0.7278 GB, free: 15.59 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00274/0.2413, allocations: 1.665 MB / 0.7294 GB, free: 13.88 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003694/0.2417, allocations: 174.4 kB / 0.7296 GB, free: 13.7 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001757/0.2419, allocations: 136 kB / 0.7297 GB, free: 13.57 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002665/0.2445, allocations: 1.516 MB / 0.7312 GB, free: 11.95 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.804e-05/0.2446, allocations: 4 kB / 0.7312 GB, free: 11.95 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001105/0.2447, allocations: 52 kB / 0.7313 GB, free: 11.89 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.712e-05/0.2447, allocations: 43.88 kB / 0.7313 GB, free: 11.85 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002531/0.2473, allocations: 1.176 MB / 0.7324 GB, free: 10.67 MB / 0.5105 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.008729/0.256, allocations: 7.817 MB / 0.7401 GB, free: 2.25 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002326/0.2584, allocations: 1.378 MB / 0.7414 GB, free: 0.7539 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2483/0.5067, allocations: 2.402 MB / 0.7438 GB, free: 102.2 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001297/0.508, allocations: 0.5059 MB / 0.7443 GB, free: 102.1 MB / 0.5105 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006709/0.5087, allocations: 99.75 kB / 0.7444 GB, free: 102.1 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=62): time 4.799e-06/0.5087, allocations: 0 / 0.7444 GB, free: 102.1 MB / 0.5105 GB Notification: Performance of matching and sorting (n=62): time 0.003322/0.512, allocations: 1.32 MB / 0.7456 GB, free: 102 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.804e-05/0.5121, allocations: 166 kB / 0.7458 GB, free: 101.8 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002222/0.5143, allocations: 1.585 MB / 0.7474 GB, free: 101.6 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 8.451e-05/0.5144, allocations: 43.83 kB / 0.7474 GB, free: 101.6 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007124/0.5151, allocations: 0.9323 MB / 0.7483 GB, free: 101.3 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001947/0.5153, allocations: 216.7 kB / 0.7485 GB, free: 101.2 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5e-05/0.5154, allocations: 26.62 kB / 0.7485 GB, free: 101.2 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 9.1e-05/0.5155, allocations: 350.9 kB / 0.7489 GB, free: 100.9 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009309/0.5164, allocations: 394.9 kB / 0.7492 GB, free: 100.9 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001047/0.5175, allocations: 0.8008 MB / 0.75 GB, free: 100.4 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009657/0.5185, allocations: 0.5089 MB / 0.7505 GB, free: 100.3 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.022e-05/0.5185, allocations: 10.52 kB / 0.7505 GB, free: 100.3 MB / 0.5105 GB Notification: Performance of matching and sorting (n=131) (initialization): time 0.002606/0.5211, allocations: 1.35 MB / 0.7519 GB, free: 100.1 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 0.0006981/0.5218, allocations: 4.285 MB / 0.756 GB, free: 95.67 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.64e-05/0.5219, allocations: 12.98 kB / 0.7561 GB, free: 95.67 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.667e-05/0.5219, allocations: 16.97 kB / 0.7561 GB, free: 95.67 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001052/0.523, allocations: 275.3 kB / 0.7563 GB, free: 95.65 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.051e-05/0.523, allocations: 21.16 kB / 0.7564 GB, free: 95.65 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001563/0.5246, allocations: 157.7 kB / 0.7565 GB, free: 95.64 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001098/0.5247, allocations: 56.38 kB / 0.7566 GB, free: 95.64 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.234e-05/0.5247, allocations: 6.703 kB / 0.7566 GB, free: 95.64 MB / 0.5105 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002255/0.527, allocations: 1.148 MB / 0.7577 GB, free: 95.52 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.119e-05/0.527, allocations: 12.08 kB / 0.7577 GB, free: 95.52 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.068e-05/0.527, allocations: 19 kB / 0.7577 GB, free: 95.52 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009131/0.528, allocations: 264.4 kB / 0.758 GB, free: 95.51 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.835e-05/0.528, allocations: 23.12 kB / 0.758 GB, free: 95.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001322/0.5293, allocations: 143.8 kB / 0.7581 GB, free: 95.5 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.215e-05/0.5294, allocations: 54.3 kB / 0.7582 GB, free: 95.5 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (127): * Single equations (assignments): 123 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 1 * 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.0008537/0.5303, allocations: 0.4922 MB / 0.7587 GB, free: 95.29 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001805/0.5304, allocations: 173.5 kB / 0.7588 GB, free: 95.2 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002314/0.5328, allocations: 1.106 MB / 0.7599 GB, free: 95.1 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.254e-05/0.5328, allocations: 9.234 kB / 0.7599 GB, free: 95.1 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.494e-06/0.5328, allocations: 0 / 0.7599 GB, free: 95.1 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001665/0.5345, allocations: 0.8157 MB / 0.7607 GB, free: 94.81 MB / 0.5105 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 postOpt removeSimpleEquations (simulation): time 0.004437/0.5389, allocations: 2.593 MB / 0.7632 GB, free: 93.57 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.204e-06/0.539, allocations: 1.562 kB / 0.7632 GB, free: 93.57 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007778/0.5397, allocations: 166.7 kB / 0.7634 GB, free: 93.55 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002008/0.5399, allocations: 40.62 kB / 0.7634 GB, free: 93.54 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.975e-05/0.54, allocations: 26.05 kB / 0.7635 GB, free: 93.52 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008443/0.5409, allocations: 1.389 MB / 0.7648 GB, free: 92.16 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.5409, allocations: 1.406 kB / 0.7648 GB, free: 92.16 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003057/0.5439, allocations: 1.708 MB / 0.7665 GB, free: 91.27 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007429/0.5447, allocations: 375.8 kB / 0.7668 GB, free: 91 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002031/0.5449, allocations: 19.69 kB / 0.7669 GB, free: 90.98 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001006/0.5459, allocations: 123.9 kB / 0.767 GB, free: 90.96 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001189/0.5461, allocations: 63.38 kB / 0.767 GB, free: 90.95 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.499e-05/0.5461, allocations: 36.66 kB / 0.7671 GB, free: 90.94 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.001552/0.5477, allocations: 1.14 MB / 0.7682 GB, free: 90.46 MB / 0.5105 GB Notification: Performance of sort global known variables: time 8.42e-07/0.5477, allocations: 0 / 0.7682 GB, free: 90.46 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.002767/0.5505, allocations: 1.001 MB / 0.7692 GB, free: 90.3 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (vol.dynBal.U,mov.filter.x[1],mov.filter.x[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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (71): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001047/0.5515, allocations: 0.534 MB / 0.7697 GB, free: 90.13 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.003265/0.5548, allocations: 1.722 MB / 0.7714 GB, free: 89.45 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 5.099e-06/0.5548, allocations: 1.125 kB / 0.7714 GB, free: 89.45 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.001119/0.556, allocations: 0.5622 MB / 0.7719 GB, free: 89.19 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004133/0.5601, allocations: 0.8808 MB / 0.7728 GB, free: 88.93 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005288/0.5654, allocations: 3.904 MB / 0.7766 GB, free: 86.37 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006858/0.5661, allocations: 1.449 MB / 0.778 GB, free: 85.29 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.001866/0.568, allocations: 434.6 kB / 0.7784 GB, free: 85.09 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003527/0.5683, allocations: 153.2 kB / 0.7786 GB, free: 85.05 MB / 0.5105 GB Notification: Performance of SimCode: time 6.41e-07/0.5684, allocations: 0 / 0.7786 GB, free: 85.05 MB / 0.5105 GB Notification: Performance of Templates: time 0.04461/0.613, allocations: 35.04 MB / 0.8128 GB, free: 51.36 MB / 0.5105 GB make -j1 -f BuildSysPro_BuildSysPro.IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_u.makefile (rm -f BuildSysPro_BuildSysPro.IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_u.sim & ./BuildSysPro_BuildSysPro.IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_u -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildSysPro_BuildSysPro.IBPSA.Fluid.HeatExchangers.Examples.WaterHeater_u.pipe 2>&1)