Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Fluid.Storage.Examples.Stratified.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.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 Buildings with version 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Storage.Examples.Stratified,fileNamePrefix="Buildings_8_0_0_Buildings_Fluid_Storage_Examples_Stratified",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Examples.Stratified,fileNamePrefix="Buildings_8_0_0_Buildings_Fluid_Storage_Examples_Stratified",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.543/2.543, allocations: 287.3 MB / 302.3 MB, free: 8.363 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001582/0.001581, allocations: 183.9 kB / 370.8 MB, free: 10.87 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.191/2.191, allocations: 205.4 MB / 0.6295 GB, free: 10.61 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001089/0.001088, allocations: 97.09 kB / 0.7428 GB, free: 6.625 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004925/0.0004925, allocations: 12.56 kB / 0.8657 GB, free: 140.6 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2243/0.2249, allocations: 115.3 MB / 0.9783 GB, free: 28.32 MB / 0.6198 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.411/1.636, allocations: 411.4 MB / 1.38 GB, free: 2.934 MB / 0.9011 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003639/1.637, allocations: 97.02 kB / 1.38 GB, free: 2.879 MB / 0.9011 GB Notification: Performance of FrontEnd - DAE generated: time 15.88/17.52, allocations: 2.924 GB / 4.304 GB, free: 14.09 MB / 0.9792 GB Notification: Performance of FrontEnd: time 2.976e-06/17.52, allocations: 3.938 kB / 4.304 GB, free: 14.09 MB / 0.9792 GB Notification: Performance of Transformations before backend: time 0.001818/17.52, allocations: 255.8 kB / 4.304 GB, free: 13.84 MB / 0.9792 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.04285/17.56, allocations: 9.816 MB / 4.314 GB, free: 3.914 MB / 0.9792 GB Notification: Performance of prepare preOptimizeDAE: time 4.952e-05/17.56, allocations: 12.03 kB / 4.314 GB, free: 3.902 MB / 0.9792 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005993/17.57, allocations: 1.142 MB / 4.315 GB, free: 2.75 MB / 0.9792 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008273/17.58, allocations: 1.167 MB / 4.316 GB, free: 1.57 MB / 0.9792 GB Notification: Performance of preOpt evaluateParameters (simulation): time 1.536/19.11, allocations: 10.8 MB / 4.327 GB, free: 123.1 MB / 0.9793 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001263/19.12, allocations: 0.6098 MB / 4.327 GB, free: 123 MB / 0.9793 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00492/19.12, allocations: 0.8189 MB / 4.328 GB, free: 123 MB / 0.9793 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04931/19.17, allocations: 11.7 MB / 4.34 GB, free: 121.8 MB / 0.9793 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007829/19.17, allocations: 26.44 kB / 4.34 GB, free: 121.8 MB / 0.9793 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0042/19.17, allocations: 357.5 kB / 4.34 GB, free: 121.8 MB / 0.9793 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004668/19.18, allocations: 254.2 kB / 4.34 GB, free: 121.8 MB / 0.9793 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03412/19.21, allocations: 9.625 MB / 4.35 GB, free: 121.8 MB / 0.9793 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.114/19.32, allocations: 46.6 MB / 4.395 GB, free: 102.8 MB / 0.9793 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01659/19.34, allocations: 6.315 MB / 4.401 GB, free: 102.5 MB / 0.9793 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001921/19.34, allocations: 0.8223 MB / 4.402 GB, free: 101.7 MB / 0.9793 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01057/19.35, allocations: 3.4 MB / 4.405 GB, free: 101.6 MB / 0.9793 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.007229/19.36, allocations: 0.5626 MB / 4.406 GB, free: 101.4 MB / 0.9793 GB Notification: Performance of pre-optimization done (n=449): time 1.955e-05/19.36, allocations: 3.5 kB / 4.406 GB, free: 101.4 MB / 0.9793 GB Notification: Performance of matching and sorting (n=449): time 0.02943/19.39, allocations: 9.021 MB / 4.415 GB, free: 100.6 MB / 0.9793 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001054/19.39, allocations: 149.5 kB / 4.415 GB, free: 100.5 MB / 0.9793 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02075/19.41, allocations: 7.091 MB / 4.422 GB, free: 100.1 MB / 0.9793 GB Notification: Performance of collectPreVariables (initialization): time 0.001533/19.41, allocations: 111.5 kB / 4.422 GB, free: 100.1 MB / 0.9793 GB Notification: Performance of collectInitialEqns (initialization): time 0.007186/19.42, allocations: 4.293 MB / 4.426 GB, free: 98.49 MB / 0.9793 GB Notification: Performance of collectInitialBindings (initialization): time 0.003415/19.42, allocations: 1.555 MB / 4.428 GB, free: 97.52 MB / 0.9793 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001021/19.42, allocations: 118.1 kB / 4.428 GB, free: 97.52 MB / 0.9793 GB Notification: Performance of setup shared object (initialization): time 0.0005743/19.42, allocations: 0.5432 MB / 4.428 GB, free: 97.2 MB / 0.9793 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008677/19.43, allocations: 2.985 MB / 4.431 GB, free: 97.18 MB / 0.9793 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01054/19.44, allocations: 4.86 MB / 4.436 GB, free: 94.98 MB / 0.9793 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01102/19.45, allocations: 4.023 MB / 4.44 GB, free: 94.88 MB / 0.9793 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.99e-05/19.45, allocations: 19.59 kB / 4.44 GB, free: 94.88 MB / 0.9793 GB Notification: Performance of matching and sorting (n=754) (initialization): time 0.02767/19.48, allocations: 8.845 MB / 4.449 GB, free: 94.34 MB / 0.9793 GB Notification: Performance of prepare postOptimizeDAE: time 0.006285/19.49, allocations: 29.09 MB / 4.477 GB, free: 64.15 MB / 0.9793 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002316/19.49, allocations: 54.84 kB / 4.477 GB, free: 64.15 MB / 0.9793 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001579/19.49, allocations: 97.28 kB / 4.477 GB, free: 64.15 MB / 0.9793 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01147/19.5, allocations: 1.435 MB / 4.479 GB, free: 64.15 MB / 0.9793 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001886/19.5, allocations: 125 kB / 4.479 GB, free: 64.15 MB / 0.9793 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01251/19.51, allocations: 0.6367 MB / 4.479 GB, free: 64.09 MB / 0.9793 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001852/19.52, allocations: 277.1 kB / 4.48 GB, free: 64.09 MB / 0.9793 GB Notification: Performance of prepare postOptimizeDAE: time 1.62e-05/19.52, allocations: 8.469 kB / 4.48 GB, free: 64.09 MB / 0.9793 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02512/19.54, allocations: 8.267 MB / 4.488 GB, free: 63.93 MB / 0.9793 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002129/19.54, allocations: 57.16 kB / 4.488 GB, free: 63.93 MB / 0.9793 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001299/19.54, allocations: 107.2 kB / 4.488 GB, free: 63.93 MB / 0.9793 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01147/19.55, allocations: 1.434 MB / 4.489 GB, free: 63.93 MB / 0.9793 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001982/19.55, allocations: 125.8 kB / 4.489 GB, free: 63.93 MB / 0.9793 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0123/19.57, allocations: 0.6084 MB / 4.49 GB, free: 63.88 MB / 0.9793 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001909/19.57, allocations: 277.3 kB / 4.49 GB, free: 63.88 MB / 0.9793 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.01053/19.58, allocations: 3.558 MB / 4.494 GB, free: 63.59 MB / 0.9793 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003519/19.58, allocations: 0.7205 MB / 4.494 GB, free: 63.23 MB / 0.9793 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02376/19.6, allocations: 7.103 MB / 4.501 GB, free: 62.94 MB / 0.9793 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.996e-05/19.61, allocations: 44.25 kB / 4.501 GB, free: 62.94 MB / 0.9793 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.557e-05/19.61, allocations: 3.531 kB / 4.501 GB, free: 62.94 MB / 0.9793 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01725/19.62, allocations: 5.811 MB / 4.507 GB, free: 62.72 MB / 0.9793 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.05481/19.68, allocations: 16.39 MB / 4.523 GB, free: 61.55 MB / 0.9793 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-05/19.68, allocations: 3.688 kB / 4.523 GB, free: 61.55 MB / 0.9793 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008789/19.69, allocations: 0.9087 MB / 4.524 GB, free: 61.52 MB / 0.9793 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.57e-05/19.69, allocations: 18.06 kB / 4.524 GB, free: 61.52 MB / 0.9793 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001264/19.69, allocations: 119.8 kB / 4.524 GB, free: 61.46 MB / 0.9793 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.578e-05/19.69, allocations: 16.94 kB / 4.524 GB, free: 61.46 MB / 0.9793 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.007e-06/19.69, allocations: 3.938 kB / 4.524 GB, free: 61.46 MB / 0.9793 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0304/19.72, allocations: 10.76 MB / 4.535 GB, free: 57.04 MB / 0.9793 GB Notification: Performance of postOpt removeConstants (simulation): time 0.008548/19.73, allocations: 1.754 MB / 4.536 GB, free: 56.13 MB / 0.9793 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003865/19.73, allocations: 94.75 kB / 4.536 GB, free: 56.07 MB / 0.9793 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0118/19.74, allocations: 0.5745 MB / 4.537 GB, free: 55.98 MB / 0.9793 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001445/19.74, allocations: 259.4 kB / 4.537 GB, free: 55.94 MB / 0.9793 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001113/19.74, allocations: 204.8 kB / 4.537 GB, free: 55.91 MB / 0.9793 GB Notification: Performance of sorting global known variables: time 0.01578/19.76, allocations: 5.543 MB / 4.543 GB, free: 54.03 MB / 0.9793 GB Notification: Performance of sort global known variables: time 5.71e-07/19.76, allocations: 0 / 4.543 GB, free: 54.03 MB / 0.9793 GB Notification: Performance of remove unused functions: time 0.02471/19.79, allocations: 4.919 MB / 4.548 GB, free: 53.05 MB / 0.9793 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.03851/19.82, allocations: 12.22 MB / 4.56 GB, free: 47.92 MB / 0.9793 GB Notification: Performance of simCode: created initialization part: time 0.03007/19.85, allocations: 11.46 MB / 4.571 GB, free: 44.06 MB / 0.9793 GB Notification: Performance of simCode: created event and clocks part: time 1.509e-05/19.85, allocations: 7.406 kB / 4.571 GB, free: 44.06 MB / 0.9793 GB Notification: Performance of simCode: created simulation system equations: time 0.008517/19.86, allocations: 3.201 MB / 4.574 GB, free: 42.85 MB / 0.9793 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.03609/19.9, allocations: 4.384 MB / 4.578 GB, free: 42.14 MB / 0.9793 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3812/20.28, allocations: 114.5 MB / 4.69 GB, free: 11.09 MB / 1.042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01528/20.3, allocations: 6.257 MB / 4.696 GB, free: 6.445 MB / 1.042 GB Notification: Performance of simCode: alias equations: time 0.02637/20.32, allocations: 4.348 MB / 4.7 GB, free: 3.574 MB / 1.042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01519/20.34, allocations: 3.708 MB / 4.704 GB, free: 148 kB / 1.042 GB Notification: Performance of SimCode: time 3.506e-06/20.34, allocations: 0 / 4.704 GB, free: 148 kB / 1.042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.348/21.68, allocations: 238 MB / 4.936 GB, free: 129.1 MB / 1.042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002371/21.69, allocations: 203.1 kB / 4.936 GB, free: 128.8 MB / 1.042 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.71/33.4, allocations: 4 kB / 4.936 GB, free: 128.8 MB / 1.042 GB (rm -f Buildings_8.0.0_Buildings.Fluid.Storage.Examples.Stratified.pipe ; mkfifo Buildings_8.0.0_Buildings.Fluid.Storage.Examples.Stratified.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Fluid.Storage.Examples.Stratified.pipe >> ../files/Buildings_8.0.0_Buildings.Fluid.Storage.Examples.Stratified.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Fluid_Storage_Examples_Stratified_fmu --startTime=0 --stopTime=10800 --timeout=50 --tolerance=1e-08 Buildings_8_0_0_Buildings_Fluid_Storage_Examples_Stratified.fmu > Buildings_8.0.0_Buildings.Fluid.Storage.Examples.Stratified.pipe 2>&1)