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 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.0/package.mo", uses=false) Using package NcDataReader2 with version 2.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.0/package.mo) 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 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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.7435/0.7435, allocations: 140.1 MB / 156 MB, free: 5.188 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001039/0.001039, allocations: 181.3 kB / 188.5 MB, free: 15.85 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.542/1.542, allocations: 205.4 MB / 426.3 MB, free: 8.398 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008274/0.0008276, allocations: 86.3 kB / 0.4945 GB, free: 8.352 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.0/package.mo): time 0.001631/0.001632, allocations: 279.2 kB / 0.5728 GB, free: 66.23 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004851/0.0004851, allocations: 16 kB / 0.662 GB, free: 6.824 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3871/0.3876, allocations: 79.3 MB / 0.7395 GB, free: 46.38 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.8197/1.207, allocations: 417.3 MB / 1.147 GB, free: 9.246 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002654/1.208, allocations: 97.33 kB / 1.147 GB, free: 9.195 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 3.807/5.014, allocations: 1.128 GB / 2.275 GB, free: 85.89 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.793e-06/5.014, allocations: 0 / 2.275 GB, free: 85.89 MB / 0.698 GB Notification: Performance of Transformations before backend: time 0.0003325/5.015, allocations: 55.31 kB / 2.275 GB, free: 85.89 MB / 0.698 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 311 * Number of variables: 311 Notification: Performance of Generate backend data structure: time 0.006699/5.021, allocations: 2.658 MB / 2.278 GB, free: 84.87 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 3.405e-05/5.022, allocations: 9.688 kB / 2.278 GB, free: 84.87 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001737/5.023, allocations: 378.5 kB / 2.278 GB, free: 84.75 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00568/5.029, allocations: 2.43 MB / 2.28 GB, free: 84.31 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.737e-05/5.029, allocations: 99.11 kB / 2.28 GB, free: 84.3 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003388/5.029, allocations: 137.1 kB / 2.281 GB, free: 84.3 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002608/5.032, allocations: 1.442 MB / 2.282 GB, free: 84.02 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.789e-05/5.032, allocations: 3.938 kB / 2.282 GB, free: 84.02 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001444/5.032, allocations: 56.28 kB / 2.282 GB, free: 84.02 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.149e-05/5.032, allocations: 38.16 kB / 2.282 GB, free: 84.02 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00201/5.034, allocations: 1.029 MB / 2.283 GB, free: 84 MB / 0.698 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.00755/5.042, allocations: 7.106 MB / 2.29 GB, free: 79.97 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001467/5.043, allocations: 1.293 MB / 2.291 GB, free: 79.38 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006585/5.044, allocations: 398.8 kB / 2.292 GB, free: 79.37 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003275/5.047, allocations: 2.232 MB / 2.294 GB, free: 78.01 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009007/5.048, allocations: 451.5 kB / 2.294 GB, free: 77.96 MB / 0.698 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0006739/5.049, allocations: 85.05 kB / 2.294 GB, free: 77.93 MB / 0.698 GB Notification: Performance of pre-optimization done (n=68): time 4.147e-06/5.049, allocations: 0 / 2.294 GB, free: 77.93 MB / 0.698 GB Notification: Performance of matching and sorting (n=68): time 0.002682/5.052, allocations: 1.283 MB / 2.296 GB, free: 77.6 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.254e-05/5.052, allocations: 169.4 kB / 2.296 GB, free: 77.41 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001645/5.053, allocations: 1.436 MB / 2.297 GB, free: 77.23 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 7.287e-05/5.053, allocations: 42.67 kB / 2.297 GB, free: 77.2 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005543/5.054, allocations: 0.8951 MB / 2.298 GB, free: 76.89 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001538/5.054, allocations: 236 kB / 2.298 GB, free: 76.74 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.497e-05/5.054, allocations: 23.19 kB / 2.298 GB, free: 76.74 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 6.614e-05/5.054, allocations: 342.5 kB / 2.299 GB, free: 76.43 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006199/5.055, allocations: 349 kB / 2.299 GB, free: 76.43 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007616/5.056, allocations: 0.7299 MB / 2.3 GB, free: 75.98 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001365/5.057, allocations: 1.042 MB / 2.301 GB, free: 75.61 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.072e-06/5.057, allocations: 5.344 kB / 2.301 GB, free: 75.61 MB / 0.698 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.001942/5.059, allocations: 1.225 MB / 2.302 GB, free: 75.44 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001529/5.059, allocations: 389.6 kB / 2.302 GB, free: 75 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.117e-05/5.059, allocations: 14.45 kB / 2.302 GB, free: 75 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.108e-05/5.059, allocations: 11.06 kB / 2.302 GB, free: 75 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008445/5.06, allocations: 253.6 kB / 2.303 GB, free: 75 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.071e-05/5.06, allocations: 19.44 kB / 2.303 GB, free: 75 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001187/5.061, allocations: 132.1 kB / 2.303 GB, free: 74.99 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.396e-05/5.061, allocations: 55.11 kB / 2.303 GB, free: 74.99 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 7.785e-06/5.061, allocations: 3.844 kB / 2.303 GB, free: 74.99 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001653/5.063, allocations: 1.053 MB / 2.304 GB, free: 74.93 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.599e-05/5.063, allocations: 14.52 kB / 2.304 GB, free: 74.93 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.809e-06/5.063, allocations: 16.91 kB / 2.304 GB, free: 74.93 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007882/5.064, allocations: 241.2 kB / 2.304 GB, free: 74.93 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.565e-05/5.064, allocations: 24.41 kB / 2.304 GB, free: 74.93 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001133/5.065, allocations: 132.5 kB / 2.304 GB, free: 74.93 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.028e-05/5.065, allocations: 56.7 kB / 2.304 GB, free: 74.93 MB / 0.698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 41 * 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 (121): * Single equations (assignments): 117 * 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.0008452/5.066, allocations: 0.4887 MB / 2.305 GB, free: 74.73 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000184/5.066, allocations: 166.4 kB / 2.305 GB, free: 74.64 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001965/5.068, allocations: 1.162 MB / 2.306 GB, free: 74.46 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.209e-05/5.068, allocations: 11.41 kB / 2.306 GB, free: 74.46 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.693e-06/5.068, allocations: 0 / 2.306 GB, free: 74.46 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001295/5.07, allocations: 0.8634 MB / 2.307 GB, free: 74.27 MB / 0.698 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.003541/5.073, allocations: 2.444 MB / 2.309 GB, free: 73.83 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.138e-06/5.073, allocations: 0 / 2.309 GB, free: 73.83 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006538/5.074, allocations: 152.9 kB / 2.309 GB, free: 73.83 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001252/5.074, allocations: 23.16 kB / 2.309 GB, free: 73.82 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.124e-05/5.074, allocations: 26.72 kB / 2.309 GB, free: 73.82 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006535/5.075, allocations: 1.304 MB / 2.311 GB, free: 72.57 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/5.075, allocations: 6.875 kB / 2.311 GB, free: 72.57 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002269/5.077, allocations: 1.589 MB / 2.312 GB, free: 72.19 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005953/5.078, allocations: 329.5 kB / 2.313 GB, free: 72.01 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001609/5.078, allocations: 20.53 kB / 2.313 GB, free: 72.01 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008478/5.079, allocations: 117 kB / 2.313 GB, free: 72 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001055/5.079, allocations: 58.17 kB / 2.313 GB, free: 72 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.57e-05/5.079, allocations: 41.09 kB / 2.313 GB, free: 72 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.001154/5.08, allocations: 0.9559 MB / 2.314 GB, free: 71.89 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.3e-07/5.08, allocations: 0 / 2.314 GB, free: 71.89 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.002665/5.083, allocations: 1.093 MB / 2.315 GB, free: 71.7 MB / 0.698 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.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 (76): * Single equations (assignments): 68 * 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.001625/5.084, allocations: 1.137 MB / 2.316 GB, free: 71.4 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.002458/5.087, allocations: 1.588 MB / 2.317 GB, free: 71.2 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/5.087, allocations: 0 / 2.317 GB, free: 71.2 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0008255/5.088, allocations: 0.5353 MB / 2.318 GB, free: 71.09 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003211/5.091, allocations: 0.7671 MB / 2.319 GB, free: 71.07 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004767/5.096, allocations: 3.818 MB / 2.322 GB, free: 69.34 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007372/5.096, allocations: 1.407 MB / 2.324 GB, free: 68.61 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.001862/5.098, allocations: 426.2 kB / 2.324 GB, free: 68.59 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003108/5.099, allocations: 137.4 kB / 2.324 GB, free: 68.58 MB / 0.698 GB Notification: Performance of SimCode: time 6.51e-07/5.099, allocations: 2.516 kB / 2.324 GB, free: 68.58 MB / 0.698 GB Notification: Performance of Templates: time 0.05071/5.149, allocations: 36.47 MB / 2.36 GB, free: 66.51 MB / 0.698 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)