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.267/2.267, allocations: 248.7 MB / 256.2 MB, free: 7.059 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.001529/0.001529, allocations: 180.7 kB / 315.4 MB, free: 4.016 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.131/2.131, allocations: 205.3 MB / 0.5662 GB, free: 0.5469 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001092/0.001092, allocations: 93.27 kB / 0.6704 GB, free: 5.746 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.856e-05/2.848e-05, allocations: 4 kB / 0.7803 GB, free: 103.3 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2176/0.2177, allocations: 106.2 MB / 0.8841 GB, free: 13.01 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8812/1.099, allocations: 133.2 MB / 1.014 GB, free: 5.641 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003147/1.099, allocations: 89.88 kB / 1.014 GB, free: 5.586 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.006506/1.106, allocations: 1.5 MB / 1.016 GB, free: 4.289 MB / 0.6355 GB Notification: Performance of FrontEnd: time 2.014e-06/1.106, allocations: 0 / 1.016 GB, free: 4.289 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.237e-05/1.106, allocations: 4 kB / 1.016 GB, free: 4.285 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.0005945/1.107, allocations: 377.2 kB / 1.016 GB, free: 3.879 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.678e-05/1.107, allocations: 8.031 kB / 1.016 GB, free: 3.871 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.288e-05/1.107, allocations: 15.86 kB / 1.016 GB, free: 3.855 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001814/1.107, allocations: 167 kB / 1.016 GB, free: 3.652 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.428e-05/1.107, allocations: 3.938 kB / 1.016 GB, free: 3.648 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.926e-05/1.107, allocations: 4 kB / 1.016 GB, free: 3.645 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001408/1.107, allocations: 30.36 kB / 1.016 GB, free: 3.625 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001753/1.107, allocations: 73.14 kB / 1.016 GB, free: 3.555 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.036e-05/1.107, allocations: 4 kB / 1.016 GB, free: 3.551 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.352e-05/1.107, allocations: 7.984 kB / 1.016 GB, free: 3.543 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.28e-06/1.107, allocations: 0 / 1.016 GB, free: 3.543 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006354/1.108, allocations: 302.1 kB / 1.017 GB, free: 3.234 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001109/1.108, allocations: 44.5 kB / 1.017 GB, free: 3.191 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.412e-05/1.108, allocations: 20.11 kB / 1.017 GB, free: 3.176 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.614e-05/1.108, allocations: 2.625 kB / 1.017 GB, free: 3.176 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.224e-05/1.108, allocations: 34.59 kB / 1.017 GB, free: 3.133 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=4): time 1.883e-06/1.108, allocations: 0 / 1.017 GB, free: 3.133 MB / 0.6355 GB Notification: Performance of matching and sorting (n=4): time 0.0002439/1.109, allocations: 67.02 kB / 1.017 GB, free: 3.07 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.252e-05/1.109, allocations: 81.11 kB / 1.017 GB, free: 2.973 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001254/1.109, allocations: 114.2 kB / 1.017 GB, free: 2.859 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 3.025e-05/1.109, allocations: 25.7 kB / 1.017 GB, free: 2.828 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 7.882e-05/1.109, allocations: 105.9 kB / 1.017 GB, free: 2.73 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.65e-05/1.109, allocations: 11.22 kB / 1.017 GB, free: 2.723 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.504e-06/1.109, allocations: 0 / 1.017 GB, free: 2.723 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001363/1.109, allocations: 318.1 kB / 1.017 GB, free: 2.406 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.217e-05/1.109, allocations: 14.94 kB / 1.017 GB, free: 2.398 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.999e-05/1.109, allocations: 28.53 kB / 1.017 GB, free: 2.371 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.251e-05/1.109, allocations: 13.72 kB / 1.018 GB, free: 2.363 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/1.109, allocations: 0 / 1.018 GB, free: 2.363 MB / 0.6355 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001786/1.109, allocations: 71.16 kB / 1.018 GB, free: 2.301 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 2.15e-05/1.109, allocations: 8 kB / 1.018 GB, free: 2.293 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.092e-06/1.11, allocations: 0 / 1.018 GB, free: 2.293 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.506e-05/1.11, allocations: 3.938 kB / 1.018 GB, free: 2.289 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000182/1.11, allocations: 15.94 kB / 1.018 GB, free: 2.273 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.24e-06/1.11, allocations: 0 / 1.018 GB, free: 2.273 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001481/1.11, allocations: 22.52 kB / 1.018 GB, free: 2.254 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.084e-05/1.11, allocations: 0 / 1.018 GB, free: 2.254 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.772e-05/1.11, allocations: 105 kB / 1.018 GB, free: 2.145 MB / 0.6355 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001691/1.11, allocations: 74.95 kB / 1.018 GB, free: 2.074 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.63e-05/1.11, allocations: 3.906 kB / 1.018 GB, free: 2.07 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.962e-05/1.11, allocations: 15.36 kB / 1.018 GB, free: 2.051 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.307e-06/1.11, allocations: 0 / 1.018 GB, free: 2.051 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.169e-06/1.11, allocations: 4 kB / 1.018 GB, free: 2.047 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.657e-06/1.11, allocations: 0 / 1.018 GB, free: 2.047 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002307/1.111, allocations: 162.7 kB / 1.018 GB, free: 1.863 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/1.111, allocations: 0 / 1.018 GB, free: 1.863 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001223/1.111, allocations: 12 kB / 1.018 GB, free: 1.852 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.328e-06/1.111, allocations: 0 / 1.018 GB, free: 1.852 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.456e-05/1.111, allocations: 3.984 kB / 1.018 GB, free: 1.848 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.324e-06/1.111, allocations: 0 / 1.018 GB, free: 1.848 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.562e-06/1.111, allocations: 4.578 kB / 1.018 GB, free: 1.844 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001949/1.111, allocations: 157.7 kB / 1.018 GB, free: 1.684 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 5.408e-05/1.111, allocations: 88.95 kB / 1.018 GB, free: 1.578 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.328e-05/1.111, allocations: 7.547 kB / 1.018 GB, free: 1.574 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001847/1.111, allocations: 12.19 kB / 1.018 GB, free: 1.562 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.983e-05/1.111, allocations: 24 kB / 1.018 GB, free: 1.539 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.297e-06/1.111, allocations: 0 / 1.018 GB, free: 1.539 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 7.805e-05/1.112, allocations: 104 kB / 1.018 GB, free: 1.445 MB / 0.6355 GB Notification: Performance of sort global known variables: time 5.61e-07/1.112, allocations: 0 / 1.018 GB, free: 1.445 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0003299/1.112, allocations: 8 kB / 1.018 GB, free: 1.438 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.0005207/1.112, allocations: 0.6878 MB / 1.019 GB, free: 0.7344 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0001708/1.113, allocations: 37.92 kB / 1.019 GB, free: 0.7109 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/1.113, allocations: 7.938 kB / 1.019 GB, free: 0.7031 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 6.199e-05/1.113, allocations: 15.56 kB / 1.019 GB, free: 0.6914 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002413/1.113, allocations: 6.938 kB / 1.019 GB, free: 0.6914 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005832/1.114, allocations: 140.6 kB / 1.019 GB, free: 0.5234 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000304/1.114, allocations: 0.6962 MB / 1.02 GB, free: 15.8 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 6.812e-05/1.114, allocations: 3.984 kB / 1.02 GB, free: 15.8 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.49e-05/1.114, allocations: 25.56 kB / 1.02 GB, free: 15.78 MB / 0.6511 GB Notification: Performance of SimCode: time 1.232e-06/1.114, allocations: 0 / 1.02 GB, free: 15.78 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03936/1.153, allocations: 1.368 MB / 1.021 GB, free: 14.43 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003377/1.154, allocations: 165.6 kB / 1.021 GB, free: 14.24 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.176/3.33, allocations: 0 / 1.021 GB, free: 14.24 MB / 0.6511 GB