Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Storage.Examples.Stratified.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: "" <> buildModelFMU(BuildingSystems.Fluid.Storage.Examples.Stratified,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Storage_Examples_Stratified",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Storage.Examples.Stratified,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Storage_Examples_Stratified",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8564/0.8564, allocations: 143.3 MB / 158.3 MB, free: 5.781 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.001644/0.001644, allocations: 185.7 kB / 191.5 MB, free: 5.754 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.77/1.77, allocations: 223.2 MB / 447.7 MB, free: 4.84 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.001179/0.001179, allocations: 76.41 kB / 0.5187 GB, free: 1.207 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002176/0.002176, allocations: 270.5 kB / 0.6005 GB, free: 48.77 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006848/0.0006849, allocations: 14.09 kB / 0.6929 GB, free: 59.7 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2257/0.2264, allocations: 82.78 MB / 0.7738 GB, free: 13.79 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.022/1.248, allocations: 382.7 MB / 1.147 GB, free: 4.23 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003811/1.249, allocations: 95.08 kB / 1.148 GB, free: 4.18 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 11.99/13.23, allocations: 2.973 GB / 4.121 GB, free: 81.81 MB / 0.7448 GB Notification: Performance of FrontEnd: time 2.275e-06/13.23, allocations: 4 kB / 4.121 GB, free: 81.8 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 0.001756/13.24, allocations: 256.4 kB / 4.121 GB, free: 81.77 MB / 0.7448 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.03906/13.27, allocations: 9.808 MB / 4.131 GB, free: 78.09 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 5.879e-05/13.27, allocations: 10.09 kB / 4.131 GB, free: 78.09 MB / 0.7448 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006792/13.28, allocations: 1.15 MB / 4.132 GB, free: 78 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008517/13.29, allocations: 1.174 MB / 4.133 GB, free: 77.45 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03164/13.32, allocations: 10.78 MB / 4.143 GB, free: 76.35 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009968/13.32, allocations: 0.617 MB / 4.144 GB, free: 76.33 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004799/13.33, allocations: 0.8213 MB / 4.145 GB, free: 76.32 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03938/13.37, allocations: 11.7 MB / 4.156 GB, free: 75.07 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006635/13.37, allocations: 30.81 kB / 4.156 GB, free: 75.06 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004069/13.37, allocations: 360.9 kB / 4.157 GB, free: 75.06 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003487/13.37, allocations: 248.5 kB / 4.157 GB, free: 75.05 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02622/13.4, allocations: 9.632 MB / 4.166 GB, free: 72.99 MB / 0.7448 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.09386/13.49, allocations: 46.6 MB / 4.212 GB, free: 38.84 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01118/13.5, allocations: 6.316 MB / 4.218 GB, free: 32.53 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001367/13.5, allocations: 0.8219 MB / 4.219 GB, free: 31.58 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007922/13.51, allocations: 3.402 MB / 4.222 GB, free: 28.15 MB / 0.7448 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.006382/13.52, allocations: 0.5603 MB / 4.223 GB, free: 27.58 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=449): time 2.904e-05/13.52, allocations: 0 / 4.223 GB, free: 27.58 MB / 0.7448 GB Notification: Performance of matching and sorting (n=449): time 0.01979/13.54, allocations: 9.016 MB / 4.231 GB, free: 18.5 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.521e-05/13.54, allocations: 162.2 kB / 4.232 GB, free: 18.31 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01855/13.56, allocations: 7.09 MB / 4.238 GB, free: 11.25 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 0.001723/13.56, allocations: 109.7 kB / 4.239 GB, free: 11.13 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 0.008209/13.57, allocations: 4.278 MB / 4.243 GB, free: 6.836 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 0.003606/13.57, allocations: 1.564 MB / 4.244 GB, free: 5.289 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001425/13.57, allocations: 116 kB / 4.244 GB, free: 5.176 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0008922/13.57, allocations: 0.542 MB / 4.245 GB, free: 4.625 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006908/13.58, allocations: 2.99 MB / 4.248 GB, free: 1.629 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.6651/14.25, allocations: 4.855 MB / 4.253 GB, free: 84.73 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009595/14.26, allocations: 4.02 MB / 4.256 GB, free: 84.62 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001573/14.26, allocations: 16.16 kB / 4.256 GB, free: 84.62 MB / 0.7448 GB Notification: Performance of matching and sorting (n=754) (initialization): time 0.02795/14.28, allocations: 8.846 MB / 4.265 GB, free: 84.44 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 0.00842/14.29, allocations: 29.08 MB / 4.294 GB, free: 54.26 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003117/14.29, allocations: 59.59 kB / 4.294 GB, free: 54.26 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003294/14.29, allocations: 99.39 kB / 4.294 GB, free: 54.26 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008652/14.3, allocations: 1.437 MB / 4.295 GB, free: 54.26 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004019/14.3, allocations: 127 kB / 4.295 GB, free: 54.26 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0113/14.31, allocations: 0.6238 MB / 4.296 GB, free: 54.26 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00238/14.32, allocations: 284.3 kB / 4.296 GB, free: 54.26 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 2.293e-05/14.32, allocations: 4.25 kB / 4.296 GB, free: 54.26 MB / 0.7448 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02163/14.34, allocations: 8.265 MB / 4.304 GB, free: 54.11 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003724/14.34, allocations: 60.88 kB / 4.304 GB, free: 54.11 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001915/14.34, allocations: 97.22 kB / 4.304 GB, free: 54.11 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007076/14.35, allocations: 1.44 MB / 4.306 GB, free: 54.11 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002889/14.35, allocations: 128.2 kB / 4.306 GB, free: 54.11 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01005/14.36, allocations: 0.6039 MB / 4.306 GB, free: 54.11 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001977/14.36, allocations: 285 kB / 4.307 GB, free: 54.11 MB / 0.7448 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 264 * 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 (744): * Single equations (assignments): 742 * 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.01202/14.37, allocations: 3.552 MB / 4.31 GB, free: 53.86 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004084/14.37, allocations: 0.709 MB / 4.311 GB, free: 53.86 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02028/14.39, allocations: 7.113 MB / 4.318 GB, free: 53.58 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.639e-05/14.39, allocations: 46.23 kB / 4.318 GB, free: 53.58 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.176e-05/14.39, allocations: 3.281 kB / 4.318 GB, free: 53.58 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01291/14.41, allocations: 5.824 MB / 4.324 GB, free: 53.36 MB / 0.7448 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.0503/14.46, allocations: 16.39 MB / 4.34 GB, free: 52.44 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.018e-05/14.46, allocations: 0 / 4.34 GB, free: 52.44 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005074/14.46, allocations: 0.9002 MB / 4.34 GB, free: 52.44 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.83e-05/14.46, allocations: 18.72 kB / 4.34 GB, free: 52.44 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001201/14.46, allocations: 123.3 kB / 4.341 GB, free: 52.44 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.005e-05/14.46, allocations: 24.42 kB / 4.341 GB, free: 52.44 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.167e-06/14.46, allocations: 3.703 kB / 4.341 GB, free: 52.44 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02221/14.49, allocations: 10.76 MB / 4.351 GB, free: 51.55 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 0.009616/14.5, allocations: 1.756 MB / 4.353 GB, free: 51.09 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004565/14.5, allocations: 92.7 kB / 4.353 GB, free: 51.09 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01017/14.51, allocations: 0.5752 MB / 4.353 GB, free: 51.07 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001594/14.51, allocations: 254.9 kB / 4.354 GB, free: 51.07 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001701/14.51, allocations: 203.2 kB / 4.354 GB, free: 51.07 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 0.01471/14.53, allocations: 5.539 MB / 4.359 GB, free: 50.86 MB / 0.7448 GB Notification: Performance of sort global known variables: time 1.042e-06/14.53, allocations: 0 / 4.359 GB, free: 50.86 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.02618/14.56, allocations: 4.924 MB / 4.364 GB, free: 50.5 MB / 0.7448 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 21 (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,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 (445): * Single equations (assignments): 441 * 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.02173/14.58, allocations: 12.23 MB / 4.376 GB, free: 48.95 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.02133/14.6, allocations: 11.46 MB / 4.387 GB, free: 48.43 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 1.529e-05/14.6, allocations: 5.406 kB / 4.387 GB, free: 48.43 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 0.005461/14.6, allocations: 3.198 MB / 4.39 GB, free: 48.21 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02514/14.63, allocations: 4.4 MB / 4.395 GB, free: 48.18 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2489/14.88, allocations: 114.4 MB / 4.506 GB, free: 19.21 MB / 0.7917 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008567/14.89, allocations: 6.249 MB / 4.513 GB, free: 17.22 MB / 0.7917 GB Notification: Performance of simCode: alias equations: time 0.01563/14.9, allocations: 4.368 MB / 4.517 GB, free: 15.8 MB / 0.7917 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009059/14.91, allocations: 3.715 MB / 4.52 GB, free: 12.37 MB / 0.7917 GB Notification: Performance of SimCode: time 1.382e-06/14.91, allocations: 2.734 kB / 4.52 GB, free: 12.37 MB / 0.7917 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9564/15.87, allocations: 236.9 MB / 4.752 GB, free: 58.41 MB / 0.7917 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001908/15.87, allocations: 221.4 kB / 4.752 GB, free: 58.18 MB / 0.7917 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.59/27.46, allocations: 0 / 4.752 GB, free: 58.18 MB / 0.7917 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Storage.Examples.Stratified.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Storage.Examples.Stratified.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Storage.Examples.Stratified.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Storage.Examples.Stratified.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Storage_Examples_Stratified_fmu --startTime=0 --stopTime=10800 --timeout=50 --tolerance=1e-08 BuildingSystems_BuildingSystems_Fluid_Storage_Examples_Stratified.fmu > BuildingSystems_BuildingSystems.Fluid.Storage.Examples.Stratified.pipe 2>&1)