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.001549/0.001549, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001151/0.001151, allocations: 190.9 kB / 16.13 MB, free: 6.66 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.258/1.258, allocations: 222.9 MB / 239.8 MB, free: 4.602 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00184/0.00184, allocations: 281.2 kB / 290.2 MB, free: 2.207 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.7986/0.7986, allocations: 169.2 MB / 0.4977 GB, free: 14.16 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001839/0.001839, allocations: 93.39 kB / 0.5946 GB, free: 28.34 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1211/0.1229, allocations: 86.99 MB / 0.6795 GB, free: 1.113 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Storage.Validation.StratifiedLoadingUnloading): time 0.04692/0.1699, allocations: 55.62 MB / 0.7339 GB, free: 9.312 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.02029/0.1902, allocations: 17.93 MB / 0.7514 GB, free: 7.336 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002031/0.1923, allocations: 71.56 kB / 0.7514 GB, free: 7.266 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.002221/0.1945, allocations: 0.7186 MB / 0.7521 GB, free: 6.543 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.005362/0.1999, allocations: 2.329 MB / 0.7544 GB, free: 4.203 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.003045/0.203, allocations: 1.382 MB / 0.7558 GB, free: 2.832 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.2749/0.4778, allocations: 27.81 MB / 0.7829 GB, free: 10.72 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01145/0.4893, allocations: 8.692 MB / 0.7914 GB, free: 25.3 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.01219/0.5016, allocations: 5.531 MB / 0.7968 GB, free: 24.74 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01385/0.5155, allocations: 6.181 MB / 0.8028 GB, free: 23.73 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.002149/0.5177, allocations: 472.9 kB / 0.8033 GB, free: 23.73 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005364/0.523, allocations: 1.15 MB / 0.8044 GB, free: 23.73 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.001542/0.5246, allocations: 1.793 MB / 0.8062 GB, free: 23.46 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.00636/0.531, allocations: 4.127 MB / 0.8102 GB, free: 22.34 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.009662/0.5406, allocations: 12.65 MB / 0.8225 GB, free: 20.98 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 6.091e-06/0.5407, allocations: 0 / 0.8225 GB, free: 20.98 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.754e-06/0.5407, allocations: 0 / 0.8225 GB, free: 20.98 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 0.0004042/0.5411, allocations: 0 / 0.8225 GB, free: 20.98 MB / 0.5762 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.01964/0.5607, allocations: 8.507 MB / 0.8309 GB, free: 16.83 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.811e-05/0.5608, allocations: 8.062 kB / 0.8309 GB, free: 16.83 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001319/0.5621, allocations: 0.8475 MB / 0.8317 GB, free: 16.61 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002461/0.5646, allocations: 0.8526 MB / 0.8325 GB, free: 16.2 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009997/0.5746, allocations: 6.617 MB / 0.839 GB, free: 12.92 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002374/0.5749, allocations: 457.2 kB / 0.8394 GB, free: 12.71 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008107/0.5757, allocations: 0.6003 MB / 0.84 GB, free: 12.51 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01359/0.5893, allocations: 9.032 MB / 0.8488 GB, free: 6.984 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001126/0.5894, allocations: 21.28 kB / 0.8488 GB, free: 6.977 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006389/0.5901, allocations: 263.9 kB / 0.8491 GB, free: 6.781 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001205/0.5902, allocations: 183.1 kB / 0.8493 GB, free: 6.766 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0119/0.6021, allocations: 7.446 MB / 0.8565 GB, free: 192 kB / 0.5762 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.04787/0.65, allocations: 35.91 MB / 0.8916 GB, free: 10.84 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006757/0.6568, allocations: 4.284 MB / 0.8958 GB, free: 6.578 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005022/0.6618, allocations: 3.315 MB / 0.899 GB, free: 3.277 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001281/0.6631, allocations: 0.9501 MB / 0.9 GB, free: 2.156 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00409/0.6673, allocations: 2.388 MB / 0.9023 GB, free: 15.73 MB / 0.6387 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002747/0.67, allocations: 447.8 kB / 0.9027 GB, free: 15.29 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=317): time 8.566e-06/0.67, allocations: 2.625 kB / 0.9027 GB, free: 15.29 MB / 0.6387 GB Notification: Performance of matching and sorting (n=317): time 0.01272/0.6828, allocations: 7.093 MB / 0.9096 GB, free: 8.125 MB / 0.6387 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.531e-05/0.6828, allocations: 92.72 kB / 0.9097 GB, free: 8.023 MB / 0.6387 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009052/0.6919, allocations: 5.463 MB / 0.9151 GB, free: 2.582 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 0.0004344/0.6924, allocations: 89.7 kB / 0.9152 GB, free: 2.488 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.003244/0.6956, allocations: 3.187 MB / 0.9183 GB, free: 15.29 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 0.001288/0.6969, allocations: 1.117 MB / 0.9194 GB, free: 14.18 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001232/0.6981, allocations: 0.858 MB / 0.9202 GB, free: 13.3 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 9.047e-05/0.6982, allocations: 309.1 kB / 0.9205 GB, free: 13 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003176/0.7014, allocations: 2.148 MB / 0.9226 GB, free: 10.84 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004016/0.7055, allocations: 3.687 MB / 0.9262 GB, free: 6.477 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008023/0.7135, allocations: 6.303 MB / 0.9323 GB, free: 15.66 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.528e-05/0.7136, allocations: 16 kB / 0.9324 GB, free: 15.64 MB / 0.67 GB Notification: Performance of matching and sorting (n=569) (initialization): time 0.0113/0.7249, allocations: 6.754 MB / 0.939 GB, free: 9.141 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 7.459e-05/0.725, allocations: 53.7 kB / 0.939 GB, free: 9.082 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.67e-05/0.725, allocations: 48 kB / 0.9391 GB, free: 9.035 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009252/0.726, allocations: 439.3 kB / 0.9395 GB, free: 8.605 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003421/0.7294, allocations: 1.009 MB / 0.9405 GB, free: 7.664 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005278/0.7347, allocations: 5.258 MB / 0.9456 GB, free: 2.195 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005774/0.7405, allocations: 464.1 kB / 0.946 GB, free: 1.742 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006303/0.7411, allocations: 216 kB / 0.9462 GB, free: 1.531 MB / 0.67 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.004506/0.7457, allocations: 2.49 MB / 0.9487 GB, free: 15.1 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001495/0.7472, allocations: 0.5249 MB / 0.9492 GB, free: 14.57 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008607/0.7558, allocations: 5.245 MB / 0.9543 GB, free: 9.301 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.099e-05/0.7558, allocations: 32 kB / 0.9543 GB, free: 9.27 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.277e-05/0.7558, allocations: 7.984 kB / 0.9543 GB, free: 9.262 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006165/0.762, allocations: 4.533 MB / 0.9588 GB, free: 4.641 MB / 0.6856 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.02043/0.7825, allocations: 11.95 MB / 0.9704 GB, free: 8.617 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.149e-05/0.7825, allocations: 4 kB / 0.9704 GB, free: 8.613 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002662/0.7852, allocations: 0.6414 MB / 0.9711 GB, free: 8 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000805/0.786, allocations: 377.3 kB / 0.9714 GB, free: 7.625 MB / 0.7012 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002132/0.7862, allocations: 79.95 kB / 0.9715 GB, free: 7.547 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004917/0.7911, allocations: 5.186 MB / 0.9766 GB, free: 2.129 MB / 0.7012 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.215e-06/0.7912, allocations: 0 / 0.9766 GB, free: 2.129 MB / 0.7012 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01172/0.8029, allocations: 7.61 MB / 0.984 GB, free: 10.44 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003816/0.8067, allocations: 1.139 MB / 0.9851 GB, free: 9.277 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007059/0.8075, allocations: 70.61 kB / 0.9852 GB, free: 9.211 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003203/0.8107, allocations: 467.5 kB / 0.9856 GB, free: 8.758 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004096/0.8111, allocations: 194.2 kB / 0.9858 GB, free: 8.566 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002716/0.8114, allocations: 143.9 kB / 0.986 GB, free: 8.426 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.00504/0.8164, allocations: 3.803 MB / 0.9897 GB, free: 4.645 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.6e-07/0.8164, allocations: 0 / 0.9897 GB, free: 4.645 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.004668/0.8211, allocations: 1.987 MB / 0.9916 GB, free: 2.652 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.01119/0.8323, allocations: 8.571 MB / 1 GB, free: 10.06 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.007687/0.84, allocations: 5.369 MB / 1.005 GB, free: 4.793 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 6.923e-06/0.84, allocations: 4 kB / 1.005 GB, free: 4.789 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.003328/0.8434, allocations: 2.508 MB / 1.008 GB, free: 2.309 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01418/0.8575, allocations: 3.227 MB / 1.011 GB, free: 15.14 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3863/1.244, allocations: 65.47 MB / 1.075 GB, free: 299.6 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003996/1.248, allocations: 4.623 MB / 1.079 GB, free: 298.8 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 0.005896/1.254, allocations: 1.99 MB / 1.081 GB, free: 298.7 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003183/1.257, allocations: 2.668 MB / 1.084 GB, free: 298.3 MB / 0.795 GB Notification: Performance of SimCode: time 8.71e-07/1.257, allocations: 0 / 1.084 GB, free: 298.3 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2429/1.5, allocations: 159.3 MB / 1.239 GB, free: 169.1 MB / 0.795 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001466/1.5, allocations: 303.6 kB / 1.24 GB, free: 168.7 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 5.223/6.723, allocations: 0 / 1.24 GB, free: 168.7 MB / 0.795 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)