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 Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.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 Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/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 loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo): time 0.01094/0.01094, allocations: 107 kB / 15.06 MB, free: 5.555 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo): time 0.001185/0.001186, allocations: 181.5 kB / 15.95 MB, free: 5.52 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo): time 1.936/1.936, allocations: 194.6 MB / 211.3 MB, free: 11.08 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo): time 2.435/2.435, allocations: 236.1 MB / 492.6 MB, free: 11.41 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005033/0.0005035, allocations: 15.98 kB / 0.587 GB, free: 2.094 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7174/0.7179, allocations: 98.71 MB / 0.6834 GB, free: 16.72 MB / 0.5261 GB Notification: Performance of NFInst.instantiate(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch): time 0.002217/0.7202, allocations: 1.34 MB / 0.6847 GB, free: 15.74 MB / 0.5261 GB Notification: Performance of NFInst.instExpressions: time 0.0009215/0.7212, allocations: 449.6 kB / 0.6852 GB, free: 15.43 MB / 0.5261 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.626e-05/0.7213, allocations: 0 / 0.6852 GB, free: 15.43 MB / 0.5261 GB Notification: Performance of NFTyping.typeComponents: time 2.166e-05/0.7213, allocations: 9.25 kB / 0.6852 GB, free: 15.43 MB / 0.5261 GB Notification: Performance of NFTyping.typeBindings: time 0.0001034/0.7214, allocations: 16.88 kB / 0.6852 GB, free: 15.41 MB / 0.5261 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001726/0.7216, allocations: 26.02 kB / 0.6852 GB, free: 15.4 MB / 0.5261 GB Notification: Performance of NFFlatten.flatten: time 0.0001078/0.7217, allocations: 49.8 kB / 0.6853 GB, free: 15.37 MB / 0.5261 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001214/0.7218, allocations: 18.39 kB / 0.6853 GB, free: 15.37 MB / 0.5261 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001149/0.722, allocations: 39.61 kB / 0.6853 GB, free: 15.34 MB / 0.5261 GB Notification: Performance of NFSimplifyModel.simplify: time 9.409e-05/0.7221, allocations: 24.33 kB / 0.6853 GB, free: 15.34 MB / 0.5261 GB Notification: Performance of NFPackage.collectConstants: time 1.844e-05/0.7221, allocations: 2.906 kB / 0.6854 GB, free: 15.34 MB / 0.5261 GB Notification: Performance of NFFlatten.collectFunctions: time 2.104e-05/0.7221, allocations: 2.688 kB / 0.6854 GB, free: 15.34 MB / 0.5261 GB Notification: Performance of NFScalarize.scalarize: time 2.266e-05/0.7222, allocations: 12.25 kB / 0.6854 GB, free: 15.33 MB / 0.5261 GB Notification: Performance of NFVerifyModel.verify: time 3.055e-05/0.7222, allocations: 38.39 kB / 0.6854 GB, free: 15.29 MB / 0.5261 GB Notification: Performance of NFConvertDAE.convert: time 0.0001232/0.7223, allocations: 52.95 kB / 0.6855 GB, free: 15.28 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 2.776e-06/0.7224, allocations: 0 / 0.6855 GB, free: 15.28 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.555e-06/0.7224, allocations: 1.25 kB / 0.6855 GB, free: 15.28 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 5.761e-06/0.7224, allocations: 0 / 0.6855 GB, free: 15.28 MB / 0.5261 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.0006129/0.723, allocations: 388.9 kB / 0.6858 GB, free: 14.9 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.035e-05/0.7231, allocations: 9.812 kB / 0.6858 GB, free: 14.9 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.24e-05/0.7231, allocations: 32.86 kB / 0.6859 GB, free: 14.86 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.201e-05/0.7232, allocations: 12.83 kB / 0.6859 GB, free: 14.85 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001302/0.7233, allocations: 178 kB / 0.686 GB, free: 14.64 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.674e-05/0.7233, allocations: 2.781 kB / 0.6861 GB, free: 14.64 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.181e-05/0.7234, allocations: 10.5 kB / 0.6861 GB, free: 14.64 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002822/0.7237, allocations: 91.45 kB / 0.6861 GB, free: 14.57 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.658e-06/0.7237, allocations: 0.8438 kB / 0.6861 GB, free: 14.57 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.598e-05/0.7237, allocations: 1.438 kB / 0.6862 GB, free: 14.57 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.021e-06/0.7237, allocations: 1.312 kB / 0.6862 GB, free: 14.57 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002716/0.724, allocations: 65.44 kB / 0.6862 GB, free: 14.55 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000575/0.7246, allocations: 330.3 kB / 0.6865 GB, free: 14.25 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002015/0.7248, allocations: 62.31 kB / 0.6866 GB, free: 14.2 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 2.186e-05/0.7248, allocations: 1.812 kB / 0.6866 GB, free: 14.2 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.009e-05/0.7249, allocations: 36.61 kB / 0.6866 GB, free: 14.16 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=4): time 1.994e-06/0.7249, allocations: 0 / 0.6866 GB, free: 14.16 MB / 0.5261 GB Notification: Performance of matching and sorting (n=4): time 0.0005224/0.7254, allocations: 112 kB / 0.6867 GB, free: 14.11 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.671e-05/0.7255, allocations: 78.42 kB / 0.6868 GB, free: 14.02 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001116/0.7256, allocations: 133.1 kB / 0.6869 GB, free: 13.9 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 1.989e-05/0.7256, allocations: 26.83 kB / 0.687 GB, free: 13.87 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 5.404e-05/0.7257, allocations: 97.91 kB / 0.6871 GB, free: 13.78 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 2.469e-05/0.7257, allocations: 20.61 kB / 0.6871 GB, free: 13.76 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.584e-06/0.7257, allocations: 0 / 0.6871 GB, free: 13.76 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 6.648e-05/0.7258, allocations: 319.4 kB / 0.6874 GB, free: 13.45 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001368/0.726, allocations: 31.86 kB / 0.6874 GB, free: 13.43 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000149/0.7261, allocations: 45.72 kB / 0.6875 GB, free: 13.41 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001376/0.7263, allocations: 27.17 kB / 0.6875 GB, free: 13.4 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.7263, allocations: 0 / 0.6875 GB, free: 13.4 MB / 0.5261 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0003335/0.7266, allocations: 92.3 kB / 0.6876 GB, free: 13.35 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.948e-05/0.7267, allocations: 12.8 kB / 0.6876 GB, free: 13.34 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.921e-06/0.7267, allocations: 0 / 0.6876 GB, free: 13.34 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.594e-05/0.7267, allocations: 1.375 kB / 0.6876 GB, free: 13.34 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000177/0.7269, allocations: 12.25 kB / 0.6876 GB, free: 13.34 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.785e-06/0.7269, allocations: 4 kB / 0.6876 GB, free: 13.34 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001504/0.7271, allocations: 18.92 kB / 0.6876 GB, free: 13.34 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.581e-05/0.7271, allocations: 3.109 kB / 0.6876 GB, free: 13.34 MB / 0.5261 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 9.199e-05/0.7272, allocations: 125.1 kB / 0.6877 GB, free: 13.21 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.804e-05/0.7272, allocations: 9.062 kB / 0.6877 GB, free: 13.2 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.899e-05/0.7273, allocations: 19.17 kB / 0.6878 GB, free: 13.18 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.287e-06/0.7273, allocations: 0 / 0.6878 GB, free: 13.18 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.97e-06/0.7273, allocations: 1.031 kB / 0.6878 GB, free: 13.18 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.7273, allocations: 0.7031 kB / 0.6878 GB, free: 13.18 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002212/0.7276, allocations: 184.2 kB / 0.6879 GB, free: 12.98 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.7276, allocations: 0 / 0.6879 GB, free: 12.98 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001244/0.7277, allocations: 12.06 kB / 0.6879 GB, free: 12.98 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.066e-06/0.7277, allocations: 4 kB / 0.688 GB, free: 12.98 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.445e-05/0.7278, allocations: 1.828 kB / 0.688 GB, free: 12.98 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.138e-06/0.7278, allocations: 8.688 kB / 0.688 GB, free: 12.97 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.685e-06/0.7278, allocations: 1.312 kB / 0.688 GB, free: 12.97 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003424/0.7281, allocations: 189.6 kB / 0.6881 GB, free: 12.82 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 3.361e-05/0.7282, allocations: 80 kB / 0.6882 GB, free: 12.72 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.145e-05/0.7282, allocations: 5.344 kB / 0.6882 GB, free: 12.72 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001758/0.7284, allocations: 14.39 kB / 0.6882 GB, free: 12.72 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.687e-05/0.7285, allocations: 13.2 kB / 0.6883 GB, free: 12.71 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.104e-05/0.7285, allocations: 1.656 kB / 0.6883 GB, free: 12.71 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 6.963e-05/0.7286, allocations: 102.3 kB / 0.6884 GB, free: 12.63 MB / 0.5261 GB Notification: Performance of sort global known variables: time 3.8e-07/0.7286, allocations: 4 kB / 0.6884 GB, free: 12.63 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0003193/0.7289, allocations: 14.81 kB / 0.6884 GB, free: 12.62 MB / 0.5261 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.000547/0.7295, allocations: 0.7185 MB / 0.6891 GB, free: 11.95 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0003426/0.7298, allocations: 62.86 kB / 0.6891 GB, free: 11.94 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.7299, allocations: 1.438 kB / 0.6891 GB, free: 11.94 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0001503/0.73, allocations: 36.09 kB / 0.6892 GB, free: 11.93 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002503/0.7303, allocations: 16.61 kB / 0.6892 GB, free: 11.91 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001376/0.7317, allocations: 0.5881 MB / 0.6898 GB, free: 11.49 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001622/0.7319, allocations: 0.6932 MB / 0.6904 GB, free: 10.79 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 7.194e-05/0.7319, allocations: 7.344 kB / 0.6904 GB, free: 10.79 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.144e-05/0.732, allocations: 25.69 kB / 0.6905 GB, free: 10.77 MB / 0.5261 GB Notification: Performance of SimCode: time 8.92e-07/0.732, allocations: 0 / 0.6905 GB, free: 10.77 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02099/0.753, allocations: 1.708 MB / 0.6921 GB, free: 10.55 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002787/0.7534, allocations: 221.7 kB / 0.6923 GB, free: 10.31 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.336/3.09, allocations: 0 / 0.6923 GB, free: 10.31 MB / 0.5261 GB