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.1_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpNPSH") Notification: Performance of loadModel(ModelicaTest): time 1.938/1.938, allocations: 209.2 MB / 224.4 MB, free: 0.8594 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.253e-05/3.269e-05, allocations: 4 kB / 276.2 MB, free: 15.89 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3825/0.3825, allocations: 48.69 MB / 324.8 MB, free: 2.891 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpNPSH): time 0.07585/0.4585, allocations: 33.99 MB / 358.8 MB, free: 10.77 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.04041/0.4989, allocations: 16.64 MB / 375.5 MB, free: 12.86 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001341/0.5003, allocations: 27.75 kB / 375.5 MB, free: 12.83 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001957/0.5023, allocations: 390.1 kB / 375.9 MB, free: 12.45 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0166/0.519, allocations: 3.661 MB / 379.5 MB, free: 8.773 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01121/0.5302, allocations: 2.578 MB / 382.1 MB, free: 6.191 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.00244/0.5327, allocations: 0.81 MB / 382.9 MB, free: 5.379 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007348/0.5335, allocations: 299.4 kB / 383.2 MB, free: 5.082 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001842/0.5353, allocations: 0.5686 MB / 383.8 MB, free: 4.512 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01533/0.5507, allocations: 6.188 MB / 390 MB, free: 14.32 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02126/0.572, allocations: 6.996 MB / 397 MB, free: 7.316 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003178/0.5752, allocations: 427.9 kB / 397.4 MB, free: 6.898 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004135/0.5757, allocations: 143.5 kB / 397.5 MB, free: 6.758 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003591/0.5761, allocations: 84 kB / 397.6 MB, free: 6.676 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009808/0.5859, allocations: 3.348 MB / 401 MB, free: 3.32 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.5859, allocations: 0 / 401 MB, free: 3.32 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.827e-06/0.586, allocations: 0 / 401 MB, free: 3.32 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.941e-05/0.586, allocations: 0 / 401 MB, free: 3.32 MB / 330.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.005327/0.5913, allocations: 1.462 MB / 402.4 MB, free: 1.812 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.171e-05/0.5914, allocations: 12.03 kB / 402.4 MB, free: 1.801 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003725/0.5951, allocations: 310.8 kB / 402.7 MB, free: 1.496 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001398/0.5966, allocations: 0.5394 MB / 403.3 MB, free: 0.9141 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.873e-05/0.5967, allocations: 49.31 kB / 403.3 MB, free: 0.8672 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001388/0.5969, allocations: 59.95 kB / 403.4 MB, free: 0.8086 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004081/0.601, allocations: 0.9991 MB / 404.4 MB, free: 15.75 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.211e-05/0.601, allocations: 7.984 kB / 404.4 MB, free: 15.74 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001151/0.6012, allocations: 24 kB / 404.4 MB, free: 15.72 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.474e-05/0.6012, allocations: 25.25 kB / 404.4 MB, free: 15.69 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004444/0.6057, allocations: 0.9183 MB / 405.4 MB, free: 14.77 MB / 346.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.008632/0.6144, allocations: 4.938 MB / 410.3 MB, free: 9.375 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004006/0.6184, allocations: 0.7809 MB / 411.1 MB, free: 8.586 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07136/0.6898, allocations: 21.84 MB / 432.9 MB, free: 48 kB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.168e-05/0.6899, allocations: 38.94 kB / 433 MB, free: 0 / 362.7 MB Notification: Performance of pre-optimization done (n=46): time 2.895e-06/0.69, allocations: 4.047 kB / 433 MB, free: 15.99 MB / 378.7 MB Notification: Performance of matching and sorting (n=63): time 0.04526/0.7352, allocations: 3.945 MB / 436.9 MB, free: 11.97 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.924e-05/0.7353, allocations: 111.4 kB / 437 MB, free: 11.84 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008813/0.7362, allocations: 434 kB / 437.4 MB, free: 11.4 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001531/0.7364, allocations: 41.64 kB / 437.5 MB, free: 11.36 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003275/0.7367, allocations: 386.2 kB / 437.9 MB, free: 10.98 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002782/0.737, allocations: 216.8 kB / 438.1 MB, free: 10.76 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.319e-05/0.7371, allocations: 16 kB / 438.1 MB, free: 10.75 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001549/0.7373, allocations: 342.8 kB / 438.4 MB, free: 10.4 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001686/0.739, allocations: 393.8 kB / 438.8 MB, free: 10.02 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001881/0.7409, allocations: 0.6055 MB / 439.4 MB, free: 9.316 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001918/0.7429, allocations: 453.9 kB / 439.9 MB, free: 8.871 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.311e-06/0.7429, allocations: 0 / 439.9 MB, free: 8.871 MB / 378.7 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.005334/0.7482, allocations: 1.262 MB / 441.1 MB, free: 7.598 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001046/0.7493, allocations: 2.44 MB / 443.6 MB, free: 4.965 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.396e-05/0.7494, allocations: 8 kB / 443.6 MB, free: 4.957 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007046/0.7564, allocations: 0.8483 MB / 444.4 MB, free: 4.105 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001277/0.7578, allocations: 167.8 kB / 444.6 MB, free: 3.941 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003991/0.7618, allocations: 1.671 MB / 446.2 MB, free: 2.219 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001512/0.7634, allocations: 107.8 kB / 446.3 MB, free: 2.113 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001572/0.7635, allocations: 47.97 kB / 446.4 MB, free: 2.066 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.456e-05/0.7636, allocations: 4 kB / 446.4 MB, free: 2.062 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00543/0.769, allocations: 1.229 MB / 447.6 MB, free: 0.832 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.493e-05/0.7691, allocations: 8 kB / 447.6 MB, free: 0.8242 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003528/0.7726, allocations: 0.5524 MB / 448.2 MB, free: 272 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001244/0.7739, allocations: 171.7 kB / 448.4 MB, free: 100 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003417/0.7774, allocations: 1.624 MB / 450 MB, free: 14.42 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001217/0.7786, allocations: 99.92 kB / 450.1 MB, free: 14.32 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001344/0.7788, allocations: 43.98 kB / 450.1 MB, free: 14.28 MB / 394.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.0005866/0.7794, allocations: 221.6 kB / 450.3 MB, free: 14.05 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000224/0.7796, allocations: 75.11 kB / 450.4 MB, free: 13.98 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00933/0.789, allocations: 3.857 MB / 454.3 MB, free: 10.07 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.224e-05/0.7891, allocations: 51.92 kB / 454.3 MB, free: 10.02 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.514e-06/0.7891, allocations: 0 / 454.3 MB, free: 10.02 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.896e-05/0.7891, allocations: 3.984 kB / 454.3 MB, free: 10.01 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01186/0.801, allocations: 5.205 MB / 459.5 MB, free: 4.691 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.738e-06/0.8011, allocations: 0 / 459.5 MB, free: 4.691 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008067/0.8019, allocations: 119.8 kB / 459.6 MB, free: 4.574 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006881/0.8088, allocations: 1.586 MB / 461.2 MB, free: 2.98 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001088/0.8089, allocations: 23.98 kB / 461.3 MB, free: 2.957 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004332/0.8133, allocations: 2.362 MB / 463.6 MB, free: 0.5391 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.036e-06/0.8133, allocations: 0 / 463.6 MB, free: 0.5391 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006584/0.8199, allocations: 2.67 MB / 466.3 MB, free: 13.79 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007227/0.8206, allocations: 350.6 kB / 466.6 MB, free: 13.43 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002063/0.8209, allocations: 16 kB / 466.6 MB, free: 13.41 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001145/0.822, allocations: 95.91 kB / 466.7 MB, free: 13.32 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002165/0.8223, allocations: 68.45 kB / 466.8 MB, free: 13.25 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001046/0.8224, allocations: 31.98 kB / 466.8 MB, free: 13.21 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0008088/0.8232, allocations: 431 kB / 467.3 MB, free: 12.79 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.8232, allocations: 0 / 467.3 MB, free: 12.79 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005199/0.8284, allocations: 1.39 MB / 468.6 MB, free: 11.4 MB / 410.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.007789/0.8362, allocations: 1.425 MB / 470.1 MB, free: 9.969 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.007458/0.8437, allocations: 2.047 MB / 472.1 MB, free: 7.91 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.073e-06/0.8438, allocations: 4.125 kB / 472.1 MB, free: 7.906 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002885/0.8467, allocations: 1.136 MB / 473.3 MB, free: 6.77 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002618/0.8493, allocations: 304.6 kB / 473.6 MB, free: 6.48 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006565/0.8559, allocations: 3.403 MB / 477 MB, free: 3.043 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009288/0.8569, allocations: 1.182 MB / 478.1 MB, free: 1.832 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003247/0.8572, allocations: 75.41 kB / 478.2 MB, free: 1.758 MB / 410.7 MB Notification: Performance of SimCode: time 9.41e-07/0.8572, allocations: 0 / 478.2 MB, free: 1.758 MB / 410.7 MB Notification: Performance of Templates: time 0.3711/1.228, allocations: 43.75 MB / 0.5097 GB, free: 108 MB / 410.7 MB make -j1 -f ModelicaTest_3.2.1_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.1_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpNPSHCalcHelperMain.o OMCppModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpNPSHCalcHelperMain.cpp In file included from OMCppModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpNPSHCalcHelperMain.cpp:29: ./OMCppModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpNPSHFunctions.cpp:6728:5: error: no matching function for call to 'add_array_scalar' add_array_scalar(c_(2), tmp452, tmp453); ^~~~~~~~~~~~~~~~~~~~~~~~ /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.1_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpNPSHCalcHelperMain.o' failed make: *** [OMCppModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpNPSHCalcHelperMain.o] Error 1