Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_6.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,fileNamePrefix="Buildings_6_0_0_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_ChillerSwitch",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 3.902/3.902, allocations: 432.6 MB / 445.2 MB, free: 15.69 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 4.021e-05/4.037e-05, allocations: 8.062 kB / 0.5383 GB, free: 10.28 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2116/0.2117, allocations: 98.73 MB / 0.6347 GB, free: 1.863 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2286/0.4404, allocations: 125.8 MB / 0.7576 GB, free: 3.844 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003225/0.4407, allocations: 91.92 kB / 0.7577 GB, free: 3.754 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.006172/0.4469, allocations: 1.431 MB / 0.7591 GB, free: 2.32 MB / 0.6355 GB Notification: Performance of FrontEnd: time 4.007e-06/0.447, allocations: 0 / 0.7591 GB, free: 2.32 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 7.815e-06/0.447, allocations: 3.938 kB / 0.7591 GB, free: 2.316 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.0005873/0.4476, allocations: 382.3 kB / 0.7595 GB, free: 1.898 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.427e-05/0.4477, allocations: 12.03 kB / 0.7595 GB, free: 1.887 MB / 0.6355 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.154e-05/0.4477, allocations: 34.55 kB / 0.7595 GB, free: 1.844 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.622e-05/0.4478, allocations: 15.86 kB / 0.7595 GB, free: 1.828 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001771/0.448, allocations: 175 kB / 0.7597 GB, free: 1.617 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.028e-05/0.448, allocations: 0 / 0.7597 GB, free: 1.617 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.315e-05/0.448, allocations: 4 kB / 0.7597 GB, free: 1.613 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002151/0.4483, allocations: 87.31 kB / 0.7598 GB, free: 1.516 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.378e-06/0.4483, allocations: 0 / 0.7598 GB, free: 1.516 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.7e-05/0.4483, allocations: 0 / 0.7598 GB, free: 1.516 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.145e-05/0.4483, allocations: 4 kB / 0.7598 GB, free: 1.512 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001251/0.4485, allocations: 28 kB / 0.7598 GB, free: 1.484 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006579/0.4491, allocations: 336.6 kB / 0.7601 GB, free: 1.105 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001326/0.4493, allocations: 38.58 kB / 0.7602 GB, free: 1.059 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.757e-05/0.4494, allocations: 30.86 kB / 0.7602 GB, free: 1.027 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.73e-05/0.4494, allocations: 0 / 0.7602 GB, free: 1.027 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.64e-05/0.4494, allocations: 38.52 kB / 0.7602 GB, free: 0.9805 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=4): time 3.957e-06/0.4495, allocations: 96 / 0.7602 GB, free: 0.9805 MB / 0.6355 GB Notification: Performance of matching and sorting (n=4): time 0.000251/0.4497, allocations: 69.61 kB / 0.7603 GB, free: 0.9062 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.827e-05/0.4498, allocations: 77.11 kB / 0.7604 GB, free: 0.8125 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001311/0.4499, allocations: 117.2 kB / 0.7605 GB, free: 0.6875 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 3.279e-05/0.45, allocations: 33.7 kB / 0.7605 GB, free: 0.6484 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 7.901e-05/0.4501, allocations: 104 kB / 0.7606 GB, free: 0.543 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.628e-05/0.4501, allocations: 7.891 kB / 0.7606 GB, free: 0.5352 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.685e-06/0.4501, allocations: 0 / 0.7606 GB, free: 0.5352 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001471/0.4503, allocations: 318.8 kB / 0.7609 GB, free: 220 kB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.089e-05/0.4504, allocations: 19.94 kB / 0.761 GB, free: 200 kB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.63e-05/0.4504, allocations: 29.7 kB / 0.761 GB, free: 164 kB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.789e-05/0.4505, allocations: 12 kB / 0.761 GB, free: 152 kB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.4505, allocations: 4.031 kB / 0.761 GB, free: 148 kB / 0.6355 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001893/0.4507, allocations: 73.53 kB / 0.7611 GB, free: 68 kB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 2.063e-05/0.4508, allocations: 10.45 kB / 0.7611 GB, free: 60 kB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.721e-06/0.4508, allocations: 192 / 0.7611 GB, free: 60 kB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.387e-05/0.4508, allocations: 0 / 0.7611 GB, free: 60 kB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000165/0.451, allocations: 19.98 kB / 0.7611 GB, free: 40 kB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.022e-05/0.451, allocations: 3.984 kB / 0.7611 GB, free: 36 kB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001521/0.4512, allocations: 15.98 kB / 0.7611 GB, free: 20 kB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.172e-05/0.4512, allocations: 4 kB / 0.7611 GB, free: 16 kB / 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 0.0001042/0.4513, allocations: 109 kB / 0.7612 GB, free: 15.9 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.927e-05/0.4514, allocations: 3.906 kB / 0.7612 GB, free: 15.9 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.426e-05/0.4514, allocations: 15.98 kB / 0.7612 GB, free: 15.88 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.817e-06/0.4514, allocations: 0 / 0.7612 GB, free: 15.88 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.4514, allocations: 0 / 0.7612 GB, free: 15.88 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.123e-06/0.4515, allocations: 3.984 kB / 0.7612 GB, free: 15.88 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002398/0.4517, allocations: 181.6 kB / 0.7614 GB, free: 15.65 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.048e-06/0.4518, allocations: 0 / 0.7614 GB, free: 15.65 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000127/0.4519, allocations: 19.92 kB / 0.7614 GB, free: 15.63 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.576e-06/0.4519, allocations: 0 / 0.7614 GB, free: 15.63 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.537e-05/0.4519, allocations: 4 kB / 0.7614 GB, free: 15.63 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.596e-06/0.4519, allocations: 7.953 kB / 0.7615 GB, free: 15.62 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.452, allocations: 0 / 0.7615 GB, free: 15.62 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000215/0.4522, allocations: 159.5 kB / 0.7616 GB, free: 15.45 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 5.397e-05/0.4522, allocations: 92.95 kB / 0.7617 GB, free: 15.34 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.96e-05/0.4523, allocations: 4 kB / 0.7617 GB, free: 15.34 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001884/0.4525, allocations: 15.98 kB / 0.7617 GB, free: 15.32 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.088e-05/0.4526, allocations: 11.94 kB / 0.7617 GB, free: 15.31 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.26e-05/0.4526, allocations: 7.922 kB / 0.7617 GB, free: 15.3 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 8.071e-05/0.4527, allocations: 95.28 kB / 0.7618 GB, free: 15.21 MB / 0.6511 GB Notification: Performance of sort global known variables: time 4.11e-07/0.4527, allocations: 0 / 0.7618 GB, free: 15.21 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0002892/0.453, allocations: 12 kB / 0.7618 GB, free: 15.2 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.0005007/0.4535, allocations: 0.7045 MB / 0.7625 GB, free: 14.46 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0001774/0.4537, allocations: 35.98 kB / 0.7626 GB, free: 14.43 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.4537, allocations: 3.938 kB / 0.7626 GB, free: 14.42 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 7.203e-05/0.4538, allocations: 19.94 kB / 0.7626 GB, free: 14.4 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002182/0.454, allocations: 11.95 kB / 0.7626 GB, free: 14.39 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000531/0.4546, allocations: 130.4 kB / 0.7627 GB, free: 14.23 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002665/0.4549, allocations: 0.6926 MB / 0.7634 GB, free: 13.51 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 6.381e-05/0.4549, allocations: 0 / 0.7634 GB, free: 13.51 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.197e-05/0.455, allocations: 27.42 kB / 0.7634 GB, free: 13.48 MB / 0.6511 GB Notification: Performance of SimCode: time 9.92e-07/0.455, allocations: 0 / 0.7634 GB, free: 13.48 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02624/0.4813, allocations: 1.715 MB / 0.7651 GB, free: 11.86 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000329/0.4817, allocations: 188.5 kB / 0.7653 GB, free: 11.63 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.247/2.728, allocations: 2.656 kB / 0.7653 GB, free: 11.63 MB / 0.6511 GB