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/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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.944/3.944, allocations: 433.2 MB / 440.8 MB, free: 4.547 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 2.162e-05/2.169e-05, allocations: 2.938 kB / 0.5325 GB, free: 12.84 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2074/0.2074, allocations: 98.73 MB / 0.6289 GB, free: 9.062 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2579/0.4653, allocations: 126.2 MB / 0.7522 GB, free: 10.68 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003631/0.4658, allocations: 95.88 kB / 0.7522 GB, free: 10.59 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.01945/0.4852, allocations: 4.479 MB / 0.7566 GB, free: 6.102 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.623e-06/0.4853, allocations: 0 / 0.7566 GB, free: 6.102 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 3.936e-05/0.4854, allocations: 7.938 kB / 0.7566 GB, free: 6.094 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.000788/0.4861, allocations: 0.5481 MB / 0.7572 GB, free: 5.488 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.098e-05/0.4862, allocations: 12.03 kB / 0.7572 GB, free: 5.477 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.927e-05/0.4863, allocations: 31.58 kB / 0.7572 GB, free: 5.445 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009358/0.4873, allocations: 399.8 kB / 0.7576 GB, free: 5.016 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.218e-05/0.4873, allocations: 4 kB / 0.7576 GB, free: 5.012 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.127e-05/0.4873, allocations: 4 kB / 0.7576 GB, free: 5.008 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001503/0.4875, allocations: 39.98 kB / 0.7576 GB, free: 4.969 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001647/0.4877, allocations: 65.67 kB / 0.7577 GB, free: 4.898 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.312e-05/0.4877, allocations: 3.984 kB / 0.7577 GB, free: 4.895 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.338e-05/0.4877, allocations: 3.938 kB / 0.7577 GB, free: 4.891 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.147e-05/0.4877, allocations: 3.953 kB / 0.7577 GB, free: 4.887 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009465/0.4887, allocations: 473 kB / 0.7582 GB, free: 4.387 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001517/0.4889, allocations: 42.56 kB / 0.7582 GB, free: 4.336 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.419e-05/0.4889, allocations: 16.88 kB / 0.7582 GB, free: 4.316 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.751e-05/0.489, allocations: 0 / 0.7582 GB, free: 4.316 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.677e-05/0.489, allocations: 42.58 kB / 0.7583 GB, free: 4.266 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=3): time 1.913e-06/0.489, allocations: 4 kB / 0.7583 GB, free: 4.262 MB / 0.6355 GB Notification: Performance of matching and sorting (n=3): time 0.0002697/0.4893, allocations: 77.31 kB / 0.7583 GB, free: 4.18 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.923e-05/0.4894, allocations: 51.41 kB / 0.7584 GB, free: 4.117 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008926/0.4903, allocations: 470.3 kB / 0.7588 GB, free: 3.656 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.322e-05/0.4903, allocations: 25.7 kB / 0.7589 GB, free: 3.625 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001734/0.4905, allocations: 168 kB / 0.759 GB, free: 3.457 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.195e-05/0.4905, allocations: 7.812 kB / 0.759 GB, free: 3.449 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.652e-06/0.4905, allocations: 0 / 0.759 GB, free: 3.449 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001882/0.4907, allocations: 350.8 kB / 0.7594 GB, free: 3.098 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.83e-05/0.4908, allocations: 8 kB / 0.7594 GB, free: 3.09 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.136e-05/0.4908, allocations: 12 kB / 0.7594 GB, free: 3.078 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.628e-05/0.4909, allocations: 15.94 kB / 0.7594 GB, free: 3.062 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.906e-06/0.4909, allocations: 4 kB / 0.7594 GB, free: 3.059 MB / 0.6355 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0002288/0.4912, allocations: 85.34 kB / 0.7595 GB, free: 2.969 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 6.347e-05/0.4912, allocations: 63.34 kB / 0.7595 GB, free: 2.895 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.212e-06/0.4913, allocations: 0 / 0.7595 GB, free: 2.895 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.633e-05/0.4913, allocations: 0 / 0.7595 GB, free: 2.895 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001363/0.4914, allocations: 8 kB / 0.7595 GB, free: 2.887 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.139e-06/0.4915, allocations: 4.188 kB / 0.7595 GB, free: 2.883 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001266/0.4916, allocations: 15.89 kB / 0.7596 GB, free: 2.867 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.143e-05/0.4916, allocations: 4 kB / 0.7596 GB, free: 2.863 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 8.437e-05/0.4917, allocations: 101 kB / 0.7597 GB, free: 2.758 MB / 0.6355 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001977/0.4919, allocations: 77.41 kB / 0.7597 GB, free: 2.676 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.153e-05/0.492, allocations: 31.58 kB / 0.7598 GB, free: 2.645 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002664/0.4923, allocations: 96.31 kB / 0.7599 GB, free: 2.539 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.368e-06/0.4923, allocations: 4 kB / 0.7599 GB, free: 2.535 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.384e-06/0.4923, allocations: 112 / 0.7599 GB, free: 2.535 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.317e-06/0.4923, allocations: 3.938 kB / 0.7599 GB, free: 2.531 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004181/0.4928, allocations: 274 kB / 0.7601 GB, free: 2.227 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.515e-06/0.4928, allocations: 0 / 0.7601 GB, free: 2.227 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.004e-05/0.4929, allocations: 8 kB / 0.7601 GB, free: 2.219 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.062e-06/0.4929, allocations: 3.953 kB / 0.7601 GB, free: 2.215 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.876e-06/0.4929, allocations: 144 / 0.7601 GB, free: 2.215 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.894e-06/0.4929, allocations: 0 / 0.7601 GB, free: 2.215 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.006e-06/0.4929, allocations: 0 / 0.7601 GB, free: 2.215 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002482/0.4932, allocations: 187.1 kB / 0.7603 GB, free: 2.016 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001853/0.4934, allocations: 136.7 kB / 0.7604 GB, free: 1.863 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.216e-05/0.4935, allocations: 3.953 kB / 0.7604 GB, free: 1.859 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001531/0.4936, allocations: 4 kB / 0.7605 GB, free: 1.855 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.45e-05/0.4937, allocations: 0 / 0.7605 GB, free: 1.855 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.087e-05/0.4937, allocations: 3.984 kB / 0.7605 GB, free: 1.852 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 0.0006627/0.4944, allocations: 368.5 kB / 0.7608 GB, free: 1.488 MB / 0.6355 GB Notification: Performance of sort global known variables: time 4.41e-07/0.4944, allocations: 0 / 0.7608 GB, free: 1.488 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0003953/0.4948, allocations: 39.94 kB / 0.7608 GB, free: 1.449 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.00123/0.496, allocations: 0.8593 MB / 0.7617 GB, free: 0.5898 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0002324/0.4963, allocations: 142.7 kB / 0.7618 GB, free: 436 kB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.564e-06/0.4963, allocations: 0 / 0.7618 GB, free: 436 kB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 5.109e-05/0.4964, allocations: 19.98 kB / 0.7618 GB, free: 416 kB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004079/0.4968, allocations: 31.22 kB / 0.7619 GB, free: 384 kB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001335/0.4981, allocations: 471.9 kB / 0.7623 GB, free: 15.88 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004915/0.4987, allocations: 0.7829 MB / 0.7631 GB, free: 15.07 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 0.0002006/0.4989, allocations: 50.05 kB / 0.7631 GB, free: 15.02 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002045/0.4991, allocations: 79.41 kB / 0.7632 GB, free: 14.94 MB / 0.6511 GB Notification: Performance of SimCode: time 1.423e-06/0.4991, allocations: 0 / 0.7632 GB, free: 14.94 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04076/0.5399, allocations: 4.404 MB / 0.7675 GB, free: 10.55 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003549/0.5403, allocations: 218.8 kB / 0.7677 GB, free: 10.25 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.413/2.953, allocations: 0 / 0.7677 GB, free: 10.25 MB / 0.6511 GB