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.LinearPiecewiseTwo.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.LinearPiecewiseTwo,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_6.0.0_Buildings.Examples.ChillerPlant.BaseClasses.Controls.Examples.LinearPiecewiseTwo") Notification: Performance of loadModel(Buildings): time 4.009/4.009, allocations: 433.4 MB / 440.9 MB, free: 10.38 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 2.559e-05/2.576e-05, allocations: 3.938 kB / 0.5325 GB, free: 1.848 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5378/0.5379, allocations: 98.71 MB / 0.6289 GB, free: 15.7 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.196/0.7339, allocations: 126.2 MB / 0.7522 GB, free: 1.324 MB / 0.6198 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002938/0.7342, allocations: 95.94 kB / 0.7523 GB, free: 1.23 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 0.01798/0.7522, allocations: 4.476 MB / 0.7566 GB, free: 12.75 MB / 0.6355 GB Notification: Performance of FrontEnd: time 2.422e-06/0.7523, allocations: 0 / 0.7566 GB, free: 12.75 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 3.552e-05/0.7523, allocations: 8 kB / 0.7566 GB, free: 12.74 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.000772/0.7531, allocations: 0.5442 MB / 0.7572 GB, free: 12.14 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.568e-05/0.7531, allocations: 16.02 kB / 0.7572 GB, free: 12.12 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.975e-05/0.7533, allocations: 35.58 kB / 0.7572 GB, free: 12.09 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008323/0.7541, allocations: 399.8 kB / 0.7576 GB, free: 11.66 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.524e-05/0.7541, allocations: 4 kB / 0.7576 GB, free: 11.65 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.329e-05/0.7542, allocations: 4 kB / 0.7576 GB, free: 11.65 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001291/0.7543, allocations: 35.98 kB / 0.7576 GB, free: 11.61 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001575/0.7545, allocations: 63.62 kB / 0.7577 GB, free: 11.55 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.961e-06/0.7545, allocations: 0 / 0.7577 GB, free: 11.55 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.476e-05/0.7545, allocations: 4 kB / 0.7577 GB, free: 11.54 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.639e-06/0.7545, allocations: 0 / 0.7577 GB, free: 11.54 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008926/0.7554, allocations: 476.9 kB / 0.7582 GB, free: 11.04 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001415/0.7556, allocations: 50.5 kB / 0.7582 GB, free: 10.98 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.535e-05/0.7557, allocations: 16.92 kB / 0.7582 GB, free: 10.96 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.697e-05/0.7557, allocations: 7.953 kB / 0.7582 GB, free: 10.95 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.645e-05/0.7557, allocations: 30.56 kB / 0.7583 GB, free: 10.91 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=3): time 2.584e-06/0.7558, allocations: 0 / 0.7583 GB, free: 10.91 MB / 0.6355 GB Notification: Performance of matching and sorting (n=3): time 0.0002648/0.756, allocations: 81.41 kB / 0.7583 GB, free: 10.83 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.83e-05/0.7561, allocations: 51.41 kB / 0.7584 GB, free: 10.77 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008094/0.7569, allocations: 470.3 kB / 0.7588 GB, free: 10.3 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.68e-05/0.7569, allocations: 25.7 kB / 0.7589 GB, free: 10.27 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001901/0.7571, allocations: 167.9 kB / 0.759 GB, free: 10.11 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.231e-05/0.7572, allocations: 15.81 kB / 0.759 GB, free: 10.09 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.75e-06/0.7572, allocations: 0 / 0.759 GB, free: 10.09 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0002016/0.7574, allocations: 338.8 kB / 0.7594 GB, free: 9.75 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.129e-05/0.7575, allocations: 15.98 kB / 0.7594 GB, free: 9.734 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.998e-05/0.7575, allocations: 11.94 kB / 0.7594 GB, free: 9.723 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.777e-05/0.7576, allocations: 12 kB / 0.7594 GB, free: 9.711 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.819e-06/0.7576, allocations: 0 / 0.7594 GB, free: 9.711 MB / 0.6355 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0002341/0.7578, allocations: 85.45 kB / 0.7595 GB, free: 9.621 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 6.924e-05/0.7579, allocations: 67.34 kB / 0.7596 GB, free: 9.543 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.565e-06/0.758, allocations: 7.984 kB / 0.7596 GB, free: 9.535 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.375e-05/0.758, allocations: 0 / 0.7596 GB, free: 9.535 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001235/0.7581, allocations: 8 kB / 0.7596 GB, free: 9.527 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.261e-06/0.7581, allocations: 3.984 kB / 0.7596 GB, free: 9.523 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001103/0.7582, allocations: 7.906 kB / 0.7596 GB, free: 9.516 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.583e-05/0.7583, allocations: 3.984 kB / 0.7596 GB, free: 9.512 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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 2 * 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.524e-05/0.7584, allocations: 108.9 kB / 0.7597 GB, free: 9.398 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.711e-05/0.7585, allocations: 27.62 kB / 0.7597 GB, free: 9.371 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002687/0.7588, allocations: 100.3 kB / 0.7598 GB, free: 9.262 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.745e-06/0.7588, allocations: 4.172 kB / 0.7598 GB, free: 9.258 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.418e-06/0.7588, allocations: 4 kB / 0.7598 GB, free: 9.254 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.649e-06/0.7588, allocations: 0 / 0.7598 GB, free: 9.254 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004053/0.7592, allocations: 266.1 kB / 0.7601 GB, free: 8.957 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.001e-06/0.7592, allocations: 0 / 0.7601 GB, free: 8.957 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.717e-05/0.7593, allocations: 11.98 kB / 0.7601 GB, free: 8.945 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.089e-05/0.7594, allocations: 4.109 kB / 0.7601 GB, free: 8.941 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.027e-06/0.7594, allocations: 3.938 kB / 0.7601 GB, free: 8.938 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.676e-06/0.7594, allocations: 0 / 0.7601 GB, free: 8.938 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.997e-06/0.7594, allocations: 7.953 kB / 0.7601 GB, free: 8.93 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002611/0.7597, allocations: 175.1 kB / 0.7603 GB, free: 8.742 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001785/0.7599, allocations: 132.7 kB / 0.7604 GB, free: 8.594 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.309e-05/0.7599, allocations: 0 / 0.7604 GB, free: 8.594 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001408/0.7601, allocations: 4 kB / 0.7604 GB, free: 8.59 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.964e-05/0.7601, allocations: 4 kB / 0.7604 GB, free: 8.586 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.041e-05/0.7601, allocations: 3.953 kB / 0.7604 GB, free: 8.582 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 0.0006124/0.7608, allocations: 376.5 kB / 0.7608 GB, free: 8.211 MB / 0.6355 GB Notification: Performance of sort global known variables: time 8.51e-07/0.7608, allocations: 0 / 0.7608 GB, free: 8.211 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0004221/0.7612, allocations: 35.91 kB / 0.7608 GB, free: 8.176 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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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.0008653/0.7621, allocations: 256.1 kB / 0.761 GB, free: 7.945 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0002473/0.7624, allocations: 138.8 kB / 0.7612 GB, free: 7.785 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.989e-06/0.7624, allocations: 0 / 0.7612 GB, free: 7.785 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 5.076e-05/0.7624, allocations: 15.94 kB / 0.7612 GB, free: 7.77 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000357/0.7628, allocations: 37.33 kB / 0.7612 GB, free: 7.73 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009205/0.7637, allocations: 378.3 kB / 0.7616 GB, free: 7.34 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005563/0.7643, allocations: 0.7829 MB / 0.7623 GB, free: 6.531 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 0.0001888/0.7645, allocations: 50.05 kB / 0.7624 GB, free: 6.48 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.116e-05/0.7646, allocations: 23.44 kB / 0.7624 GB, free: 6.461 MB / 0.6355 GB Notification: Performance of SimCode: time 1.935e-06/0.7646, allocations: 0 / 0.7624 GB, free: 6.461 MB / 0.6355 GB Notification: Performance of Templates: time 0.007622/0.7723, allocations: 1.916 MB / 0.7643 GB, free: 4.559 MB / 0.6355 GB