Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Fluid.Storage.Validation.StratifiedLoadingUnloading,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Storage_Validation_StratifiedLoadingUnloading",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Storage.Validation.StratifiedLoadingUnloading,fileNamePrefix="BuildingSystems_BuildingSystems_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.0007799/0.0007799, allocations: 90.52 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.004238/0.004238, allocations: 171.1 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.168/1.168, allocations: 223.2 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001566/0.001566, allocations: 267 kB / 291.7 MB, free: 1.879 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8365/0.8365, allocations: 169.5 MB / 0.5004 GB, free: 14.14 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003585/0.0003586, allocations: 14.39 kB / 0.5988 GB, free: 28.02 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1217/0.122, allocations: 88.55 MB / 0.6852 GB, free: 15.01 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Storage.Validation.StratifiedLoadingUnloading): time 0.04267/0.1647, allocations: 54.51 MB / 0.7385 GB, free: 8.332 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.01782/0.1826, allocations: 17.73 MB / 0.7558 GB, free: 6.551 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001285/0.1839, allocations: 67.56 kB / 0.7558 GB, free: 6.484 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.00145/0.1853, allocations: 0.7224 MB / 0.7565 GB, free: 5.758 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.004148/0.1895, allocations: 2.321 MB / 0.7588 GB, free: 3.426 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.002419/0.1919, allocations: 1.381 MB / 0.7602 GB, free: 2.055 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.2662/0.4581, allocations: 27.81 MB / 0.7873 GB, free: 9.895 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00859/0.4668, allocations: 8.416 MB / 0.7955 GB, free: 24.39 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.007226/0.474, allocations: 5.207 MB / 0.8006 GB, free: 23.33 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006142/0.4802, allocations: 5.793 MB / 0.8063 GB, free: 21.95 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0006275/0.4808, allocations: 348.5 kB / 0.8066 GB, free: 21.95 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002559/0.4834, allocations: 1.028 MB / 0.8076 GB, free: 21.77 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.001041/0.4844, allocations: 1.592 MB / 0.8092 GB, free: 21.11 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.003511/0.4879, allocations: 3.892 MB / 0.813 GB, free: 19.7 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.00787/0.4958, allocations: 12.3 MB / 0.825 GB, free: 11.12 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.4958, allocations: 0 / 0.825 GB, free: 11.12 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.814e-06/0.4959, allocations: 0 / 0.825 GB, free: 11.12 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 0.0001437/0.496, allocations: 4 kB / 0.825 GB, free: 11.11 MB / 0.5606 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.0105/0.5065, allocations: 6.887 MB / 0.8317 GB, free: 4.195 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.584e-05/0.5066, allocations: 16.03 kB / 0.8317 GB, free: 4.18 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001011/0.5076, allocations: 0.8383 MB / 0.8326 GB, free: 3.332 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00184/0.5094, allocations: 0.8547 MB / 0.8334 GB, free: 2.469 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008492/0.5179, allocations: 6.625 MB / 0.8399 GB, free: 11.95 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002592/0.5182, allocations: 460.1 kB / 0.8403 GB, free: 11.5 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007932/0.519, allocations: 0.6014 MB / 0.8409 GB, free: 10.89 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01195/0.5309, allocations: 9.025 MB / 0.8497 GB, free: 1.559 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001067/0.5311, allocations: 19.88 kB / 0.8497 GB, free: 1.539 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005531/0.5316, allocations: 262.9 kB / 0.85 GB, free: 1.285 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001326/0.5318, allocations: 183.2 kB / 0.8501 GB, free: 1.109 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0102/0.542, allocations: 7.462 MB / 0.8574 GB, free: 9.641 MB / 0.5919 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.03366/0.5756, allocations: 36 MB / 0.8926 GB, free: 3.875 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005179/0.5808, allocations: 4.296 MB / 0.8968 GB, free: 15.59 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003937/0.5848, allocations: 3.33 MB / 0.9 GB, free: 12.27 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001086/0.5859, allocations: 0.9765 MB / 0.901 GB, free: 11.12 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003175/0.5891, allocations: 2.394 MB / 0.9033 GB, free: 8.691 MB / 0.6387 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001937/0.591, allocations: 446.5 kB / 0.9037 GB, free: 8.254 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=317): time 4.278e-06/0.591, allocations: 4 kB / 0.9037 GB, free: 8.25 MB / 0.6387 GB Notification: Performance of matching and sorting (n=317): time 0.01048/0.6015, allocations: 7.136 MB / 0.9107 GB, free: 1.023 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.158e-05/0.6016, allocations: 88.48 kB / 0.9108 GB, free: 0.9258 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006105/0.6077, allocations: 5.459 MB / 0.9161 GB, free: 11.49 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 0.0002337/0.6079, allocations: 89.7 kB / 0.9162 GB, free: 11.39 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.002321/0.6103, allocations: 3.19 MB / 0.9193 GB, free: 8.188 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008787/0.6112, allocations: 1.118 MB / 0.9204 GB, free: 7.078 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004236/0.6116, allocations: 367.3 kB / 0.9208 GB, free: 6.711 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 7.089e-05/0.6117, allocations: 307 kB / 0.9211 GB, free: 6.41 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002836/0.6145, allocations: 2.16 MB / 0.9232 GB, free: 4.242 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003622/0.6181, allocations: 3.692 MB / 0.9268 GB, free: 15.85 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006806/0.625, allocations: 6.312 MB / 0.9329 GB, free: 8.84 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.802e-05/0.625, allocations: 12 kB / 0.933 GB, free: 8.828 MB / 0.67 GB Notification: Performance of matching and sorting (n=569) (initialization): time 0.009021/0.634, allocations: 6.764 MB / 0.9396 GB, free: 2.012 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 5.302e-05/0.6341, allocations: 61.62 kB / 0.9396 GB, free: 1.945 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.081e-05/0.6341, allocations: 51.94 kB / 0.9397 GB, free: 1.895 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008324/0.635, allocations: 436 kB / 0.9401 GB, free: 1.465 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003112/0.6381, allocations: 1.01 MB / 0.9411 GB, free: 464 kB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004754/0.6428, allocations: 5.258 MB / 0.9462 GB, free: 10.94 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003858/0.6467, allocations: 462.8 kB / 0.9466 GB, free: 10.49 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002878/0.647, allocations: 220 kB / 0.9469 GB, free: 10.27 MB / 0.6856 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.003316/0.6503, allocations: 2.492 MB / 0.9493 GB, free: 7.77 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007004/0.651, allocations: 0.5249 MB / 0.9498 GB, free: 7.238 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007339/0.6584, allocations: 5.254 MB / 0.9549 GB, free: 1.941 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.358e-05/0.6584, allocations: 32 kB / 0.955 GB, free: 1.91 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.839e-06/0.6584, allocations: 8 kB / 0.955 GB, free: 1.902 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.005679/0.6641, allocations: 4.538 MB / 0.9594 GB, free: 13.26 MB / 0.7012 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.01697/0.6811, allocations: 11.98 MB / 0.9711 GB, free: 1.172 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.798e-06/0.6811, allocations: 3.938 kB / 0.9711 GB, free: 1.168 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002524/0.6837, allocations: 0.6554 MB / 0.9717 GB, free: 0.5117 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007381/0.6844, allocations: 372.7 kB / 0.9721 GB, free: 148 kB / 0.7012 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00018/0.6846, allocations: 87.89 kB / 0.9722 GB, free: 60 kB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004758/0.6894, allocations: 5.175 MB / 0.9772 GB, free: 10.62 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.58e-06/0.6894, allocations: 11.88 kB / 0.9773 GB, free: 10.61 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01014/0.6995, allocations: 7.638 MB / 0.9847 GB, free: 2.887 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002379/0.7019, allocations: 1.213 MB / 0.9859 GB, free: 1.648 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005423/0.7025, allocations: 63.98 kB / 0.986 GB, free: 1.586 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003127/0.7056, allocations: 482 kB / 0.9864 GB, free: 1.117 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003554/0.706, allocations: 194.2 kB / 0.9866 GB, free: 0.9258 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002412/0.7062, allocations: 139.9 kB / 0.9867 GB, free: 0.7891 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.004663/0.7109, allocations: 3.812 MB / 0.9905 GB, free: 13 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7109, allocations: 1.219 kB / 0.9905 GB, free: 13 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.004166/0.7151, allocations: 1.983 MB / 0.9924 GB, free: 11.01 MB / 0.7325 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.01034/0.7254, allocations: 8.584 MB / 1.001 GB, free: 2.359 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.007041/0.7325, allocations: 5.378 MB / 1.006 GB, free: 12.93 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 5.982e-06/0.7325, allocations: 8.062 kB / 1.006 GB, free: 12.92 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.003039/0.7355, allocations: 2.513 MB / 1.008 GB, free: 10.38 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01458/0.7501, allocations: 3.22 MB / 1.012 GB, free: 7.215 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.589/1.339, allocations: 65.7 MB / 1.076 GB, free: 271.4 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004146/1.343, allocations: 4.626 MB / 1.08 GB, free: 269.8 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.005154/1.349, allocations: 1.998 MB / 1.082 GB, free: 269.7 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003017/1.352, allocations: 2.673 MB / 1.085 GB, free: 267.7 MB / 0.7794 GB Notification: Performance of SimCode: time 6.32e-07/1.352, allocations: 0 / 1.085 GB, free: 267.7 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.147/2.498, allocations: 158 MB / 1.239 GB, free: 123.4 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001557/2.499, allocations: 293.8 kB / 1.239 GB, free: 123 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.952/7.45, allocations: 0 / 1.239 GB, free: 123 MB / 0.7794 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Storage.Validation.StratifiedLoadingUnloading.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Storage_Validation_StratifiedLoadingUnloading_fmu --startTime=0 --stopTime=14400 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Storage_Validation_StratifiedLoadingUnloading.fmu > BuildingSystems_BuildingSystems.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe 2>&1)