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.00103/0.00103, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.008202/0.008202, allocations: 169.9 kB / 16.26 MB, free: 6.613 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.247/1.247, allocations: 223.3 MB / 240.3 MB, free: 5.344 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.091/2.091, allocations: 390.9 MB / 0.6664 GB, free: 2.379 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0002958/0.0002959, allocations: 8 kB / 0.8161 GB, free: 13.16 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5464/0.5467, allocations: 142.4 MB / 0.9552 GB, free: 7.645 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading): time 0.0501/0.5969, allocations: 54.54 MB / 1.008 GB, free: 8.609 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.02222/0.6191, allocations: 17.74 MB / 1.026 GB, free: 6.82 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002352/0.6215, allocations: 63.62 kB / 1.026 GB, free: 6.758 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.002277/0.6238, allocations: 0.7224 MB / 1.027 GB, free: 6.031 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.006419/0.6303, allocations: 2.325 MB / 1.029 GB, free: 3.695 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.003343/0.6336, allocations: 1.381 MB / 1.03 GB, free: 2.324 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.02472/0.6583, allocations: 27.8 MB / 1.057 GB, free: 6.457 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01003/0.6684, allocations: 8.406 MB / 1.065 GB, free: 13.95 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.008165/0.6766, allocations: 5.217 MB / 1.071 GB, free: 8.707 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.007904/0.6845, allocations: 5.787 MB / 1.076 GB, free: 2.895 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 0.0007997/0.6853, allocations: 344 kB / 1.077 GB, free: 2.559 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003085/0.6884, allocations: 1.037 MB / 1.078 GB, free: 1.52 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 0.001498/0.6899, allocations: 1.583 MB / 1.079 GB, free: 15.93 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.004611/0.6946, allocations: 3.889 MB / 1.083 GB, free: 12.02 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.01164/0.7062, allocations: 12.3 MB / 1.095 GB, free: 15.68 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.7062, allocations: 4 kB / 1.095 GB, free: 15.68 MB / 0.8575 GB Notification: Performance of FrontEnd: time 3.387e-06/0.7063, allocations: 0 / 1.095 GB, free: 15.68 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 0.0002691/0.7065, allocations: 3.938 kB / 1.095 GB, free: 15.67 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.01313/0.7197, allocations: 6.878 MB / 1.102 GB, free: 8.703 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.11e-05/0.7197, allocations: 12.03 kB / 1.102 GB, free: 8.691 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001292/0.721, allocations: 0.8421 MB / 1.102 GB, free: 7.84 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002102/0.7231, allocations: 0.8548 MB / 1.103 GB, free: 6.977 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009528/0.7327, allocations: 6.613 MB / 1.11 GB, free: 312 kB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003092/0.733, allocations: 468.2 kB / 1.11 GB, free: 15.84 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008639/0.7339, allocations: 0.5898 MB / 1.111 GB, free: 15.25 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01355/0.7474, allocations: 9.032 MB / 1.12 GB, free: 5.898 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001133/0.7476, allocations: 19.78 kB / 1.12 GB, free: 5.879 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006118/0.7482, allocations: 267.9 kB / 1.12 GB, free: 5.617 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001596/0.7483, allocations: 187.9 kB / 1.12 GB, free: 5.434 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01124/0.7596, allocations: 7.457 MB / 1.127 GB, free: 13.96 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.03796/0.7976, allocations: 36 MB / 1.163 GB, free: 7.902 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005845/0.8034, allocations: 4.29 MB / 1.167 GB, free: 3.613 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00447/0.8079, allocations: 3.328 MB / 1.17 GB, free: 284 kB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00126/0.8092, allocations: 0.9856 MB / 1.171 GB, free: 15.11 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003618/0.8128, allocations: 2.398 MB / 1.173 GB, free: 12.67 MB / 0.9356 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002027/0.8148, allocations: 439.8 kB / 1.174 GB, free: 12.24 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=317): time 7.363e-06/0.8149, allocations: 0 / 1.174 GB, free: 12.24 MB / 0.9356 GB Notification: Performance of matching and sorting (n=317): time 0.01223/0.8271, allocations: 7.144 MB / 1.181 GB, free: 5.004 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.6e-05/0.8272, allocations: 81.91 kB / 1.181 GB, free: 4.91 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008385/0.8356, allocations: 5.463 MB / 1.186 GB, free: 15.47 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 0.00027/0.8358, allocations: 97.69 kB / 1.186 GB, free: 15.37 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.003304/0.8392, allocations: 3.184 MB / 1.189 GB, free: 12.15 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 0.001475/0.8406, allocations: 1.121 MB / 1.19 GB, free: 11.01 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000536/0.8412, allocations: 367.3 kB / 1.191 GB, free: 10.64 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001348/0.8413, allocations: 305.1 kB / 1.191 GB, free: 10.34 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003519/0.8449, allocations: 2.16 MB / 1.193 GB, free: 8.176 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005094/0.85, allocations: 3.697 MB / 1.197 GB, free: 3.777 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008863/0.8588, allocations: 6.307 MB / 1.203 GB, free: 12.75 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.706e-05/0.8589, allocations: 12 kB / 1.203 GB, free: 12.74 MB / 0.9669 GB Notification: Performance of matching and sorting (n=569) (initialization): time 0.01147/0.8704, allocations: 6.768 MB / 1.21 GB, free: 5.922 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 6.426e-05/0.8704, allocations: 53.7 kB / 1.21 GB, free: 5.863 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.647e-05/0.8705, allocations: 48 kB / 1.21 GB, free: 5.816 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001033/0.8716, allocations: 436.6 kB / 1.21 GB, free: 5.387 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003553/0.8751, allocations: 1.018 MB / 1.211 GB, free: 4.367 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006085/0.8812, allocations: 5.263 MB / 1.216 GB, free: 14.83 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004637/0.8859, allocations: 462.8 kB / 1.217 GB, free: 14.38 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004291/0.8863, allocations: 224 kB / 1.217 GB, free: 14.16 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.004675/0.891, allocations: 2.483 MB / 1.219 GB, free: 11.66 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001235/0.8922, allocations: 0.5326 MB / 1.22 GB, free: 11.12 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008951/0.9012, allocations: 5.247 MB / 1.225 GB, free: 5.82 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.918e-05/0.9012, allocations: 36 kB / 1.225 GB, free: 5.785 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.368e-05/0.9013, allocations: 7.938 kB / 1.225 GB, free: 5.777 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00672/0.908, allocations: 4.531 MB / 1.229 GB, free: 1.141 MB / 0.9825 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.02062/0.9286, allocations: 12 MB / 1.241 GB, free: 4.953 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.558e-06/0.9286, allocations: 0 / 1.241 GB, free: 4.953 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002815/0.9315, allocations: 0.6516 MB / 1.242 GB, free: 4.301 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008415/0.9323, allocations: 373.3 kB / 1.242 GB, free: 3.93 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002371/0.9326, allocations: 83.95 kB / 1.242 GB, free: 3.848 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005734/0.9383, allocations: 5.177 MB / 1.247 GB, free: 14.41 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.9383, allocations: 0 / 1.247 GB, free: 14.41 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01141/0.9497, allocations: 7.636 MB / 1.255 GB, free: 6.68 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002746/0.9525, allocations: 1.213 MB / 1.256 GB, free: 5.441 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009597/0.9535, allocations: 67.98 kB / 1.256 GB, free: 5.375 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004124/0.9576, allocations: 473.3 kB / 1.256 GB, free: 4.914 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003982/0.958, allocations: 198.2 kB / 1.257 GB, free: 4.719 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003169/0.9583, allocations: 139.9 kB / 1.257 GB, free: 4.582 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.006315/0.9646, allocations: 3.807 MB / 1.26 GB, free: 0.7969 MB / 1.014 GB Notification: Performance of sort global known variables: time 2.31e-07/0.9647, allocations: 3.938 kB / 1.26 GB, free: 0.793 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.4447/1.409, allocations: 1.977 MB / 1.262 GB, free: 277.4 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.01329/1.423, allocations: 8.58 MB / 1.271 GB, free: 275.1 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.007456/1.43, allocations: 5.38 MB / 1.276 GB, free: 273.1 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 7.314e-06/1.43, allocations: 5.438 kB / 1.276 GB, free: 273.1 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.003114/1.433, allocations: 2.511 MB / 1.278 GB, free: 272.1 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01448/1.448, allocations: 3.232 MB / 1.282 GB, free: 271.5 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1175/1.565, allocations: 65.71 MB / 1.346 GB, free: 213.6 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003801/1.569, allocations: 4.62 MB / 1.35 GB, free: 208.9 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.005668/1.575, allocations: 1.996 MB / 1.352 GB, free: 206.9 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003258/1.578, allocations: 2.667 MB / 1.355 GB, free: 204.3 MB / 1.014 GB Notification: Performance of SimCode: time 1.693e-06/1.578, allocations: 0 / 1.355 GB, free: 204.3 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.55/4.128, allocations: 158 MB / 1.509 GB, free: 47.44 MB / 1.014 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001802/4.128, allocations: 282.3 kB / 1.509 GB, free: 47.05 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.479/9.607, allocations: 0 / 1.509 GB, free: 47.05 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)