Running: ./testmodel.py --libraries=/home/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 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,fileNamePrefix="Buildings_7_0_0_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch",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 loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.262/2.262, allocations: 248.6 MB / 255.9 MB, free: 7.09 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00166/0.001659, allocations: 186.7 kB / 315.1 MB, free: 4.258 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.245/2.245, allocations: 205.1 MB / 0.5658 GB, free: 360 kB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00129/0.00129, allocations: 79.33 kB / 0.67 GB, free: 5.566 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.525/0.5263, allocations: 112.4 MB / 0.7797 GB, free: 103.7 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2241/0.7505, allocations: 106.2 MB / 0.8835 GB, free: 13.34 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7363/1.487, allocations: 133.2 MB / 1.014 GB, free: 7.051 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004256/1.487, allocations: 88.44 kB / 1.014 GB, free: 6.996 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.007562/1.495, allocations: 1.576 MB / 1.015 GB, free: 5.586 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.669e-05/1.495, allocations: 8 kB / 1.015 GB, free: 5.578 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.586e-05/1.495, allocations: 11.81 kB / 1.015 GB, free: 5.566 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001799/1.495, allocations: 174.9 kB / 1.015 GB, free: 5.355 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.596e-05/1.495, allocations: 4 kB / 1.015 GB, free: 5.352 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.26e-05/1.495, allocations: 7.938 kB / 1.015 GB, free: 5.344 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001496/1.496, allocations: 30.48 kB / 1.015 GB, free: 5.324 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001792/1.496, allocations: 71.77 kB / 1.015 GB, free: 5.254 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.027e-06/1.496, allocations: 0 / 1.015 GB, free: 5.254 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.894e-05/1.496, allocations: 0 / 1.015 GB, free: 5.254 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.128e-05/1.496, allocations: 4 kB / 1.015 GB, free: 5.25 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006433/1.496, allocations: 309.7 kB / 1.016 GB, free: 4.934 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001222/1.497, allocations: 41.12 kB / 1.016 GB, free: 4.895 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.535e-05/1.497, allocations: 23.98 kB / 1.016 GB, free: 4.875 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.652e-05/1.497, allocations: 0 / 1.016 GB, free: 4.875 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.811e-05/1.497, allocations: 35.81 kB / 1.016 GB, free: 4.832 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=4): time 1.563e-06/1.497, allocations: 0 / 1.016 GB, free: 4.832 MB / 0.6355 GB Notification: Performance of matching and sorting (n=4): time 0.0002595/1.497, allocations: 60.75 kB / 1.016 GB, free: 4.773 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.894e-05/1.497, allocations: 77.11 kB / 1.016 GB, free: 4.68 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001177/1.497, allocations: 118.3 kB / 1.016 GB, free: 4.566 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.608e-05/1.497, allocations: 25.7 kB / 1.016 GB, free: 4.535 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 5.796e-05/1.497, allocations: 103.2 kB / 1.016 GB, free: 4.434 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.578e-05/1.497, allocations: 3.906 kB / 1.016 GB, free: 4.43 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.634e-06/1.497, allocations: 0 / 1.016 GB, free: 4.43 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001141/1.498, allocations: 322.3 kB / 1.017 GB, free: 4.109 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.609e-05/1.498, allocations: 15.12 kB / 1.017 GB, free: 4.102 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.106e-05/1.498, allocations: 25.59 kB / 1.017 GB, free: 4.078 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.216e-05/1.498, allocations: 23.02 kB / 1.017 GB, free: 4.062 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/1.498, allocations: 3.938 kB / 1.017 GB, free: 4.059 MB / 0.6355 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001825/1.498, allocations: 67.83 kB / 1.017 GB, free: 3.996 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.791e-05/1.498, allocations: 7.984 kB / 1.017 GB, free: 3.988 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.954e-06/1.498, allocations: 0 / 1.017 GB, free: 3.988 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.771e-05/1.498, allocations: 4 kB / 1.017 GB, free: 3.984 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001893/1.498, allocations: 8 kB / 1.017 GB, free: 3.977 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.628e-06/1.498, allocations: 0 / 1.017 GB, free: 3.977 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001912/1.498, allocations: 19.98 kB / 1.017 GB, free: 3.957 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.201e-05/1.498, allocations: 0 / 1.017 GB, free: 3.957 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.955e-05/1.499, allocations: 114.1 kB / 1.017 GB, free: 3.844 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.563e-05/1.499, allocations: 7.906 kB / 1.017 GB, free: 3.836 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.632e-05/1.499, allocations: 7.375 kB / 1.017 GB, free: 3.832 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.002e-06/1.499, allocations: 3.906 kB / 1.017 GB, free: 3.828 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.763e-06/1.499, allocations: 0 / 1.017 GB, free: 3.828 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.162e-06/1.499, allocations: 11.94 kB / 1.017 GB, free: 3.816 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002297/1.499, allocations: 161.4 kB / 1.017 GB, free: 3.633 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/1.499, allocations: 0 / 1.017 GB, free: 3.633 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001349/1.499, allocations: 11.94 kB / 1.017 GB, free: 3.621 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.527e-06/1.499, allocations: 0 / 1.017 GB, free: 3.621 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.601e-05/1.499, allocations: 3.984 kB / 1.017 GB, free: 3.617 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.275e-06/1.499, allocations: 0 / 1.017 GB, free: 3.617 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.488e-06/1.499, allocations: 4 kB / 1.017 GB, free: 3.613 MB / 0.6355 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002102/1.499, allocations: 160.8 kB / 1.017 GB, free: 3.453 MB / 0.6355 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003153/1.5, allocations: 0.5262 MB / 1.018 GB, free: 2.918 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 6.326e-05/1.5, allocations: 88.95 kB / 1.018 GB, free: 2.812 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.965e-05/1.5, allocations: 7.25 kB / 1.018 GB, free: 2.809 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002213/1.5, allocations: 19.98 kB / 1.018 GB, free: 2.789 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.147e-05/1.5, allocations: 7.922 kB / 1.018 GB, free: 2.781 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.012e-05/1.5, allocations: 4 kB / 1.018 GB, free: 2.777 MB / 0.6355 GB Notification: Performance of sort global known variables: time 8.686e-05/1.5, allocations: 101.7 kB / 1.018 GB, free: 2.688 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.001121/1.501, allocations: 11.91 kB / 1.018 GB, free: 2.676 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.0001693/1.502, allocations: 103.2 kB / 1.018 GB, free: 2.562 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0001933/1.502, allocations: 37.62 kB / 1.018 GB, free: 2.539 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/1.502, allocations: 0 / 1.018 GB, free: 2.539 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 6.866e-05/1.502, allocations: 15.86 kB / 1.018 GB, free: 2.527 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003238/1.502, allocations: 7.625 kB / 1.018 GB, free: 2.523 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006659/1.503, allocations: 98.91 kB / 1.018 GB, free: 2.406 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000461/1.503, allocations: 0.7071 MB / 1.019 GB, free: 1.676 MB / 0.6355 GB Notification: Performance of SimCode: time 1.713e-06/1.503, allocations: 0 / 1.019 GB, free: 1.676 MB / 0.6355 GB