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.7719/0.7719, allocations: 127.3 MB / 139.8 MB, free: 15.45 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.001127/0.001127, allocations: 188.8 kB / 169.7 MB, free: 1.73 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.598/1.598, allocations: 205.1 MB / 404.5 MB, free: 1.594 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.0009545/0.0009544, allocations: 78.23 kB / 481.8 MB, free: 4.254 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 3.294e-05/3.297e-05, allocations: 4 kB / 0.5533 GB, free: 54.75 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1501/0.1501, allocations: 76.75 MB / 0.6282 GB, free: 9.938 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.18/1.33, allocations: 372.6 MB / 0.9921 GB, free: 140.4 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002436/1.331, allocations: 90.48 kB / 0.9922 GB, free: 140.4 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 11.07/12.4, allocations: 2.803 GB / 3.796 GB, free: 65.53 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.795e-06/12.4, allocations: 0 / 3.796 GB, free: 65.53 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 0.001803/12.4, allocations: 249.4 kB / 3.796 GB, free: 65.49 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.02978/12.43, allocations: 8.243 MB / 3.804 GB, free: 62.48 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.942e-05/12.43, allocations: 9.375 kB / 3.804 GB, free: 62.48 MB / 0.6823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005729/12.43, allocations: 1.136 MB / 3.805 GB, free: 62.39 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008263/12.44, allocations: 1.148 MB / 3.806 GB, free: 61.85 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03288/12.48, allocations: 12.03 MB / 3.818 GB, free: 60.72 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009646/12.48, allocations: 0.6141 MB / 3.818 GB, free: 60.7 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004472/12.48, allocations: 0.8165 MB / 3.819 GB, free: 60.7 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03833/12.52, allocations: 11.41 MB / 3.83 GB, free: 59.51 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007569/12.52, allocations: 28.94 kB / 3.83 GB, free: 59.51 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004265/12.52, allocations: 346.5 kB / 3.831 GB, free: 59.51 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003848/12.52, allocations: 255.3 kB / 3.831 GB, free: 59.51 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02781/12.55, allocations: 9.459 MB / 3.84 GB, free: 59.45 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.08578/12.64, allocations: 46.43 MB / 3.886 GB, free: 39.77 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01001/12.65, allocations: 6.262 MB / 3.892 GB, free: 39.47 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007134/12.66, allocations: 5.349 MB / 3.897 GB, free: 37.91 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001177/12.66, allocations: 0.8239 MB / 3.898 GB, free: 37.15 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.006179/12.66, allocations: 3.248 MB / 3.901 GB, free: 35.99 MB / 0.6823 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.005248/12.67, allocations: 0.5383 MB / 3.901 GB, free: 35.64 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=452): time 1.976e-05/12.67, allocations: 0 / 3.901 GB, free: 35.64 MB / 0.6823 GB Notification: Performance of matching and sorting (n=452): time 0.01379/12.68, allocations: 6.286 MB / 3.908 GB, free: 33.39 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.159e-05/12.68, allocations: 151.5 kB / 3.908 GB, free: 33.26 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01256/12.69, allocations: 6.83 MB / 3.914 GB, free: 30.9 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 0.001387/12.7, allocations: 108.4 kB / 3.914 GB, free: 30.81 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.004608/12.7, allocations: 4.259 MB / 3.919 GB, free: 27.59 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.002458/12.7, allocations: 1.568 MB / 3.92 GB, free: 26.39 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005266/12.7, allocations: 119.2 kB / 3.92 GB, free: 26.3 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0004067/12.7, allocations: 0.5489 MB / 3.921 GB, free: 25.89 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004259/12.71, allocations: 2.846 MB / 3.924 GB, free: 24.9 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005472/12.71, allocations: 4.81 MB / 3.928 GB, free: 21.44 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005877/12.72, allocations: 3.926 MB / 3.932 GB, free: 20.03 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.932e-05/12.72, allocations: 18.38 kB / 3.932 GB, free: 20.03 MB / 0.6823 GB Notification: Performance of matching and sorting (n=757) (initialization): time 0.01594/12.74, allocations: 8.625 MB / 3.941 GB, free: 14.8 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.009502/12.75, allocations: 30.75 MB / 3.971 GB, free: 13.93 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000184/12.75, allocations: 60 kB / 3.971 GB, free: 13.87 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001663/12.75, allocations: 107.3 kB / 3.971 GB, free: 13.77 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007261/12.75, allocations: 1.471 MB / 3.972 GB, free: 12.51 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001633/12.75, allocations: 132.8 kB / 3.972 GB, free: 12.39 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009499/12.76, allocations: 0.5715 MB / 3.973 GB, free: 11.93 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001898/12.76, allocations: 292.1 kB / 3.973 GB, free: 11.66 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 2.214e-05/12.76, allocations: 4 kB / 3.973 GB, free: 11.65 MB / 0.7136 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01658/12.78, allocations: 8.031 MB / 3.981 GB, free: 4.676 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001486/12.78, allocations: 63.95 kB / 3.981 GB, free: 4.613 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001209/12.78, allocations: 104 kB / 3.981 GB, free: 4.512 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006745/12.79, allocations: 1.448 MB / 3.983 GB, free: 3.277 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001964/12.79, allocations: 138.4 kB / 3.983 GB, free: 3.152 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009545/12.8, allocations: 0.5409 MB / 3.983 GB, free: 2.715 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001948/12.8, allocations: 287.7 kB / 3.984 GB, free: 2.445 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 () * 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.002194/12.8, allocations: 0.5427 MB / 3.984 GB, free: 1.891 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002684/12.81, allocations: 0.6908 MB / 3.985 GB, free: 1.191 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.581/13.39, allocations: 7.118 MB / 3.992 GB, free: 91.39 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.231e-05/13.39, allocations: 44.02 kB / 3.992 GB, free: 91.39 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.454e-05/13.39, allocations: 0 / 3.992 GB, free: 91.39 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00985/13.4, allocations: 5.633 MB / 3.997 GB, free: 91.16 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.04497/13.44, allocations: 16.03 MB / 4.013 GB, free: 90.21 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.391e-05/13.44, allocations: 0 / 4.013 GB, free: 90.21 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004351/13.45, allocations: 0.9071 MB / 4.014 GB, free: 90.21 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.42e-05/13.45, allocations: 17 kB / 4.014 GB, free: 90.21 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005448/13.45, allocations: 118.9 kB / 4.014 GB, free: 90.21 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.059e-05/13.45, allocations: 19.92 kB / 4.014 GB, free: 90.21 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/13.45, allocations: 0 / 4.014 GB, free: 90.21 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0165/13.46, allocations: 10.31 MB / 4.024 GB, free: 89.84 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006492/13.47, allocations: 1.663 MB / 4.026 GB, free: 89.58 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002879/13.47, allocations: 95.62 kB / 4.026 GB, free: 89.58 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.007789/13.48, allocations: 0.5347 MB / 4.026 GB, free: 89.56 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009597/13.48, allocations: 259.5 kB / 4.026 GB, free: 89.56 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005597/13.48, allocations: 160.9 kB / 4.027 GB, free: 89.56 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 0.01096/13.49, allocations: 5.332 MB / 4.032 GB, free: 89.31 MB / 0.7136 GB Notification: Performance of sort global known variables: time 9.01e-07/13.49, allocations: 0 / 4.032 GB, free: 89.31 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.02242/13.52, allocations: 4.81 MB / 4.037 GB, free: 88.96 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) * 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.02086/13.54, allocations: 11.63 MB / 4.048 GB, free: 87.71 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.02013/13.56, allocations: 11.34 MB / 4.059 GB, free: 87.33 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 8.145e-06/13.56, allocations: 1.406 kB / 4.059 GB, free: 87.33 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 0.005311/13.56, allocations: 3.105 MB / 4.062 GB, free: 87.19 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02359/13.59, allocations: 4.332 MB / 4.066 GB, free: 87.11 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04711/13.63, allocations: 19.41 MB / 4.085 GB, free: 84.16 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009204/13.64, allocations: 6.241 MB / 4.091 GB, free: 83.27 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 0.025/13.67, allocations: 6.565 MB / 4.098 GB, free: 83.18 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01027/13.68, allocations: 3.591 MB / 4.101 GB, free: 83.17 MB / 0.7136 GB Notification: Performance of SimCode: time 1.723e-06/13.68, allocations: 4 kB / 4.101 GB, free: 83.17 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.954/14.63, allocations: 234.5 MB / 4.33 GB, free: 91.37 MB / 0.7292 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001562/14.63, allocations: 199.4 kB / 4.33 GB, free: 91.14 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.575/24.21, allocations: 2.625 kB / 4.33 GB, free: 91.14 MB / 0.7292 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)