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 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.LinearPiecewiseTwo,fileNamePrefix="Buildings_6_0_0_Buildings_Examples_ChillerPlant_BaseClasses_Controls_Examples_LinearPiecewiseTwo",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.01105/0.01105, allocations: 106.2 kB / 15.05 MB, free: 5.984 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.0012/0.0012, allocations: 183.8 kB / 15.94 MB, free: 5.941 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 2.026/2.026, allocations: 194.5 MB / 211.3 MB, free: 11.07 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.263/2.263, allocations: 236.1 MB / 492.6 MB, free: 11.35 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004847/0.0004849, allocations: 12 kB / 0.587 GB, free: 2.047 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6758/0.6764, allocations: 98.71 MB / 0.6834 GB, free: 16.63 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2739/0.9504, allocations: 127 MB / 0.8074 GB, free: 15.18 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003381/0.9508, allocations: 95.88 kB / 0.8075 GB, free: 15.08 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.01928/0.9701, allocations: 4.552 MB / 0.812 GB, free: 10.52 MB / 0.6355 GB Notification: Performance of FrontEnd: time 4.839e-06/0.9701, allocations: 4 kB / 0.812 GB, free: 10.52 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 3.676e-05/0.9702, allocations: 4 kB / 0.812 GB, free: 10.52 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.00112/0.9713, allocations: 0.6223 MB / 0.8126 GB, free: 9.832 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.431e-05/0.9714, allocations: 8.031 kB / 0.8126 GB, free: 9.824 MB / 0.6355 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.128e-05/0.9714, allocations: 46.48 kB / 0.8126 GB, free: 9.77 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001067/0.9715, allocations: 31.58 kB / 0.8127 GB, free: 9.738 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009304/0.9725, allocations: 417.2 kB / 0.8131 GB, free: 9.289 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.546e-05/0.9725, allocations: 0 / 0.8131 GB, free: 9.289 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.686e-05/0.9726, allocations: 8 kB / 0.8131 GB, free: 9.281 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002606/0.9728, allocations: 77.67 kB / 0.8131 GB, free: 9.199 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.232e-05/0.9729, allocations: 0 / 0.8131 GB, free: 9.199 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.502e-05/0.9729, allocations: 0 / 0.8131 GB, free: 9.199 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.282e-06/0.9729, allocations: 0 / 0.8131 GB, free: 9.199 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002293/0.9731, allocations: 55.97 kB / 0.8132 GB, free: 9.145 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00101/0.9741, allocations: 0.4965 MB / 0.8137 GB, free: 8.598 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002012/0.9744, allocations: 58.52 kB / 0.8137 GB, free: 8.531 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 2.93e-05/0.9744, allocations: 7.938 kB / 0.8137 GB, free: 8.523 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.796e-05/0.9745, allocations: 30.56 kB / 0.8138 GB, free: 8.484 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=3): time 2.294e-06/0.9745, allocations: 0 / 0.8138 GB, free: 8.484 MB / 0.6355 GB Notification: Performance of matching and sorting (n=3): time 0.0004677/0.9749, allocations: 109.5 kB / 0.8139 GB, free: 8.371 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.881e-05/0.975, allocations: 55.39 kB / 0.8139 GB, free: 8.305 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009912/0.976, allocations: 496.8 kB / 0.8144 GB, free: 7.812 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.744e-05/0.9761, allocations: 25.7 kB / 0.8144 GB, free: 7.781 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001593/0.9762, allocations: 164 kB / 0.8146 GB, free: 7.617 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.496e-05/0.9763, allocations: 11.81 kB / 0.8146 GB, free: 7.605 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.767e-06/0.9763, allocations: 112 / 0.8146 GB, free: 7.605 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001513/0.9764, allocations: 346.7 kB / 0.8149 GB, free: 7.258 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000111/0.9766, allocations: 16 kB / 0.8149 GB, free: 7.242 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.995e-05/0.9767, allocations: 27.92 kB / 0.815 GB, free: 7.215 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001431/0.9768, allocations: 75.39 kB / 0.815 GB, free: 7.129 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.956e-06/0.9768, allocations: 0 / 0.815 GB, free: 7.129 MB / 0.6355 GB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0004143/0.9773, allocations: 156.8 kB / 0.8152 GB, free: 6.957 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 5.785e-05/0.9773, allocations: 55.41 kB / 0.8152 GB, free: 6.891 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.272e-06/0.9773, allocations: 0 / 0.8152 GB, free: 6.891 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.947e-05/0.9774, allocations: 4 kB / 0.8152 GB, free: 6.887 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001502/0.9775, allocations: 11.98 kB / 0.8153 GB, free: 6.875 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.422e-06/0.9776, allocations: 0 / 0.8153 GB, free: 6.875 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001469/0.9777, allocations: 15.84 kB / 0.8153 GB, free: 6.859 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.234e-05/0.9777, allocations: 4 kB / 0.8153 GB, free: 6.855 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 () * Number of clocked 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 0.0002795/0.978, allocations: 173.8 kB / 0.8154 GB, free: 6.676 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.961e-05/0.9781, allocations: 35.61 kB / 0.8155 GB, free: 6.641 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003855/0.9785, allocations: 112 kB / 0.8156 GB, free: 6.523 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.278e-06/0.9785, allocations: 0 / 0.8156 GB, free: 6.523 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.9786, allocations: 0 / 0.8156 GB, free: 6.523 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.557e-06/0.9786, allocations: 0 / 0.8156 GB, free: 6.523 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004333/0.979, allocations: 301.4 kB / 0.8159 GB, free: 6.18 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.705e-06/0.979, allocations: 0 / 0.8159 GB, free: 6.18 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.597e-05/0.9791, allocations: 4 kB / 0.8159 GB, free: 6.176 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.116e-05/0.9791, allocations: 7.984 kB / 0.8159 GB, free: 6.168 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.209e-05/0.9792, allocations: 3.953 kB / 0.8159 GB, free: 6.164 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.719e-06/0.9792, allocations: 3.984 kB / 0.8159 GB, free: 6.16 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.9792, allocations: 4 kB / 0.8159 GB, free: 6.156 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003387/0.9795, allocations: 187.2 kB / 0.8161 GB, free: 5.957 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001738/0.9797, allocations: 132.7 kB / 0.8162 GB, free: 5.809 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.837e-05/0.9798, allocations: 0 / 0.8162 GB, free: 5.809 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001503/0.9799, allocations: 8.141 kB / 0.8162 GB, free: 5.801 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.426e-05/0.98, allocations: 11.98 kB / 0.8162 GB, free: 5.789 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.246e-06/0.98, allocations: 0 / 0.8162 GB, free: 5.789 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 0.0007753/0.9808, allocations: 391.1 kB / 0.8166 GB, free: 5.406 MB / 0.6355 GB Notification: Performance of sort global known variables: time 4.41e-07/0.9808, allocations: 0 / 0.8166 GB, free: 5.406 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0004083/0.9812, allocations: 43.86 kB / 0.8166 GB, free: 5.363 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 () * Number of clocked 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.001438/0.9827, allocations: 0.9233 MB / 0.8175 GB, free: 4.516 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0003572/0.9831, allocations: 154.8 kB / 0.8177 GB, free: 4.34 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.9831, allocations: 0 / 0.8177 GB, free: 4.34 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 0.0001042/0.9832, allocations: 23.97 kB / 0.8177 GB, free: 4.316 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004259/0.9837, allocations: 34.69 kB / 0.8177 GB, free: 4.281 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001884/0.9856, allocations: 0.8615 MB / 0.8186 GB, free: 3.359 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004649/0.9861, allocations: 0.7908 MB / 0.8194 GB, free: 2.543 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 0.0002335/0.9863, allocations: 49.88 kB / 0.8194 GB, free: 2.492 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002145/0.9865, allocations: 83.39 kB / 0.8195 GB, free: 2.41 MB / 0.6355 GB Notification: Performance of SimCode: time 1.112e-06/0.9866, allocations: 0 / 0.8195 GB, free: 2.41 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02743/1.014, allocations: 5.07 MB / 0.8244 GB, free: 13.48 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000286/1.014, allocations: 252.5 kB / 0.8247 GB, free: 13.12 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.673/3.687, allocations: 0 / 0.8247 GB, free: 13.12 MB / 0.6511 GB