Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch.conf.json Using package Buildings with version 7.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 7.0.0/package.mo) Using package Modelica with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.3/package.mo) Using package Complex with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.3.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.3/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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.3/package.mo): time 0.0102/0.0102, allocations: 89.72 kB / 15.04 MB, free: 6.055 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.3.mo): time 0.001215/0.001215, allocations: 172.3 kB / 15.92 MB, free: 5.992 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.3/package.mo): time 2.201/2.201, allocations: 205.5 MB / 222.2 MB, free: 13.71 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 7.0.0/package.mo): time 2.38/2.38, allocations: 252.8 MB / 0.511 GB, free: 8.324 MB / 426.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007544/0.0007542, allocations: 11.16 kB / 0.6243 GB, free: 28.27 MB / 0.4948 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.295/0.2958, allocations: 106.2 MB / 0.7281 GB, free: 10.13 MB / 0.5573 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.003417/0.2992, allocations: 1.358 MB / 0.7294 GB, free: 8.762 MB / 0.5573 GB Notification: Performance of NFInst.instExpressions: time 0.001461/0.3008, allocations: 472.1 kB / 0.7299 GB, free: 8.293 MB / 0.5573 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.773e-05/0.3009, allocations: 4 kB / 0.7299 GB, free: 8.289 MB / 0.5573 GB Notification: Performance of NFTyping.typeComponents: time 3.591e-05/0.301, allocations: 3.938 kB / 0.7299 GB, free: 8.285 MB / 0.5573 GB Notification: Performance of NFTyping.typeBindings: time 0.000149/0.3011, allocations: 23.89 kB / 0.7299 GB, free: 8.262 MB / 0.5573 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002209/0.3014, allocations: 15.98 kB / 0.7299 GB, free: 8.246 MB / 0.5573 GB Notification: Performance of NFFlatten.flatten: time 0.0001521/0.3015, allocations: 47.92 kB / 0.7299 GB, free: 8.199 MB / 0.5573 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001605/0.3017, allocations: 31.95 kB / 0.73 GB, free: 8.168 MB / 0.5573 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001448/0.3019, allocations: 27.86 kB / 0.73 GB, free: 8.141 MB / 0.5573 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001272/0.302, allocations: 31.83 kB / 0.73 GB, free: 8.109 MB / 0.5573 GB Notification: Performance of NFPackage.collectConstants: time 2.549e-05/0.3021, allocations: 7.938 kB / 0.73 GB, free: 8.102 MB / 0.5573 GB Notification: Performance of NFFlatten.collectFunctions: time 2.275e-05/0.3021, allocations: 0 / 0.73 GB, free: 8.102 MB / 0.5573 GB Notification: Performance of NFScalarize.scalarize: time 2.816e-05/0.3022, allocations: 8 kB / 0.73 GB, free: 8.094 MB / 0.5573 GB Notification: Performance of NFVerifyModel.verify: time 4.957e-05/0.3022, allocations: 37.64 kB / 0.7301 GB, free: 8.051 MB / 0.5573 GB Notification: Performance of NFConvertDAE.convert: time 0.0001635/0.3024, allocations: 64.08 kB / 0.7301 GB, free: 7.988 MB / 0.5573 GB Notification: Performance of FrontEnd - DAE generated: time 5.691e-06/0.3024, allocations: 0 / 0.7301 GB, free: 7.988 MB / 0.5573 GB Notification: Performance of FrontEnd: time 3.076e-06/0.3025, allocations: 7.938 kB / 0.7301 GB, free: 7.98 MB / 0.5573 GB Notification: Performance of Transformations before backend: time 5.71e-06/0.3025, allocations: 4 kB / 0.7302 GB, free: 7.977 MB / 0.5573 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.0008594/0.3034, allocations: 371.1 kB / 0.7305 GB, free: 7.566 MB / 0.5573 GB Notification: Performance of prepare preOptimizeDAE: time 5.633e-05/0.3034, allocations: 8.031 kB / 0.7305 GB, free: 7.559 MB / 0.5573 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.721e-05/0.3035, allocations: 34.56 kB / 0.7305 GB, free: 7.516 MB / 0.5573 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.001e-05/0.3036, allocations: 15.86 kB / 0.7306 GB, free: 7.5 MB / 0.5573 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002243/0.3038, allocations: 178.8 kB / 0.7307 GB, free: 7.285 MB / 0.5573 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.588e-05/0.3039, allocations: 8 kB / 0.7307 GB, free: 7.277 MB / 0.5573 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.882e-05/0.3039, allocations: 0 / 0.7307 GB, free: 7.277 MB / 0.5573 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004295/0.3044, allocations: 91.38 kB / 0.7308 GB, free: 7.176 MB / 0.5573 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.144e-05/0.3044, allocations: 0 / 0.7308 GB, free: 7.176 MB / 0.5573 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.354e-05/0.3044, allocations: 4 kB / 0.7308 GB, free: 7.172 MB / 0.5573 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.113e-05/0.3045, allocations: 0 / 0.7308 GB, free: 7.172 MB / 0.5573 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004334/0.3049, allocations: 63.86 kB / 0.7309 GB, free: 7.109 MB / 0.5573 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008709/0.3058, allocations: 328.8 kB / 0.7312 GB, free: 6.738 MB / 0.5573 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003081/0.3061, allocations: 58.58 kB / 0.7313 GB, free: 6.672 MB / 0.5573 GB Notification: Performance of preOpt evalFunc (simulation): time 2.013e-05/0.3062, allocations: 0 / 0.7313 GB, free: 6.672 MB / 0.5573 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.803e-05/0.3062, allocations: 38.52 kB / 0.7313 GB, free: 6.625 MB / 0.5573 GB Notification: Performance of pre-optimization done (n=4): time 2.675e-06/0.3063, allocations: 0 / 0.7313 GB, free: 6.625 MB / 0.5573 GB Notification: Performance of matching and sorting (n=4): time 0.0007986/0.3071, allocations: 109.7 kB / 0.7314 GB, free: 6.512 MB / 0.5573 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.133e-05/0.3072, allocations: 85.03 kB / 0.7315 GB, free: 6.41 MB / 0.5573 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001856/0.3074, allocations: 129.2 kB / 0.7316 GB, free: 6.277 MB / 0.5573 GB Notification: Performance of collectPreVariables (initialization): time 3.457e-05/0.3074, allocations: 25.7 kB / 0.7316 GB, free: 6.246 MB / 0.5573 GB Notification: Performance of collectInitialEqns (initialization): time 9.568e-05/0.3076, allocations: 104 kB / 0.7317 GB, free: 6.141 MB / 0.5573 GB Notification: Performance of collectInitialBindings (initialization): time 4.848e-05/0.3076, allocations: 23.73 kB / 0.7318 GB, free: 6.117 MB / 0.5573 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.081e-05/0.3077, allocations: 0 / 0.7318 GB, free: 6.117 MB / 0.5573 GB Notification: Performance of setup shared object (initialization): time 0.0001705/0.3078, allocations: 318.8 kB / 0.7321 GB, free: 5.797 MB / 0.5573 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002055/0.3081, allocations: 27.98 kB / 0.7321 GB, free: 5.77 MB / 0.5573 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002357/0.3083, allocations: 41.7 kB / 0.7321 GB, free: 5.723 MB / 0.5573 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002161/0.3086, allocations: 31.92 kB / 0.7322 GB, free: 5.691 MB / 0.5573 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.847e-06/0.3086, allocations: 0 / 0.7322 GB, free: 5.691 MB / 0.5573 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0005259/0.3091, allocations: 93.69 kB / 0.7322 GB, free: 5.594 MB / 0.5573 GB Notification: Performance of prepare postOptimizeDAE: time 2.798e-05/0.3092, allocations: 11.95 kB / 0.7323 GB, free: 5.582 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.003e-06/0.3092, allocations: 192 / 0.7323 GB, free: 5.582 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.837e-05/0.3092, allocations: 0 / 0.7323 GB, free: 5.582 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002293/0.3095, allocations: 19.92 kB / 0.7323 GB, free: 5.562 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.205e-06/0.3095, allocations: 3.938 kB / 0.7323 GB, free: 5.559 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002196/0.3097, allocations: 19.89 kB / 0.7323 GB, free: 5.539 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.701e-05/0.3098, allocations: 0 / 0.7323 GB, free: 5.539 MB / 0.5573 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.0001629/0.31, allocations: 121.8 kB / 0.7324 GB, free: 5.41 MB / 0.5573 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.281e-05/0.31, allocations: 4 kB / 0.7324 GB, free: 5.406 MB / 0.5573 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.603e-05/0.3101, allocations: 16.2 kB / 0.7324 GB, free: 5.387 MB / 0.5573 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.699e-06/0.3101, allocations: 0 / 0.7324 GB, free: 5.387 MB / 0.5573 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/0.3102, allocations: 0 / 0.7324 GB, free: 5.387 MB / 0.5573 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.949e-06/0.3102, allocations: 0 / 0.7324 GB, free: 5.387 MB / 0.5573 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004048/0.3106, allocations: 189.5 kB / 0.7326 GB, free: 5.152 MB / 0.5573 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.3106, allocations: 0 / 0.7326 GB, free: 5.152 MB / 0.5573 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001881/0.3108, allocations: 15.98 kB / 0.7326 GB, free: 5.137 MB / 0.5573 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.709e-06/0.3108, allocations: 0 / 0.7326 GB, free: 5.137 MB / 0.5573 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.673e-05/0.3109, allocations: 192 / 0.7326 GB, free: 5.137 MB / 0.5573 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-05/0.3109, allocations: 7.953 kB / 0.7326 GB, free: 5.129 MB / 0.5573 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/0.3109, allocations: 0 / 0.7326 GB, free: 5.129 MB / 0.5573 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005537/0.3115, allocations: 187.4 kB / 0.7328 GB, free: 4.93 MB / 0.5573 GB Notification: Performance of postOpt removeConstants (simulation): time 8.239e-05/0.3116, allocations: 93 kB / 0.7329 GB, free: 4.82 MB / 0.5573 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.04e-05/0.3116, allocations: 0 / 0.7329 GB, free: 4.82 MB / 0.5573 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002768/0.3119, allocations: 15.98 kB / 0.7329 GB, free: 4.805 MB / 0.5573 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.626e-05/0.312, allocations: 11.94 kB / 0.7329 GB, free: 4.793 MB / 0.5573 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.458e-05/0.3121, allocations: 0 / 0.7329 GB, free: 4.793 MB / 0.5573 GB Notification: Performance of sorting global known variables: time 0.0001239/0.3122, allocations: 99.27 kB / 0.733 GB, free: 4.695 MB / 0.5573 GB Notification: Performance of sort global known variables: time 8.71e-07/0.3122, allocations: 4 kB / 0.733 GB, free: 4.691 MB / 0.5573 GB Notification: Performance of remove unused functions: time 0.0005131/0.3128, allocations: 15.94 kB / 0.733 GB, free: 4.676 MB / 0.5573 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.001032/0.3138, allocations: 0.728 MB / 0.7338 GB, free: 3.922 MB / 0.5573 GB Notification: Performance of simCode: created initialization part: time 0.0005003/0.3143, allocations: 59.97 kB / 0.7338 GB, free: 3.863 MB / 0.5573 GB Notification: Performance of simCode: created event and clocks part: time 4.098e-06/0.3144, allocations: 0 / 0.7338 GB, free: 3.863 MB / 0.5573 GB Notification: Performance of simCode: created simulation system equations: time 0.0002561/0.3146, allocations: 31.98 kB / 0.7338 GB, free: 3.832 MB / 0.5573 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000375/0.315, allocations: 18.64 kB / 0.7339 GB, free: 3.816 MB / 0.5573 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002119/0.3172, allocations: 0.5845 MB / 0.7344 GB, free: 3.188 MB / 0.5573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004184/0.3176, allocations: 0.6965 MB / 0.7351 GB, free: 2.465 MB / 0.5573 GB Notification: Performance of simCode: alias equations: time 0.0001109/0.3178, allocations: 12 kB / 0.7351 GB, free: 2.453 MB / 0.5573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000118/0.3179, allocations: 27.36 kB / 0.7352 GB, free: 2.426 MB / 0.5573 GB Notification: Performance of SimCode: time 1.513e-06/0.3179, allocations: 0 / 0.7352 GB, free: 2.426 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07681/0.3947, allocations: 1.704 MB / 0.7368 GB, free: 0.8398 MB / 0.5573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003632/0.3952, allocations: 220.9 kB / 0.737 GB, free: 0.5938 MB / 0.5573 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.396/2.791, allocations: 0 / 0.737 GB, free: 0.5938 MB / 0.5573 GB