Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.Stratified.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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 Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Storage.Examples.Stratified,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_Storage_Examples_Stratified",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Examples.Stratified,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Fluid_Storage_Examples_Stratified",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.379/1.379, allocations: 249.5 MB / 257 MB, free: 6.867 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009821/0.0009822, allocations: 168.9 kB / 316.3 MB, free: 3.25 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.55/1.55, allocations: 205.3 MB / 0.5671 GB, free: 15.82 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001036/0.001035, allocations: 88.25 kB / 0.6714 GB, free: 4.941 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.913e-05/1.916e-05, allocations: 4 kB / 0.7815 GB, free: 102.6 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.216/0.216, allocations: 106.3 MB / 0.8853 GB, free: 12.18 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.566/1.782, allocations: 404.1 MB / 1.28 GB, free: 262 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000265/1.782, allocations: 89.88 kB / 1.28 GB, free: 262 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 10.29/12.07, allocations: 2.83 GB / 4.11 GB, free: 131.9 MB / 0.9011 GB Notification: Performance of FrontEnd: time 3.126e-06/12.07, allocations: 1.688 kB / 4.11 GB, free: 131.9 MB / 0.9011 GB Notification: Performance of Transformations before backend: time 0.002136/12.07, allocations: 248.3 kB / 4.111 GB, free: 131.9 MB / 0.9011 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.0352/12.11, allocations: 8.286 MB / 4.119 GB, free: 128.8 MB / 0.9011 GB Notification: Performance of prepare preOptimizeDAE: time 5.78e-05/12.11, allocations: 14.17 kB / 4.119 GB, free: 128.8 MB / 0.9011 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009204/12.12, allocations: 1.153 MB / 4.12 GB, free: 128.2 MB / 0.9011 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02991/12.15, allocations: 10.72 MB / 4.13 GB, free: 127.2 MB / 0.9011 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005399/12.15, allocations: 268.4 kB / 4.131 GB, free: 127.2 MB / 0.9011 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003912/12.15, allocations: 493.8 kB / 4.131 GB, free: 127.2 MB / 0.9011 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02217/12.17, allocations: 8.925 MB / 4.14 GB, free: 127.1 MB / 0.9011 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03367/12.21, allocations: 10.24 MB / 4.15 GB, free: 126 MB / 0.9011 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003879/12.21, allocations: 28.38 kB / 4.15 GB, free: 126 MB / 0.9011 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002671/12.21, allocations: 12.34 kB / 4.15 GB, free: 126 MB / 0.9011 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002371/12.21, allocations: 253.1 kB / 4.15 GB, free: 125.9 MB / 0.9011 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.07344/12.28, allocations: 44.48 MB / 4.193 GB, free: 98.78 MB / 0.9011 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007619/12.29, allocations: 6.039 MB / 4.199 GB, free: 96.39 MB / 0.9011 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005432/12.3, allocations: 4.671 MB / 4.204 GB, free: 94.5 MB / 0.9011 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001012/12.3, allocations: 0.822 MB / 4.205 GB, free: 93.59 MB / 0.9011 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004051/12.3, allocations: 3.141 MB / 4.208 GB, free: 91.07 MB / 0.9011 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.004823/12.31, allocations: 385.7 kB / 4.208 GB, free: 90.71 MB / 0.9011 GB Notification: Performance of pre-optimization done (n=455): time 9.167e-06/12.31, allocations: 4 kB / 4.208 GB, free: 90.71 MB / 0.9011 GB Notification: Performance of matching and sorting (n=455): time 0.01098/12.32, allocations: 6.169 MB / 4.214 GB, free: 85.41 MB / 0.9011 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.933e-05/12.32, allocations: 154.2 kB / 4.214 GB, free: 85.24 MB / 0.9011 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009925/12.33, allocations: 5.817 MB / 4.22 GB, free: 80.22 MB / 0.9011 GB Notification: Performance of collectPreVariables (initialization): time 0.001352/12.33, allocations: 29.7 kB / 4.22 GB, free: 80.19 MB / 0.9011 GB Notification: Performance of collectInitialEqns (initialization): time 0.004022/12.33, allocations: 4.266 MB / 4.224 GB, free: 76.33 MB / 0.9011 GB Notification: Performance of collectInitialBindings (initialization): time 0.002293/12.34, allocations: 1.525 MB / 4.226 GB, free: 74.92 MB / 0.9011 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003077/12.34, allocations: 0 / 4.226 GB, free: 74.92 MB / 0.9011 GB Notification: Performance of setup shared object (initialization): time 0.0003102/12.34, allocations: 0.5471 MB / 4.226 GB, free: 74.44 MB / 0.9011 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00351/12.34, allocations: 2.799 MB / 4.229 GB, free: 72.01 MB / 0.9011 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004521/12.34, allocations: 4.613 MB / 4.233 GB, free: 67.04 MB / 0.9011 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006658/12.35, allocations: 4.097 MB / 4.237 GB, free: 63.06 MB / 0.9011 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.831e-05/12.35, allocations: 16 kB / 4.237 GB, free: 63.04 MB / 0.9011 GB Notification: Performance of matching and sorting (n=758) (initialization): time 0.01772/12.37, allocations: 8.272 MB / 4.246 GB, free: 54.76 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 0.005968/12.38, allocations: 27.52 MB / 4.272 GB, free: 25.18 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001408/12.38, allocations: 60 kB / 4.273 GB, free: 25.12 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001488/12.38, allocations: 99.84 kB / 4.273 GB, free: 25.03 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006845/12.38, allocations: 1.454 MB / 4.274 GB, free: 23.58 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001672/12.38, allocations: 123.6 kB / 4.274 GB, free: 23.46 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00956/12.39, allocations: 0.51 MB / 4.275 GB, free: 22.95 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001977/12.39, allocations: 280 kB / 4.275 GB, free: 22.67 MB / 0.9011 GB Notification: Performance of prepare postOptimizeDAE: time 1.917e-05/12.39, allocations: 4 kB / 4.275 GB, free: 22.67 MB / 0.9011 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01908/12.41, allocations: 7.652 MB / 4.282 GB, free: 15.02 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002898/12.41, allocations: 56 kB / 4.282 GB, free: 14.96 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00015/12.41, allocations: 96 kB / 4.283 GB, free: 14.87 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007286/12.42, allocations: 1.451 MB / 4.284 GB, free: 13.41 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002055/12.42, allocations: 123.6 kB / 4.284 GB, free: 13.29 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009345/12.43, allocations: 498.3 kB / 4.285 GB, free: 12.8 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002017/12.43, allocations: 280 kB / 4.285 GB, free: 12.53 MB / 0.9011 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 260 * 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 (748): * Single equations (assignments): 746 * 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.003423/12.44, allocations: 355.5 kB / 4.285 GB, free: 12.16 MB / 0.9011 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01673/12.45, allocations: 6.203 MB / 4.291 GB, free: 5.945 MB / 0.9011 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003075/12.46, allocations: 0.6252 MB / 4.292 GB, free: 5.312 MB / 0.9011 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.7427/13.2, allocations: 6.815 MB / 4.298 GB, free: 130.8 MB / 0.9011 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001035/13.2, allocations: 44.83 kB / 4.299 GB, free: 130.8 MB / 0.9011 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.193e-05/13.2, allocations: 0 / 4.299 GB, free: 130.8 MB / 0.9011 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01748/13.22, allocations: 5.697 MB / 4.304 GB, free: 130.6 MB / 0.9011 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.04831/13.27, allocations: 15.38 MB / 4.319 GB, free: 129.8 MB / 0.9011 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.9e-05/13.27, allocations: 0.875 kB / 4.319 GB, free: 129.8 MB / 0.9011 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005233/13.27, allocations: 0.921 MB / 4.32 GB, free: 129.8 MB / 0.9011 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001123/13.27, allocations: 15.88 kB / 4.32 GB, free: 129.8 MB / 0.9011 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001191/13.27, allocations: 65.34 kB / 4.32 GB, free: 129.8 MB / 0.9011 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.066e-05/13.27, allocations: 16.25 kB / 4.32 GB, free: 129.8 MB / 0.9011 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.003e-06/13.27, allocations: 2.062 kB / 4.32 GB, free: 129.8 MB / 0.9011 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02335/13.3, allocations: 10.4 MB / 4.33 GB, free: 129.3 MB / 0.9011 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007792/13.3, allocations: 1.638 MB / 4.332 GB, free: 129.1 MB / 0.9011 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003869/13.31, allocations: 28.72 kB / 4.332 GB, free: 129.1 MB / 0.9011 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008411/13.32, allocations: 0.4884 MB / 4.332 GB, free: 129.1 MB / 0.9011 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001321/13.32, allocations: 248.3 kB / 4.333 GB, free: 129.1 MB / 0.9011 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009437/13.32, allocations: 188.4 kB / 4.333 GB, free: 129.1 MB / 0.9011 GB Notification: Performance of sorting global known variables: time 0.0103/13.33, allocations: 4.439 MB / 4.337 GB, free: 128.9 MB / 0.9011 GB Notification: Performance of sort global known variables: time 7.21e-07/13.33, allocations: 0 / 4.337 GB, free: 128.9 MB / 0.9011 GB Notification: Performance of remove unused functions: time 0.02502/13.35, allocations: 4.761 MB / 4.342 GB, free: 128.4 MB / 0.9011 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (451): * Single equations (assignments): 447 * 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.02118/13.37, allocations: 11.79 MB / 4.353 GB, free: 127 MB / 0.9011 GB Notification: Performance of simCode: created initialization part: time 0.02084/13.4, allocations: 10.91 MB / 4.364 GB, free: 126.6 MB / 0.9011 GB Notification: Performance of simCode: created event and clocks part: time 1.204e-05/13.4, allocations: 2.75 kB / 4.364 GB, free: 126.6 MB / 0.9011 GB Notification: Performance of simCode: created simulation system equations: time 0.00597/13.4, allocations: 3.056 MB / 4.367 GB, free: 126.5 MB / 0.9011 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02245/13.42, allocations: 3.47 MB / 4.37 GB, free: 126.4 MB / 0.9011 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05385/13.48, allocations: 18.9 MB / 4.389 GB, free: 123.5 MB / 0.9011 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01165/13.49, allocations: 6.266 MB / 4.395 GB, free: 122.6 MB / 0.9011 GB Notification: Performance of simCode: alias equations: time 0.02225/13.51, allocations: 5.8 MB / 4.401 GB, free: 122.5 MB / 0.9011 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008909/13.52, allocations: 3.636 MB / 4.404 GB, free: 122.5 MB / 0.9011 GB Notification: Performance of SimCode: time 2.555e-06/13.52, allocations: 0 / 4.404 GB, free: 122.5 MB / 0.9011 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3041/13.82, allocations: 199 MB / 4.598 GB, free: 6.055 MB / 0.9011 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002163/13.83, allocations: 175.2 kB / 4.599 GB, free: 5.859 MB / 0.9011 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.613/23.44, allocations: 0 / 4.599 GB, free: 5.859 MB / 0.9011 GB (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.Stratified.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.Stratified.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.Stratified.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.Stratified.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Fluid_Storage_Examples_Stratified_fmu --startTime=0 --stopTime=10800 --timeout=50 --tolerance=1e-08 Buildings_maint_7_0_x_Buildings_Fluid_Storage_Examples_Stratified.fmu > Buildings_maint.7.0.x_Buildings.Fluid.Storage.Examples.Stratified.pipe 2>&1)