Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Fluid.Examples.Performance.Example4.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Fluid.Examples.Performance.Example4,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|res.m_flow",fileNamePrefix="Buildings_10_Buildings.Fluid.Examples.Performance.Example4") translateModel(Buildings.Fluid.Examples.Performance.Example4,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|res.m_flow",fileNamePrefix="Buildings_10_Buildings.Fluid.Examples.Performance.Example4") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001171/0.001171, allocations: 92.47 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001495/0.001495, allocations: 184.2 kB / 16.92 MB, free: 6.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.366/1.366, allocations: 223.3 MB / 241 MB, free: 5.352 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.578/2.578, allocations: 437.8 MB / 0.7128 GB, free: 6.969 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004112/0.0004114, allocations: 12 kB / 0.8735 GB, free: 3.316 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.641/0.6415, allocations: 153.8 MB / 1.024 GB, free: 15.89 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Examples.Performance.Example4): time 0.8386/1.48, allocations: 232.2 MB / 1.25 GB, free: 2.297 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.02112/1.501, allocations: 15.73 MB / 1.266 GB, free: 2.133 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002728/1.504, allocations: 53.81 kB / 1.266 GB, free: 2.133 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.002916/1.507, allocations: 0.877 MB / 1.267 GB, free: 2.109 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.009128/1.516, allocations: 2.791 MB / 1.269 GB, free: 1.98 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.005105/1.521, allocations: 1.517 MB / 1.271 GB, free: 1.922 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.007302/1.529, allocations: 4.654 MB / 1.276 GB, free: 1.91 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002079/1.531, allocations: 1.037 MB / 1.277 GB, free: 1.75 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.007248/1.538, allocations: 2.224 MB / 1.279 GB, free: 1.691 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00326/1.541, allocations: 1.071 MB / 1.28 GB, free: 1.688 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 0.0003044/1.542, allocations: 47.06 kB / 1.28 GB, free: 1.688 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007558/1.549, allocations: 3.577 MB / 1.283 GB, free: 1.652 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0007046/1.55, allocations: 400.7 kB / 1.284 GB, free: 1.652 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.001538/1.551, allocations: 0.7477 MB / 1.284 GB, free: 17.62 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.003526/1.555, allocations: 2.145 MB / 1.286 GB, free: 17.45 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/1.555, allocations: 0 / 1.286 GB, free: 17.45 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.803e-06/1.555, allocations: 0 / 1.286 GB, free: 17.45 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 2.211e-05/1.555, allocations: 0 / 1.286 GB, free: 17.45 MB / 0.9981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 251 * Number of variables: 251 Notification: Performance of Generate backend data structure: time 0.003671/1.559, allocations: 1.717 MB / 1.288 GB, free: 16.45 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.844e-05/1.559, allocations: 11.56 kB / 1.288 GB, free: 16.45 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002772/1.562, allocations: 0.5315 MB / 1.289 GB, free: 16.34 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002298/1.564, allocations: 1.122 MB / 1.29 GB, free: 15.95 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008959/1.565, allocations: 276.3 kB / 1.29 GB, free: 15.92 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001345/1.565, allocations: 95.72 kB / 1.29 GB, free: 15.92 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002243/1.567, allocations: 1.343 MB / 1.291 GB, free: 15.63 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.46e-05/1.567, allocations: 2.906 kB / 1.291 GB, free: 15.63 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.654e-05/1.567, allocations: 47.61 kB / 1.292 GB, free: 15.63 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.706e-05/1.567, allocations: 39.53 kB / 1.292 GB, free: 15.63 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002308/1.57, allocations: 1.126 MB / 1.293 GB, free: 15.6 MB / 0.9981 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007475/1.577, allocations: 6.65 MB / 1.299 GB, free: 11.4 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001672/1.579, allocations: 0.6018 MB / 1.3 GB, free: 11.35 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006651/1.58, allocations: 291.6 kB / 1.3 GB, free: 11.34 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003808/1.58, allocations: 283 kB / 1.3 GB, free: 11.05 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.7e-05/1.58, allocations: 41.69 kB / 1.3 GB, free: 11.01 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=33): time 2.755e-06/1.58, allocations: 0 / 1.3 GB, free: 11.01 MB / 0.9981 GB Notification: Performance of matching and sorting (n=33): time 0.002535/1.583, allocations: 0.9062 MB / 1.301 GB, free: 10.88 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.844e-05/1.583, allocations: 61.91 kB / 1.301 GB, free: 10.81 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001851/1.584, allocations: 1.363 MB / 1.303 GB, free: 10.64 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 9.216e-05/1.585, allocations: 35.92 kB / 1.303 GB, free: 10.61 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004678/1.585, allocations: 0.6862 MB / 1.303 GB, free: 10.35 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001051/1.585, allocations: 117.7 kB / 1.303 GB, free: 10.28 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.771e-05/1.585, allocations: 54.94 kB / 1.303 GB, free: 10.27 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001221/1.585, allocations: 332.1 kB / 1.304 GB, free: 9.957 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008132/1.586, allocations: 328.9 kB / 1.304 GB, free: 9.945 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001093/1.587, allocations: 0.6459 MB / 1.305 GB, free: 9.547 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001792/1.589, allocations: 0.8894 MB / 1.306 GB, free: 9.18 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.091e-06/1.589, allocations: 2.906 kB / 1.306 GB, free: 9.18 MB / 0.9981 GB Notification: Performance of matching and sorting (n=78) (initialization): time 0.002425/1.592, allocations: 1.033 MB / 1.307 GB, free: 9.059 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002341/1.592, allocations: 368 kB / 1.307 GB, free: 8.629 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.369e-05/1.592, allocations: 8.625 kB / 1.307 GB, free: 8.629 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.378e-05/1.592, allocations: 14.62 kB / 1.307 GB, free: 8.629 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007868/1.593, allocations: 202.7 kB / 1.307 GB, free: 8.621 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.46e-05/1.593, allocations: 26.09 kB / 1.307 GB, free: 8.617 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001596/1.594, allocations: 233.1 kB / 1.307 GB, free: 8.547 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.713e-05/1.594, allocations: 37 kB / 1.307 GB, free: 8.547 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 9.248e-06/1.594, allocations: 5.344 kB / 1.307 GB, free: 8.547 MB / 0.9981 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002117/1.596, allocations: 0.8927 MB / 1.308 GB, free: 8.508 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.078e-05/1.597, allocations: 11.66 kB / 1.308 GB, free: 8.508 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.198e-05/1.597, allocations: 12.12 kB / 1.308 GB, free: 8.508 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007692/1.597, allocations: 202.4 kB / 1.309 GB, free: 8.504 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.686e-05/1.597, allocations: 20.34 kB / 1.309 GB, free: 8.5 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001456/1.599, allocations: 193.2 kB / 1.309 GB, free: 8.453 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.564e-05/1.599, allocations: 39.73 kB / 1.309 GB, free: 8.453 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * 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 (78): * Single equations (assignments): 78 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007472/1.6, allocations: 419.1 kB / 1.309 GB, free: 8.25 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002448/1.6, allocations: 136.8 kB / 1.309 GB, free: 8.18 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001756/1.602, allocations: 0.6982 MB / 1.31 GB, free: 8.086 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.604e-06/1.602, allocations: 3.688 kB / 1.31 GB, free: 8.086 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.833e-06/1.602, allocations: 2.906 kB / 1.31 GB, free: 8.086 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.602e-06/1.602, allocations: 1.359 kB / 1.31 GB, free: 8.086 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003548/1.605, allocations: 1.973 MB / 1.312 GB, free: 7.59 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.861e-06/1.605, allocations: 5.391 kB / 1.312 GB, free: 7.59 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000495/1.606, allocations: 101 kB / 1.312 GB, free: 7.586 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.884e-06/1.606, allocations: 6.344 kB / 1.312 GB, free: 7.586 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.317e-05/1.606, allocations: 19.41 kB / 1.312 GB, free: 7.586 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.691e-06/1.606, allocations: 2.938 kB / 1.312 GB, free: 7.586 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.937e-06/1.606, allocations: 7.844 kB / 1.312 GB, free: 7.586 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001661/1.608, allocations: 0.8472 MB / 1.313 GB, free: 7.227 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005403/1.608, allocations: 301.4 kB / 1.313 GB, free: 7.051 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000191/1.608, allocations: 10.38 kB / 1.313 GB, free: 7.051 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001105/1.609, allocations: 106.8 kB / 1.313 GB, free: 7.039 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.302e-05/1.609, allocations: 41.52 kB / 1.313 GB, free: 7.031 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.397e-05/1.61, allocations: 20.7 kB / 1.313 GB, free: 7.031 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.001382/1.611, allocations: 0.9963 MB / 1.314 GB, free: 6.918 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.9e-07/1.611, allocations: 2.906 kB / 1.314 GB, free: 6.918 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.001914/1.613, allocations: 0.574 MB / 1.315 GB, free: 6.863 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * 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 (32): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006543/1.613, allocations: 277 kB / 1.315 GB, free: 6.734 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.002905/1.616, allocations: 1.133 MB / 1.316 GB, free: 6.699 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 7.354e-06/1.616, allocations: 2.938 kB / 1.316 GB, free: 6.699 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0007006/1.617, allocations: 277.9 kB / 1.317 GB, free: 6.691 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004655/1.622, allocations: 0.7882 MB / 1.317 GB, free: 6.613 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00535/1.627, allocations: 2.776 MB / 1.32 GB, free: 5.207 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007375/1.628, allocations: 1.174 MB / 1.321 GB, free: 4.488 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004558/1.628, allocations: 110.2 kB / 1.321 GB, free: 4.48 MB / 0.9981 GB Notification: Performance of SimCode: time 5.71e-07/1.628, allocations: 0 / 1.321 GB, free: 4.48 MB / 0.9981 GB Notification: Performance of Templates: time 0.03551/1.664, allocations: 21.72 MB / 1.342 GB, free: 11.5 MB / 1.014 GB make -j1 -f Buildings_10_Buildings.Fluid.Examples.Performance.Example4.makefile make -j1 -f Buildings_10_Buildings.Fluid.Examples.Performance.Example4.makefile clang++ -std=c++14 -fopenmp=libomp -Winvalid-pch -O2 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=5 -DSUNDIALS_MINOR_VERSION=4 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Resources/C-Sources" -I"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/sundials" "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/Resources/C-Sources" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppBuildings_10_Buildings.Fluid.Examples.Performance.Example4CalcHelperMain.o OMCppBuildings_10_Buildings.Fluid.Examples.Performance.Example4CalcHelperMain.cpp In file included from OMCppBuildings_10_Buildings.Fluid.Examples.Performance.Example4CalcHelperMain.cpp:29: ./OMCppBuildings_10_Buildings.Fluid.Examples.Performance.Example4Initialize.cpp:4587:140: error: no matching function for call to 'max' if (!((tmp31 >= max(-9.999999999999999e+59,max(-100000.0,max(0.0,max(0.0,max(0.0,max(0.0,max(0.0,max(0.0,max(0.0,max(0.0,max(0.0,max(0.0,max(0,0.0)))))))))))))) && (tmp32 <= 100000.0))) ^~~ /usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/algorithmfwd.h:407:5: note: candidate template ignored: deduced conflicting types for parameter '_Tp' ('int' vs. 'double') max(const _Tp&, const _Tp&); ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/stl_algo.h:3467:5: note: candidate template ignored: could not match 'initializer_list<_Tp>' against 'int' max(initializer_list<_Tp> __l, _Compare __comp) ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/stl_algo.h:3461:5: note: candidate function not viable: requires single argument '__l', but 2 arguments were provided max(initializer_list<_Tp> __l) ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/algorithmfwd.h:412:5: note: candidate function not viable: requires 3 arguments, but 2 were provided max(const _Tp&, const _Tp&, _Compare); ^ In file included from OMCppBuildings_10_Buildings.Fluid.Examples.Performance.Example4CalcHelperMain.cpp:29: ./OMCppBuildings_10_Buildings.Fluid.Examples.Performance.Example4Initialize.cpp:4608:149: error: no matching function for call to 'max' if (!((_res_P_m_flow_ >= max(-9.999999999999999e+59,max(-100000.0,max(0.0,max(0.0,max(0.0,max(0.0,max(0.0,max(0.0,max(0.0,max(0.0,max(0.0,max(0.0,max(0,0.0)))))))))))))) && (_res_P_m_flow_ <= 100000.0))) ^~~ /usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/algorithmfwd.h:407:5: note: candidate template ignored: deduced conflicting types for parameter '_Tp' ('int' vs. 'double') max(const _Tp&, const _Tp&); ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/stl_algo.h:3467:5: note: candidate template ignored: could not match 'initializer_list<_Tp>' against 'int' max(initializer_list<_Tp> __l, _Compare __comp) ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/stl_algo.h:3461:5: note: candidate function not viable: requires single argument '__l', but 2 arguments were provided max(initializer_list<_Tp> __l) ^ /usr/bin/../lib/gcc/x86_64-linux-gnu/11/../../../../include/c++/11/bits/algorithmfwd.h:412:5: note: candidate function not viable: requires 3 arguments, but 2 were provided max(const _Tp&, const _Tp&, _Compare); ^ 2 errors generated. make: *** [: OMCppBuildings_10_Buildings.Fluid.Examples.Performance.Example4CalcHelperMain.o] Error 1