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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.23/2.23, allocations: 248.5 MB / 261.1 MB, free: 6.02 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.001476/0.001476, allocations: 183.3 kB / 320.4 MB, free: 15.34 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.004/2.004, allocations: 205.2 MB / 0.571 GB, free: 11.74 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001143/0.001143, allocations: 98.47 kB / 0.6754 GB, free: 0.8242 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 4.862e-05/4.886e-05, allocations: 8 kB / 0.7869 GB, free: 97.8 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2354/0.2355, allocations: 106.2 MB / 0.8907 GB, free: 7.457 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8392/1.075, allocations: 132.9 MB / 1.02 GB, free: 2.422 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003415/1.075, allocations: 99.56 kB / 1.021 GB, free: 2.363 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.006655/1.082, allocations: 1.509 MB / 1.022 GB, free: 1.051 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.673e-06/1.082, allocations: 0 / 1.022 GB, free: 1.051 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 8.186e-06/1.082, allocations: 0 / 1.022 GB, free: 1.051 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.0006267/1.083, allocations: 373.6 kB / 1.022 GB, free: 0.6445 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.176e-05/1.083, allocations: 15.97 kB / 1.022 GB, free: 0.6289 MB / 0.6355 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.183e-05/1.083, allocations: 33.88 kB / 1.022 GB, free: 0.5898 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.794e-05/1.083, allocations: 15.86 kB / 1.022 GB, free: 0.5742 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001801/1.083, allocations: 175.5 kB / 1.023 GB, free: 372 kB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.543e-05/1.083, allocations: 3.938 kB / 1.023 GB, free: 372 kB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.67e-05/1.083, allocations: 4 kB / 1.023 GB, free: 368 kB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002154/1.083, allocations: 82.14 kB / 1.023 GB, free: 288 kB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.198e-05/1.083, allocations: 0 / 1.023 GB, free: 288 kB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.698e-05/1.083, allocations: 0 / 1.023 GB, free: 288 kB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.032e-06/1.083, allocations: 8 kB / 1.023 GB, free: 280 kB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001222/1.083, allocations: 32.61 kB / 1.023 GB, free: 260 kB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006781/1.084, allocations: 330.4 kB / 1.023 GB, free: 15.91 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001321/1.084, allocations: 39.45 kB / 1.023 GB, free: 15.87 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.331e-05/1.084, allocations: 22.95 kB / 1.023 GB, free: 15.86 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 2.551e-05/1.084, allocations: 7.984 kB / 1.023 GB, free: 15.85 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.679e-05/1.084, allocations: 34.52 kB / 1.023 GB, free: 15.8 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=4): time 1.703e-06/1.084, allocations: 0 / 1.023 GB, free: 15.8 MB / 0.6511 GB Notification: Performance of matching and sorting (n=4): time 0.0002442/1.085, allocations: 66.62 kB / 1.023 GB, free: 15.74 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.53e-05/1.085, allocations: 77.11 kB / 1.023 GB, free: 15.65 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001341/1.085, allocations: 126.7 kB / 1.023 GB, free: 15.53 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 2.814e-05/1.085, allocations: 28.95 kB / 1.023 GB, free: 15.5 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 8.158e-05/1.085, allocations: 103.1 kB / 1.024 GB, free: 15.4 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 2.306e-05/1.085, allocations: 6.781 kB / 1.024 GB, free: 15.39 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.734e-06/1.085, allocations: 0 / 1.024 GB, free: 15.39 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.00017/1.085, allocations: 317.9 kB / 1.024 GB, free: 15.08 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.178e-05/1.085, allocations: 18.05 kB / 1.024 GB, free: 15.07 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.631e-05/1.085, allocations: 29.22 kB / 1.024 GB, free: 15.04 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.871e-05/1.085, allocations: 18.78 kB / 1.024 GB, free: 15.03 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/1.086, allocations: 0 / 1.024 GB, free: 15.03 MB / 0.6511 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001956/1.086, allocations: 73.09 kB / 1.024 GB, free: 14.96 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 2.087e-05/1.086, allocations: 7.953 kB / 1.024 GB, free: 14.95 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.435e-06/1.086, allocations: 4 kB / 1.024 GB, free: 14.95 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.469e-05/1.086, allocations: 192 / 1.024 GB, free: 14.95 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001868/1.086, allocations: 15.98 kB / 1.024 GB, free: 14.93 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.224e-06/1.086, allocations: 0 / 1.024 GB, free: 14.93 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001517/1.086, allocations: 19.98 kB / 1.024 GB, free: 14.91 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.503e-05/1.086, allocations: 3.312 kB / 1.024 GB, free: 14.91 MB / 0.6511 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 0.000106/1.086, allocations: 108.9 kB / 1.024 GB, free: 14.8 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.375e-05/1.086, allocations: 7.906 kB / 1.024 GB, free: 14.79 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.297e-05/1.086, allocations: 15.84 kB / 1.024 GB, free: 14.78 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.416e-06/1.086, allocations: 0 / 1.024 GB, free: 14.78 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.548e-06/1.086, allocations: 0 / 1.024 GB, free: 14.78 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.617e-06/1.086, allocations: 0 / 1.024 GB, free: 14.78 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002692/1.087, allocations: 196.2 kB / 1.024 GB, free: 14.55 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/1.087, allocations: 0 / 1.024 GB, free: 14.55 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001209/1.087, allocations: 8 kB / 1.024 GB, free: 14.54 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.772e-06/1.087, allocations: 0 / 1.024 GB, free: 14.54 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.409e-05/1.087, allocations: 11.92 kB / 1.024 GB, free: 14.53 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.578e-06/1.087, allocations: 3.953 kB / 1.024 GB, free: 14.53 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/1.087, allocations: 0 / 1.024 GB, free: 14.53 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002306/1.087, allocations: 160.7 kB / 1.025 GB, free: 14.37 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 6.193e-05/1.087, allocations: 88.95 kB / 1.025 GB, free: 14.26 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.939e-05/1.087, allocations: 0 / 1.025 GB, free: 14.26 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001814/1.087, allocations: 15.98 kB / 1.025 GB, free: 14.25 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.7e-05/1.088, allocations: 18.92 kB / 1.025 GB, free: 14.23 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.298e-06/1.088, allocations: 0 / 1.025 GB, free: 14.23 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 8.882e-05/1.088, allocations: 96.72 kB / 1.025 GB, free: 14.14 MB / 0.6511 GB Notification: Performance of sort global known variables: time 4.01e-07/1.088, allocations: 0 / 1.025 GB, free: 14.14 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0002895/1.088, allocations: 15.38 kB / 1.025 GB, free: 14.13 MB / 0.6511 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.0005512/1.089, allocations: 0.6963 MB / 1.025 GB, free: 13.42 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0001825/1.089, allocations: 41.17 kB / 1.025 GB, free: 13.39 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.886e-06/1.089, allocations: 0 / 1.025 GB, free: 13.39 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 7.271e-05/1.089, allocations: 22.56 kB / 1.025 GB, free: 13.38 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002215/1.089, allocations: 10.89 kB / 1.026 GB, free: 13.37 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005912/1.09, allocations: 144.1 kB / 1.026 GB, free: 13.21 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000325/1.09, allocations: 0.6926 MB / 1.026 GB, free: 12.49 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 6.908e-05/1.09, allocations: 7.984 kB / 1.026 GB, free: 12.48 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.314e-05/1.09, allocations: 15.88 kB / 1.026 GB, free: 12.47 MB / 0.6511 GB Notification: Performance of SimCode: time 7.42e-07/1.09, allocations: 0 / 1.026 GB, free: 12.47 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02073/1.111, allocations: 1.716 MB / 1.028 GB, free: 10.92 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003589/1.111, allocations: 184.5 kB / 1.028 GB, free: 10.7 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.253/3.364, allocations: 0 / 1.028 GB, free: 10.7 MB / 0.6511 GB