Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.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.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck") [: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.227/2.227, allocations: 253.1 MB / 260.4 MB, free: 7.523 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.001674/0.001673, allocations: 177.3 kB / 319.6 MB, free: 3.293 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.953/1.953, allocations: 205.4 MB / 0.5704 GB, free: 15.03 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.001292/0.001291, allocations: 89.45 kB / 0.6746 GB, free: 4.391 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.017e-05/1.033e-05, allocations: 4 kB / 0.7843 GB, free: 102.5 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.192/0.192, allocations: 106.2 MB / 0.8881 GB, free: 12.17 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5972/0.7893, allocations: 132.4 MB / 1.017 GB, free: 5.895 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002948/0.7897, allocations: 76.2 kB / 1.017 GB, free: 5.852 MB / 0.6355 GB Notification: Performance of FrontEnd: time 0.01395/0.8036, allocations: 2.493 MB / 1.02 GB, free: 3.828 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 7.865e-06/0.8037, allocations: 0 / 1.02 GB, free: 3.828 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0004084/0.8041, allocations: 350.3 kB / 1.02 GB, free: 3.441 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.307e-05/0.8042, allocations: 8.031 kB / 1.02 GB, free: 3.434 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.839e-05/0.8042, allocations: 4 kB / 1.02 GB, free: 3.43 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001421/0.8044, allocations: 162.6 kB / 1.02 GB, free: 3.234 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.709e-05/0.8044, allocations: 3.906 kB / 1.02 GB, free: 3.23 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.588e-05/0.8044, allocations: 4 kB / 1.02 GB, free: 3.227 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.221e-05/0.8045, allocations: 4 kB / 1.02 GB, free: 3.223 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.704e-05/0.8046, allocations: 41.25 kB / 1.02 GB, free: 3.18 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.796e-06/0.8046, allocations: 4 kB / 1.02 GB, free: 3.176 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.205e-05/0.8047, allocations: 0 / 1.02 GB, free: 3.176 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.102e-06/0.8047, allocations: 4.875 kB / 1.02 GB, free: 3.172 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001823/0.8049, allocations: 133.7 kB / 1.021 GB, free: 3.008 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000194/0.8051, allocations: 33.17 kB / 1.021 GB, free: 2.973 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.251e-05/0.8051, allocations: 20.61 kB / 1.021 GB, free: 2.953 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.289e-05/0.8052, allocations: 0 / 1.021 GB, free: 2.953 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.658e-05/0.8052, allocations: 30.56 kB / 1.021 GB, free: 2.914 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=4): time 1.342e-06/0.8052, allocations: 0 / 1.021 GB, free: 2.914 MB / 0.6355 GB Notification: Performance of matching and sorting (n=6): time 0.000707/0.8059, allocations: 288.3 kB / 1.021 GB, free: 2.594 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.87e-05/0.806, allocations: 51.41 kB / 1.021 GB, free: 2.531 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.979e-05/0.8061, allocations: 96.38 kB / 1.021 GB, free: 2.434 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.82e-05/0.8061, allocations: 25.7 kB / 1.021 GB, free: 2.402 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 4.082e-05/0.8062, allocations: 84.12 kB / 1.021 GB, free: 2.316 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.951e-05/0.8062, allocations: 15.41 kB / 1.021 GB, free: 2.305 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.037e-06/0.8062, allocations: 0 / 1.021 GB, free: 2.305 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001278/0.8064, allocations: 318.8 kB / 1.021 GB, free: 1.984 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.273e-05/0.8064, allocations: 7.562 kB / 1.021 GB, free: 1.98 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.554e-05/0.8064, allocations: 11.31 kB / 1.021 GB, free: 1.973 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.462e-05/0.8065, allocations: 15.11 kB / 1.021 GB, free: 1.961 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.12e-07/0.8065, allocations: 0 / 1.021 GB, free: 1.961 MB / 0.6355 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001451/0.8067, allocations: 68.64 kB / 1.022 GB, free: 1.895 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.596e-05/0.8067, allocations: 4.938 kB / 1.022 GB, free: 1.891 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.69e-06/0.8067, allocations: 0 / 1.022 GB, free: 1.891 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.304e-05/0.8067, allocations: 0 / 1.022 GB, free: 1.891 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.704e-05/0.8068, allocations: 12 kB / 1.022 GB, free: 1.879 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.899e-06/0.8068, allocations: 4 kB / 1.022 GB, free: 1.875 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.82e-05/0.8069, allocations: 0 / 1.022 GB, free: 1.875 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.135e-06/0.8069, allocations: 0.7812 kB / 1.022 GB, free: 1.875 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 (7): * Single equations (assignments): 7 * 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 8.185e-05/0.807, allocations: 108.9 kB / 1.022 GB, free: 1.762 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.905e-05/0.807, allocations: 3.984 kB / 1.022 GB, free: 1.758 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001907/0.8072, allocations: 72.06 kB / 1.022 GB, free: 1.688 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.166e-06/0.8072, allocations: 0 / 1.022 GB, free: 1.688 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.8073, allocations: 4 kB / 1.022 GB, free: 1.684 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.343e-06/0.8073, allocations: 3.906 kB / 1.022 GB, free: 1.68 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003791/0.8077, allocations: 282.4 kB / 1.022 GB, free: 1.367 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.103e-06/0.8077, allocations: 0 / 1.022 GB, free: 1.367 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001192/0.8078, allocations: 15.98 kB / 1.022 GB, free: 1.352 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.346e-06/0.8078, allocations: 0 / 1.022 GB, free: 1.352 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.318e-06/0.8078, allocations: 0 / 1.022 GB, free: 1.352 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.773e-06/0.8079, allocations: 4 kB / 1.022 GB, free: 1.348 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.029e-06/0.8079, allocations: 3.906 kB / 1.022 GB, free: 1.344 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002348/0.8081, allocations: 186.3 kB / 1.022 GB, free: 1.152 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 6.533e-05/0.8082, allocations: 85.03 kB / 1.022 GB, free: 1.051 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.085e-05/0.8082, allocations: 4.25 kB / 1.022 GB, free: 1.047 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001036/0.8083, allocations: 0 / 1.022 GB, free: 1.047 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.624e-05/0.8084, allocations: 4 kB / 1.022 GB, free: 1.043 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.434e-06/0.8084, allocations: 7.938 kB / 1.022 GB, free: 1.035 MB / 0.6355 GB Notification: Performance of sort global known variables: time 4.988e-05/0.8084, allocations: 91.17 kB / 1.022 GB, free: 0.9492 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0003741/0.8088, allocations: 27.94 kB / 1.022 GB, free: 0.9219 MB / 0.6355 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (dp_comp) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 6 * 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.000247/0.8091, allocations: 119.2 kB / 1.023 GB, free: 0.793 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0001166/0.8092, allocations: 27.12 kB / 1.023 GB, free: 0.7734 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 5.22e-06/0.8092, allocations: 0 / 1.023 GB, free: 0.7734 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 4.172e-05/0.8093, allocations: 23.48 kB / 1.023 GB, free: 0.7539 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001892/0.8095, allocations: 5.625 kB / 1.023 GB, free: 0.75 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004217/0.8099, allocations: 141.1 kB / 1.023 GB, free: 0.5898 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003904/0.8103, allocations: 0.6958 MB / 1.023 GB, free: 15.87 MB / 0.6511 GB Notification: Performance of SimCode: time 7.02e-07/0.8103, allocations: 0 / 1.023 GB, free: 15.87 MB / 0.6511 GB Notification: Performance of Templates: time 0.003737/0.8141, allocations: 0.6661 MB / 1.024 GB, free: 15.25 MB / 0.6511 GB