Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_6.0.0_Buildings.Fluid.Storage.Examples.Stratified.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Storage.Examples.Stratified,fileNamePrefix="Buildings_6_0_0_Buildings_Fluid_Storage_Examples_Stratified",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 4.482/4.482, allocations: 433.2 MB / 440.7 MB, free: 4.598 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 2.872e-05/2.885e-05, allocations: 4.156 kB / 0.5325 GB, free: 12.71 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2206/0.2207, allocations: 98.73 MB / 0.6289 GB, free: 9.168 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.232/1.452, allocations: 394.3 MB / 1.014 GB, free: 7.188 MB / 0.7605 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003449/1.453, allocations: 86.39 kB / 1.014 GB, free: 7.145 MB / 0.7605 GB Notification: Performance of FrontEnd - DAE generated: time 15.93/17.39, allocations: 2.806 GB / 3.82 GB, free: 134.4 MB / 0.8542 GB Notification: Performance of FrontEnd: time 2.265e-06/17.39, allocations: 3.281 kB / 3.82 GB, free: 134.4 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 0.001835/17.39, allocations: 254.6 kB / 3.821 GB, free: 134.4 MB / 0.8542 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2143 * Number of variables: 2143 Notification: Performance of Generate backend data structure: time 0.03583/17.42, allocations: 8.248 MB / 3.829 GB, free: 131.2 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 5.205e-05/17.42, allocations: 9.469 kB / 3.829 GB, free: 131.2 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00864/17.43, allocations: 1.149 MB / 3.83 GB, free: 130.7 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03721/17.47, allocations: 10.63 MB / 3.84 GB, free: 129.4 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000581/17.47, allocations: 274.2 kB / 3.84 GB, free: 129.4 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004094/17.48, allocations: 487.3 kB / 3.841 GB, free: 129.4 MB / 0.8542 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03083/17.51, allocations: 8.903 MB / 3.85 GB, free: 127.2 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04501/17.55, allocations: 10.12 MB / 3.86 GB, free: 123 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007655/17.55, allocations: 23.5 kB / 3.86 GB, free: 123 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004311/17.56, allocations: 11.84 kB / 3.86 GB, free: 123 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004042/17.56, allocations: 248.2 kB / 3.86 GB, free: 122.9 MB / 0.8542 GB Warning: The model contains alias variables with conflicting start and/or 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.09845/17.66, allocations: 44.12 MB / 3.903 GB, free: 81.91 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01333/17.67, allocations: 6.031 MB / 3.909 GB, free: 75.89 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01013/17.68, allocations: 4.638 MB / 3.913 GB, free: 71.24 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001867/17.68, allocations: 0.8235 MB / 3.914 GB, free: 70.29 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.007581/17.69, allocations: 3.022 MB / 3.917 GB, free: 67.23 MB / 0.8542 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.005556/17.69, allocations: 402.1 kB / 3.917 GB, free: 66.84 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=453): time 2.62e-05/17.69, allocations: 0 / 3.917 GB, free: 66.84 MB / 0.8542 GB Notification: Performance of matching and sorting (n=453): time 0.01805/17.71, allocations: 6.055 MB / 3.923 GB, free: 60.76 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.677e-05/17.71, allocations: 154.3 kB / 3.924 GB, free: 60.58 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01437/17.73, allocations: 5.733 MB / 3.929 GB, free: 54.85 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 0.001398/17.73, allocations: 33.7 kB / 3.929 GB, free: 54.81 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 0.005963/17.73, allocations: 4.225 MB / 3.933 GB, free: 50.54 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 0.003213/17.74, allocations: 1.513 MB / 3.935 GB, free: 49 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006725/17.74, allocations: 0 / 3.935 GB, free: 49 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0004644/17.74, allocations: 0.5526 MB / 3.935 GB, free: 48.45 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006426/17.75, allocations: 2.78 MB / 3.938 GB, free: 45.66 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008271/17.75, allocations: 4.59 MB / 3.942 GB, free: 40.25 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01097/17.76, allocations: 4.085 MB / 3.946 GB, free: 36.16 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.57e-05/17.76, allocations: 16 kB / 3.946 GB, free: 36.14 MB / 0.8542 GB Notification: Performance of matching and sorting (n=756) (initialization): time 0.02462/17.79, allocations: 8.146 MB / 3.954 GB, free: 27.98 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 0.7411/18.53, allocations: 27.2 MB / 3.981 GB, free: 131.4 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002431/18.53, allocations: 59.7 kB / 3.981 GB, free: 131.4 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001819/18.53, allocations: 99.52 kB / 3.981 GB, free: 131.4 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01286/18.54, allocations: 1.441 MB / 3.983 GB, free: 131.4 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000243/18.54, allocations: 125 kB / 3.983 GB, free: 131.4 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01242/18.56, allocations: 0.5093 MB / 3.983 GB, free: 131.4 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002235/18.56, allocations: 282 kB / 3.983 GB, free: 131.4 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.75e-05/18.56, allocations: 5.156 kB / 3.983 GB, free: 131.4 MB / 0.8542 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02697/18.59, allocations: 7.52 MB / 3.991 GB, free: 131.3 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002532/18.59, allocations: 57.56 kB / 3.991 GB, free: 131.3 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000206/18.59, allocations: 99.09 kB / 3.991 GB, free: 131.3 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01301/18.6, allocations: 1.445 MB / 3.992 GB, free: 131.3 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002504/18.6, allocations: 123.6 kB / 3.992 GB, free: 131.3 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01206/18.61, allocations: 492.6 kB / 3.993 GB, free: 131.3 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002088/18.61, allocations: 279.2 kB / 3.993 GB, free: 131.3 MB / 0.8542 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 258 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition1,$whenCondition2,TWat.a,TWat.b,TWat.last,$PRE.TWat.nextEvent,TWat.nextEvent,TWat.nextEventScaled,P.a,P.b,P.last,$PRE.P.nextEvent,P.nextEvent,P.nextEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (744): * Single equations (assignments): 742 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.002221/18.62, allocations: 355.4 kB / 3.994 GB, free: 131.2 MB / 0.8542 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.01868/18.63, allocations: 6.083 MB / 3.999 GB, free: 131.1 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003258/18.64, allocations: 0.6208 MB / 4 GB, free: 131 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02092/18.66, allocations: 6.703 MB / 4.007 GB, free: 130.8 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.861e-05/18.66, allocations: 46.2 kB / 4.007 GB, free: 130.8 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.504e-05/18.66, allocations: 5.656 kB / 4.007 GB, free: 130.8 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01528/18.67, allocations: 5.589 MB / 4.012 GB, free: 130.6 MB / 0.8542 GB Warning: The model contains alias variables with conflicting start and/or 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.0492/18.72, allocations: 15.05 MB / 4.027 GB, free: 129.8 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.333e-05/18.72, allocations: 3.906 kB / 4.027 GB, free: 129.8 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009092/18.73, allocations: 0.9158 MB / 4.028 GB, free: 129.8 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.79e-05/18.73, allocations: 16.34 kB / 4.028 GB, free: 129.8 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001202/18.73, allocations: 63.53 kB / 4.028 GB, free: 129.8 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.728e-05/18.73, allocations: 13 kB / 4.028 GB, free: 129.8 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.102e-06/18.73, allocations: 5.5 kB / 4.028 GB, free: 129.8 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02658/18.76, allocations: 10.16 MB / 4.038 GB, free: 129.1 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00723/18.77, allocations: 1.58 MB / 4.039 GB, free: 128.6 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00291/18.77, allocations: 24.48 kB / 4.039 GB, free: 128.6 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01014/18.78, allocations: 498.3 kB / 4.04 GB, free: 128.6 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001468/18.78, allocations: 256.3 kB / 4.04 GB, free: 128.6 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007778/18.78, allocations: 145.7 kB / 4.04 GB, free: 128.6 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.01186/18.8, allocations: 4.37 MB / 4.044 GB, free: 128.4 MB / 0.8542 GB Notification: Performance of sort global known variables: time 1.142e-06/18.8, allocations: 0 / 4.044 GB, free: 128.4 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.02552/18.82, allocations: 4.733 MB / 4.049 GB, free: 128 MB / 0.8542 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 23 (tanSim.vol[1].dynBal.U,tanSim.vol[2].dynBal.U,tanSim.vol[3].dynBal.U,tanSim.vol[4].dynBal.U,tanSim.vol[5].dynBal.U,tanSim.vol[6].dynBal.U,tanSim.vol[7].dynBal.U,tanSim.vol[8].dynBal.U,tanSim.vol[9].dynBal.U,tanSim.vol[10].dynBal.U,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,tanEnh.vol[8].dynBal.U,tanEnh.vol[9].dynBal.U,tanEnh.vol[10].dynBal.U,HOut_flow.h_out,HOut_flow1.h_out,dH.y) * Number of discrete variables: 12 ($whenCondition1,$whenCondition2,TWat.a,TWat.b,TWat.last,TWat.nextEvent,TWat.nextEventScaled,P.a,P.b,P.last,P.nextEvent,P.nextEventScaled) * Number of discrete states: 12 (P.nextEvent,P.last,P.nextEventScaled,P.b,P.a,$whenCondition2,TWat.nextEvent,TWat.last,TWat.nextEventScaled,TWat.b,TWat.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (447): * Single equations (assignments): 443 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.03058/18.85, allocations: 11.49 MB / 4.06 GB, free: 126.7 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.02897/18.88, allocations: 10.88 MB / 4.071 GB, free: 126.4 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.261e-05/18.88, allocations: 3.438 kB / 4.071 GB, free: 126.4 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.00734/18.89, allocations: 3.046 MB / 4.074 GB, free: 126.2 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.02937/18.92, allocations: 3.433 MB / 4.077 GB, free: 126.2 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06103/18.98, allocations: 18.76 MB / 4.096 GB, free: 123.2 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01243/18.99, allocations: 6.235 MB / 4.102 GB, free: 122.4 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 0.03057/19.02, allocations: 5.614 MB / 4.107 GB, free: 122.3 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01014/19.03, allocations: 3.601 MB / 4.111 GB, free: 122.3 MB / 0.8542 GB Notification: Performance of SimCode: time 1.633e-06/19.03, allocations: 0 / 4.111 GB, free: 122.3 MB / 0.8542 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4616/19.49, allocations: 193.7 MB / 4.3 GB, free: 13.57 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003546/19.49, allocations: 164 kB / 4.3 GB, free: 13.38 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.82/32.32, allocations: 0 / 4.3 GB, free: 13.38 MB / 0.8855 GB