Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc.conf.json Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.1 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Fluid.SolarCollectors.Controls.BaseClasses.Examples.GCritCalc") [: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 loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.151/2.151, allocations: 253.1 MB / 260.4 MB, free: 7.477 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001673/0.001672, allocations: 189.2 kB / 319.6 MB, free: 3.312 MB / 250.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.882/1.882, allocations: 205.4 MB / 0.5704 GB, free: 15.07 MB / 426.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001349/0.001348, allocations: 90.58 kB / 0.6746 GB, free: 4.422 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.243e-05/1.255e-05, allocations: 4 kB / 0.7843 GB, free: 102.5 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2119/0.212, allocations: 106.2 MB / 0.8881 GB, free: 12.18 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.684/0.8961, allocations: 132.4 MB / 1.017 GB, free: 5.945 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003459/0.8965, allocations: 90.14 kB / 1.017 GB, free: 5.891 MB / 0.6355 GB Notification: Performance of FrontEnd: time 0.004953/0.9014, allocations: 0.8454 MB / 1.018 GB, free: 5.188 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 8.065e-06/0.9015, allocations: 3.938 kB / 1.018 GB, free: 5.184 MB / 0.6355 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0005486/0.9021, allocations: 353.4 kB / 1.019 GB, free: 4.797 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.916e-05/0.9021, allocations: 8.031 kB / 1.019 GB, free: 4.789 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.025e-05/0.9022, allocations: 3.906 kB / 1.019 GB, free: 4.785 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001552/0.9023, allocations: 170.9 kB / 1.019 GB, free: 4.578 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.12e-05/0.9024, allocations: 4 kB / 1.019 GB, free: 4.574 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.937e-05/0.9024, allocations: 0 / 1.019 GB, free: 4.574 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000107/0.9025, allocations: 15.44 kB / 1.019 GB, free: 4.566 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001121/0.9027, allocations: 49.17 kB / 1.019 GB, free: 4.516 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.177e-05/0.9027, allocations: 7.984 kB / 1.019 GB, free: 4.508 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.307e-05/0.9027, allocations: 0 / 1.019 GB, free: 4.508 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.816e-06/0.9027, allocations: 4.875 kB / 1.019 GB, free: 4.504 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004439/0.9032, allocations: 252.1 kB / 1.019 GB, free: 4.234 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 9.843e-05/0.9033, allocations: 26.02 kB / 1.019 GB, free: 4.203 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.447e-05/0.9034, allocations: 18.61 kB / 1.019 GB, free: 4.188 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.029e-05/0.9034, allocations: 6.625 kB / 1.019 GB, free: 4.184 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.583e-05/0.9034, allocations: 30.56 kB / 1.019 GB, free: 4.145 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=3): time 1.643e-06/0.9034, allocations: 0 / 1.019 GB, free: 4.145 MB / 0.6355 GB Notification: Performance of matching and sorting (n=3): time 0.0002311/0.9037, allocations: 56.94 kB / 1.019 GB, free: 4.09 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.096e-05/0.9037, allocations: 51.41 kB / 1.019 GB, free: 4.027 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001001/0.9038, allocations: 104.9 kB / 1.019 GB, free: 3.922 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.841e-05/0.9039, allocations: 25.7 kB / 1.019 GB, free: 3.891 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 4.594e-05/0.9039, allocations: 91.64 kB / 1.019 GB, free: 3.801 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.272e-05/0.9039, allocations: 7.812 kB / 1.019 GB, free: 3.793 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.101e-06/0.904, allocations: 0 / 1.019 GB, free: 3.793 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001238/0.9041, allocations: 321.8 kB / 1.02 GB, free: 3.473 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.791e-05/0.9041, allocations: 7.25 kB / 1.02 GB, free: 3.469 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.474e-05/0.9042, allocations: 7.875 kB / 1.02 GB, free: 3.465 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.145e-05/0.9042, allocations: 7.375 kB / 1.02 GB, free: 3.461 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.9042, allocations: 0 / 1.02 GB, free: 3.461 MB / 0.6355 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001383/0.9044, allocations: 53.41 kB / 1.02 GB, free: 3.406 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.484e-05/0.9044, allocations: 12 kB / 1.02 GB, free: 3.395 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.48e-06/0.9044, allocations: 0 / 1.02 GB, free: 3.395 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.698e-05/0.9045, allocations: 3.984 kB / 1.02 GB, free: 3.391 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001738/0.9046, allocations: 8.875 kB / 1.02 GB, free: 3.383 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.324e-06/0.9047, allocations: 0 / 1.02 GB, free: 3.383 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001057/0.9048, allocations: 15.92 kB / 1.02 GB, free: 3.367 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.028e-05/0.9048, allocations: 0 / 1.02 GB, free: 3.367 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * 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 7.965e-05/0.9049, allocations: 108.9 kB / 1.02 GB, free: 3.254 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.83e-05/0.9049, allocations: 7.188 kB / 1.02 GB, free: 3.25 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.771e-05/0.905, allocations: 7.906 kB / 1.02 GB, free: 3.242 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.905, allocations: 0 / 1.02 GB, free: 3.242 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.983e-06/0.905, allocations: 7.938 kB / 1.02 GB, free: 3.234 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.033e-06/0.905, allocations: 3.984 kB / 1.02 GB, free: 3.23 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001941/0.9052, allocations: 153.2 kB / 1.02 GB, free: 3.051 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.9053, allocations: 0 / 1.02 GB, free: 3.051 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001304/0.9054, allocations: 12 kB / 1.02 GB, free: 3.039 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.57e-06/0.9054, allocations: 3.984 kB / 1.02 GB, free: 3.035 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.031e-05/0.9054, allocations: 0 / 1.02 GB, free: 3.035 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.817e-06/0.9054, allocations: 3.906 kB / 1.02 GB, free: 3.031 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.9055, allocations: 0 / 1.02 GB, free: 3.031 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001803/0.9056, allocations: 154.7 kB / 1.02 GB, free: 2.875 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 4.891e-05/0.9057, allocations: 81.11 kB / 1.02 GB, free: 2.777 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.313e-05/0.9057, allocations: 0 / 1.02 GB, free: 2.777 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001487/0.9059, allocations: 16.12 kB / 1.02 GB, free: 2.762 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.936e-05/0.9059, allocations: 4 kB / 1.02 GB, free: 2.758 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.512e-06/0.906, allocations: 0 / 1.02 GB, free: 2.758 MB / 0.6355 GB Notification: Performance of sort global known variables: time 6.257e-05/0.906, allocations: 90.14 kB / 1.021 GB, free: 2.672 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0003036/0.9064, allocations: 8 kB / 1.021 GB, free: 2.664 MB / 0.6355 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.0001518/0.9065, allocations: 95.25 kB / 1.021 GB, free: 2.559 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0001304/0.9067, allocations: 26.61 kB / 1.021 GB, free: 2.539 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.9067, allocations: 0 / 1.021 GB, free: 2.539 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 5.45e-05/0.9067, allocations: 19.42 kB / 1.021 GB, free: 2.523 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001778/0.9069, allocations: 5.125 kB / 1.021 GB, free: 2.523 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003628/0.9073, allocations: 75.19 kB / 1.021 GB, free: 2.426 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003313/0.9076, allocations: 0.7064 MB / 1.021 GB, free: 1.699 MB / 0.6355 GB Notification: Performance of SimCode: time 6.91e-07/0.9077, allocations: 0 / 1.021 GB, free: 1.699 MB / 0.6355 GB Notification: Performance of Templates: time 0.003187/0.9109, allocations: 489.6 kB / 1.022 GB, free: 1.238 MB / 0.6355 GB