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.LinearPiecewiseTwo.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.LinearPiecewiseTwo,fileNamePrefix="Buildings_6_0_0_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Buildings): time 3.98/3.98, allocations: 432.6 MB / 445.2 MB, free: 15.73 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 3.063e-05/3.075e-05, allocations: 3.5 kB / 0.5383 GB, free: 10.26 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2057/0.2057, allocations: 98.74 MB / 0.6347 GB, free: 1.855 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2307/0.4365, allocations: 126.9 MB / 0.7586 GB, free: 2.82 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003464/0.4369, allocations: 95.94 kB / 0.7587 GB, free: 2.727 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.01847/0.4554, allocations: 4.53 MB / 0.7631 GB, free: 14.19 MB / 0.6511 GB Notification: Performance of FrontEnd: time 1.503e-06/0.4555, allocations: 0 / 0.7631 GB, free: 14.19 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 3.864e-05/0.4555, allocations: 8 kB / 0.7631 GB, free: 14.18 MB / 0.6511 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.0007076/0.4562, allocations: 0.5558 MB / 0.7637 GB, free: 13.57 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 4.679e-05/0.4563, allocations: 8.031 kB / 0.7637 GB, free: 13.56 MB / 0.6511 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.038e-05/0.4564, allocations: 42.55 kB / 0.7637 GB, free: 13.51 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.091e-05/0.4565, allocations: 31.58 kB / 0.7638 GB, free: 13.48 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008736/0.4573, allocations: 399.8 kB / 0.7641 GB, free: 13.04 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.202e-05/0.4574, allocations: 0 / 0.7641 GB, free: 13.04 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.473e-05/0.4574, allocations: 8 kB / 0.7642 GB, free: 13.04 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001915/0.4576, allocations: 81.59 kB / 0.7642 GB, free: 12.95 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.075e-05/0.4576, allocations: 0 / 0.7642 GB, free: 12.95 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.31e-05/0.4577, allocations: 3.938 kB / 0.7642 GB, free: 12.95 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.34e-06/0.4577, allocations: 4 kB / 0.7642 GB, free: 12.94 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001384/0.4578, allocations: 43.98 kB / 0.7643 GB, free: 12.9 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000898/0.4587, allocations: 492.5 kB / 0.7647 GB, free: 12.37 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001408/0.4589, allocations: 42.53 kB / 0.7648 GB, free: 12.32 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.134e-05/0.459, allocations: 25 kB / 0.7648 GB, free: 12.29 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 2.596e-05/0.459, allocations: 0 / 0.7648 GB, free: 12.29 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.52e-05/0.459, allocations: 34.56 kB / 0.7648 GB, free: 12.25 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=3): time 1.753e-06/0.4591, allocations: 4 kB / 0.7648 GB, free: 12.24 MB / 0.6511 GB Notification: Performance of matching and sorting (n=3): time 0.0002654/0.4593, allocations: 81.25 kB / 0.7649 GB, free: 12.16 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.498e-05/0.4594, allocations: 51.41 kB / 0.765 GB, free: 12.09 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009128/0.4603, allocations: 487.6 kB / 0.7654 GB, free: 11.61 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 2.022e-05/0.4604, allocations: 29.7 kB / 0.7655 GB, free: 11.58 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001613/0.4605, allocations: 164 kB / 0.7656 GB, free: 11.41 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 2.605e-05/0.4606, allocations: 19.8 kB / 0.7656 GB, free: 11.39 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.292e-06/0.4606, allocations: 0 / 0.7656 GB, free: 11.39 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001466/0.4607, allocations: 338.8 kB / 0.766 GB, free: 11.05 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.016e-05/0.4608, allocations: 12 kB / 0.766 GB, free: 11.04 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.197e-05/0.4608, allocations: 12 kB / 0.766 GB, free: 11.03 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.521e-05/0.4609, allocations: 67.39 kB / 0.7661 GB, free: 10.95 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.461, allocations: 0 / 0.7661 GB, free: 10.95 MB / 0.6511 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0002505/0.4612, allocations: 156.8 kB / 0.7662 GB, free: 10.78 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 4.888e-05/0.4613, allocations: 55.41 kB / 0.7663 GB, free: 10.71 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.029e-06/0.4613, allocations: 0 / 0.7663 GB, free: 10.71 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.351e-05/0.4613, allocations: 4 kB / 0.7663 GB, free: 10.71 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001153/0.4615, allocations: 11.98 kB / 0.7663 GB, free: 10.7 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.804e-06/0.4615, allocations: 0 / 0.7663 GB, free: 10.7 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001214/0.4616, allocations: 15.84 kB / 0.7663 GB, free: 10.68 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.41e-05/0.4616, allocations: 112 / 0.7663 GB, free: 10.68 MB / 0.6511 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 7.564e-05/0.4617, allocations: 108.9 kB / 0.7664 GB, free: 10.57 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.422e-05/0.4618, allocations: 35.67 kB / 0.7664 GB, free: 10.54 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002511/0.4621, allocations: 99.91 kB / 0.7665 GB, free: 10.43 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.247e-06/0.4621, allocations: 0 / 0.7665 GB, free: 10.43 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.09e-06/0.4621, allocations: 0 / 0.7665 GB, free: 10.43 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.4621, allocations: 0 / 0.7665 GB, free: 10.43 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003906/0.4625, allocations: 297.5 kB / 0.7668 GB, free: 10.09 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.38e-06/0.4625, allocations: 4 kB / 0.7668 GB, free: 10.09 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.475e-05/0.4626, allocations: 7.984 kB / 0.7668 GB, free: 10.08 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.506e-06/0.4627, allocations: 96 / 0.7668 GB, free: 10.08 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.594e-05/0.4627, allocations: 15.94 kB / 0.7668 GB, free: 10.06 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.004e-06/0.4627, allocations: 0 / 0.7668 GB, free: 10.06 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.4627, allocations: 0 / 0.7668 GB, free: 10.06 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002283/0.4629, allocations: 171.3 kB / 0.767 GB, free: 9.879 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002005/0.4632, allocations: 132.7 kB / 0.7671 GB, free: 9.73 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.978e-05/0.4632, allocations: 4 kB / 0.7671 GB, free: 9.727 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001527/0.4634, allocations: 11.83 kB / 0.7671 GB, free: 9.715 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.972e-05/0.4634, allocations: 8 kB / 0.7671 GB, free: 9.707 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.913e-06/0.4635, allocations: 0 / 0.7671 GB, free: 9.707 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 0.0006871/0.4642, allocations: 390.1 kB / 0.7675 GB, free: 9.324 MB / 0.6511 GB Notification: Performance of sort global known variables: time 4.3e-07/0.4642, allocations: 0 / 0.7675 GB, free: 9.324 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0003603/0.4645, allocations: 35.84 kB / 0.7675 GB, free: 9.289 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: 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.001173/0.4657, allocations: 0.8698 MB / 0.7684 GB, free: 8.457 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0002244/0.466, allocations: 154.7 kB / 0.7685 GB, free: 8.281 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.466, allocations: 0 / 0.7685 GB, free: 8.281 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 5.139e-05/0.466, allocations: 12 kB / 0.7686 GB, free: 8.27 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003314/0.4664, allocations: 40.38 kB / 0.7686 GB, free: 8.23 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001223/0.4676, allocations: 490.2 kB / 0.7691 GB, free: 7.711 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004406/0.4681, allocations: 0.7831 MB / 0.7698 GB, free: 6.902 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0001741/0.4683, allocations: 46.05 kB / 0.7699 GB, free: 6.859 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000212/0.4685, allocations: 83.41 kB / 0.77 GB, free: 6.781 MB / 0.6511 GB Notification: Performance of SimCode: time 2.595e-06/0.4685, allocations: 0 / 0.77 GB, free: 6.781 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02765/0.4962, allocations: 5.089 MB / 0.7749 GB, free: 1.797 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002768/0.4965, allocations: 235.2 kB / 0.7751 GB, free: 1.512 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.526/3.022, allocations: 0 / 0.7751 GB, free: 1.512 MB / 0.6511 GB