Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.conf.json 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/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/Buildings 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading,fileNamePrefix="Buildings_9_Buildings_Fluid_Storage_Validation_StratifiedLoadingUnloading",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading,fileNamePrefix="Buildings_9_Buildings_Fluid_Storage_Validation_StratifiedLoadingUnloading",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001554/0.001554, allocations: 111.3 kB / 15.23 MB, free: 0.6406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001803/0.001803, allocations: 195.9 kB / 16.14 MB, free: 6.711 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.312/1.312, allocations: 222.9 MB / 239.8 MB, free: 4.633 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.169/2.169, allocations: 390.2 MB / 0.6643 GB, free: 0.6094 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001212/0.001212, allocations: 59.91 kB / 0.812 GB, free: 14.8 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5/0.5012, allocations: 140.4 MB / 0.949 GB, free: 9.125 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading): time 0.04278/0.544, allocations: 55.65 MB / 1.003 GB, free: 10.27 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.01917/0.5632, allocations: 17.93 MB / 1.021 GB, free: 8.293 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002339/0.5656, allocations: 71.56 kB / 1.021 GB, free: 8.223 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.001797/0.5675, allocations: 0.7185 MB / 1.022 GB, free: 7.5 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.004863/0.5723, allocations: 2.325 MB / 1.024 GB, free: 5.164 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.002674/0.575, allocations: 1.389 MB / 1.025 GB, free: 3.781 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.01972/0.5947, allocations: 27.8 MB / 1.052 GB, free: 7.918 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.008708/0.6035, allocations: 8.693 MB / 1.061 GB, free: 15.1 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.008128/0.6116, allocations: 5.525 MB / 1.066 GB, free: 9.555 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.007691/0.6193, allocations: 6.174 MB / 1.072 GB, free: 3.355 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 0.0009666/0.6203, allocations: 476 kB / 1.073 GB, free: 2.891 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0032/0.6235, allocations: 1.158 MB / 1.074 GB, free: 1.73 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.001423/0.625, allocations: 1.79 MB / 1.076 GB, free: 15.93 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.004281/0.6293, allocations: 4.117 MB / 1.08 GB, free: 11.8 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.009448/0.6387, allocations: 12.64 MB / 1.092 GB, free: 15.11 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.6387, allocations: 0 / 1.092 GB, free: 15.11 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.122e-06/0.6387, allocations: 0 / 1.092 GB, free: 15.11 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 0.0001892/0.6389, allocations: 3.938 kB / 1.092 GB, free: 15.11 MB / 0.8575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1564 * Number of variables: 1564 Notification: Performance of Generate backend data structure: time 0.01299/0.6519, allocations: 8.495 MB / 1.1 GB, free: 6.523 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.856e-05/0.652, allocations: 16.03 kB / 1.1 GB, free: 6.508 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001017/0.653, allocations: 0.8499 MB / 1.101 GB, free: 5.648 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002152/0.6552, allocations: 0.8548 MB / 1.102 GB, free: 4.785 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008878/0.6641, allocations: 6.606 MB / 1.108 GB, free: 14.11 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002564/0.6643, allocations: 460.2 kB / 1.109 GB, free: 13.66 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007428/0.6651, allocations: 0.6015 MB / 1.11 GB, free: 13.06 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01199/0.6771, allocations: 9.032 MB / 1.118 GB, free: 3.703 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.829e-05/0.6772, allocations: 19.78 kB / 1.118 GB, free: 3.684 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005305/0.6777, allocations: 268 kB / 1.119 GB, free: 3.422 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000132/0.6779, allocations: 172 kB / 1.119 GB, free: 3.254 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01023/0.6881, allocations: 7.453 MB / 1.126 GB, free: 11.79 MB / 0.8887 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.03505/0.7232, allocations: 35.91 MB / 1.161 GB, free: 5.816 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005204/0.7284, allocations: 4.279 MB / 1.165 GB, free: 1.535 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003922/0.7323, allocations: 3.312 MB / 1.169 GB, free: 14.21 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001117/0.7334, allocations: 0.9543 MB / 1.169 GB, free: 13.07 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003267/0.7367, allocations: 2.394 MB / 1.172 GB, free: 10.64 MB / 0.9356 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00214/0.7389, allocations: 447.8 kB / 1.172 GB, free: 10.2 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=317): time 4.688e-06/0.7389, allocations: 0 / 1.172 GB, free: 10.2 MB / 0.9356 GB Notification: Performance of matching and sorting (n=317): time 0.01106/0.75, allocations: 7.097 MB / 1.179 GB, free: 3.016 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.382e-05/0.75, allocations: 89.84 kB / 1.179 GB, free: 2.914 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007185/0.7572, allocations: 5.459 MB / 1.185 GB, free: 13.48 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 0.0005427/0.7578, allocations: 85.7 kB / 1.185 GB, free: 13.39 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.002433/0.7602, allocations: 3.204 MB / 1.188 GB, free: 10.15 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 0.001165/0.7614, allocations: 1.109 MB / 1.189 GB, free: 9.023 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001088/0.7625, allocations: 0.8541 MB / 1.19 GB, free: 8.156 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 7.7e-05/0.7626, allocations: 309 kB / 1.19 GB, free: 7.852 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00292/0.7655, allocations: 2.152 MB / 1.192 GB, free: 5.691 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003676/0.7692, allocations: 3.689 MB / 1.196 GB, free: 1.297 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006874/0.7761, allocations: 6.3 MB / 1.202 GB, free: 10.28 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.166e-05/0.7761, allocations: 16 kB / 1.202 GB, free: 10.27 MB / 0.9669 GB Notification: Performance of matching and sorting (n=569) (initialization): time 0.009688/0.7858, allocations: 6.748 MB / 1.208 GB, free: 3.465 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 5.698e-05/0.7859, allocations: 60.56 kB / 1.209 GB, free: 3.402 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.576e-05/0.786, allocations: 51.98 kB / 1.209 GB, free: 3.352 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008808/0.7868, allocations: 431.3 kB / 1.209 GB, free: 2.926 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003048/0.7899, allocations: 1.014 MB / 1.21 GB, free: 1.91 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004971/0.7949, allocations: 5.258 MB / 1.215 GB, free: 12.38 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004447/0.7994, allocations: 462.8 kB / 1.216 GB, free: 11.93 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005209/0.7999, allocations: 220 kB / 1.216 GB, free: 11.71 MB / 0.9825 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 222 * Number of states: 0 () * Number of discrete variables: 7 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1,dHTan.local_reset,dHTanEnh.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (540): * Single equations (assignments): 537 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,14,100.0%), (1,14,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003719/0.8036, allocations: 2.487 MB / 1.218 GB, free: 9.215 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001359/0.805, allocations: 0.5249 MB / 1.219 GB, free: 8.684 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008232/0.8132, allocations: 5.243 MB / 1.224 GB, free: 3.383 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.758e-05/0.8133, allocations: 32 kB / 1.224 GB, free: 3.352 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.532e-05/0.8133, allocations: 7.938 kB / 1.224 GB, free: 3.344 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00592/0.8192, allocations: 4.527 MB / 1.228 GB, free: 14.71 MB / 0.9981 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.01974/0.839, allocations: 11.96 MB / 1.24 GB, free: 2.559 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.076e-05/0.839, allocations: 0 / 1.24 GB, free: 2.559 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002552/0.8416, allocations: 0.6438 MB / 1.241 GB, free: 1.914 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008051/0.8424, allocations: 367.6 kB / 1.241 GB, free: 1.551 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002828/0.8427, allocations: 83.95 kB / 1.241 GB, free: 1.469 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005004/0.8477, allocations: 5.18 MB / 1.246 GB, free: 12.02 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.468e-06/0.8477, allocations: 4 kB / 1.246 GB, free: 12.02 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01127/0.859, allocations: 7.617 MB / 1.254 GB, free: 4.309 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002993/0.862, allocations: 1.131 MB / 1.255 GB, free: 3.152 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001163/0.8632, allocations: 63.98 kB / 1.255 GB, free: 3.09 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003815/0.867, allocations: 467.5 kB / 1.255 GB, free: 2.633 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004234/0.8675, allocations: 206.1 kB / 1.255 GB, free: 2.43 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003228/0.8678, allocations: 139.9 kB / 1.255 GB, free: 2.293 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.3731/1.241, allocations: 3.804 MB / 1.259 GB, free: 277.3 MB / 1.014 GB Notification: Performance of sort global known variables: time 6.91e-07/1.241, allocations: 0 / 1.259 GB, free: 277.3 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.006828/1.248, allocations: 1.984 MB / 1.261 GB, free: 277.3 MB / 1.014 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 16 (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,tan.vol[1].dynBal.U,tan.vol[2].dynBal.U,tan.vol[3].dynBal.U,tan.vol[4].dynBal.U,tan.vol[5].dynBal.U,tan.vol[6].dynBal.U,tan.vol[7].dynBal.U,dHTanEnh.y,dHTan.y) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (296): * Single equations (assignments): 289 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,14,100.0%), (1,14,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01341/1.261, allocations: 8.564 MB / 1.269 GB, free: 274.4 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.006896/1.268, allocations: 5.371 MB / 1.275 GB, free: 272.4 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 6.492e-06/1.268, allocations: 1.547 kB / 1.275 GB, free: 272.4 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.00295/1.271, allocations: 2.514 MB / 1.277 GB, free: 271.4 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01171/1.283, allocations: 3.227 MB / 1.28 GB, free: 270.8 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1115/1.394, allocations: 65.44 MB / 1.344 GB, free: 213.7 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002752/1.397, allocations: 4.624 MB / 1.349 GB, free: 209 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.005165/1.402, allocations: 1.99 MB / 1.351 GB, free: 207 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002769/1.405, allocations: 2.674 MB / 1.353 GB, free: 204.4 MB / 1.014 GB Notification: Performance of SimCode: time 7.71e-07/1.405, allocations: 0 / 1.353 GB, free: 204.4 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.614/3.019, allocations: 159.3 MB / 1.509 GB, free: 46.19 MB / 1.014 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001774/3.019, allocations: 271.1 kB / 1.509 GB, free: 45.82 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.127/9.146, allocations: 0 / 1.509 GB, free: 45.82 MB / 1.014 GB (rm -f Buildings_9_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe ; mkfifo Buildings_9_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe >> ../files/Buildings_9_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Storage_Validation_StratifiedLoadingUnloading_fmu --startTime=0 --stopTime=14400 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Storage_Validation_StratifiedLoadingUnloading.fmu > Buildings_9_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe 2>&1)