Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_latest_Buildings_Fluid_Storage_Validation_StratifiedLoadingUnloading",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading,fileNamePrefix="Buildings_latest_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.001217/0.001217, allocations: 111.3 kB / 15.23 MB, free: 0.6367 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.001298/0.001298, allocations: 198.2 kB / 16.14 MB, free: 6.746 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.272/1.272, allocations: 222.9 MB / 239.8 MB, free: 4.578 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.314/2.314, allocations: 461.9 MB / 0.7342 GB, free: 14.12 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001128/0.001128, allocations: 66.33 kB / 0.8985 GB, free: 36.96 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2181/0.2193, allocations: 157.4 MB / 1.052 GB, free: 8.141 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading): time 0.04409/0.2634, allocations: 55.67 MB / 1.107 GB, free: 280 kB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.01867/0.2821, allocations: 17.91 MB / 1.124 GB, free: 14.31 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001407/0.2835, allocations: 67.62 kB / 1.124 GB, free: 14.25 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.001662/0.2852, allocations: 0.7263 MB / 1.125 GB, free: 13.52 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.004377/0.2896, allocations: 2.325 MB / 1.127 GB, free: 11.18 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.002622/0.2923, allocations: 1.38 MB / 1.128 GB, free: 9.809 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.02066/0.3129, allocations: 27.81 MB / 1.156 GB, free: 13.93 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.008372/0.3213, allocations: 8.693 MB / 1.164 GB, free: 5.113 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006874/0.3282, allocations: 5.525 MB / 1.17 GB, free: 15.57 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006137/0.3344, allocations: 6.181 MB / 1.176 GB, free: 9.359 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 0.0007963/0.3352, allocations: 472 kB / 1.176 GB, free: 8.898 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002799/0.338, allocations: 1.155 MB / 1.177 GB, free: 7.742 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.001396/0.3394, allocations: 1.794 MB / 1.179 GB, free: 5.941 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.003985/0.3434, allocations: 4.125 MB / 1.183 GB, free: 1.797 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.009132/0.3525, allocations: 12.64 MB / 1.195 GB, free: 5.125 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 3.446e-06/0.3525, allocations: 0 / 1.195 GB, free: 5.125 MB / 0.9512 GB Notification: Performance of FrontEnd: time 7.72e-07/0.3525, allocations: 0 / 1.195 GB, free: 5.125 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 0.0001303/0.3527, allocations: 0 / 1.195 GB, free: 5.125 MB / 0.9512 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.0122/0.3649, allocations: 8.495 MB / 1.204 GB, free: 12.54 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.807e-05/0.3649, allocations: 15.97 kB / 1.204 GB, free: 12.52 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009734/0.3659, allocations: 0.8422 MB / 1.204 GB, free: 11.67 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002019/0.3679, allocations: 0.8586 MB / 1.205 GB, free: 10.8 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008662/0.3766, allocations: 6.621 MB / 1.212 GB, free: 4.121 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002567/0.3769, allocations: 460.2 kB / 1.212 GB, free: 3.668 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007241/0.3776, allocations: 0.5936 MB / 1.213 GB, free: 3.074 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01174/0.3893, allocations: 9.032 MB / 1.222 GB, free: 9.715 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.696e-05/0.3895, allocations: 19.78 kB / 1.222 GB, free: 9.695 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005527/0.39, allocations: 264 kB / 1.222 GB, free: 9.438 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001356/0.3902, allocations: 176 kB / 1.222 GB, free: 9.266 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0105/0.4007, allocations: 7.453 MB / 1.229 GB, free: 1.805 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 preOpt removeSimpleEquations (simulation): time 0.7238/1.124, allocations: 35.91 MB / 1.264 GB, free: 159.3 MB / 0.9982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005443/1.13, allocations: 4.272 MB / 1.268 GB, free: 159.3 MB / 0.9982 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004392/1.134, allocations: 3.306 MB / 1.272 GB, free: 159.2 MB / 0.9982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001051/1.135, allocations: 0.9565 MB / 1.273 GB, free: 158.3 MB / 0.9982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003515/1.139, allocations: 2.383 MB / 1.275 GB, free: 158.2 MB / 0.9982 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002125/1.141, allocations: 447.1 kB / 1.275 GB, free: 158.2 MB / 0.9982 GB Notification: Performance of pre-optimization done (n=317): time 5.81e-06/1.141, allocations: 0 / 1.275 GB, free: 158.2 MB / 0.9982 GB Notification: Performance of matching and sorting (n=317): time 0.01087/1.152, allocations: 7.108 MB / 1.282 GB, free: 156.8 MB / 0.9982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.271e-05/1.152, allocations: 89.19 kB / 1.282 GB, free: 156.7 MB / 0.9982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006103/1.158, allocations: 5.46 MB / 1.288 GB, free: 154.9 MB / 0.9982 GB Notification: Performance of collectPreVariables (initialization): time 0.0002726/1.158, allocations: 87.7 kB / 1.288 GB, free: 154.8 MB / 0.9982 GB Notification: Performance of collectInitialEqns (initialization): time 0.001869/1.16, allocations: 3.195 MB / 1.291 GB, free: 152.4 MB / 0.9982 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007717/1.161, allocations: 1.113 MB / 1.292 GB, free: 151.5 MB / 0.9982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001013/1.162, allocations: 0.8548 MB / 1.293 GB, free: 151.1 MB / 0.9982 GB Notification: Performance of setup shared object (initialization): time 3.346e-05/1.162, allocations: 305.8 kB / 1.293 GB, free: 150.8 MB / 0.9982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002608/1.165, allocations: 2.154 MB / 1.295 GB, free: 149.9 MB / 0.9982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002845/1.168, allocations: 3.687 MB / 1.299 GB, free: 146.8 MB / 0.9982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005492/1.173, allocations: 6.302 MB / 1.305 GB, free: 142.2 MB / 0.9982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.716e-05/1.173, allocations: 14.06 kB / 1.305 GB, free: 142.2 MB / 0.9982 GB Notification: Performance of matching and sorting (n=569) (initialization): time 0.007618/1.181, allocations: 6.757 MB / 1.312 GB, free: 138.7 MB / 0.9982 GB Notification: Performance of prepare postOptimizeDAE: time 4.339e-05/1.181, allocations: 58.25 kB / 1.312 GB, free: 138.7 MB / 0.9982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.266e-05/1.181, allocations: 53.22 kB / 1.312 GB, free: 138.7 MB / 0.9982 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007421/1.182, allocations: 430.6 kB / 1.312 GB, free: 138.5 MB / 0.9982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002891/1.184, allocations: 1.003 MB / 1.313 GB, free: 138.2 MB / 0.9982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00373/1.188, allocations: 5.266 MB / 1.318 GB, free: 133.9 MB / 0.9982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003711/1.192, allocations: 467.6 kB / 1.319 GB, free: 133.7 MB / 0.9982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002552/1.192, allocations: 217.1 kB / 1.319 GB, free: 133.6 MB / 0.9982 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.00297/1.195, allocations: 2.479 MB / 1.321 GB, free: 131.9 MB / 0.9982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007897/1.196, allocations: 0.5248 MB / 1.322 GB, free: 131.3 MB / 0.9982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006099/1.202, allocations: 5.241 MB / 1.327 GB, free: 126.1 MB / 0.9982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.841e-05/1.202, allocations: 32.75 kB / 1.327 GB, free: 126 MB / 0.9982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.835e-06/1.202, allocations: 4 kB / 1.327 GB, free: 126 MB / 0.9982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004655/1.207, allocations: 4.533 MB / 1.331 GB, free: 121.4 MB / 0.9982 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.01353/1.22, allocations: 11.97 MB / 1.343 GB, free: 109.3 MB / 0.9982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.635e-06/1.22, allocations: 0 / 1.343 GB, free: 109.3 MB / 0.9982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002263/1.223, allocations: 0.6438 MB / 1.344 GB, free: 108.7 MB / 0.9982 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006093/1.223, allocations: 371.7 kB / 1.344 GB, free: 108.3 MB / 0.9982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001631/1.223, allocations: 87.94 kB / 1.344 GB, free: 108.2 MB / 0.9982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003473/1.227, allocations: 5.176 MB / 1.349 GB, free: 102.8 MB / 0.9982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/1.227, allocations: 4 kB / 1.349 GB, free: 102.8 MB / 0.9982 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007659/1.235, allocations: 7.612 MB / 1.357 GB, free: 95.09 MB / 0.9982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001698/1.236, allocations: 1.131 MB / 1.358 GB, free: 93.93 MB / 0.9982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005729/1.237, allocations: 67.98 kB / 1.358 GB, free: 93.86 MB / 0.9982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00284/1.24, allocations: 475.6 kB / 1.358 GB, free: 93.41 MB / 0.9982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003178/1.24, allocations: 198.2 kB / 1.358 GB, free: 93.21 MB / 0.9982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002227/1.24, allocations: 147.7 kB / 1.359 GB, free: 93.07 MB / 0.9982 GB Notification: Performance of sorting global known variables: time 0.003483/1.244, allocations: 3.807 MB / 1.362 GB, free: 89.29 MB / 0.9982 GB Notification: Performance of sort global known variables: time 1.3e-07/1.244, allocations: 0 / 1.362 GB, free: 89.29 MB / 0.9982 GB Notification: Performance of remove unused functions: time 0.00355/1.247, allocations: 1.986 MB / 1.364 GB, free: 87.32 MB / 0.9982 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.00849/1.256, allocations: 8.555 MB / 1.373 GB, free: 78.7 MB / 0.9982 GB Notification: Performance of simCode: created initialization part: time 0.005596/1.261, allocations: 5.366 MB / 1.378 GB, free: 73.29 MB / 0.9982 GB Notification: Performance of simCode: created event and clocks part: time 4.309e-06/1.261, allocations: 4.062 kB / 1.378 GB, free: 73.29 MB / 0.9982 GB Notification: Performance of simCode: created simulation system equations: time 0.002434/1.264, allocations: 2.51 MB / 1.38 GB, free: 70.75 MB / 0.9982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00996/1.274, allocations: 3.223 MB / 1.383 GB, free: 67.63 MB / 0.9982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1024/1.376, allocations: 65.46 MB / 1.447 GB, free: 12.41 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004209/1.381, allocations: 4.638 MB / 1.452 GB, free: 7.738 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.005631/1.386, allocations: 1.985 MB / 1.454 GB, free: 5.758 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003555/1.39, allocations: 2.67 MB / 1.456 GB, free: 3.086 MB / 1.014 GB Notification: Performance of SimCode: time 7.81e-07/1.39, allocations: 0 / 1.456 GB, free: 3.086 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 4.038/5.428, allocations: 159.3 MB / 1.612 GB, free: 5.066 MB / 1.17 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003182/5.428, allocations: 281.3 kB / 1.612 GB, free: 4.688 MB / 1.17 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.356/10.78, allocations: 0 / 1.612 GB, free: 4.688 MB / 1.17 GB (rm -f Buildings_latest_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe >> ../files/Buildings_latest_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Storage_Validation_StratifiedLoadingUnloading_fmu --startTime=0 --stopTime=14400 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Storage_Validation_StratifiedLoadingUnloading.fmu > Buildings_latest_Buildings.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe 2>&1)