Running command: translateModel(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpNPSH,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Source.ports.1..m_flow|Source.ports.1..p|Source.ports.1..h_outflow|Sink.ports.1..m_flow|Sink.ports.1..p|Sink.ports.1..h_outflow|pump.port_b.m_flow|pump.port_b.p|pump.port_b.h_outflow|valveOpening.y|Valve.port_b.m_flow|Valve.port_b.p|Valve.port_b.h_outflow|Valve.minLimiter.y|downstreamPressure.y",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpNPSH") Notification: Performance of loadModel(ModelicaTest): time 2.472/2.472, allocations: 234.9 MB / 250.1 MB, free: 10.01 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.329e-05/3.323e-05, allocations: 7.984 kB / 308 MB, free: 15.98 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3764/0.3765, allocations: 54.86 MB / 362.9 MB, free: 12.08 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpNPSH): time 0.06738/0.4439, allocations: 34.24 MB / 397.1 MB, free: 11.55 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.03358/0.4776, allocations: 16.71 MB / 413.8 MB, free: 10.8 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001189/0.4788, allocations: 31.75 kB / 413.8 MB, free: 10.77 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001697/0.4806, allocations: 390 kB / 414.2 MB, free: 10.39 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01465/0.4953, allocations: 3.703 MB / 417.9 MB, free: 6.676 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01021/0.5055, allocations: 2.593 MB / 420.5 MB, free: 4.078 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.002353/0.5079, allocations: 0.8295 MB / 421.3 MB, free: 3.246 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007986/0.5087, allocations: 302.4 kB / 421.6 MB, free: 2.953 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001869/0.5106, allocations: 0.5765 MB / 422.2 MB, free: 2.375 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01574/0.5264, allocations: 6.262 MB / 428.5 MB, free: 12.11 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02066/0.5471, allocations: 7.125 MB / 435.6 MB, free: 4.977 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003029/0.5502, allocations: 436 kB / 436 MB, free: 4.551 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004145/0.5507, allocations: 135.5 kB / 436.2 MB, free: 4.418 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003523/0.551, allocations: 87.94 kB / 436.3 MB, free: 4.332 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009746/0.5608, allocations: 3.403 MB / 439.7 MB, free: 0.9219 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.5608, allocations: 0 / 439.7 MB, free: 0.9219 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.955e-06/0.5609, allocations: 4 kB / 439.7 MB, free: 0.918 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.781e-05/0.5609, allocations: 4 kB / 439.7 MB, free: 0.9141 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.005512/0.5664, allocations: 1.478 MB / 441.1 MB, free: 15.38 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.31e-05/0.5665, allocations: 12.03 kB / 441.2 MB, free: 15.37 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00381/0.5703, allocations: 334.5 kB / 441.5 MB, free: 15.04 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001401/0.5718, allocations: 0.5278 MB / 442 MB, free: 14.48 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.808e-05/0.5719, allocations: 45.31 kB / 442.1 MB, free: 14.43 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001436/0.5721, allocations: 63.98 kB / 442.1 MB, free: 14.37 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004051/0.5761, allocations: 0.9991 MB / 443.1 MB, free: 13.31 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.104e-05/0.5762, allocations: 3.938 kB / 443.1 MB, free: 13.31 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001151/0.5763, allocations: 24 kB / 443.1 MB, free: 13.29 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.318e-05/0.5764, allocations: 25.31 kB / 443.2 MB, free: 13.26 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004594/0.581, allocations: 0.9221 MB / 444.1 MB, free: 12.34 MB / 378.7 MB 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.008833/0.5899, allocations: 4.93 MB / 449 MB, free: 6.949 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004125/0.5941, allocations: 0.7926 MB / 449.8 MB, free: 6.148 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07514/0.6692, allocations: 21.9 MB / 471.7 MB, free: 13.54 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.598e-05/0.6694, allocations: 46.88 kB / 471.8 MB, free: 13.48 MB / 410.7 MB Notification: Performance of pre-optimization done (n=46): time 3.457e-06/0.6694, allocations: 0 / 471.8 MB, free: 13.48 MB / 410.7 MB Notification: Performance of matching and sorting (n=63): time 0.04588/0.7153, allocations: 3.939 MB / 475.7 MB, free: 9.461 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.496e-05/0.7154, allocations: 115.4 kB / 475.8 MB, free: 9.324 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008922/0.7163, allocations: 437.9 kB / 476.2 MB, free: 8.887 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000174/0.7165, allocations: 41.64 kB / 476.3 MB, free: 8.84 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003242/0.7168, allocations: 386.2 kB / 476.7 MB, free: 8.461 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003128/0.7172, allocations: 212.9 kB / 476.9 MB, free: 8.25 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.355e-05/0.7173, allocations: 16 kB / 476.9 MB, free: 8.234 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001634/0.7174, allocations: 342.8 kB / 477.2 MB, free: 7.891 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001733/0.7192, allocations: 401.8 kB / 477.6 MB, free: 7.5 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002063/0.7213, allocations: 0.6015 MB / 478.2 MB, free: 6.805 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002016/0.7234, allocations: 446 kB / 478.6 MB, free: 6.367 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.594e-06/0.7234, allocations: 0 / 478.6 MB, free: 6.367 MB / 410.7 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.005448/0.7289, allocations: 1.266 MB / 479.9 MB, free: 5.09 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001034/0.7299, allocations: 2.44 MB / 482.3 MB, free: 2.461 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.523e-05/0.73, allocations: 7.938 kB / 482.4 MB, free: 2.453 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006662/0.7367, allocations: 0.8484 MB / 483.2 MB, free: 1.598 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001247/0.738, allocations: 171.8 kB / 483.4 MB, free: 1.43 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004089/0.7421, allocations: 1.675 MB / 485 MB, free: 15.7 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00152/0.7437, allocations: 103.9 kB / 485.1 MB, free: 15.6 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001687/0.7439, allocations: 47.97 kB / 485.2 MB, free: 15.55 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.719e-05/0.7439, allocations: 5.719 kB / 485.2 MB, free: 15.55 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005522/0.7494, allocations: 1.225 MB / 486.4 MB, free: 14.31 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.509e-05/0.7495, allocations: 8 kB / 486.4 MB, free: 14.3 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003511/0.753, allocations: 0.5562 MB / 487 MB, free: 13.74 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00121/0.7543, allocations: 175.7 kB / 487.2 MB, free: 13.57 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003509/0.7578, allocations: 1.612 MB / 488.8 MB, free: 11.91 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001265/0.7591, allocations: 107.8 kB / 488.9 MB, free: 11.8 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000138/0.7593, allocations: 43.98 kB / 488.9 MB, free: 11.76 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 6 (Source.medium.phase,Sink.medium.phase,pump.heatTransfer.states[1].phase,Valve.state_b.phase,Valve.state_a.phase,pump.monitoring.state_in.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (70): * Single equations (assignments): 68 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 9,2 12} Notification: Performance of prepare postOptimizeDAE: time 0.00058/0.7599, allocations: 217.6 kB / 489.1 MB, free: 11.54 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002279/0.7601, allocations: 63.25 kB / 489.2 MB, free: 11.47 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009502/0.7696, allocations: 3.869 MB / 493.1 MB, free: 7.543 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.567e-05/0.7698, allocations: 47.92 kB / 493.1 MB, free: 7.496 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.947e-06/0.7698, allocations: 0 / 493.1 MB, free: 7.496 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.061e-05/0.7698, allocations: 3.984 kB / 493.1 MB, free: 7.492 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01162/0.7814, allocations: 5.209 MB / 498.3 MB, free: 2.18 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.29e-05/0.7815, allocations: 0 / 498.3 MB, free: 2.18 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008323/0.7824, allocations: 119.9 kB / 498.4 MB, free: 2.062 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007078/0.7894, allocations: 1.579 MB / 0.4883 GB, free: 484 kB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001318/0.7896, allocations: 19.98 kB / 0.4883 GB, free: 464 kB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3263/1.116, allocations: 2.367 MB / 0.4906 GB, free: 125.8 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.352e-06/1.116, allocations: 1.125 kB / 0.4906 GB, free: 125.8 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008742/1.125, allocations: 2.664 MB / 0.4932 GB, free: 124.7 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008741/1.126, allocations: 359.5 kB / 0.4936 GB, free: 124.6 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000281/1.126, allocations: 11.75 kB / 0.4936 GB, free: 124.6 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001622/1.128, allocations: 104.3 kB / 0.4937 GB, free: 124.6 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002529/1.128, allocations: 62.84 kB / 0.4937 GB, free: 124.5 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001349/1.128, allocations: 27.42 kB / 0.4938 GB, free: 124.5 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001069/1.129, allocations: 435.1 kB / 0.4942 GB, free: 124.4 MB / 426.7 MB Notification: Performance of sort global known variables: time 6.42e-07/1.129, allocations: 0 / 0.4942 GB, free: 124.4 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.006735/1.136, allocations: 1.399 MB / 0.4956 GB, free: 124.2 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 25 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse9.region3boundary,$cse10.region3boundary,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse13.phase,$cse13.region,$cse14.phase,$cse14.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,Source.medium.phase,Sink.medium.phase,pump.heatTransfer.states[1].phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 9 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 8,2 18} Notification: Performance of Backend phase and start with SimCode phase: time 0.009339/1.145, allocations: 1.435 MB / 0.497 GB, free: 124.1 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.009084/1.154, allocations: 2.049 MB / 0.499 GB, free: 123.4 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.957e-06/1.154, allocations: 7.516 kB / 0.499 GB, free: 123.4 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002688/1.157, allocations: 1.129 MB / 0.5001 GB, free: 122.9 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002536/1.16, allocations: 305.9 kB / 0.5004 GB, free: 122.9 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005542/1.165, allocations: 3.394 MB / 0.5037 GB, free: 120.9 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006567/1.166, allocations: 1.18 MB / 0.5048 GB, free: 119.8 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003108/1.166, allocations: 71.28 kB / 0.5049 GB, free: 119.8 MB / 426.7 MB Notification: Performance of SimCode: time 9.92e-07/1.166, allocations: 0 / 0.5049 GB, free: 119.8 MB / 426.7 MB Notification: Performance of Templates: time 0.07452/1.241, allocations: 43.92 MB / 0.5478 GB, free: 76 MB / 426.7 MB make -j1 -f ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpNPSH.makefile clang++ -fopenmp=libomp -Winvalid-pch -O0 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=2 -DSUNDIALS_MINOR_VERSION=6 -DPMC_USE_SUNDIALS -DENABLE_OMSI -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsi/" -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsi/base" -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsi/solver" -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsicpp/" -I. -I"." -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpNPSHCalcHelperMain.o OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpNPSHCalcHelperMain.cpp In file included from OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpNPSHCalcHelperMain.cpp:29: ./OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpNPSHFunctions.cpp:6758:5: error: no matching function for call to 'add_array_scalar' add_array_scalar(c_(2), tmp450, tmp451); ^~~~~~~~~~~~~~~~~~~~~~~~ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsicpp/Core/Math/ArrayOperations.h:91:6: note: candidate function not viable: no known conversion from 'double' to 'const BaseArray' for 1st argument void add_array_scalar(const BaseArray& inputArray, T b, BaseArray& outputArray); ^ 1 error generated. : recipe for target 'OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpNPSHCalcHelperMain.o' failed make: *** [OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpNPSHCalcHelperMain.o] Error 1