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: "" <> buildModelFMU(BuildSysPro.IBPSA.Fluid.Storage.Examples.Stratified,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Fluid_Storage_Examples_Stratified",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Fluid.Storage.Examples.Stratified,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Fluid_Storage_Examples_Stratified",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo): time 0.7351/0.7351, allocations: 127.4 MB / 134.9 MB, free: 3.73 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.001506/0.001506, allocations: 180.8 kB / 164.7 MB, free: 6.531 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.701/1.701, allocations: 205.2 MB / 399.5 MB, free: 5.883 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.00102/0.00102, allocations: 95.5 kB / 476.7 MB, free: 8.605 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 2.588e-05/2.622e-05, allocations: 4 kB / 0.5467 GB, free: 60.41 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1669/0.167, allocations: 76.76 MB / 0.6216 GB, free: 15.58 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.218/1.385, allocations: 372.2 MB / 0.9851 GB, free: 170.3 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002326/1.385, allocations: 95.94 kB / 0.9852 GB, free: 170.2 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 10.06/11.45, allocations: 2.789 GB / 3.774 GB, free: 74.5 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.863e-06/11.45, allocations: 3.781 kB / 3.774 GB, free: 74.5 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 0.0014/11.45, allocations: 254.1 kB / 3.774 GB, free: 74.46 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.02715/11.48, allocations: 8.238 MB / 3.782 GB, free: 71.41 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.639e-05/11.48, allocations: 10.5 kB / 3.782 GB, free: 71.41 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007496/11.49, allocations: 1.15 MB / 3.783 GB, free: 70.86 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02933/11.52, allocations: 12.02 MB / 3.795 GB, free: 69.74 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005584/11.52, allocations: 267 kB / 3.795 GB, free: 69.74 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003659/11.52, allocations: 497 kB / 3.796 GB, free: 69.73 MB / 0.6823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02396/11.54, allocations: 8.853 MB / 3.805 GB, free: 69.7 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03667/11.58, allocations: 10.14 MB / 3.814 GB, free: 68.53 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000792/11.58, allocations: 23.91 kB / 3.814 GB, free: 68.53 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004336/11.59, allocations: 10.72 kB / 3.814 GB, free: 68.53 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003667/11.59, allocations: 247.7 kB / 3.815 GB, free: 68.53 MB / 0.6823 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.08168/11.67, allocations: 44.81 MB / 3.858 GB, free: 40.8 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.009946/11.68, allocations: 5.937 MB / 3.864 GB, free: 38.45 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007463/11.69, allocations: 4.598 MB / 3.869 GB, free: 36.07 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001349/11.69, allocations: 0.83 MB / 3.87 GB, free: 35.16 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006117/11.69, allocations: 3.027 MB / 3.873 GB, free: 32.73 MB / 0.6823 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.005206/11.7, allocations: 385.2 kB / 3.873 GB, free: 32.37 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=452): time 2.571e-05/11.7, allocations: 0 / 3.873 GB, free: 32.37 MB / 0.6823 GB Notification: Performance of matching and sorting (n=452): time 0.01377/11.71, allocations: 6.151 MB / 3.879 GB, free: 27.1 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.317e-05/11.71, allocations: 154.3 kB / 3.879 GB, free: 26.93 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0129/11.73, allocations: 5.629 MB / 3.885 GB, free: 22.07 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 0.001372/11.73, allocations: 29.7 kB / 3.885 GB, free: 22.04 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.005682/11.73, allocations: 4.244 MB / 3.889 GB, free: 18.2 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.002692/11.74, allocations: 1.517 MB / 3.89 GB, free: 16.8 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00112/11.74, allocations: 224 / 3.89 GB, free: 16.8 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0005941/11.74, allocations: 0.5482 MB / 3.891 GB, free: 16.31 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004669/11.74, allocations: 2.735 MB / 3.893 GB, free: 13.94 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00633/11.75, allocations: 4.667 MB / 3.898 GB, free: 8.84 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007339/11.76, allocations: 4.049 MB / 3.902 GB, free: 5.551 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.95e-05/11.76, allocations: 16 kB / 3.902 GB, free: 5.535 MB / 0.6823 GB Notification: Performance of matching and sorting (n=757) (initialization): time 0.5938/12.35, allocations: 8.197 MB / 3.91 GB, free: 69.77 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.01005/12.36, allocations: 29.53 MB / 3.939 GB, free: 54.87 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000266/12.36, allocations: 62.77 kB / 3.939 GB, free: 54.87 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002984/12.36, allocations: 101.7 kB / 3.939 GB, free: 54.87 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008482/12.37, allocations: 1.468 MB / 3.94 GB, free: 54.87 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002596/12.37, allocations: 133.2 kB / 3.94 GB, free: 54.87 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009826/12.38, allocations: 470.5 kB / 3.941 GB, free: 54.87 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001987/12.38, allocations: 291.7 kB / 3.941 GB, free: 54.87 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.922e-05/12.38, allocations: 2.844 kB / 3.941 GB, free: 54.87 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01784/12.4, allocations: 7.558 MB / 3.949 GB, free: 54.78 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002411/12.4, allocations: 62 kB / 3.949 GB, free: 54.78 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001573/12.4, allocations: 105.5 kB / 3.949 GB, free: 54.78 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007358/12.41, allocations: 1.448 MB / 3.95 GB, free: 54.78 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000247/12.41, allocations: 132.3 kB / 3.95 GB, free: 54.78 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.008887/12.42, allocations: 437.9 kB / 3.951 GB, free: 54.78 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001924/12.42, allocations: 287.1 kB / 3.951 GB, free: 54.78 MB / 0.698 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 () * 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.002165/12.42, allocations: 362.3 kB / 3.951 GB, free: 54.61 MB / 0.698 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01467/12.43, allocations: 6.116 MB / 3.957 GB, free: 54.49 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002492/12.44, allocations: 0.6207 MB / 3.958 GB, free: 54.48 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01534/12.45, allocations: 6.742 MB / 3.964 GB, free: 54.29 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.61e-05/12.45, allocations: 45.3 kB / 3.965 GB, free: 54.29 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.341e-05/12.45, allocations: 0 / 3.965 GB, free: 54.29 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01078/12.46, allocations: 5.642 MB / 3.97 GB, free: 54.12 MB / 0.698 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.03936/12.5, allocations: 14.96 MB / 3.985 GB, free: 53.25 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-05/12.5, allocations: 0 / 3.985 GB, free: 53.25 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004328/12.51, allocations: 0.9069 MB / 3.986 GB, free: 53.25 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.581e-05/12.51, allocations: 13.84 kB / 3.986 GB, free: 53.25 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005344/12.51, allocations: 68.11 kB / 3.986 GB, free: 53.25 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.68e-05/12.51, allocations: 17.12 kB / 3.986 GB, free: 53.25 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.603e-06/12.51, allocations: 3.953 kB / 3.986 GB, free: 53.25 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01652/12.52, allocations: 10.12 MB / 3.996 GB, free: 52.62 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007678/12.53, allocations: 1.578 MB / 3.997 GB, free: 52.2 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002868/12.53, allocations: 24.95 kB / 3.997 GB, free: 52.2 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007532/12.54, allocations: 471.8 kB / 3.998 GB, free: 52.18 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001312/12.54, allocations: 256.9 kB / 3.998 GB, free: 52.18 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006448/12.54, allocations: 159.7 kB / 3.998 GB, free: 52.18 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.009577/12.55, allocations: 4.303 MB / 4.002 GB, free: 51.96 MB / 0.698 GB Notification: Performance of sort global known variables: time 9.52e-07/12.55, allocations: 0 / 4.002 GB, free: 51.96 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.02478/12.58, allocations: 4.667 MB / 4.007 GB, free: 51.53 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) * 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.02121/12.6, allocations: 11.41 MB / 4.018 GB, free: 50.36 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.02084/12.62, allocations: 10.77 MB / 4.028 GB, free: 50.02 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 1.291e-05/12.62, allocations: 6.609 kB / 4.028 GB, free: 50.01 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.00661/12.63, allocations: 3.016 MB / 4.031 GB, free: 49.88 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02017/12.65, allocations: 3.42 MB / 4.035 GB, free: 49.81 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05347/12.7, allocations: 18.75 MB / 4.053 GB, free: 46.85 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01003/12.71, allocations: 6.236 MB / 4.059 GB, free: 45.87 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.02158/12.73, allocations: 5.732 MB / 4.065 GB, free: 45.45 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008934/12.74, allocations: 3.608 MB / 4.068 GB, free: 45.44 MB / 0.698 GB Notification: Performance of SimCode: time 1.693e-06/12.74, allocations: 0 / 4.068 GB, free: 45.44 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8848/13.63, allocations: 195.5 MB / 4.259 GB, free: 93.89 MB / 0.7136 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001897/13.63, allocations: 178.6 kB / 4.259 GB, free: 93.7 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.289/22.92, allocations: 4 kB / 4.259 GB, free: 93.7 MB / 0.7136 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildSysPro_BuildSysPro_IBPSA_Fluid_Storage_Examples_Stratified_fmu --startTime=0 --stopTime=10800 --timeout=50 --tolerance=1e-08 BuildSysPro_BuildSysPro_IBPSA_Fluid_Storage_Examples_Stratified.fmu > BuildSysPro_BuildSysPro.IBPSA.Fluid.Storage.Examples.Stratified.pipe 2>&1)