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.4.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.4.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") [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.4.0/UsersGuide/package.order:0:0-0:0:readonly] Warning: The package.order file does not list all .mo files and directories (containing package.mo) present in its directory. Missing names are: License Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.4.0/package.mo): time 0.6286/0.6286, allocations: 117.9 MB / 133.9 MB, free: 4.512 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.001155/0.001156, allocations: 184 kB / 161.7 MB, free: 2.754 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.608/1.608, allocations: 205.4 MB / 394.8 MB, free: 20.96 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.000789/0.000789, allocations: 101.3 kB / 470.1 MB, free: 12.12 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004137/0.000414, allocations: 19.98 kB / 0.5423 GB, free: 6.848 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3242/0.3246, allocations: 74.53 MB / 0.6151 GB, free: 54.12 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.03/1.354, allocations: 408.7 MB / 1.014 GB, free: 235.9 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002599/1.354, allocations: 100.6 kB / 1.014 GB, free: 235.9 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 3.404/4.759, allocations: 1.086 GB / 2.1 GB, free: 85.54 MB / 0.6511 GB Notification: Performance of FrontEnd: time 1.723e-06/4.759, allocations: 0 / 2.1 GB, free: 85.54 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 0.0002789/4.759, allocations: 63.86 kB / 2.1 GB, free: 85.53 MB / 0.6511 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.006307/4.765, allocations: 2.671 MB / 2.103 GB, free: 84.12 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 3.52e-05/4.765, allocations: 7.812 kB / 2.103 GB, free: 84.12 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001716/4.767, allocations: 387.9 kB / 2.103 GB, free: 84 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009123/4.776, allocations: 4.12 MB / 2.107 GB, free: 83.41 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001353/4.776, allocations: 103.6 kB / 2.107 GB, free: 83.41 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004734/4.777, allocations: 135 kB / 2.108 GB, free: 83.41 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003547/4.78, allocations: 1.491 MB / 2.109 GB, free: 83.09 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.676e-05/4.781, allocations: 9.031 kB / 2.109 GB, free: 83.09 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001967/4.781, allocations: 52.59 kB / 2.109 GB, free: 83.09 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.042e-05/4.781, allocations: 35.88 kB / 2.109 GB, free: 83.09 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002625/4.783, allocations: 1.074 MB / 2.11 GB, free: 83.07 MB / 0.6511 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.008847/4.792, allocations: 7.489 MB / 2.117 GB, free: 78.66 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001811/4.794, allocations: 1.292 MB / 2.119 GB, free: 78.07 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006522/4.795, allocations: 388.2 kB / 2.119 GB, free: 78.06 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002902/4.798, allocations: 1.953 MB / 2.121 GB, free: 76.9 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009992/4.799, allocations: 488.2 kB / 2.121 GB, free: 76.83 MB / 0.6511 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007381/4.799, allocations: 82.08 kB / 2.122 GB, free: 76.79 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=65): time 4.789e-06/4.8, allocations: 0 / 2.122 GB, free: 76.79 MB / 0.6511 GB Notification: Performance of matching and sorting (n=65): time 0.003002/4.803, allocations: 1.295 MB / 2.123 GB, free: 76.46 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.012e-05/4.803, allocations: 187.6 kB / 2.123 GB, free: 76.24 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002023/4.805, allocations: 1.47 MB / 2.124 GB, free: 76.06 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 8.103e-05/4.805, allocations: 40.86 kB / 2.124 GB, free: 76.03 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007023/4.805, allocations: 0.9382 MB / 2.125 GB, free: 75.69 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 0.000215/4.806, allocations: 225 kB / 2.126 GB, free: 75.55 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.268e-05/4.806, allocations: 21.39 kB / 2.126 GB, free: 75.55 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 8.208e-05/4.806, allocations: 350.1 kB / 2.126 GB, free: 75.25 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007191/4.807, allocations: 350.4 kB / 2.126 GB, free: 75.24 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008843/4.807, allocations: 0.7642 MB / 2.127 GB, free: 74.75 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001582/4.809, allocations: 1.084 MB / 2.128 GB, free: 74.32 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.876e-06/4.809, allocations: 3.812 kB / 2.128 GB, free: 74.32 MB / 0.6511 GB Notification: Performance of matching and sorting (n=129) (initialization): time 0.002423/4.811, allocations: 1.262 MB / 2.129 GB, free: 74.16 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002/4.812, allocations: 432.6 kB / 2.13 GB, free: 73.67 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.542e-05/4.812, allocations: 13.69 kB / 2.13 GB, free: 73.67 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.119e-05/4.812, allocations: 16.73 kB / 2.13 GB, free: 73.67 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009717/4.813, allocations: 258.1 kB / 2.13 GB, free: 73.65 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.171e-05/4.813, allocations: 21.41 kB / 2.13 GB, free: 73.65 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001434/4.814, allocations: 136.5 kB / 2.13 GB, free: 73.64 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001078/4.814, allocations: 51.28 kB / 2.13 GB, free: 73.64 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 1.104e-05/4.814, allocations: 3.688 kB / 2.13 GB, free: 73.64 MB / 0.6511 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001808/4.816, allocations: 1.045 MB / 2.131 GB, free: 73.53 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.708e-05/4.816, allocations: 10.5 kB / 2.131 GB, free: 73.53 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.448e-05/4.816, allocations: 18.88 kB / 2.131 GB, free: 73.52 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008229/4.817, allocations: 251 kB / 2.131 GB, free: 73.5 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.756e-05/4.817, allocations: 24.48 kB / 2.131 GB, free: 73.5 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001307/4.818, allocations: 117.7 kB / 2.132 GB, free: 73.5 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.93e-05/4.819, allocations: 56.44 kB / 2.132 GB, free: 73.5 MB / 0.6511 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 (125): * Single equations (assignments): 121 * 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.0009379/4.819, allocations: 0.4931 MB / 2.132 GB, free: 73.15 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003199/4.82, allocations: 170.5 kB / 2.132 GB, free: 73.06 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002259/4.822, allocations: 1.132 MB / 2.133 GB, free: 72.57 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.361e-05/4.822, allocations: 7.594 kB / 2.133 GB, free: 72.57 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.164e-06/4.822, allocations: 0 / 2.133 GB, free: 72.57 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001432/4.824, allocations: 0.8398 MB / 2.134 GB, free: 72.18 MB / 0.6511 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.004265/4.828, allocations: 2.329 MB / 2.136 GB, free: 71.07 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.581e-06/4.828, allocations: 0 / 2.136 GB, free: 71.07 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007045/4.829, allocations: 152.7 kB / 2.137 GB, free: 71.06 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001617/4.829, allocations: 25.06 kB / 2.137 GB, free: 71.05 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.054e-05/4.829, allocations: 18.17 kB / 2.137 GB, free: 71.04 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008104/4.83, allocations: 1.304 MB / 2.138 GB, free: 69.72 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/4.83, allocations: 0 / 2.138 GB, free: 69.72 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002852/4.832, allocations: 1.542 MB / 2.139 GB, free: 68.98 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009696/4.833, allocations: 320.6 kB / 2.14 GB, free: 68.75 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003648/4.834, allocations: 18.97 kB / 2.14 GB, free: 68.73 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00121/4.835, allocations: 112.5 kB / 2.14 GB, free: 68.72 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001344/4.835, allocations: 52.25 kB / 2.14 GB, free: 68.71 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.972e-05/4.835, allocations: 30.3 kB / 2.14 GB, free: 68.7 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.001808/4.837, allocations: 0.9718 MB / 2.141 GB, free: 68.33 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.5e-07/4.837, allocations: 0 / 2.141 GB, free: 68.33 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.004271/4.841, allocations: 1.074 MB / 2.142 GB, free: 68.05 MB / 0.6511 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (72): * Single equations (assignments): 65 * 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%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001953/4.843, allocations: 1.129 MB / 2.143 GB, free: 67.71 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.002715/4.846, allocations: 1.587 MB / 2.145 GB, free: 67.09 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 4.548e-06/4.846, allocations: 0 / 2.145 GB, free: 67.09 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 0.0008698/4.847, allocations: 0.5188 MB / 2.145 GB, free: 66.85 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003436/4.85, allocations: 0.7764 MB / 2.146 GB, free: 66.68 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005299/4.856, allocations: 3.812 MB / 2.15 GB, free: 64.51 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009492/4.857, allocations: 1.418 MB / 2.151 GB, free: 63.72 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.001949/4.859, allocations: 422.2 kB / 2.151 GB, free: 63.65 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003662/4.859, allocations: 139.5 kB / 2.152 GB, free: 63.63 MB / 0.6511 GB Notification: Performance of SimCode: time 8.01e-07/4.859, allocations: 0 / 2.152 GB, free: 63.63 MB / 0.6511 GB Notification: Performance of Templates: time 0.05188/4.911, allocations: 36.72 MB / 2.187 GB, free: 34.76 MB / 0.6511 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)