Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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_9_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_9_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.001038/0.001038, allocations: 99.03 kB / 16.02 MB, free: 72 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.001288/0.001288, allocations: 183.2 kB / 16.92 MB, free: 6.918 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.39/1.39, allocations: 223.3 MB / 241 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.541/2.541, allocations: 390.9 MB / 0.667 GB, free: 2.391 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003297/0.0003297, allocations: 8 kB / 0.8166 GB, free: 13.28 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6378/0.6382, allocations: 142.4 MB / 0.9557 GB, free: 7.625 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Examples.Performance.Example4): time 0.2517/0.8899, allocations: 232.3 MB / 1.183 GB, free: 6.312 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.02211/0.9121, allocations: 15.74 MB / 1.198 GB, free: 6.527 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002553/0.9147, allocations: 55.62 kB / 1.198 GB, free: 6.473 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.003013/0.9177, allocations: 0.8627 MB / 1.199 GB, free: 5.605 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.008608/0.9263, allocations: 2.805 MB / 1.202 GB, free: 2.789 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.004532/0.9309, allocations: 1.503 MB / 1.203 GB, free: 1.297 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.006181/0.9371, allocations: 4.666 MB / 1.208 GB, free: 12.62 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002075/0.9392, allocations: 1.033 MB / 1.209 GB, free: 11.56 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006754/0.946, allocations: 2.226 MB / 1.211 GB, free: 9.332 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002958/0.949, allocations: 1.07 MB / 1.212 GB, free: 8.266 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 0.0003876/0.9494, allocations: 48 kB / 1.212 GB, free: 8.219 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006783/0.9561, allocations: 3.569 MB / 1.215 GB, free: 4.641 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0008125/0.957, allocations: 398.4 kB / 1.216 GB, free: 4.25 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.001768/0.9588, allocations: 0.7554 MB / 1.216 GB, free: 3.484 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.003924/0.9627, allocations: 2.147 MB / 1.219 GB, free: 1.332 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 7.845e-06/0.9628, allocations: 4 kB / 1.219 GB, free: 1.328 MB / 0.9669 GB Notification: Performance of FrontEnd: time 2.014e-06/0.9628, allocations: 0 / 1.219 GB, free: 1.328 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 8.199e-05/0.9629, allocations: 0 / 1.219 GB, free: 1.328 MB / 0.9669 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.00405/0.9669, allocations: 1.709 MB / 1.22 GB, free: 15.56 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 5.096e-05/0.967, allocations: 12.03 kB / 1.22 GB, free: 15.55 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003033/0.97, allocations: 0.5327 MB / 1.221 GB, free: 15.02 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002555/0.9726, allocations: 1.121 MB / 1.222 GB, free: 13.84 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001005/0.9736, allocations: 277.8 kB / 1.222 GB, free: 13.57 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002468/0.9739, allocations: 104 kB / 1.222 GB, free: 13.46 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002816/0.9767, allocations: 1.33 MB / 1.223 GB, free: 12.05 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.897e-05/0.9768, allocations: 7.938 kB / 1.223 GB, free: 12.04 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001263/0.9769, allocations: 44 kB / 1.224 GB, free: 12 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.962e-05/0.977, allocations: 41.98 kB / 1.224 GB, free: 11.95 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002784/0.9798, allocations: 1.12 MB / 1.225 GB, free: 10.83 MB / 0.9825 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.008817/0.9886, allocations: 6.658 MB / 1.231 GB, free: 3.73 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001782/0.9904, allocations: 0.5933 MB / 1.232 GB, free: 3.129 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007162/0.9911, allocations: 293.2 kB / 1.232 GB, free: 2.84 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004433/0.9916, allocations: 279.6 kB / 1.232 GB, free: 2.512 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.886e-05/0.9917, allocations: 42.78 kB / 1.232 GB, free: 2.461 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=33): time 3.276e-06/0.9917, allocations: 0 / 1.232 GB, free: 2.461 MB / 0.9825 GB Notification: Performance of matching and sorting (n=33): time 0.002732/0.9944, allocations: 0.9101 MB / 1.233 GB, free: 1.543 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.031e-05/0.9945, allocations: 51.41 kB / 1.233 GB, free: 1.48 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002272/0.9967, allocations: 1.366 MB / 1.235 GB, free: 108 kB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 9.495e-05/0.9969, allocations: 37.7 kB / 1.235 GB, free: 64 kB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006379/0.9975, allocations: 0.6795 MB / 1.235 GB, free: 15.38 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001235/0.9976, allocations: 114.4 kB / 1.235 GB, free: 15.27 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.851e-05/0.9977, allocations: 61.69 kB / 1.235 GB, free: 15.2 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001439/0.9979, allocations: 330 kB / 1.236 GB, free: 14.87 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009175/0.9988, allocations: 325.1 kB / 1.236 GB, free: 14.55 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00119/1, allocations: 0.6457 MB / 1.237 GB, free: 13.76 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001838/1.002, allocations: 0.8936 MB / 1.238 GB, free: 12.74 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.492e-06/1.002, allocations: 0 / 1.238 GB, free: 12.74 MB / 0.9981 GB Notification: Performance of matching and sorting (n=78) (initialization): time 0.002622/1.005, allocations: 1.047 MB / 1.239 GB, free: 11.68 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002851/1.005, allocations: 368.2 kB / 1.239 GB, free: 11.2 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.833e-05/1.005, allocations: 12 kB / 1.239 GB, free: 11.18 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.538e-05/1.005, allocations: 12 kB / 1.239 GB, free: 11.17 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008736/1.006, allocations: 199.7 kB / 1.239 GB, free: 10.98 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.311e-05/1.006, allocations: 19.92 kB / 1.239 GB, free: 10.96 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001586/1.007, allocations: 234.7 kB / 1.239 GB, free: 10.73 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.973e-05/1.007, allocations: 43.92 kB / 1.239 GB, free: 10.68 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 9.618e-06/1.007, allocations: 4 kB / 1.239 GB, free: 10.68 MB / 0.9981 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002189/1.01, allocations: 0.8823 MB / 1.24 GB, free: 9.797 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.506e-05/1.01, allocations: 12.16 kB / 1.24 GB, free: 9.785 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.683e-05/1.01, allocations: 16 kB / 1.24 GB, free: 9.77 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008188/1.011, allocations: 195.7 kB / 1.241 GB, free: 9.578 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.369e-05/1.011, allocations: 23.92 kB / 1.241 GB, free: 9.555 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001425/1.012, allocations: 195.1 kB / 1.241 GB, free: 9.363 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.257e-05/1.012, allocations: 39.92 kB / 1.241 GB, free: 9.324 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.0006552/1.013, allocations: 412.8 kB / 1.241 GB, free: 8.91 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002992/1.013, allocations: 138.2 kB / 1.241 GB, free: 8.773 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00189/1.015, allocations: 0.703 MB / 1.242 GB, free: 8.059 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.11e-06/1.015, allocations: 0 / 1.242 GB, free: 8.059 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.304e-06/1.015, allocations: 4 kB / 1.242 GB, free: 8.055 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.07e-06/1.015, allocations: 0 / 1.242 GB, free: 8.055 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004178/1.019, allocations: 1.971 MB / 1.244 GB, free: 5.973 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.167e-05/1.019, allocations: 7.938 kB / 1.244 GB, free: 5.965 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005329/1.02, allocations: 104 kB / 1.244 GB, free: 5.863 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.276e-05/1.02, allocations: 8 kB / 1.244 GB, free: 5.855 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.519e-05/1.02, allocations: 8 kB / 1.244 GB, free: 5.848 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-05/1.02, allocations: 15.98 kB / 1.244 GB, free: 5.832 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.723e-06/1.02, allocations: 7.938 kB / 1.244 GB, free: 5.824 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001773/1.022, allocations: 0.8423 MB / 1.245 GB, free: 4.914 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006208/1.022, allocations: 299.2 kB / 1.245 GB, free: 4.602 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002899/1.023, allocations: 16 kB / 1.245 GB, free: 4.586 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001205/1.024, allocations: 115.9 kB / 1.245 GB, free: 4.473 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001006/1.024, allocations: 31.84 kB / 1.245 GB, free: 4.441 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.807e-05/1.024, allocations: 23.97 kB / 1.245 GB, free: 4.418 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.001766/1.026, allocations: 0.9964 MB / 1.246 GB, free: 3.426 MB / 0.9981 GB Notification: Performance of sort global known variables: time 5.01e-07/1.026, allocations: 0 / 1.246 GB, free: 3.426 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.002038/1.028, allocations: 0.5733 MB / 1.247 GB, free: 2.852 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.0006837/1.028, allocations: 267.8 kB / 1.247 GB, free: 2.586 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.003102/1.032, allocations: 1.141 MB / 1.248 GB, free: 1.449 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 5.651e-06/1.032, allocations: 3.938 kB / 1.248 GB, free: 1.445 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0007334/1.032, allocations: 280.6 kB / 1.249 GB, free: 1.172 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004866/1.037, allocations: 0.766 MB / 1.249 GB, free: 420 kB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4809/1.518, allocations: 2.772 MB / 1.252 GB, free: 282.6 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009246/1.519, allocations: 1.174 MB / 1.253 GB, free: 281.9 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005431/1.52, allocations: 110.8 kB / 1.253 GB, free: 281.9 MB / 0.9981 GB Notification: Performance of SimCode: time 1.613e-06/1.52, allocations: 0 / 1.253 GB, free: 281.9 MB / 0.9981 GB Notification: Performance of Templates: time 0.04559/1.565, allocations: 21.72 MB / 1.274 GB, free: 273.2 MB / 0.9981 GB make -j1 -f Buildings_9_Buildings.Fluid.Examples.Performance.Example4.makefile make -j1 -f Buildings_9_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_9_Buildings.Fluid.Examples.Performance.Example4CalcHelperMain.o OMCppBuildings_9_Buildings.Fluid.Examples.Performance.Example4CalcHelperMain.cpp In file included from OMCppBuildings_9_Buildings.Fluid.Examples.Performance.Example4CalcHelperMain.cpp:29: ./OMCppBuildings_9_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_9_Buildings.Fluid.Examples.Performance.Example4CalcHelperMain.cpp:29: ./OMCppBuildings_9_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_9_Buildings.Fluid.Examples.Performance.Example4CalcHelperMain.o] Error 1