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.005153/0.005153, allocations: 98.77 kB / 15.73 MB, free: 6.066 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.001506/0.001506, allocations: 195.9 kB / 16.68 MB, free: 5.973 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.319/1.319, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002467/0.002467, allocations: 296.5 kB / 290.8 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9611/0.9611, allocations: 169.3 MB / 0.4983 GB, free: 4.434 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002625/0.002625, allocations: 91.86 kB / 0.681 GB, free: 7.496 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3634/0.366, allocations: 86.97 MB / 0.7659 GB, free: 3.898 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Storage.Validation.StratifiedLoadingUnloading): time 0.0592/0.4252, allocations: 55.98 MB / 0.8206 GB, free: 11.71 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.02463/0.4499, allocations: 17.96 MB / 0.8381 GB, free: 9.703 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002379/0.4523, allocations: 75.56 kB / 0.8382 GB, free: 9.629 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.002453/0.4548, allocations: 0.8885 MB / 0.839 GB, free: 8.734 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.006552/0.4614, allocations: 2.506 MB / 0.8415 GB, free: 6.215 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.003645/0.465, allocations: 1.532 MB / 0.843 GB, free: 4.691 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.02218/0.4872, allocations: 21.26 MB / 0.8637 GB, free: 15.38 MB / 0.6387 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01385/0.5011, allocations: 10.68 MB / 0.8742 GB, free: 4.578 MB / 0.6387 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01348/0.5146, allocations: 7.154 MB / 0.8812 GB, free: 13.45 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01058/0.5253, allocations: 6.362 MB / 0.8874 GB, free: 7.059 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 0.002719/0.528, allocations: 0.9375 MB / 0.8883 GB, free: 6.121 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006044/0.5341, allocations: 1.698 MB / 0.89 GB, free: 4.422 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.003961/0.5381, allocations: 2.337 MB / 0.8922 GB, free: 2.078 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.008871/0.5469, allocations: 4.711 MB / 0.8968 GB, free: 13.35 MB / 0.67 GB Notification: Performance of NFConvertDAE.convert: time 0.01713/0.5641, allocations: 13.24 MB / 0.9098 GB, free: 76 kB / 0.67 GB Notification: Performance of FrontEnd - DAE generated: time 6.051e-06/0.5642, allocations: 0 / 0.9098 GB, free: 76 kB / 0.67 GB Notification: Performance of FrontEnd: time 1.873e-06/0.5642, allocations: 0 / 0.9098 GB, free: 76 kB / 0.67 GB Notification: Performance of Transformations before backend: time 0.0003478/0.5645, allocations: 0 / 0.9098 GB, free: 76 kB / 0.67 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.02016/0.5847, allocations: 8.729 MB / 0.9183 GB, free: 7.242 MB / 0.6856 GB Notification: Performance of prepare preOptimizeDAE: time 4.46e-05/0.5848, allocations: 12.03 kB / 0.9183 GB, free: 7.23 MB / 0.6856 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002246/0.587, allocations: 0.8422 MB / 0.9191 GB, free: 6.379 MB / 0.6856 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003303/0.5903, allocations: 0.9058 MB / 0.92 GB, free: 5.469 MB / 0.6856 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01349/0.6038, allocations: 6.731 MB / 0.9266 GB, free: 14.68 MB / 0.7012 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004966/0.6044, allocations: 464.2 kB / 0.927 GB, free: 14.22 MB / 0.7012 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001999/0.6064, allocations: 0.5937 MB / 0.9276 GB, free: 13.63 MB / 0.7012 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02149/0.6279, allocations: 9.028 MB / 0.9364 GB, free: 4.273 MB / 0.7012 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002457/0.6282, allocations: 23.77 kB / 0.9364 GB, free: 4.25 MB / 0.7012 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001576/0.6298, allocations: 260 kB / 0.9367 GB, free: 3.996 MB / 0.7012 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002232/0.63, allocations: 184 kB / 0.9369 GB, free: 3.816 MB / 0.7012 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01635/0.6464, allocations: 7.445 MB / 0.9441 GB, free: 12.36 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.5896/1.236, allocations: 36.07 MB / 0.9794 GB, free: 151.1 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004725/1.241, allocations: 4.282 MB / 0.9835 GB, free: 149.2 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003368/1.244, allocations: 3.31 MB / 0.9868 GB, free: 147.6 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009232/1.245, allocations: 0.9572 MB / 0.9877 GB, free: 146.6 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002824/1.248, allocations: 2.376 MB / 0.99 GB, free: 145.2 MB / 0.7169 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0017/1.25, allocations: 388.6 kB / 0.9904 GB, free: 145.1 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=317): time 5.27e-06/1.25, allocations: 3.062 kB / 0.9904 GB, free: 145.1 MB / 0.7169 GB Notification: Performance of matching and sorting (n=317): time 0.009817/1.259, allocations: 7.153 MB / 0.9974 GB, free: 140.8 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.737e-05/1.26, allocations: 85.89 kB / 0.9975 GB, free: 140.7 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006105/1.266, allocations: 5.668 MB / 1.003 GB, free: 135.1 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 0.000474/1.266, allocations: 89.7 kB / 1.003 GB, free: 135 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.001957/1.268, allocations: 3.277 MB / 1.006 GB, free: 132.1 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 0.001012/1.269, allocations: 1.171 MB / 1.007 GB, free: 131 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009723/1.27, allocations: 0.8663 MB / 1.008 GB, free: 130.2 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 3.288e-05/1.27, allocations: 309.1 kB / 1.009 GB, free: 129.9 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002455/1.273, allocations: 2.16 MB / 1.011 GB, free: 127.7 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00284/1.275, allocations: 3.69 MB / 1.014 GB, free: 123.3 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005502/1.281, allocations: 6.333 MB / 1.02 GB, free: 116.3 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.875e-05/1.281, allocations: 16 kB / 1.02 GB, free: 116.3 MB / 0.7169 GB Notification: Performance of matching and sorting (n=569) (initialization): time 0.008108/1.289, allocations: 6.791 MB / 1.027 GB, free: 109.5 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 4.47e-05/1.289, allocations: 57.7 kB / 1.027 GB, free: 109.4 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.494e-05/1.289, allocations: 51.94 kB / 1.027 GB, free: 109.3 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007624/1.29, allocations: 437.7 kB / 1.028 GB, free: 108.9 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002997/1.293, allocations: 0.9984 MB / 1.029 GB, free: 107.9 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003982/1.297, allocations: 5.715 MB / 1.034 GB, free: 101.9 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003863/1.301, allocations: 283.7 kB / 1.034 GB, free: 101.7 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003006/1.301, allocations: 220 kB / 1.035 GB, free: 101.5 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.002984/1.304, allocations: 2.477 MB / 1.037 GB, free: 99 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000987/1.305, allocations: 0.5589 MB / 1.038 GB, free: 98.44 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006467/1.312, allocations: 5.27 MB / 1.043 GB, free: 93.13 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.965e-05/1.312, allocations: 36 kB / 1.043 GB, free: 93.1 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.947e-06/1.312, allocations: 4 kB / 1.043 GB, free: 93.09 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004797/1.316, allocations: 4.538 MB / 1.047 GB, free: 88.45 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0148/1.331, allocations: 11.97 MB / 1.059 GB, free: 76.43 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.408e-06/1.331, allocations: 0 / 1.059 GB, free: 76.43 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002376/1.334, allocations: 0.6438 MB / 1.06 GB, free: 75.78 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00065/1.334, allocations: 371.6 kB / 1.06 GB, free: 75.41 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001823/1.335, allocations: 83.95 kB / 1.06 GB, free: 75.33 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003798/1.338, allocations: 5.626 MB / 1.066 GB, free: 69.46 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/1.338, allocations: 4 kB / 1.066 GB, free: 69.45 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008689/1.347, allocations: 7.789 MB / 1.073 GB, free: 61.57 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002248/1.349, allocations: 1.185 MB / 1.074 GB, free: 60.37 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007955/1.35, allocations: 67.98 kB / 1.074 GB, free: 60.3 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00266/1.353, allocations: 195.4 kB / 1.075 GB, free: 60.12 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003362/1.353, allocations: 206.2 kB / 1.075 GB, free: 59.91 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002374/1.353, allocations: 135.9 kB / 1.075 GB, free: 59.78 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.004311/1.358, allocations: 3.963 MB / 1.079 GB, free: 55.84 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/1.358, allocations: 0 / 1.079 GB, free: 55.84 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.004547/1.362, allocations: 2.02 MB / 1.081 GB, free: 53.96 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.009385/1.372, allocations: 8.745 MB / 1.089 GB, free: 45.17 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.006199/1.378, allocations: 5.448 MB / 1.095 GB, free: 39.67 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 5.761e-06/1.378, allocations: 4 kB / 1.095 GB, free: 39.67 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.002609/1.381, allocations: 2.545 MB / 1.097 GB, free: 37.09 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01201/1.393, allocations: 3.39 MB / 1.1 GB, free: 33.8 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0694/1.462, allocations: 52.56 MB / 1.152 GB, free: 11.12 MB / 0.7482 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006045/1.468, allocations: 4.628 MB / 1.156 GB, free: 6.461 MB / 0.7482 GB Notification: Performance of simCode: alias equations: time 0.006562/1.475, allocations: 2.092 MB / 1.158 GB, free: 4.391 MB / 0.7482 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005503/1.48, allocations: 2.674 MB / 1.161 GB, free: 1.715 MB / 0.7482 GB Notification: Performance of SimCode: time 1.092e-06/1.48, allocations: 0 / 1.161 GB, free: 1.715 MB / 0.7482 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5483/2.029, allocations: 159.9 MB / 1.317 GB, free: 298.4 MB / 0.8732 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.61/21.64, allocations: 5.375 kB / 1.317 GB, free: 298.4 MB / 0.8732 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)