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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadModel(Buildings): time 3.737/3.737, allocations: 433 MB / 440.3 MB, free: 4.797 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.566/4.303, allocations: 104.3 MB / 0.5319 GB, free: 12.95 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2269/4.53, allocations: 98.72 MB / 0.6283 GB, free: 9.797 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.001/5.53, allocations: 394.3 MB / 1.013 GB, free: 9.992 MB / 0.7605 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003079/5.531, allocations: 99.89 kB / 1.013 GB, free: 9.941 MB / 0.7605 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 13.8/19.33, allocations: 2.829 GB / 3.843 GB, free: 126.7 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 4.203e-05/19.33, allocations: 7.188 kB / 3.843 GB, free: 126.7 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008854/19.34, allocations: 1.155 MB / 3.844 GB, free: 126.1 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04151/19.38, allocations: 10.75 MB / 3.854 GB, free: 122.3 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007678/19.38, allocations: 270.4 kB / 3.855 GB, free: 122.3 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00438/19.39, allocations: 485.4 kB / 3.855 GB, free: 122.3 MB / 0.8542 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.03665/19.42, allocations: 9.182 MB / 3.864 GB, free: 119 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04715/19.47, allocations: 10.32 MB / 3.874 GB, free: 112.1 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000613/19.47, allocations: 32.42 kB / 3.874 GB, free: 112 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00368/19.48, allocations: 19.91 kB / 3.874 GB, free: 112 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003131/19.48, allocations: 250.5 kB / 3.874 GB, free: 111.8 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1064/19.58, allocations: 45.3 MB / 3.919 GB, free: 65.21 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01509/19.6, allocations: 5.794 MB / 3.924 GB, free: 59.45 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01136/19.61, allocations: 4.768 MB / 3.929 GB, free: 54.69 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001918/19.61, allocations: 0.8284 MB / 3.93 GB, free: 53.73 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.009093/19.62, allocations: 3.115 MB / 3.933 GB, free: 50.59 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=453): time 1.615e-05/19.62, allocations: 0 / 3.933 GB, free: 50.59 MB / 0.8542 GB Notification: Performance of matching and sorting (n=453): time 0.02297/19.64, allocations: 6.372 MB / 3.939 GB, free: 44.19 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.315e-05/19.64, allocations: 154.3 kB / 3.939 GB, free: 44.02 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01711/19.66, allocations: 5.878 MB / 3.945 GB, free: 38.14 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 0.001688/19.66, allocations: 29.7 kB / 3.945 GB, free: 38.1 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 0.009367/19.67, allocations: 3.186 MB / 3.948 GB, free: 34.87 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 0.005712/19.68, allocations: 1.521 MB / 3.95 GB, free: 33.33 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008454/19.68, allocations: 4 kB / 3.95 GB, free: 33.32 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 0.0005668/19.68, allocations: 0.5381 MB / 3.95 GB, free: 32.78 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007928/19.69, allocations: 2.916 MB / 3.953 GB, free: 29.86 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01014/19.7, allocations: 4.715 MB / 3.958 GB, free: 24.32 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01283/19.71, allocations: 4.323 MB / 3.962 GB, free: 19.99 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.905e-05/19.71, allocations: 16 kB / 3.962 GB, free: 19.98 MB / 0.8542 GB Notification: Performance of matching and sorting (n=756) (initialization): time 0.02747/19.74, allocations: 8.491 MB / 3.97 GB, free: 11.46 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 0.7412/20.48, allocations: 27.1 MB / 3.997 GB, free: 178.6 MB / 0.8543 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002257/20.48, allocations: 59.31 kB / 3.997 GB, free: 178.6 MB / 0.8543 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001555/20.48, allocations: 96.19 kB / 3.997 GB, free: 178.6 MB / 0.8543 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01253/20.49, allocations: 1.417 MB / 3.998 GB, free: 178.6 MB / 0.8543 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001647/20.49, allocations: 123.8 kB / 3.998 GB, free: 178.6 MB / 0.8543 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.013/20.51, allocations: 0.783 MB / 3.999 GB, free: 178.6 MB / 0.8543 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001978/20.51, allocations: 288 kB / 3.999 GB, free: 178.6 MB / 0.8543 GB Notification: Performance of prepare postOptimizeDAE: time 1.707e-05/20.51, allocations: 5 kB / 3.999 GB, free: 178.6 MB / 0.8543 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02584/20.53, allocations: 7.829 MB / 4.007 GB, free: 178.5 MB / 0.8543 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001721/20.53, allocations: 60.36 kB / 4.007 GB, free: 178.5 MB / 0.8543 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001234/20.53, allocations: 95.22 kB / 4.007 GB, free: 178.5 MB / 0.8543 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01222/20.55, allocations: 1.422 MB / 4.008 GB, free: 178.5 MB / 0.8543 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001624/20.55, allocations: 124.1 kB / 4.009 GB, free: 178.5 MB / 0.8543 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0156/20.56, allocations: 0.6778 MB / 4.009 GB, free: 178.5 MB / 0.8543 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002569/20.56, allocations: 274.8 kB / 4.01 GB, free: 178.5 MB / 0.8543 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.003832/20.57, allocations: 356.2 kB / 4.01 GB, free: 178.3 MB / 0.8543 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003416/20.57, allocations: 0.6188 MB / 4.01 GB, free: 178.3 MB / 0.8543 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02448/20.6, allocations: 7.102 MB / 4.017 GB, free: 178.1 MB / 0.8543 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.46e-05/20.6, allocations: 50.56 kB / 4.017 GB, free: 178.1 MB / 0.8543 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.762e-05/20.6, allocations: 3.125 kB / 4.017 GB, free: 178.1 MB / 0.8543 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01845/20.61, allocations: 5.898 MB / 4.023 GB, free: 178 MB / 0.8543 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05787/20.67, allocations: 15.62 MB / 4.038 GB, free: 177.2 MB / 0.8543 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.094e-05/20.67, allocations: 0 / 4.038 GB, free: 177.2 MB / 0.8543 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01002/20.68, allocations: 0.89 MB / 4.039 GB, free: 177.2 MB / 0.8543 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.737e-05/20.68, allocations: 15.03 kB / 4.039 GB, free: 177.2 MB / 0.8543 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00112/20.68, allocations: 72.98 kB / 4.039 GB, free: 177.2 MB / 0.8543 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.79e-05/20.68, allocations: 17.53 kB / 4.039 GB, free: 177.2 MB / 0.8543 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.158e-06/20.68, allocations: 0 / 4.039 GB, free: 177.2 MB / 0.8543 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02832/20.71, allocations: 10.82 MB / 4.05 GB, free: 176.6 MB / 0.8543 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.03977/20.75, allocations: 15.54 MB / 4.065 GB, free: 175.5 MB / 0.8543 GB Notification: Performance of postOpt removeConstants (simulation): time 0.007285/20.76, allocations: 1.663 MB / 4.067 GB, free: 175.1 MB / 0.8543 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003174/20.76, allocations: 38.7 kB / 4.067 GB, free: 175.1 MB / 0.8543 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01031/20.77, allocations: 445.7 kB / 4.067 GB, free: 175.1 MB / 0.8543 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001451/20.77, allocations: 218.8 kB / 4.067 GB, free: 175 MB / 0.8543 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006762/20.78, allocations: 146.5 kB / 4.068 GB, free: 175 MB / 0.8543 GB Notification: Performance of sort global known variables: time 0.01219/20.79, allocations: 4.487 MB / 4.072 GB, free: 174.8 MB / 0.8543 GB Notification: Performance of remove unused functions: time 0.02598/20.81, allocations: 4.955 MB / 4.077 GB, free: 174.2 MB / 0.8543 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.003344/20.82, allocations: 0.8553 MB / 4.078 GB, free: 174.1 MB / 0.8543 GB Notification: Performance of simCode: created initialization part: time 0.02852/20.85, allocations: 11.16 MB / 4.089 GB, free: 173.9 MB / 0.8543 GB Notification: Performance of simCode: created event and clocks part: time 1.267e-05/20.85, allocations: 2.438 kB / 4.089 GB, free: 173.9 MB / 0.8543 GB Notification: Performance of simCode: created simulation system equations: time 0.008278/20.85, allocations: 3.153 MB / 4.092 GB, free: 173.8 MB / 0.8543 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.03038/20.88, allocations: 3.28 MB / 4.095 GB, free: 173.8 MB / 0.8543 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05849/20.94, allocations: 16.78 MB / 4.111 GB, free: 171.2 MB / 0.8543 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01962/20.96, allocations: 6.957 MB / 4.118 GB, free: 170.3 MB / 0.8543 GB Notification: Performance of SimCode: time 1.633e-06/20.96, allocations: 0 / 4.118 GB, free: 170.3 MB / 0.8543 GB