Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/../OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_6.0.0_Buildings.Experimental.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation.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.Experimental.DistrictHeatingCooling.SubStations.Validation.HeatingSubstation,fileNamePrefix="Buildings_6_0_0_Buildings_Experimental_DistrictHeatingCooling_SubStations_Validation_HeatingSubstation",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.715/3.715, allocations: 433 MB / 440.3 MB, free: 4.816 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.5675/4.283, allocations: 104.3 MB / 0.5319 GB, free: 12.97 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2495/4.533, allocations: 98.73 MB / 0.6283 GB, free: 9.793 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.228/5.761, allocations: 426 MB / 1.044 GB, free: 11.32 MB / 0.7917 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004387/5.762, allocations: 98.34 kB / 1.044 GB, free: 11.27 MB / 0.7917 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 206 * Number of variables: 206 Notification: Performance of Generate backend data structure: time 3.059/8.82, allocations: 0.6704 GB / 1.715 GB, free: 24.12 MB / 0.823 GB Notification: Performance of prepare preOptimizeDAE: time 4.798e-05/8.82, allocations: 8 kB / 1.715 GB, free: 24.11 MB / 0.823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003926/8.824, allocations: 425.6 kB / 1.715 GB, free: 23.7 MB / 0.823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03011/8.854, allocations: 8.353 MB / 1.723 GB, free: 15.21 MB / 0.823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.378e-05/8.854, allocations: 32 kB / 1.723 GB, free: 15.18 MB / 0.823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003262/8.855, allocations: 52 kB / 1.723 GB, free: 15.13 MB / 0.823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002081/8.857, allocations: 0.6093 MB / 1.724 GB, free: 14.52 MB / 0.823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002264/8.859, allocations: 0.8399 MB / 1.725 GB, free: 13.63 MB / 0.823 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.338e-05/8.859, allocations: 3.938 kB / 1.725 GB, free: 13.62 MB / 0.823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000144/8.859, allocations: 4 kB / 1.725 GB, free: 13.62 MB / 0.823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.161e-05/8.859, allocations: 20 kB / 1.725 GB, free: 13.6 MB / 0.823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01071/8.87, allocations: 4.684 MB / 1.729 GB, free: 8.684 MB / 0.823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001285/8.872, allocations: 451.1 kB / 1.73 GB, free: 8.234 MB / 0.823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005165/8.872, allocations: 216.9 kB / 1.73 GB, free: 8.02 MB / 0.823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.004104/8.876, allocations: 1.632 MB / 1.732 GB, free: 6.211 MB / 0.823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006981/8.877, allocations: 340.1 kB / 1.732 GB, free: 5.855 MB / 0.823 GB Notification: Performance of pre-optimization done (n=45): time 3.116e-06/8.877, allocations: 3.938 kB / 1.732 GB, free: 5.852 MB / 0.823 GB Notification: Performance of matching and sorting (n=45): time 0.003063/8.88, allocations: 0.6728 MB / 1.733 GB, free: 5.164 MB / 0.823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.142e-05/8.88, allocations: 110.8 kB / 1.733 GB, free: 5.031 MB / 0.823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002225/8.882, allocations: 0.9735 MB / 1.734 GB, free: 4.047 MB / 0.823 GB Notification: Performance of collectPreVariables (initialization): time 0.0002117/8.883, allocations: 33.69 kB / 1.734 GB, free: 4.008 MB / 0.823 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004626/8.883, allocations: 440.3 kB / 1.734 GB, free: 3.57 MB / 0.823 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002223/8.883, allocations: 141.9 kB / 1.734 GB, free: 3.43 MB / 0.823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.563e-05/8.883, allocations: 4 kB / 1.734 GB, free: 3.426 MB / 0.823 GB Notification: Performance of setup shared object (initialization): time 8.418e-05/8.883, allocations: 334 kB / 1.735 GB, free: 3.094 MB / 0.823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005347/8.884, allocations: 201.3 kB / 1.735 GB, free: 2.898 MB / 0.823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007042/8.885, allocations: 481.6 kB / 1.735 GB, free: 2.301 MB / 0.823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001684/8.886, allocations: 353.2 kB / 1.736 GB, free: 1.957 MB / 0.823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.415e-06/8.886, allocations: 7.938 kB / 1.736 GB, free: 1.949 MB / 0.823 GB Notification: Performance of matching and sorting (n=80) (initialization): time 0.003248/8.89, allocations: 0.8604 MB / 1.736 GB, free: 1.074 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 0.3529/9.243, allocations: 2.738 MB / 1.739 GB, free: 196.8 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.615e-05/9.243, allocations: 7 kB / 1.739 GB, free: 196.8 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005613/9.243, allocations: 82.58 kB / 1.739 GB, free: 196.8 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001396/9.245, allocations: 155.7 kB / 1.739 GB, free: 196.8 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001077/9.246, allocations: 1.153 MB / 1.74 GB, free: 195.8 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001894/9.248, allocations: 115.7 kB / 1.741 GB, free: 195.8 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001449/9.248, allocations: 44.84 kB / 1.741 GB, free: 195.8 MB / 0.823 GB Notification: Performance of prepare postOptimizeDAE: time 1.34e-05/9.248, allocations: 3.844 kB / 1.741 GB, free: 195.8 MB / 0.823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00273/9.251, allocations: 0.6549 MB / 1.741 GB, free: 195.8 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.481e-05/9.251, allocations: 9.281 kB / 1.741 GB, free: 195.8 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003375/9.251, allocations: 77.94 kB / 1.741 GB, free: 195.7 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001144/9.252, allocations: 153.5 kB / 1.741 GB, free: 195.7 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009789/9.253, allocations: 1.152 MB / 1.743 GB, free: 194.7 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001644/9.255, allocations: 94.12 kB / 1.743 GB, free: 194.7 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001188/9.255, allocations: 42.19 kB / 1.743 GB, free: 194.7 MB / 0.823 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: subSta.pum.vol.heaFloSen.Q_flow:VARIABLE(unit = "W" protected = true ) "Heat flow from port_a to port_b as output signal" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,QHea.a,QHea.b,QHea.last,$PRE.QHea.nextEvent,QHea.nextEvent,QHea.nextEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (69): * Single equations (assignments): 65 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 2,1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0003909/9.256, allocations: 174.2 kB / 1.743 GB, free: 194.6 MB / 0.823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002639/9.256, allocations: 126.4 kB / 1.743 GB, free: 194.6 MB / 0.823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003337/9.259, allocations: 0.8604 MB / 1.744 GB, free: 194.5 MB / 0.823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.974e-05/9.259, allocations: 6.469 kB / 1.744 GB, free: 194.5 MB / 0.823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.177e-06/9.259, allocations: 2.781 kB / 1.744 GB, free: 194.5 MB / 0.823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.14e-05/9.259, allocations: 3.516 kB / 1.744 GB, free: 194.5 MB / 0.823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005301/9.265, allocations: 1.766 MB / 1.746 GB, free: 194.1 MB / 0.823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.558e-06/9.265, allocations: 0 / 1.746 GB, free: 194.1 MB / 0.823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009743/9.266, allocations: 106.4 kB / 1.746 GB, free: 194.1 MB / 0.823 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003399/9.266, allocations: 72.67 kB / 1.746 GB, free: 194.1 MB / 0.823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.917e-05/9.266, allocations: 14.44 kB / 1.746 GB, free: 194.1 MB / 0.823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009973/9.267, allocations: 1.143 MB / 1.747 GB, free: 193.1 MB / 0.823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.052e-06/9.267, allocations: 1.5 kB / 1.747 GB, free: 193.1 MB / 0.823 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002564/9.27, allocations: 0.9353 MB / 1.748 GB, free: 192.7 MB / 0.823 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002824/9.273, allocations: 1.38 MB / 1.749 GB, free: 192 MB / 0.823 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009529/9.274, allocations: 302.5 kB / 1.749 GB, free: 191.8 MB / 0.823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003287/9.274, allocations: 6 kB / 1.749 GB, free: 191.8 MB / 0.823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001754/9.276, allocations: 73.69 kB / 1.75 GB, free: 191.8 MB / 0.823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001423/9.276, allocations: 32.61 kB / 1.75 GB, free: 191.8 MB / 0.823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001141/9.276, allocations: 32.55 kB / 1.75 GB, free: 191.8 MB / 0.823 GB Notification: Performance of sort global known variables: time 0.001649/9.278, allocations: 0.7463 MB / 1.75 GB, free: 191.7 MB / 0.823 GB Notification: Performance of remove unused functions: time 0.006304/9.284, allocations: 0.9694 MB / 1.751 GB, free: 191.7 MB / 0.823 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,QHea.a,QHea.b,QHea.last,QHea.nextEvent,QHea.nextEventScaled) * Number of discrete states: 6 (QHea.nextEvent,QHea.last,QHea.nextEventScaled,QHea.b,QHea.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 2,1 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.00248/9.287, allocations: 0.9693 MB / 1.752 GB, free: 191.5 MB / 0.823 GB Notification: Performance of simCode: created initialization part: time 0.002819/9.289, allocations: 0.9782 MB / 1.753 GB, free: 191.5 MB / 0.823 GB Notification: Performance of simCode: created event and clocks part: time 7.394e-06/9.289, allocations: 0 / 1.753 GB, free: 191.5 MB / 0.823 GB Notification: Performance of simCode: created simulation system equations: time 0.0009089/9.29, allocations: 334.3 kB / 1.753 GB, free: 191.4 MB / 0.823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004652/9.295, allocations: 0.5066 MB / 1.754 GB, free: 191.4 MB / 0.823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005952/9.301, allocations: 1.654 MB / 1.756 GB, free: 191 MB / 0.823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001655/9.303, allocations: 1.342 MB / 1.757 GB, free: 190.2 MB / 0.823 GB Notification: Performance of SimCode: time 1.363e-06/9.303, allocations: 0 / 1.757 GB, free: 190.2 MB / 0.823 GB