Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo) Running command: translateModel(Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_6.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.ChillerSwitch") Notification: Performance of loadModel(Buildings): time 4.079/4.079, allocations: 433.4 MB / 440.9 MB, free: 10.46 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 2.875e-05/2.904e-05, allocations: 4 kB / 0.5325 GB, free: 1.945 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.524/0.524, allocations: 98.71 MB / 0.6289 GB, free: 15.71 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1941/0.7182, allocations: 125.2 MB / 0.7512 GB, free: 2.367 MB / 0.6198 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003118/0.7185, allocations: 91.94 kB / 0.7513 GB, free: 2.277 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 0.005657/0.7242, allocations: 1.432 MB / 0.7527 GB, free: 0.8438 MB / 0.6198 GB Notification: Performance of FrontEnd: time 2.628e-06/0.7243, allocations: 0 / 0.7527 GB, free: 0.8438 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 1.777e-05/0.7243, allocations: 4 kB / 0.7527 GB, free: 0.8398 MB / 0.6198 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.0005024/0.7248, allocations: 382.2 kB / 0.753 GB, free: 432 kB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.263e-05/0.7249, allocations: 12.02 kB / 0.753 GB, free: 420 kB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.472e-05/0.7249, allocations: 11.86 kB / 0.753 GB, free: 408 kB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001764/0.7251, allocations: 175 kB / 0.7532 GB, free: 192 kB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.376e-05/0.7251, allocations: 0 / 0.7532 GB, free: 192 kB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.192e-05/0.7252, allocations: 4 kB / 0.7532 GB, free: 188 kB / 0.6198 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001211/0.7253, allocations: 31.98 kB / 0.7532 GB, free: 156 kB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001683/0.7255, allocations: 75.27 kB / 0.7533 GB, free: 68 kB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.866e-06/0.7255, allocations: 4 kB / 0.7533 GB, free: 64 kB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.53e-05/0.7255, allocations: 0 / 0.7533 GB, free: 64 kB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.716e-06/0.7255, allocations: 0 / 0.7533 GB, free: 64 kB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006464/0.7262, allocations: 297.4 kB / 0.7536 GB, free: 15.73 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001123/0.7263, allocations: 54.5 kB / 0.7537 GB, free: 15.67 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.372e-05/0.7264, allocations: 16.86 kB / 0.7537 GB, free: 15.65 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 1.804e-05/0.7264, allocations: 0 / 0.7537 GB, free: 15.65 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.268e-05/0.7265, allocations: 30.56 kB / 0.7537 GB, free: 15.61 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=4): time 1.895e-06/0.7265, allocations: 0 / 0.7537 GB, free: 15.61 MB / 0.6355 GB Notification: Performance of matching and sorting (n=4): time 0.0002371/0.7267, allocations: 65.62 kB / 0.7538 GB, free: 15.54 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.721e-05/0.7268, allocations: 85.11 kB / 0.7538 GB, free: 15.44 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001288/0.7269, allocations: 121.2 kB / 0.754 GB, free: 15.31 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.65e-05/0.727, allocations: 25.7 kB / 0.754 GB, free: 15.28 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 8.646e-05/0.7271, allocations: 104 kB / 0.7541 GB, free: 15.18 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.185e-05/0.7271, allocations: 7.844 kB / 0.7541 GB, free: 15.17 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.651e-06/0.7271, allocations: 0 / 0.7541 GB, free: 15.17 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001582/0.7273, allocations: 322.8 kB / 0.7544 GB, free: 14.84 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.018e-05/0.7274, allocations: 16 kB / 0.7544 GB, free: 14.83 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.428e-05/0.7274, allocations: 25.72 kB / 0.7544 GB, free: 14.8 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.864e-05/0.7275, allocations: 12 kB / 0.7544 GB, free: 14.79 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.454e-06/0.7275, allocations: 4 kB / 0.7545 GB, free: 14.78 MB / 0.6355 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001623/0.7277, allocations: 61.59 kB / 0.7545 GB, free: 14.71 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.967e-05/0.7277, allocations: 5.406 kB / 0.7545 GB, free: 14.71 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.556e-06/0.7277, allocations: 192 / 0.7545 GB, free: 14.71 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.091e-05/0.7278, allocations: 7.953 kB / 0.7545 GB, free: 14.7 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001598/0.7279, allocations: 23.92 kB / 0.7545 GB, free: 14.68 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.144e-06/0.7279, allocations: 0 / 0.7545 GB, free: 14.68 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001199/0.7281, allocations: 20.02 kB / 0.7546 GB, free: 14.66 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.14e-05/0.7281, allocations: 3.938 kB / 0.7546 GB, free: 14.66 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.691e-05/0.7282, allocations: 103.7 kB / 0.7547 GB, free: 14.55 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.72e-05/0.7283, allocations: 7.906 kB / 0.7547 GB, free: 14.54 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.965e-05/0.7283, allocations: 16.33 kB / 0.7547 GB, free: 14.53 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.669e-06/0.7283, allocations: 0 / 0.7547 GB, free: 14.53 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.452e-06/0.7283, allocations: 3.953 kB / 0.7547 GB, free: 14.52 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.816e-06/0.7284, allocations: 4 kB / 0.7547 GB, free: 14.52 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002384/0.7286, allocations: 162.2 kB / 0.7549 GB, free: 14.32 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.318e-06/0.7286, allocations: 0 / 0.7549 GB, free: 14.32 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001058/0.7287, allocations: 15.98 kB / 0.7549 GB, free: 14.31 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.885e-06/0.7288, allocations: 0 / 0.7549 GB, free: 14.31 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.078e-05/0.7288, allocations: 0 / 0.7549 GB, free: 14.31 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.082e-06/0.7288, allocations: 3.984 kB / 0.7549 GB, free: 14.3 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.569e-06/0.7288, allocations: 3.938 kB / 0.7549 GB, free: 14.3 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002218/0.729, allocations: 163.4 kB / 0.755 GB, free: 14.12 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 6.148e-05/0.7291, allocations: 88.95 kB / 0.7551 GB, free: 14.02 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.733e-05/0.7291, allocations: 0 / 0.7551 GB, free: 14.02 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001514/0.7293, allocations: 11.98 kB / 0.7551 GB, free: 14.01 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.04e-05/0.7294, allocations: 11.97 kB / 0.7551 GB, free: 14 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.227e-06/0.7294, allocations: 4 kB / 0.7551 GB, free: 13.99 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 8.352e-05/0.7295, allocations: 95.28 kB / 0.7552 GB, free: 13.9 MB / 0.6355 GB Notification: Performance of sort global known variables: time 7.63e-07/0.7295, allocations: 4 kB / 0.7552 GB, free: 13.89 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.000333/0.7299, allocations: 11.94 kB / 0.7553 GB, free: 13.88 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.0001461/0.73, allocations: 107.2 kB / 0.7554 GB, free: 13.77 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0001648/0.7302, allocations: 32 kB / 0.7554 GB, free: 13.73 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.749e-06/0.7302, allocations: 0 / 0.7554 GB, free: 13.73 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 6.017e-05/0.7303, allocations: 19.94 kB / 0.7554 GB, free: 13.71 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002254/0.7305, allocations: 7.984 kB / 0.7554 GB, free: 13.71 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003466/0.7309, allocations: 95.75 kB / 0.7555 GB, free: 13.59 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003667/0.7313, allocations: 0.6963 MB / 0.7562 GB, free: 12.87 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 5.995e-05/0.7313, allocations: 4.188 kB / 0.7562 GB, free: 12.86 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.694e-05/0.7314, allocations: 11.42 kB / 0.7562 GB, free: 12.85 MB / 0.6355 GB Notification: Performance of SimCode: time 1.658e-06/0.7314, allocations: 0 / 0.7562 GB, free: 12.85 MB / 0.6355 GB Notification: Performance of Templates: time 0.003586/0.735, allocations: 0.6661 MB / 0.7568 GB, free: 12.19 MB / 0.6355 GB