Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis.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.Controls.OBC.CDL.Continuous.Validation.Hysteresis,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Controls.OBC.CDL.Continuous.Validation.Hysteresis") [: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.528/2.528, 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.001624/0.001623, allocations: 184.5 kB / 319.6 MB, free: 3.301 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 2.065/2.065, allocations: 205.4 MB / 0.5704 GB, free: 15.04 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.00138/0.001379, allocations: 93.66 kB / 0.6746 GB, free: 4.387 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 1.556e-05/1.576e-05, allocations: 4 kB / 0.7843 GB, free: 102.5 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2118/0.2118, allocations: 106.3 MB / 0.8881 GB, free: 12.13 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6778/0.8897, allocations: 132.2 MB / 1.017 GB, free: 6.07 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002516/0.89, allocations: 72.7 kB / 1.017 GB, free: 6.031 MB / 0.6355 GB Notification: Performance of FrontEnd: time 0.01094/0.901, allocations: 1.867 MB / 1.019 GB, free: 4.395 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.005e-05/0.9011, allocations: 4 kB / 1.019 GB, free: 4.391 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: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.001484/0.9026, allocations: 491.9 kB / 1.019 GB, free: 3.875 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.284e-05/0.9026, allocations: 12.02 kB / 1.02 GB, free: 3.863 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.848e-05/0.9027, allocations: 19.38 kB / 1.02 GB, free: 3.848 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001813/0.9029, allocations: 190.8 kB / 1.02 GB, free: 3.621 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.684e-05/0.903, allocations: 4 kB / 1.02 GB, free: 3.617 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.604e-05/0.903, allocations: 11.94 kB / 1.02 GB, free: 3.605 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002702/0.9033, allocations: 64.55 kB / 1.02 GB, free: 3.566 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003049/0.9036, allocations: 121.2 kB / 1.02 GB, free: 3.453 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.065e-05/0.9036, allocations: 0.8438 kB / 1.02 GB, free: 3.453 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.433e-05/0.9037, allocations: 0 / 1.02 GB, free: 3.453 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.662e-06/0.9037, allocations: 0 / 1.02 GB, free: 3.453 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001681/0.9054, allocations: 0.5608 MB / 1.02 GB, free: 2.891 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004704/0.9059, allocations: 127.9 kB / 1.021 GB, free: 2.762 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002297/0.9061, allocations: 43.7 kB / 1.021 GB, free: 2.723 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 5.618e-05/0.9062, allocations: 4.328 kB / 1.021 GB, free: 2.719 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004567/0.9067, allocations: 139.7 kB / 1.021 GB, free: 2.586 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=14): time 6.472e-06/0.9067, allocations: 0 / 1.021 GB, free: 2.586 MB / 0.6355 GB Notification: Performance of matching and sorting (n=14): time 0.0006309/0.9074, allocations: 108.4 kB / 1.021 GB, free: 2.492 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001134/0.9075, allocations: 114.7 kB / 1.021 GB, free: 2.355 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003018/0.9078, allocations: 143 kB / 1.021 GB, free: 2.223 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 9.44e-05/0.9079, allocations: 29.7 kB / 1.021 GB, free: 2.188 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001409/0.9081, allocations: 103 kB / 1.021 GB, free: 2.086 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001022/0.9082, allocations: 38.14 kB / 1.021 GB, free: 2.055 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.319e-05/0.9083, allocations: 0 / 1.021 GB, free: 2.055 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0002293/0.9085, allocations: 325.6 kB / 1.022 GB, free: 1.734 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000384/0.909, allocations: 49.05 kB / 1.022 GB, free: 1.699 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004313/0.9094, allocations: 88.44 kB / 1.022 GB, free: 1.621 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002303/0.9097, allocations: 41.53 kB / 1.022 GB, free: 1.59 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.568e-06/0.9097, allocations: 4 kB / 1.022 GB, free: 1.586 MB / 0.6355 GB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0007849/0.9105, allocations: 146.4 kB / 1.022 GB, free: 1.469 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 2.583e-05/0.9106, allocations: 8 kB / 1.022 GB, free: 1.461 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.148e-05/0.9106, allocations: 0 / 1.022 GB, free: 1.461 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.312e-05/0.9106, allocations: 0 / 1.022 GB, free: 1.461 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008694/0.9115, allocations: 55.89 kB / 1.022 GB, free: 1.406 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.858e-05/0.9116, allocations: 4 kB / 1.022 GB, free: 1.402 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001176/0.9128, allocations: 75.97 kB / 1.022 GB, free: 1.328 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.972e-05/0.9129, allocations: 10.31 kB / 1.022 GB, free: 1.324 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 16 ($PRE.hysteresis.y,hysteresis.y,$whenCondition2,$PRE.hysteresis1.y,hysteresis1.y,$PRE.pul.T_start,pul.T_start,$PRE.pul.count,pul.count,$whenCondition1,$PRE.hysteresis2.y,hysteresis2.y,$PRE.pul1.T_start,pul1.T_start,$PRE.pul1.count,pul1.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 23 * 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 0.0002236/0.9131, allocations: 116.8 kB / 1.022 GB, free: 1.203 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000109/0.9132, allocations: 11.91 kB / 1.022 GB, free: 1.191 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004124/0.9137, allocations: 78.11 kB / 1.022 GB, free: 1.121 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.405e-05/0.9137, allocations: 4 kB / 1.022 GB, free: 1.117 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.767e-06/0.9138, allocations: 0 / 1.022 GB, free: 1.117 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.077e-06/0.9138, allocations: 0 / 1.022 GB, free: 1.117 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003716/0.9142, allocations: 202.8 kB / 1.022 GB, free: 0.9023 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.729e-06/0.9142, allocations: 0 / 1.022 GB, free: 0.9023 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004611/0.9147, allocations: 51.8 kB / 1.022 GB, free: 0.8516 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.204e-05/0.9147, allocations: 4 kB / 1.022 GB, free: 0.8477 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.208e-05/0.9147, allocations: 0 / 1.022 GB, free: 0.8477 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.626e-06/0.9148, allocations: 3.984 kB / 1.022 GB, free: 0.8438 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.091e-05/0.9148, allocations: 4 kB / 1.022 GB, free: 0.8398 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0006512/0.9154, allocations: 170.5 kB / 1.023 GB, free: 0.6602 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001147/0.9156, allocations: 88.92 kB / 1.023 GB, free: 0.5547 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001282/0.9157, allocations: 7.5 kB / 1.023 GB, free: 0.5508 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008281/0.9166, allocations: 59.94 kB / 1.023 GB, free: 0.4922 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002629/0.9169, allocations: 46.92 kB / 1.023 GB, free: 464 kB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.987e-05/0.9169, allocations: 7.906 kB / 1.023 GB, free: 456 kB / 0.6355 GB Notification: Performance of sort global known variables: time 0.0001655/0.9171, allocations: 119.1 kB / 1.023 GB, free: 352 kB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0006384/0.9178, allocations: 27.98 kB / 1.023 GB, free: 324 kB / 0.6355 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition2,hysteresis1.y,pul.T_start,pul.count,$whenCondition1,hysteresis2.y,pul1.T_start,pul1.count,hysteresis.y) * Number of discrete states: 5 (hysteresis.y,pul1.count,hysteresis2.y,pul.count,hysteresis1.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0002705/0.9181, allocations: 103.2 kB / 1.023 GB, free: 208 kB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0005925/0.9187, allocations: 115.3 kB / 1.023 GB, free: 128 kB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 1.173e-05/0.9187, allocations: 7.375 kB / 1.023 GB, free: 124 kB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.0002648/0.919, allocations: 65.56 kB / 1.023 GB, free: 80 kB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003636/0.9194, allocations: 23.28 kB / 1.023 GB, free: 64 kB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008229/0.9202, allocations: 190.3 kB / 1.023 GB, free: 15.86 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004742/0.9207, allocations: 0.7379 MB / 1.024 GB, free: 15.11 MB / 0.6511 GB Notification: Performance of SimCode: time 1.102e-06/0.9207, allocations: 0 / 1.024 GB, free: 15.11 MB / 0.6511 GB Notification: Performance of Templates: time 0.008409/0.9291, allocations: 2.376 MB / 1.027 GB, free: 12.76 MB / 0.6511 GB