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.00479/0.00479, allocations: 99.45 kB / 15.73 MB, free: 6.059 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.001199/0.001199, allocations: 190.8 kB / 16.67 MB, free: 5.969 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.227/1.227, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001963/0.001963, allocations: 294.5 kB / 290.8 MB, free: 14.44 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8723/0.8723, allocations: 169.3 MB / 0.4983 GB, free: 4.414 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001609/0.001609, allocations: 103.8 kB / 0.681 GB, free: 7.477 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3456/0.3473, allocations: 86.96 MB / 0.7659 GB, free: 3.895 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Storage.Validation.StratifiedLoadingUnloading): time 0.04692/0.3942, allocations: 55.98 MB / 0.8206 GB, free: 11.71 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.02005/0.4143, allocations: 17.96 MB / 0.8381 GB, free: 9.699 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001999/0.4163, allocations: 75.56 kB / 0.8382 GB, free: 9.625 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.001913/0.4183, allocations: 0.9236 MB / 0.8391 GB, free: 8.695 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.005273/0.4236, allocations: 2.616 MB / 0.8416 GB, free: 6.066 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.002908/0.4265, allocations: 1.534 MB / 0.8431 GB, free: 4.543 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.01694/0.4434, allocations: 21.29 MB / 0.8639 GB, free: 15.2 MB / 0.6387 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01057/0.454, allocations: 10.69 MB / 0.8743 GB, free: 4.395 MB / 0.6387 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01085/0.4649, allocations: 7.234 MB / 0.8814 GB, free: 13.18 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.008147/0.4731, allocations: 6.366 MB / 0.8876 GB, free: 6.793 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 0.00129/0.4744, allocations: 0.9375 MB / 0.8885 GB, free: 5.855 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003703/0.4781, allocations: 1.702 MB / 0.8902 GB, free: 4.152 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.001891/0.48, allocations: 2.337 MB / 0.8925 GB, free: 1.809 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.005604/0.4856, allocations: 4.707 MB / 0.8971 GB, free: 13.08 MB / 0.67 GB Notification: Performance of NFConvertDAE.convert: time 0.0121/0.4977, allocations: 13.23 MB / 0.91 GB, free: 15.81 MB / 0.6856 GB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.4977, allocations: 0 / 0.91 GB, free: 15.81 MB / 0.6856 GB Notification: Performance of FrontEnd: time 1.492e-06/0.4977, allocations: 0 / 0.91 GB, free: 15.81 MB / 0.6856 GB Notification: Performance of Transformations before backend: time 0.0002228/0.498, allocations: 4 kB / 0.91 GB, free: 15.8 MB / 0.6856 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.01435/0.5123, allocations: 8.733 MB / 0.9185 GB, free: 6.973 MB / 0.6856 GB Notification: Performance of prepare preOptimizeDAE: time 3.687e-05/0.5124, allocations: 8.031 kB / 0.9185 GB, free: 6.965 MB / 0.6856 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001032/0.5134, allocations: 0.8422 MB / 0.9194 GB, free: 6.113 MB / 0.6856 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002245/0.5157, allocations: 0.8981 MB / 0.9202 GB, free: 5.211 MB / 0.6856 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01065/0.5263, allocations: 6.738 MB / 0.9268 GB, free: 14.42 MB / 0.7012 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002777/0.5266, allocations: 472.1 kB / 0.9273 GB, free: 13.95 MB / 0.7012 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008494/0.5275, allocations: 0.5898 MB / 0.9279 GB, free: 13.36 MB / 0.7012 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0127/0.5402, allocations: 9.028 MB / 0.9367 GB, free: 4.008 MB / 0.7012 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001193/0.5403, allocations: 27.81 kB / 0.9367 GB, free: 3.98 MB / 0.7012 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000582/0.5409, allocations: 264 kB / 0.9369 GB, free: 3.723 MB / 0.7012 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001447/0.5411, allocations: 179.9 kB / 0.9371 GB, free: 3.547 MB / 0.7012 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01095/0.552, allocations: 7.445 MB / 0.9444 GB, free: 12.09 MB / 0.7169 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.3153/0.8673, allocations: 36.06 MB / 0.9796 GB, free: 150.9 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004638/0.872, allocations: 4.287 MB / 0.9838 GB, free: 149 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003347/0.8754, allocations: 3.304 MB / 0.987 GB, free: 147.4 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009358/0.8763, allocations: 0.9561 MB / 0.9879 GB, free: 146.4 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002798/0.8791, allocations: 2.385 MB / 0.9903 GB, free: 145 MB / 0.7169 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001714/0.8808, allocations: 392.6 kB / 0.9907 GB, free: 144.8 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=317): time 5.39e-06/0.8809, allocations: 0 / 0.9907 GB, free: 144.8 MB / 0.7169 GB Notification: Performance of matching and sorting (n=317): time 0.009473/0.8903, allocations: 7.149 MB / 0.9976 GB, free: 140.5 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.589e-05/0.8904, allocations: 85.91 kB / 0.9977 GB, free: 140.4 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00564/0.896, allocations: 5.67 MB / 1.003 GB, free: 134.7 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 0.0003595/0.8964, allocations: 89.7 kB / 1.003 GB, free: 134.6 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.001847/0.8983, allocations: 3.274 MB / 1.007 GB, free: 131.7 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008358/0.8991, allocations: 1.173 MB / 1.008 GB, free: 130.7 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009297/0.9001, allocations: 0.8674 MB / 1.009 GB, free: 129.8 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.217e-05/0.9001, allocations: 301.1 kB / 1.009 GB, free: 129.5 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002398/0.9025, allocations: 2.16 MB / 1.011 GB, free: 127.4 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002801/0.9053, allocations: 3.692 MB / 1.015 GB, free: 123 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005533/0.9108, allocations: 6.326 MB / 1.021 GB, free: 116 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.915e-05/0.9109, allocations: 20 kB / 1.021 GB, free: 116 MB / 0.7169 GB Notification: Performance of matching and sorting (n=569) (initialization): time 0.008256/0.9191, allocations: 6.794 MB / 1.027 GB, free: 109.1 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 5.315e-05/0.9192, allocations: 61.64 kB / 1.027 GB, free: 109 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.217e-05/0.9193, allocations: 48 kB / 1.027 GB, free: 109 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000785/0.9201, allocations: 440.3 kB / 1.028 GB, free: 108.6 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003062/0.9231, allocations: 1.008 MB / 1.029 GB, free: 107.6 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003878/0.927, allocations: 5.695 MB / 1.034 GB, free: 101.6 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003705/0.9307, allocations: 291.7 kB / 1.035 GB, free: 101.3 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002658/0.931, allocations: 219.6 kB / 1.035 GB, free: 101.1 MB / 0.7169 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.002671/0.9337, allocations: 2.482 MB / 1.037 GB, free: 98.66 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00083/0.9345, allocations: 0.5551 MB / 1.038 GB, free: 98.1 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006126/0.9407, allocations: 5.265 MB / 1.043 GB, free: 92.79 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.83e-05/0.9407, allocations: 32 kB / 1.043 GB, free: 92.76 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.905e-06/0.9407, allocations: 7.938 kB / 1.043 GB, free: 92.75 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004648/0.9454, allocations: 4.538 MB / 1.047 GB, free: 88.11 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01421/0.9596, allocations: 11.97 MB / 1.059 GB, free: 76.09 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.926e-06/0.9596, allocations: 4 kB / 1.059 GB, free: 76.08 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002415/0.962, allocations: 0.6477 MB / 1.06 GB, free: 75.43 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006231/0.9627, allocations: 369.8 kB / 1.06 GB, free: 75.07 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001663/0.9628, allocations: 83.95 kB / 1.06 GB, free: 74.99 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003669/0.9665, allocations: 5.62 MB / 1.066 GB, free: 69.11 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.9665, allocations: 0 / 1.066 GB, free: 69.11 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0081/0.9746, allocations: 7.793 MB / 1.073 GB, free: 61.23 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002279/0.9769, allocations: 1.181 MB / 1.075 GB, free: 60.02 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000749/0.9777, allocations: 67.98 kB / 1.075 GB, free: 59.96 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002711/0.9804, allocations: 198.3 kB / 1.075 GB, free: 59.77 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003201/0.9807, allocations: 202.2 kB / 1.075 GB, free: 59.57 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000219/0.981, allocations: 131.9 kB / 1.075 GB, free: 59.44 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0042/0.9852, allocations: 3.967 MB / 1.079 GB, free: 55.5 MB / 0.7169 GB Notification: Performance of sort global known variables: time 6.11e-07/0.9852, allocations: 0 / 1.079 GB, free: 55.5 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.004507/0.9897, allocations: 2.025 MB / 1.081 GB, free: 53.61 MB / 0.7169 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.009012/0.9987, allocations: 8.739 MB / 1.089 GB, free: 44.83 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.006176/1.005, allocations: 5.453 MB / 1.095 GB, free: 39.33 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 6.201e-06/1.005, allocations: 384 / 1.095 GB, free: 39.33 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.002649/1.008, allocations: 2.552 MB / 1.097 GB, free: 36.75 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01192/1.02, allocations: 3.396 MB / 1.101 GB, free: 33.45 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05901/1.079, allocations: 52.56 MB / 1.152 GB, free: 10.77 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003805/1.082, allocations: 4.632 MB / 1.156 GB, free: 6.102 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.005141/1.088, allocations: 2.075 MB / 1.158 GB, free: 4.047 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003482/1.091, allocations: 2.674 MB / 1.161 GB, free: 1.371 MB / 0.7481 GB Notification: Performance of SimCode: time 5.51e-07/1.091, allocations: 0 / 1.161 GB, free: 1.371 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.507/1.598, allocations: 159.9 MB / 1.317 GB, free: 298.1 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.35/20.95, allocations: 10.75 kB / 1.317 GB, free: 298.1 MB / 0.8731 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 & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Fluid.Storage.Validation.StratifiedLoadingUnloading_res.csv --start-time 0 --stop-time 14400 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 5.76 BuildingSystems_BuildingSystems_Fluid_Storage_Validation_StratifiedLoadingUnloading.fmu > BuildingSystems_BuildingSystems.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe 2>&1)