Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Fluid.Storage.Examples.Stratified.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.Storage.Examples.Stratified,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Fluid.Storage.Examples.Stratified") translateModel(BuildSysPro.IBPSA.Fluid.Storage.Examples.Stratified,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Fluid.Storage.Examples.Stratified") [/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.6483/0.6483, allocations: 117.9 MB / 133.9 MB, free: 4.5 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.001089/0.001089, allocations: 183.6 kB / 161.7 MB, free: 2.746 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.817/1.817, allocations: 205.4 MB / 394.8 MB, free: 20.95 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.0009376/0.0009376, allocations: 101.3 kB / 470.1 MB, free: 12.14 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000441/0.0004416, allocations: 12 kB / 0.5423 GB, free: 6.863 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3948/0.3953, allocations: 74.53 MB / 0.6151 GB, free: 54.13 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.7609/1.156, allocations: 371.6 MB / 0.978 GB, free: 8.852 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003427/1.157, allocations: 92.83 kB / 0.9781 GB, free: 8.801 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 11.03/12.19, allocations: 2.792 GB / 3.77 GB, free: 59.56 MB / 0.6667 GB Notification: Performance of FrontEnd: time 3.687e-06/12.19, allocations: 6.359 kB / 3.77 GB, free: 59.56 MB / 0.6667 GB Notification: Performance of Transformations before backend: time 0.002272/12.19, allocations: 249.3 kB / 3.77 GB, free: 59.52 MB / 0.6667 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2145 * Number of variables: 2145 Notification: Performance of Generate backend data structure: time 0.03959/12.23, allocations: 9.653 MB / 3.78 GB, free: 56.13 MB / 0.6667 GB Notification: Performance of prepare preOptimizeDAE: time 5.056e-05/12.23, allocations: 13.03 kB / 3.78 GB, free: 56.13 MB / 0.6667 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008548/12.24, allocations: 1.154 MB / 3.781 GB, free: 55.59 MB / 0.6667 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03576/12.28, allocations: 11.55 MB / 3.792 GB, free: 54.16 MB / 0.6667 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009542/12.28, allocations: 0.6152 MB / 3.793 GB, free: 54.14 MB / 0.6667 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00484/12.28, allocations: 0.8168 MB / 3.794 GB, free: 54.14 MB / 0.6667 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04262/12.32, allocations: 11.65 MB / 3.805 GB, free: 52.95 MB / 0.6667 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007343/12.33, allocations: 26.28 kB / 3.805 GB, free: 52.95 MB / 0.6667 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004426/12.33, allocations: 347.4 kB / 3.805 GB, free: 52.95 MB / 0.6667 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004007/12.33, allocations: 249.1 kB / 3.806 GB, free: 52.95 MB / 0.6667 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03145/12.36, allocations: 9.683 MB / 3.815 GB, free: 52.89 MB / 0.6667 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.08242/12.44, allocations: 46.1 MB / 3.86 GB, free: 33.22 MB / 0.6667 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01092/12.46, allocations: 6.25 MB / 3.866 GB, free: 32.92 MB / 0.6667 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008669/12.46, allocations: 5.442 MB / 3.871 GB, free: 32.77 MB / 0.6667 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001518/12.47, allocations: 0.8305 MB / 3.872 GB, free: 32.01 MB / 0.6667 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.008151/12.47, allocations: 3.345 MB / 3.876 GB, free: 31.84 MB / 0.6667 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.006077/12.48, allocations: 0.5048 MB / 3.876 GB, free: 31.57 MB / 0.6667 GB Notification: Performance of pre-optimization done (n=452): time 2.76e-05/12.48, allocations: 1.25 kB / 3.876 GB, free: 31.57 MB / 0.6667 GB Notification: Performance of matching and sorting (n=452): time 0.01999/12.5, allocations: 8.912 MB / 3.885 GB, free: 31.01 MB / 0.6667 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.459e-05/12.5, allocations: 161.5 kB / 3.885 GB, free: 30.88 MB / 0.6667 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01671/12.52, allocations: 7.073 MB / 3.892 GB, free: 30.41 MB / 0.6667 GB Notification: Performance of collectPreVariables (initialization): time 0.001423/12.52, allocations: 104 kB / 3.892 GB, free: 30.38 MB / 0.6667 GB Notification: Performance of collectInitialEqns (initialization): time 0.005692/12.52, allocations: 4.251 MB / 3.896 GB, free: 28.77 MB / 0.6667 GB Notification: Performance of collectInitialBindings (initialization): time 0.002969/12.53, allocations: 1.568 MB / 3.898 GB, free: 27.79 MB / 0.6667 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001238/12.53, allocations: 120.9 kB / 3.898 GB, free: 27.79 MB / 0.6667 GB Notification: Performance of setup shared object (initialization): time 0.0006803/12.53, allocations: 0.5466 MB / 3.898 GB, free: 27.47 MB / 0.6667 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005936/12.53, allocations: 2.945 MB / 3.901 GB, free: 27.45 MB / 0.6667 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007254/12.54, allocations: 4.935 MB / 3.906 GB, free: 25.13 MB / 0.6667 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01521/12.56, allocations: 8.621 MB / 3.914 GB, free: 22.71 MB / 0.6667 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000147/12.56, allocations: 18.31 kB / 3.914 GB, free: 22.71 MB / 0.6667 GB Notification: Performance of matching and sorting (n=757) (initialization): time 0.02155/12.58, allocations: 8.826 MB / 3.923 GB, free: 20.67 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 0.001744/12.58, allocations: 1.992 MB / 3.925 GB, free: 18.04 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001893/12.58, allocations: 63.19 kB / 3.925 GB, free: 18.04 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001724/12.58, allocations: 97.64 kB / 3.925 GB, free: 18.04 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006418/12.59, allocations: 1.399 MB / 3.926 GB, free: 17.99 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002429/12.59, allocations: 137.9 kB / 3.927 GB, free: 17.97 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009677/12.6, allocations: 0.5784 MB / 3.927 GB, free: 17.79 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001823/12.6, allocations: 287.5 kB / 3.927 GB, free: 17.74 MB / 0.6667 GB Notification: Performance of prepare postOptimizeDAE: time 1.753e-05/12.6, allocations: 3.625 kB / 3.927 GB, free: 17.74 MB / 0.6667 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01891/12.62, allocations: 8.182 MB / 3.935 GB, free: 14.64 MB / 0.6667 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002381/12.62, allocations: 60.56 kB / 3.935 GB, free: 14.64 MB / 0.6667 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001583/12.62, allocations: 95.12 kB / 3.936 GB, free: 14.64 MB / 0.6667 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006374/12.63, allocations: 1.388 MB / 3.937 GB, free: 14.49 MB / 0.6667 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000217/12.63, allocations: 134.5 kB / 3.937 GB, free: 14.46 MB / 0.6667 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01071/12.64, allocations: 0.5373 MB / 3.938 GB, free: 14.3 MB / 0.6667 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00241/12.64, allocations: 291.4 kB / 3.938 GB, free: 14.25 MB / 0.6667 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 280 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition1,$whenCondition2,TWat.a,TWat.b,TWat.last,$PRE.TWat.nextEvent,TWat.nextEvent,TWat.nextEventScaled,P.a,P.b,P.last,$PRE.P.nextEvent,P.nextEvent,P.nextEventScaled,dH.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (747): * Single equations (assignments): 745 * Array equations: 0 * Algorithm blocks: 2 * 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.01071/12.65, allocations: 3.548 MB / 3.941 GB, free: 12.68 MB / 0.6667 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003427/12.65, allocations: 0.7003 MB / 3.942 GB, free: 12.32 MB / 0.6667 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01939/12.67, allocations: 7.096 MB / 3.949 GB, free: 9.633 MB / 0.6667 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.783e-05/12.67, allocations: 41.59 kB / 3.949 GB, free: 9.633 MB / 0.6667 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.886e-05/12.67, allocations: 0 / 3.949 GB, free: 9.633 MB / 0.6667 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01722/12.69, allocations: 5.811 MB / 3.955 GB, free: 7.527 MB / 0.6667 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.06404/12.75, allocations: 16.3 MB / 3.971 GB, free: 13.37 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.253e-05/12.75, allocations: 2.938 kB / 3.971 GB, free: 13.37 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007803/12.76, allocations: 0.9465 MB / 3.971 GB, free: 12.58 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.245e-05/12.76, allocations: 19.66 kB / 3.972 GB, free: 12.57 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001228/12.76, allocations: 120.3 kB / 3.972 GB, free: 12.46 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.419e-05/12.76, allocations: 16 kB / 3.972 GB, free: 12.45 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/12.76, allocations: 1.875 kB / 3.972 GB, free: 12.45 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02568/12.79, allocations: 10.5 MB / 3.982 GB, free: 3.332 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006785/12.8, allocations: 1.566 MB / 3.983 GB, free: 1.949 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003478/12.8, allocations: 95.8 kB / 3.984 GB, free: 1.859 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008472/12.81, allocations: 0.5739 MB / 3.984 GB, free: 1.434 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00153/12.81, allocations: 257.3 kB / 3.984 GB, free: 1.273 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001318/12.81, allocations: 162 kB / 3.984 GB, free: 1.141 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 0.02289/12.83, allocations: 5.724 MB / 3.99 GB, free: 15.13 MB / 0.698 GB Notification: Performance of sort global known variables: time 9.72e-07/12.83, allocations: 6.297 kB / 3.99 GB, free: 15.13 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.02311/12.86, allocations: 4.755 MB / 3.995 GB, free: 10.38 MB / 0.698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 23 (tanSim.vol[1].dynBal.U,tanSim.vol[2].dynBal.U,tanSim.vol[3].dynBal.U,tanSim.vol[4].dynBal.U,tanSim.vol[5].dynBal.U,tanSim.vol[6].dynBal.U,tanSim.vol[7].dynBal.U,tanSim.vol[8].dynBal.U,tanSim.vol[9].dynBal.U,tanSim.vol[10].dynBal.U,tanEnh.vol[1].dynBal.U,tanEnh.vol[2].dynBal.U,tanEnh.vol[3].dynBal.U,tanEnh.vol[4].dynBal.U,tanEnh.vol[5].dynBal.U,tanEnh.vol[6].dynBal.U,tanEnh.vol[7].dynBal.U,tanEnh.vol[8].dynBal.U,tanEnh.vol[9].dynBal.U,tanEnh.vol[10].dynBal.U,HOut_flow.h_out,HOut_flow1.h_out,dH.y) * Number of discrete variables: 12 ($whenCondition1,$whenCondition2,TWat.a,TWat.b,TWat.last,TWat.nextEvent,TWat.nextEventScaled,P.a,P.b,P.last,P.nextEvent,P.nextEventScaled) * Number of discrete states: 12 (P.nextEvent,P.last,P.nextEventScaled,P.b,P.a,$whenCondition2,TWat.nextEvent,TWat.last,TWat.nextEventScaled,TWat.b,TWat.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (448): * Single equations (assignments): 444 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 2 * 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 Backend phase and start with SimCode phase: time 0.003111/12.86, allocations: 0.8933 MB / 3.996 GB, free: 9.648 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.02398/12.88, allocations: 11.41 MB / 4.007 GB, free: 0 / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 1.618e-05/12.88, allocations: 3.141 kB / 4.007 GB, free: 0 / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.4577/13.34, allocations: 3.171 MB / 4.01 GB, free: 81.48 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.03022/13.37, allocations: 4.363 MB / 4.014 GB, free: 81.45 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04498/13.42, allocations: 22.53 MB / 4.036 GB, free: 73.95 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01508/13.43, allocations: 6.068 MB / 4.042 GB, free: 73.07 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.01691/13.45, allocations: 4.194 MB / 4.046 GB, free: 72.94 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003247/13.45, allocations: 0.6065 MB / 4.047 GB, free: 72.93 MB / 0.698 GB Notification: Performance of SimCode: time 2.334e-06/13.45, allocations: 0 / 4.047 GB, free: 72.93 MB / 0.698 GB Notification: Performance of Templates: time 0.2593/13.71, allocations: 155 MB / 4.198 GB, free: 34.11 MB / 0.698 GB make -j1 -f BuildSysPro_BuildSysPro.IBPSA.Fluid.Storage.Examples.Stratified.makefile (rm -f BuildSysPro_BuildSysPro.IBPSA.Fluid.Storage.Examples.Stratified.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Fluid.Storage.Examples.Stratified.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Fluid.Storage.Examples.Stratified.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Fluid.Storage.Examples.Stratified.sim & ./BuildSysPro_BuildSysPro.IBPSA.Fluid.Storage.Examples.Stratified -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildSysPro_BuildSysPro.IBPSA.Fluid.Storage.Examples.Stratified.pipe 2>&1)