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.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.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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo): time 0.7722/0.7722, allocations: 128.8 MB / 143.7 MB, free: 2.293 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.001176/0.001176, allocations: 182 kB / 173.8 MB, free: 6.113 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.697/1.697, allocations: 205.4 MB / 409 MB, free: 10.46 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.001059/0.001059, allocations: 88.03 kB / 486.6 MB, free: 12.99 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003131/0.0003134, allocations: 12.78 kB / 0.5603 GB, free: 97.47 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1519/0.1523, allocations: 76.76 MB / 0.6353 GB, free: 30.52 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.153/1.306, allocations: 372.7 MB / 0.9993 GB, free: 173.5 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000321/1.306, allocations: 97.98 kB / 0.9994 GB, free: 173.5 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 10.32/11.62, allocations: 2.81 GB / 3.81 GB, free: 60.95 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.906e-06/11.62, allocations: 1.25 kB / 3.81 GB, free: 60.95 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 0.001714/11.62, allocations: 250.2 kB / 3.81 GB, free: 60.91 MB / 0.6823 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.03989/11.66, allocations: 9.767 MB / 3.82 GB, free: 57.49 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.306e-05/11.66, allocations: 11.16 kB / 3.82 GB, free: 57.49 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008278/11.67, allocations: 1.15 MB / 3.821 GB, free: 56.95 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03377/11.71, allocations: 12.06 MB / 3.833 GB, free: 55.82 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009226/11.71, allocations: 0.6156 MB / 3.833 GB, free: 55.8 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006398/11.71, allocations: 0.8188 MB / 3.834 GB, free: 55.79 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03595/11.75, allocations: 11.59 MB / 3.845 GB, free: 54.6 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004962/11.75, allocations: 28.59 kB / 3.845 GB, free: 54.6 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003122/11.75, allocations: 346.9 kB / 3.846 GB, free: 54.6 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002571/11.75, allocations: 249.1 kB / 3.846 GB, free: 54.6 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02477/11.78, allocations: 9.681 MB / 3.855 GB, free: 54.54 MB / 0.6823 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.09691/11.88, allocations: 46.41 MB / 3.901 GB, free: 50.88 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01293/11.89, allocations: 6.373 MB / 3.907 GB, free: 50.59 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001414/11.89, allocations: 0.8197 MB / 3.908 GB, free: 49.84 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.008301/11.9, allocations: 3.353 MB / 3.911 GB, free: 49.67 MB / 0.698 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.006985/11.91, allocations: 0.543 MB / 3.911 GB, free: 49.37 MB / 0.698 GB Notification: Performance of pre-optimization done (n=452): time 3.658e-05/11.91, allocations: 0 / 3.911 GB, free: 49.37 MB / 0.698 GB Notification: Performance of matching and sorting (n=452): time 0.02343/11.93, allocations: 9.125 MB / 3.92 GB, free: 48.61 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001099/11.93, allocations: 153.2 kB / 3.921 GB, free: 48.48 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01778/11.95, allocations: 6.902 MB / 3.927 GB, free: 48.06 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 0.001568/11.95, allocations: 106.3 kB / 3.927 GB, free: 48.03 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.006782/11.96, allocations: 4.253 MB / 3.932 GB, free: 46.41 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 0.003185/11.96, allocations: 1.573 MB / 3.933 GB, free: 45.43 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001423/11.96, allocations: 114.5 kB / 3.933 GB, free: 45.43 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0008126/11.96, allocations: 0.5405 MB / 3.934 GB, free: 45.11 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007455/11.97, allocations: 2.967 MB / 3.937 GB, free: 45.1 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009413/11.98, allocations: 4.926 MB / 3.941 GB, free: 42.77 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009653/11.99, allocations: 4.022 MB / 3.945 GB, free: 42.66 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002326/11.99, allocations: 19.09 kB / 3.945 GB, free: 42.66 MB / 0.698 GB Notification: Performance of matching and sorting (n=757) (initialization): time 0.02515/12.01, allocations: 8.854 MB / 3.954 GB, free: 42.12 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.01216/12.03, allocations: 30.76 MB / 3.984 GB, free: 25.62 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002913/12.03, allocations: 63.31 kB / 3.984 GB, free: 25.62 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002003/12.03, allocations: 101.4 kB / 3.984 GB, free: 25.62 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00736/12.03, allocations: 1.464 MB / 3.986 GB, free: 25.56 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002393/12.03, allocations: 136.1 kB / 3.986 GB, free: 25.56 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01095/12.04, allocations: 0.5839 MB / 3.986 GB, free: 25.38 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002066/12.05, allocations: 290 kB / 3.987 GB, free: 25.33 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.774e-05/12.05, allocations: 3.312 kB / 3.987 GB, free: 25.33 MB / 0.7136 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0206/12.07, allocations: 8.21 MB / 3.995 GB, free: 22.34 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003311/12.07, allocations: 63.38 kB / 3.995 GB, free: 22.34 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001838/12.07, allocations: 104.4 kB / 3.995 GB, free: 22.34 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007399/12.08, allocations: 1.441 MB / 3.996 GB, free: 22.19 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002698/12.08, allocations: 134.4 kB / 3.996 GB, free: 22.16 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01081/12.09, allocations: 0.5494 MB / 3.997 GB, free: 21.99 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002136/12.09, allocations: 288.1 kB / 3.997 GB, free: 21.94 MB / 0.7136 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.01127/12.1, allocations: 3.549 MB / 4.001 GB, free: 20.38 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003897/12.1, allocations: 0.692 MB / 4.001 GB, free: 20.02 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01924/12.12, allocations: 7.139 MB / 4.008 GB, free: 17.3 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.516e-05/12.12, allocations: 52.02 kB / 4.008 GB, free: 17.3 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.133e-05/12.12, allocations: 2.25 kB / 4.008 GB, free: 17.3 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0135/12.14, allocations: 5.838 MB / 4.014 GB, free: 15.18 MB / 0.7136 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.04642/12.18, allocations: 16.06 MB / 4.03 GB, free: 6.82 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.402e-05/12.18, allocations: 0 / 4.03 GB, free: 6.82 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004765/12.19, allocations: 0.8985 MB / 4.031 GB, free: 6.074 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.928e-05/12.19, allocations: 16 kB / 4.031 GB, free: 6.059 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000998/12.19, allocations: 122.2 kB / 4.031 GB, free: 5.957 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.44e-05/12.19, allocations: 16 kB / 4.031 GB, free: 5.941 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.649e-06/12.19, allocations: 4 kB / 4.031 GB, free: 5.938 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.5597/12.75, allocations: 11.81 MB / 4.042 GB, free: 83.74 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 0.008089/12.76, allocations: 1.665 MB / 4.044 GB, free: 83.64 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003623/12.76, allocations: 97.62 kB / 4.044 GB, free: 83.64 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.009374/12.77, allocations: 0.5407 MB / 4.044 GB, free: 83.64 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001501/12.77, allocations: 255.1 kB / 4.045 GB, free: 83.64 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006901/12.77, allocations: 160.3 kB / 4.045 GB, free: 83.64 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 0.01479/12.79, allocations: 5.395 MB / 4.05 GB, free: 83.43 MB / 0.7136 GB Notification: Performance of sort global known variables: time 8.51e-07/12.79, allocations: 1.594 kB / 4.05 GB, free: 83.43 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.02522/12.81, allocations: 4.815 MB / 4.055 GB, free: 83.43 MB / 0.7136 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.003872/12.82, allocations: 0.9253 MB / 4.056 GB, free: 83.3 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.02711/12.84, allocations: 11.43 MB / 4.067 GB, free: 82.96 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 1.136e-05/12.84, allocations: 2.094 kB / 4.067 GB, free: 82.96 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.006652/12.85, allocations: 3.213 MB / 4.07 GB, free: 82.82 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02372/12.87, allocations: 4.334 MB / 4.074 GB, free: 82.79 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05481/12.93, allocations: 22.5 MB / 4.096 GB, free: 75.27 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01284/12.94, allocations: 6.226 MB / 4.102 GB, free: 74.39 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 0.01794/12.96, allocations: 4.322 MB / 4.107 GB, free: 74.14 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004/12.96, allocations: 0.6083 MB / 4.107 GB, free: 74.13 MB / 0.7136 GB Notification: Performance of SimCode: time 1.383e-06/12.96, allocations: 0 / 4.107 GB, free: 74.13 MB / 0.7136 GB Notification: Performance of Templates: time 0.2524/13.22, allocations: 153.8 MB / 4.257 GB, free: 19.91 MB / 0.7136 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)