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.141/2.141, allocations: 251 MB / 265.9 MB, free: 11.68 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001529/0.001529, allocations: 178.1 kB / 325.5 MB, free: 2.887 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.338/2.338, allocations: 205.4 MB / 0.5764 GB, free: 20.79 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.001167/0.001166, allocations: 95.59 kB / 0.6809 GB, free: 13.64 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0005013/0.0005017, allocations: 14.81 kB / 0.7951 GB, free: 135.5 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2285/0.229, allocations: 106.3 MB / 0.8988 GB, free: 65.44 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2298/0.4589, allocations: 133 MB / 1.029 GB, free: 12.29 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003807/0.4594, allocations: 95.92 kB / 1.029 GB, free: 12.2 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.006521/0.4659, allocations: 1.507 MB / 1.03 GB, free: 10.69 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.473e-06/0.466, allocations: 0 / 1.03 GB, free: 10.69 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 8.246e-06/0.466, allocations: 0 / 1.03 GB, free: 10.69 MB / 0.6823 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.0006338/0.4666, allocations: 410.8 kB / 1.031 GB, free: 10.24 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 5.207e-05/0.4667, allocations: 12.03 kB / 1.031 GB, free: 10.23 MB / 0.6823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.066e-05/0.4668, allocations: 34.56 kB / 1.031 GB, free: 10.18 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.573e-05/0.4668, allocations: 11.86 kB / 1.031 GB, free: 10.17 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001716/0.467, allocations: 176.8 kB / 1.031 GB, free: 9.961 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.391e-05/0.467, allocations: 0 / 1.031 GB, free: 9.961 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.249e-05/0.467, allocations: 8 kB / 1.031 GB, free: 9.953 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000309/0.4674, allocations: 95.31 kB / 1.031 GB, free: 9.848 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.648e-06/0.4674, allocations: 0 / 1.031 GB, free: 9.848 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.604e-05/0.4674, allocations: 0 / 1.031 GB, free: 9.848 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.45e-06/0.4674, allocations: 0 / 1.031 GB, free: 9.848 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003093/0.4678, allocations: 63.91 kB / 1.031 GB, free: 9.785 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006632/0.4684, allocations: 332.6 kB / 1.031 GB, free: 9.41 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002256/0.4687, allocations: 54.56 kB / 1.031 GB, free: 9.348 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 2.781e-05/0.4687, allocations: 4 kB / 1.031 GB, free: 9.344 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.632e-05/0.4688, allocations: 38.59 kB / 1.031 GB, free: 9.297 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=4): time 1.814e-06/0.4688, allocations: 0 / 1.031 GB, free: 9.297 MB / 0.6823 GB Notification: Performance of matching and sorting (n=4): time 0.0005587/0.4693, allocations: 113.6 kB / 1.032 GB, free: 9.18 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.343e-05/0.4694, allocations: 85.11 kB / 1.032 GB, free: 9.078 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001286/0.4696, allocations: 117.2 kB / 1.032 GB, free: 8.953 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 2.605e-05/0.4696, allocations: 25.7 kB / 1.032 GB, free: 8.922 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 7.877e-05/0.4697, allocations: 100 kB / 1.032 GB, free: 8.82 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 3.095e-05/0.4697, allocations: 15.84 kB / 1.032 GB, free: 8.805 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.007e-06/0.4697, allocations: 0 / 1.032 GB, free: 8.805 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001289/0.4699, allocations: 318.8 kB / 1.032 GB, free: 8.484 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001417/0.47, allocations: 27.97 kB / 1.032 GB, free: 8.457 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001626/0.4702, allocations: 41.7 kB / 1.032 GB, free: 8.41 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001465/0.4704, allocations: 28.88 kB / 1.032 GB, free: 8.383 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.4704, allocations: 0 / 1.032 GB, free: 8.383 MB / 0.6823 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.000358/0.4708, allocations: 97.52 kB / 1.032 GB, free: 8.281 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 2.152e-05/0.4708, allocations: 4 kB / 1.032 GB, free: 8.277 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.586e-06/0.4708, allocations: 3.953 kB / 1.032 GB, free: 8.273 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.699e-05/0.4708, allocations: 8 kB / 1.032 GB, free: 8.266 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001665/0.471, allocations: 11.98 kB / 1.032 GB, free: 8.254 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.352e-06/0.471, allocations: 3.938 kB / 1.032 GB, free: 8.25 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001503/0.4712, allocations: 15.98 kB / 1.032 GB, free: 8.234 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.196e-05/0.4712, allocations: 0 / 1.032 GB, free: 8.234 MB / 0.6823 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 () * Number of clocked 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.0001282/0.4714, allocations: 114 kB / 1.033 GB, free: 8.113 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.358e-05/0.4714, allocations: 15.89 kB / 1.033 GB, free: 8.098 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.276e-05/0.4715, allocations: 12.23 kB / 1.033 GB, free: 8.078 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.132e-06/0.4715, allocations: 7.953 kB / 1.033 GB, free: 8.07 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.923e-05/0.4715, allocations: 0 / 1.033 GB, free: 8.07 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.547e-06/0.4715, allocations: 192 / 1.033 GB, free: 8.07 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002741/0.4718, allocations: 189.6 kB / 1.033 GB, free: 7.836 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.4718, allocations: 4 kB / 1.033 GB, free: 7.832 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000122/0.472, allocations: 11.94 kB / 1.033 GB, free: 7.82 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.925e-06/0.472, allocations: 0 / 1.033 GB, free: 7.82 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.45e-05/0.472, allocations: 3.984 kB / 1.033 GB, free: 7.816 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.934e-06/0.472, allocations: 4 kB / 1.033 GB, free: 7.812 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.33e-06/0.472, allocations: 3.953 kB / 1.033 GB, free: 7.809 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004005/0.4724, allocations: 183.4 kB / 1.033 GB, free: 7.613 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 5.178e-05/0.4725, allocations: 81.02 kB / 1.033 GB, free: 7.516 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.572e-05/0.4726, allocations: 15.94 kB / 1.033 GB, free: 7.5 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001755/0.4727, allocations: 11.98 kB / 1.033 GB, free: 7.488 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.606e-05/0.4728, allocations: 11.94 kB / 1.033 GB, free: 7.477 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.837e-06/0.4728, allocations: 4 kB / 1.033 GB, free: 7.473 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 9.098e-05/0.4729, allocations: 105.9 kB / 1.033 GB, free: 7.371 MB / 0.6823 GB Notification: Performance of sort global known variables: time 4.1e-07/0.473, allocations: 0 / 1.033 GB, free: 7.371 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0003249/0.4733, allocations: 12 kB / 1.033 GB, free: 7.359 MB / 0.6823 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) * Number of clocked states: 0 () * 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.0006964/0.474, allocations: 0.7202 MB / 1.034 GB, free: 6.613 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0003498/0.4744, allocations: 59.97 kB / 1.034 GB, free: 6.555 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 6.883e-06/0.4744, allocations: 4 kB / 1.034 GB, free: 6.551 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0001512/0.4745, allocations: 27.92 kB / 1.034 GB, free: 6.523 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002738/0.4748, allocations: 11.98 kB / 1.034 GB, free: 6.512 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001559/0.4764, allocations: 0.593 MB / 1.035 GB, free: 5.871 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003058/0.4767, allocations: 0.6926 MB / 1.035 GB, free: 5.152 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 7.127e-05/0.4768, allocations: 7.984 kB / 1.035 GB, free: 5.145 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.971e-05/0.4769, allocations: 23.44 kB / 1.035 GB, free: 5.121 MB / 0.6823 GB Notification: Performance of SimCode: time 1.322e-06/0.4769, allocations: 0 / 1.035 GB, free: 5.121 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02121/0.4981, allocations: 1.706 MB / 1.037 GB, free: 3.598 MB / 0.6823 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003829/0.4986, allocations: 217.7 kB / 1.037 GB, free: 3.352 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.427/2.926, allocations: 0 / 1.037 GB, free: 3.352 MB / 0.6823 GB