Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.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.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch") [: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.087/2.087, allocations: 253.1 MB / 260.4 MB, free: 7.629 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.001662/0.001662, allocations: 189.2 kB / 319.6 MB, free: 3.332 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.884/1.884, allocations: 205.4 MB / 0.5704 GB, free: 15.09 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.001377/0.001376, allocations: 84.53 kB / 0.6746 GB, free: 4.457 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 8.776e-06/8.987e-06, allocations: 0 / 0.7843 GB, free: 102.6 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2179/0.2179, allocations: 106.3 MB / 0.8881 GB, free: 12.21 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6669/0.8849, allocations: 133.2 MB / 1.018 GB, free: 5.273 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003404/0.8853, allocations: 86.75 kB / 1.018 GB, free: 5.223 MB / 0.6355 GB Notification: Performance of FrontEnd: time 0.006717/0.892, allocations: 1.194 MB / 1.019 GB, free: 4.227 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 9.768e-06/0.8921, allocations: 4 kB / 1.019 GB, free: 4.223 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0006139/0.8927, allocations: 373.3 kB / 1.02 GB, free: 3.82 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.004e-05/0.8928, allocations: 12.03 kB / 1.02 GB, free: 3.809 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.74e-05/0.8928, allocations: 12.31 kB / 1.02 GB, free: 3.797 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001971/0.8931, allocations: 178.9 kB / 1.02 GB, free: 3.582 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.804e-05/0.8931, allocations: 4 kB / 1.02 GB, free: 3.578 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.82e-05/0.8931, allocations: 0 / 1.02 GB, free: 3.578 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001542/0.8933, allocations: 35.03 kB / 1.02 GB, free: 3.555 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001963/0.8935, allocations: 82.45 kB / 1.02 GB, free: 3.477 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.029e-05/0.8935, allocations: 0 / 1.02 GB, free: 3.477 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.968e-05/0.8935, allocations: 0 / 1.02 GB, free: 3.477 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.261e-06/0.8936, allocations: 0 / 1.02 GB, free: 3.477 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006346/0.8942, allocations: 303.8 kB / 1.02 GB, free: 3.168 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000129/0.8943, allocations: 41.72 kB / 1.02 GB, free: 3.125 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.524e-05/0.8944, allocations: 23.92 kB / 1.02 GB, free: 3.105 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.101e-05/0.8945, allocations: 0 / 1.02 GB, free: 3.105 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.446e-05/0.8945, allocations: 34.56 kB / 1.02 GB, free: 3.062 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=4): time 3.357e-06/0.8945, allocations: 0 / 1.02 GB, free: 3.062 MB / 0.6355 GB Notification: Performance of matching and sorting (n=4): time 0.0002608/0.8948, allocations: 61.69 kB / 1.02 GB, free: 3.008 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.405e-05/0.8948, allocations: 77.11 kB / 1.021 GB, free: 2.914 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001243/0.895, allocations: 118.6 kB / 1.021 GB, free: 2.797 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.7e-05/0.895, allocations: 36.77 kB / 1.021 GB, free: 2.758 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 6.125e-05/0.8951, allocations: 95.41 kB / 1.021 GB, free: 2.664 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.689e-05/0.8951, allocations: 7.906 kB / 1.021 GB, free: 2.656 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.704e-06/0.8952, allocations: 0 / 1.021 GB, free: 2.656 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001247/0.8953, allocations: 317.6 kB / 1.021 GB, free: 2.34 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.731e-05/0.8954, allocations: 15.25 kB / 1.021 GB, free: 2.332 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.558e-05/0.8954, allocations: 36.09 kB / 1.021 GB, free: 2.297 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.428e-05/0.8955, allocations: 13.84 kB / 1.021 GB, free: 2.289 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.8955, allocations: 4.031 kB / 1.021 GB, free: 2.285 MB / 0.6355 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0002167/0.8958, allocations: 67.47 kB / 1.021 GB, free: 2.223 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.551e-05/0.8958, allocations: 4 kB / 1.021 GB, free: 2.219 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.201e-06/0.8958, allocations: 0 / 1.021 GB, free: 2.219 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.465e-05/0.8958, allocations: 0 / 1.021 GB, free: 2.219 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001745/0.896, allocations: 11.98 kB / 1.021 GB, free: 2.207 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.895e-06/0.896, allocations: 4 kB / 1.021 GB, free: 2.203 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001604/0.8962, allocations: 15.98 kB / 1.021 GB, free: 2.188 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.585e-05/0.8962, allocations: 4 kB / 1.021 GB, free: 2.184 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: 2 ($PRE.chiSwi.hysteresis.y,chiSwi.hysteresis.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * 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 9.279e-05/0.8963, allocations: 104.2 kB / 1.021 GB, free: 2.078 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.538e-05/0.8964, allocations: 7.906 kB / 1.021 GB, free: 2.07 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.25e-05/0.8964, allocations: 15.92 kB / 1.021 GB, free: 2.059 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.486e-06/0.8965, allocations: 7.844 kB / 1.021 GB, free: 2.051 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.57e-06/0.8965, allocations: 7.938 kB / 1.021 GB, free: 2.043 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.498e-06/0.8965, allocations: 0 / 1.021 GB, free: 2.043 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000227/0.8967, allocations: 156.8 kB / 1.022 GB, free: 1.863 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.8967, allocations: 0 / 1.022 GB, free: 1.863 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001313/0.8969, allocations: 11.98 kB / 1.022 GB, free: 1.852 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.811e-06/0.8969, allocations: 4 kB / 1.022 GB, free: 1.848 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.141e-05/0.8969, allocations: 0 / 1.022 GB, free: 1.848 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.621e-06/0.8969, allocations: 4.531 kB / 1.022 GB, free: 1.844 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.435e-06/0.8969, allocations: 0 / 1.022 GB, free: 1.844 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002021/0.8972, allocations: 161.2 kB / 1.022 GB, free: 1.68 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 5.297e-05/0.8972, allocations: 84.95 kB / 1.022 GB, free: 1.578 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.505e-05/0.8973, allocations: 7.5 kB / 1.022 GB, free: 1.574 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002024/0.8975, allocations: 16.17 kB / 1.022 GB, free: 1.559 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.56e-05/0.8976, allocations: 12.08 kB / 1.022 GB, free: 1.547 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.416e-05/0.8976, allocations: 7.984 kB / 1.022 GB, free: 1.539 MB / 0.6355 GB Notification: Performance of sort global known variables: time 7.149e-05/0.8977, allocations: 94.22 kB / 1.022 GB, free: 1.453 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0003124/0.898, allocations: 8 kB / 1.022 GB, free: 1.445 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: 1 (chiSwi.hysteresis.y) * Number of discrete states: 1 (chiSwi.hysteresis.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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.0001488/0.8981, allocations: 111.2 kB / 1.022 GB, free: 1.324 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0001701/0.8983, allocations: 33.69 kB / 1.022 GB, free: 1.305 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.8983, allocations: 0 / 1.022 GB, free: 1.305 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 6.413e-05/0.8984, allocations: 19.88 kB / 1.022 GB, free: 1.289 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002353/0.8987, allocations: 12.91 kB / 1.022 GB, free: 1.281 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004257/0.8991, allocations: 104.4 kB / 1.022 GB, free: 1.164 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003894/0.8995, allocations: 0.7032 MB / 1.023 GB, free: 448 kB / 0.6355 GB Notification: Performance of SimCode: time 8.92e-07/0.8995, allocations: 0 / 1.023 GB, free: 448 kB / 0.6355 GB Notification: Performance of Templates: time 0.004048/0.9036, allocations: 0.7856 MB / 1.024 GB, free: 15.68 MB / 0.6511 GB