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 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_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.8109/0.8109, allocations: 141.8 MB / 149.3 MB, free: 9.215 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001033/0.001033, allocations: 180.8 kB / 182.2 MB, free: 9.445 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.647/1.647, allocations: 221.5 MB / 436.4 MB, free: 13.3 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008629/0.0008629, allocations: 81.84 kB / 0.5074 GB, free: 10.13 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001938/0.001938, allocations: 279.9 kB / 0.5889 GB, free: 54.68 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 2.526e-05/2.528e-05, allocations: 4 kB / 0.6765 GB, free: 12.85 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5307/0.5308, allocations: 82.77 MB / 0.7574 GB, free: 32.03 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.044/1.574, allocations: 404.9 MB / 1.153 GB, free: 9.691 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003636/1.575, allocations: 94.89 kB / 1.153 GB, free: 9.648 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 5.089/6.664, allocations: 1.142 GB / 2.295 GB, free: 89.08 MB / 0.7136 GB Notification: Performance of FrontEnd: time 1.893e-06/6.664, allocations: 2.656 kB / 2.295 GB, free: 89.08 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 0.0004304/6.665, allocations: 51.38 kB / 2.295 GB, free: 89.08 MB / 0.7136 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 310 * Number of variables: 310 Notification: Performance of Generate backend data structure: time 0.006946/6.672, allocations: 2.131 MB / 2.297 GB, free: 88.2 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.808e-05/6.672, allocations: 6.875 kB / 2.297 GB, free: 88.2 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002436/6.674, allocations: 378.8 kB / 2.298 GB, free: 88.07 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00788/6.682, allocations: 2.423 MB / 2.3 GB, free: 87.71 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001077/6.682, allocations: 39.09 kB / 2.3 GB, free: 87.71 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005458/6.683, allocations: 79.84 kB / 2.3 GB, free: 87.71 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002186/6.685, allocations: 0.8539 MB / 2.301 GB, free: 87.71 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00198/6.687, allocations: 1.151 MB / 2.302 GB, free: 87.46 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.901e-05/6.687, allocations: 5.625 kB / 2.302 GB, free: 87.46 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001011/6.687, allocations: 3.969 kB / 2.302 GB, free: 87.46 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.111e-05/6.687, allocations: 46.28 kB / 2.302 GB, free: 87.45 MB / 0.7136 GB Warning: The model contains alias variables with conflicting start and/or 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.009497/6.697, allocations: 6.994 MB / 2.309 GB, free: 83.53 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001088/6.698, allocations: 1.161 MB / 2.31 GB, free: 82.94 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005107/6.698, allocations: 364.2 kB / 2.311 GB, free: 82.93 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004485/6.703, allocations: 2.58 MB / 2.313 GB, free: 81.57 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000557/6.703, allocations: 399.1 kB / 2.313 GB, free: 81.49 MB / 0.7136 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007452/6.704, allocations: 79.62 kB / 2.314 GB, free: 81.46 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=66): time 3.647e-06/6.704, allocations: 0 / 2.314 GB, free: 81.46 MB / 0.7136 GB Notification: Performance of matching and sorting (n=66): time 0.001857/6.706, allocations: 0.7801 MB / 2.314 GB, free: 81.32 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.651e-05/6.706, allocations: 166.5 kB / 2.314 GB, free: 81.13 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001616/6.708, allocations: 1.179 MB / 2.316 GB, free: 80.96 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 6.838e-05/6.708, allocations: 36.08 kB / 2.316 GB, free: 80.93 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007336/6.709, allocations: 0.8828 MB / 2.317 GB, free: 80.61 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001862/6.709, allocations: 226.2 kB / 2.317 GB, free: 80.46 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.804e-05/6.709, allocations: 0 / 2.317 GB, free: 80.46 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001052/6.709, allocations: 342.7 kB / 2.317 GB, free: 80.16 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003756/6.709, allocations: 258.9 kB / 2.317 GB, free: 80.16 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005553/6.71, allocations: 0.6341 MB / 2.318 GB, free: 79.7 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001199/6.711, allocations: 448.2 kB / 2.318 GB, free: 79.69 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.813e-06/6.711, allocations: 2.812 kB / 2.318 GB, free: 79.69 MB / 0.7136 GB Notification: Performance of matching and sorting (n=120) (initialization): time 0.002055/6.713, allocations: 1.052 MB / 2.319 GB, free: 79.55 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 0.0009892/6.714, allocations: 3.991 MB / 2.323 GB, free: 75.36 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.655e-05/6.714, allocations: 7.812 kB / 2.323 GB, free: 75.36 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.226e-05/6.714, allocations: 19.75 kB / 2.323 GB, free: 75.36 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008592/6.715, allocations: 240.6 kB / 2.324 GB, free: 75.36 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.91e-05/6.715, allocations: 24.84 kB / 2.324 GB, free: 75.36 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001412/6.716, allocations: 94.97 kB / 2.324 GB, free: 75.35 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.537e-05/6.717, allocations: 48.84 kB / 2.324 GB, free: 75.35 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.218e-05/6.717, allocations: 4.594 kB / 2.324 GB, free: 75.35 MB / 0.7136 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001775/6.718, allocations: 0.8466 MB / 2.325 GB, free: 75.32 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.052e-05/6.718, allocations: 7.656 kB / 2.325 GB, free: 75.32 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.732e-05/6.718, allocations: 18.41 kB / 2.325 GB, free: 75.32 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007956/6.719, allocations: 239.5 kB / 2.325 GB, free: 75.32 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.383e-05/6.719, allocations: 24.39 kB / 2.325 GB, free: 75.32 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001269/6.721, allocations: 99.75 kB / 2.325 GB, free: 75.31 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.418e-05/6.721, allocations: 48.14 kB / 2.325 GB, free: 75.31 MB / 0.7136 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * 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 (118): * Single equations (assignments): 116 * 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.0002759/6.721, allocations: 145.8 kB / 2.325 GB, free: 75.2 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000232/6.721, allocations: 167 kB / 2.325 GB, free: 75.11 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002108/6.723, allocations: 0.9391 MB / 2.326 GB, free: 75.02 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.366e-05/6.723, allocations: 14.22 kB / 2.326 GB, free: 75.02 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/6.723, allocations: 2.875 kB / 2.326 GB, free: 75.02 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001162/6.724, allocations: 0.6599 MB / 2.327 GB, free: 74.93 MB / 0.7136 GB Warning: The model contains alias variables with conflicting start and/or 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.004157/6.729, allocations: 2.333 MB / 2.329 GB, free: 74.42 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.129e-06/6.729, allocations: 3.312 kB / 2.329 GB, free: 74.42 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006679/6.729, allocations: 149.4 kB / 2.329 GB, free: 74.42 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001606/6.73, allocations: 32.72 kB / 2.329 GB, free: 74.41 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.186e-05/6.73, allocations: 18.56 kB / 2.329 GB, free: 74.41 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000804/6.73, allocations: 1.271 MB / 2.331 GB, free: 73.22 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.32e-06/6.73, allocations: 3.625 kB / 2.331 GB, free: 73.22 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002197/6.733, allocations: 1.475 MB / 2.332 GB, free: 72.76 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0007352/6.733, allocations: 339.9 kB / 2.332 GB, free: 72.58 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001788/6.734, allocations: 7.891 kB / 2.332 GB, free: 72.57 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009247/6.734, allocations: 81.78 kB / 2.332 GB, free: 72.57 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001499/6.735, allocations: 66.44 kB / 2.332 GB, free: 72.56 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.541e-05/6.735, allocations: 35.31 kB / 2.332 GB, free: 72.56 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 0.001348/6.736, allocations: 0.8841 MB / 2.333 GB, free: 72.45 MB / 0.7136 GB Notification: Performance of sort global known variables: time 1.51e-07/6.736, allocations: 0 / 2.333 GB, free: 72.45 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.004325/6.74, allocations: 1.04 MB / 2.334 GB, free: 72.27 MB / 0.7136 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 6 (vol.dynBal.U,mov.filter.s[1],mov.filter.s[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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (77): * Single equations (assignments): 69 * 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.002266/6.743, allocations: 1.104 MB / 2.335 GB, free: 72 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.002116/6.745, allocations: 1.294 MB / 2.337 GB, free: 71.85 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 5.761e-06/6.745, allocations: 0 / 2.337 GB, free: 71.85 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.0006979/6.746, allocations: 472.5 kB / 2.337 GB, free: 71.75 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003566/6.749, allocations: 0.7274 MB / 2.338 GB, free: 71.74 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00435/6.753, allocations: 2.328 MB / 2.34 GB, free: 71.02 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008705/6.754, allocations: 1.434 MB / 2.342 GB, free: 70.3 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 0.00254/6.757, allocations: 0.5501 MB / 2.342 GB, free: 70.28 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002732/6.757, allocations: 107.3 kB / 2.342 GB, free: 70.28 MB / 0.7136 GB Notification: Performance of SimCode: time 1.192e-06/6.757, allocations: 0 / 2.342 GB, free: 70.28 MB / 0.7136 GB Notification: Performance of Templates: time 0.05827/6.816, allocations: 34.33 MB / 2.376 GB, free: 68.36 MB / 0.7136 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)