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.509/2.509, allocations: 284.9 MB / 292.4 MB, free: 10.54 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.001457/0.001457, allocations: 188.8 kB / 360.6 MB, free: 7.27 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.102/2.102, allocations: 205.3 MB / 0.6191 GB, free: 12.2 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001074/0.001074, allocations: 88.8 kB / 0.7321 GB, free: 44.72 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.356e-05/2.356e-05, allocations: 4 kB / 0.8508 GB, free: 3.332 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7898/0.7899, allocations: 115.3 MB / 0.9634 GB, free: 78.67 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.358/2.148, allocations: 410.6 MB / 1.364 GB, free: 157.6 MB / 0.8542 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002808/2.149, allocations: 88.11 kB / 1.364 GB, free: 157.5 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 15.84/17.99, allocations: 2.902 GB / 4.267 GB, free: 132.9 MB / 0.9636 GB Notification: Performance of FrontEnd: time 2.074e-06/17.99, allocations: 0 / 4.267 GB, free: 132.9 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 0.001708/17.99, allocations: 252.6 kB / 4.267 GB, free: 132.9 MB / 0.9636 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.03456/18.03, allocations: 8.29 MB / 4.275 GB, free: 130 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 5.796e-05/18.03, allocations: 10.09 kB / 4.275 GB, free: 130 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00879/18.03, allocations: 1.172 MB / 4.276 GB, free: 129.4 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03874/18.07, allocations: 10.75 MB / 4.287 GB, free: 128.3 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006189/18.07, allocations: 266.9 kB / 4.287 GB, free: 128.3 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004022/18.08, allocations: 487 kB / 4.287 GB, free: 128.3 MB / 0.9636 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.02916/18.11, allocations: 8.899 MB / 4.296 GB, free: 128.3 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03844/18.15, allocations: 10.34 MB / 4.306 GB, free: 127.1 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005643/18.15, allocations: 31.56 kB / 4.306 GB, free: 127.1 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003422/18.15, allocations: 16.28 kB / 4.306 GB, free: 127.1 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003158/18.15, allocations: 248.3 kB / 4.307 GB, free: 127.1 MB / 0.9636 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.0996/18.25, allocations: 44.98 MB / 4.35 GB, free: 107.5 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01374/18.26, allocations: 5.993 MB / 4.356 GB, free: 105.2 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01057/18.27, allocations: 4.651 MB / 4.361 GB, free: 103.6 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001809/18.28, allocations: 0.8167 MB / 4.362 GB, free: 102.8 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.008664/18.28, allocations: 3.183 MB / 4.365 GB, free: 101.7 MB / 0.9636 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.006109/18.29, allocations: 397.2 kB / 4.365 GB, free: 101.5 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=449): time 3.584e-05/18.29, allocations: 0 / 4.365 GB, free: 101.5 MB / 0.9636 GB Notification: Performance of matching and sorting (n=449): time 0.01932/18.31, allocations: 6.112 MB / 4.371 GB, free: 99.36 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.928e-05/18.31, allocations: 157.8 kB / 4.371 GB, free: 99.22 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01547/18.33, allocations: 5.823 MB / 4.377 GB, free: 97.12 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 0.00155/18.33, allocations: 35.92 kB / 4.377 GB, free: 97.09 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 0.006256/18.33, allocations: 4.287 MB / 4.381 GB, free: 93.84 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 0.003282/18.34, allocations: 1.498 MB / 4.383 GB, free: 92.68 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009488/18.34, allocations: 6 kB / 4.383 GB, free: 92.68 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 0.0005819/18.34, allocations: 0.5356 MB / 4.383 GB, free: 92.28 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007555/18.35, allocations: 2.783 MB / 4.386 GB, free: 91.27 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009091/18.36, allocations: 4.622 MB / 4.39 GB, free: 87.95 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0115/18.37, allocations: 4.066 MB / 4.394 GB, free: 86.59 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.785e-05/18.37, allocations: 17.53 kB / 4.394 GB, free: 86.59 MB / 0.9636 GB Notification: Performance of matching and sorting (n=754) (initialization): time 0.02641/18.39, allocations: 8.235 MB / 4.402 GB, free: 83.78 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 0.006564/18.4, allocations: 27.94 MB / 4.43 GB, free: 53.94 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002603/18.4, allocations: 62.22 kB / 4.43 GB, free: 53.94 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001896/18.4, allocations: 98.06 kB / 4.43 GB, free: 53.94 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01214/18.41, allocations: 1.444 MB / 4.431 GB, free: 53.79 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001929/18.41, allocations: 130.6 kB / 4.431 GB, free: 53.76 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0125/18.43, allocations: 0.5114 MB / 4.432 GB, free: 53.67 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001966/18.43, allocations: 282.9 kB / 4.432 GB, free: 53.62 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 1.896e-05/18.43, allocations: 4.781 kB / 4.432 GB, free: 53.62 MB / 0.9636 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0232/18.45, allocations: 7.597 MB / 4.44 GB, free: 49.97 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002015/18.45, allocations: 60 kB / 4.44 GB, free: 49.91 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001276/18.45, allocations: 99.33 kB / 4.44 GB, free: 49.82 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01152/18.46, allocations: 1.441 MB / 4.441 GB, free: 48.59 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001705/18.46, allocations: 126.3 kB / 4.441 GB, free: 48.48 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01154/18.47, allocations: 498.8 kB / 4.442 GB, free: 48.12 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002094/18.48, allocations: 283.1 kB / 4.442 GB, free: 47.86 MB / 0.9636 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 () * 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.00299/18.48, allocations: 355.9 kB / 4.442 GB, free: 47.5 MB / 0.9636 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0196/18.5, allocations: 6.14 MB / 4.448 GB, free: 42.22 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003488/18.5, allocations: 0.6367 MB / 4.449 GB, free: 41.58 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02156/18.52, allocations: 6.756 MB / 4.456 GB, free: 36.05 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.915e-05/18.52, allocations: 51.94 kB / 4.456 GB, free: 36 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.583e-05/18.52, allocations: 3.953 kB / 4.456 GB, free: 36 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01658/18.54, allocations: 5.639 MB / 4.461 GB, free: 31.26 MB / 0.9636 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.05059/18.59, allocations: 15.37 MB / 4.476 GB, free: 19.16 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.105e-05/18.59, allocations: 0 / 4.476 GB, free: 19.16 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008801/18.6, allocations: 0.9102 MB / 4.477 GB, free: 18.41 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.973e-05/18.6, allocations: 16 kB / 4.477 GB, free: 18.4 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001236/18.6, allocations: 67.03 kB / 4.477 GB, free: 18.35 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.04e-05/18.6, allocations: 16 kB / 4.477 GB, free: 18.34 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.062e-06/18.6, allocations: 7.938 kB / 4.477 GB, free: 18.33 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0266/18.63, allocations: 10.32 MB / 4.487 GB, free: 9.336 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007803/18.64, allocations: 1.653 MB / 4.489 GB, free: 7.902 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003218/18.64, allocations: 35.44 kB / 4.489 GB, free: 7.875 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01113/18.65, allocations: 0.489 MB / 4.489 GB, free: 7.539 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001427/18.65, allocations: 252.1 kB / 4.49 GB, free: 7.383 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009818/18.65, allocations: 204 kB / 4.49 GB, free: 7.219 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 0.01174/18.67, allocations: 4.439 MB / 4.494 GB, free: 3.41 MB / 0.9636 GB Notification: Performance of sort global known variables: time 7.92e-07/18.67, allocations: 3.938 kB / 4.494 GB, free: 3.406 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.02694/18.69, allocations: 4.889 MB / 4.499 GB, free: 14.9 MB / 0.9792 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) * 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.03384/18.73, allocations: 11.72 MB / 4.51 GB, free: 3.695 MB / 0.9792 GB Notification: Performance of simCode: created initialization part: time 0.7998/19.53, allocations: 10.86 MB / 4.521 GB, free: 142.1 MB / 0.9792 GB Notification: Performance of simCode: created event and clocks part: time 1.753e-05/19.53, allocations: 2.875 kB / 4.521 GB, free: 142.1 MB / 0.9792 GB Notification: Performance of simCode: created simulation system equations: time 0.008053/19.53, allocations: 3.027 MB / 4.524 GB, free: 141.9 MB / 0.9792 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.03052/19.56, allocations: 3.483 MB / 4.527 GB, free: 141.9 MB / 0.9792 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06348/19.63, allocations: 18.73 MB / 4.546 GB, free: 138.9 MB / 0.9792 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01409/19.64, allocations: 6.261 MB / 4.552 GB, free: 138 MB / 0.9792 GB Notification: Performance of simCode: alias equations: time 0.03353/19.68, allocations: 5.803 MB / 4.557 GB, free: 138 MB / 0.9792 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01078/19.69, allocations: 3.578 MB / 4.561 GB, free: 138 MB / 0.9792 GB Notification: Performance of SimCode: time 3.146e-06/19.69, allocations: 0 / 4.561 GB, free: 138 MB / 0.9792 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5157/20.2, allocations: 199.9 MB / 4.756 GB, free: 84.2 MB / 0.9792 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002667/20.2, allocations: 174 kB / 4.756 GB, free: 83.99 MB / 0.9792 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.65/32.86, allocations: 0 / 4.756 GB, free: 83.99 MB / 0.9792 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)