Running command: translateModel(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultCV,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.TestWaterPumpDefaultCV") Notification: Performance of loadModel(ModelicaTest): time 2.438/2.438, allocations: 234.9 MB / 250.1 MB, free: 9.938 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.261e-05/3.262e-05, allocations: 8 kB / 308 MB, free: 15.91 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3828/0.3828, allocations: 54.86 MB / 362.9 MB, free: 12.09 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultCV): time 0.06062/0.4435, allocations: 34.29 MB / 397.1 MB, free: 11.49 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.03431/0.4779, allocations: 16.27 MB / 413.4 MB, free: 11.18 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001228/0.4792, allocations: 31.75 kB / 413.4 MB, free: 11.15 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001649/0.4808, allocations: 398 kB / 413.8 MB, free: 10.76 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01534/0.4962, allocations: 3.637 MB / 417.5 MB, free: 7.113 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01066/0.5069, allocations: 2.613 MB / 420.1 MB, free: 4.496 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.002389/0.5093, allocations: 0.8374 MB / 420.9 MB, free: 3.656 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007414/0.5101, allocations: 310.4 kB / 421.2 MB, free: 3.355 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001777/0.5119, allocations: 0.5959 MB / 421.8 MB, free: 2.758 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01609/0.528, allocations: 6.274 MB / 428.1 MB, free: 12.48 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02116/0.5492, allocations: 7.082 MB / 435.2 MB, free: 5.391 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003063/0.5523, allocations: 436 kB / 435.6 MB, free: 4.965 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004436/0.5528, allocations: 143.4 kB / 435.7 MB, free: 4.824 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003561/0.5532, allocations: 92 kB / 435.8 MB, free: 4.734 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01003/0.5632, allocations: 3.387 MB / 439.2 MB, free: 1.34 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.5633, allocations: 0 / 439.2 MB, free: 1.34 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.855e-06/0.5633, allocations: 0 / 439.2 MB, free: 1.34 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.251e-05/0.5634, allocations: 0 / 439.2 MB, free: 1.34 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.005777/0.5691, allocations: 1.505 MB / 440.7 MB, free: 15.78 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.499e-05/0.5692, allocations: 12.03 kB / 440.7 MB, free: 15.77 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003538/0.5728, allocations: 310.7 kB / 441 MB, free: 15.46 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001514/0.5743, allocations: 0.5316 MB / 441.6 MB, free: 14.89 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.228e-05/0.5745, allocations: 53.31 kB / 441.6 MB, free: 14.84 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00015/0.5746, allocations: 55.98 kB / 441.7 MB, free: 14.79 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004078/0.5787, allocations: 1.003 MB / 442.7 MB, free: 13.73 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.208e-05/0.5788, allocations: 3.938 kB / 442.7 MB, free: 13.72 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001239/0.579, allocations: 28 kB / 442.7 MB, free: 13.7 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.171e-05/0.579, allocations: 25.3 kB / 442.7 MB, free: 13.67 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004471/0.5835, allocations: 0.9261 MB / 443.7 MB, free: 12.75 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.009277/0.5928, allocations: 4.875 MB / 448.5 MB, free: 7.441 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004609/0.5975, allocations: 0.844 MB / 449.4 MB, free: 6.586 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.07353/0.6711, allocations: 21.65 MB / 471 MB, free: 14.27 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.716e-05/0.6712, allocations: 39 kB / 471.1 MB, free: 14.22 MB / 410.7 MB Notification: Performance of pre-optimization done (n=47): time 2.855e-06/0.6712, allocations: 3.938 kB / 471.1 MB, free: 14.22 MB / 410.7 MB Notification: Performance of matching and sorting (n=68): time 0.05096/0.7222, allocations: 4.49 MB / 475.6 MB, free: 9.629 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.826e-05/0.7223, allocations: 111.4 kB / 475.7 MB, free: 9.496 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009814/0.7233, allocations: 454 kB / 476.1 MB, free: 9.043 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001736/0.7235, allocations: 37.7 kB / 476.1 MB, free: 9 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003508/0.7238, allocations: 386.1 kB / 476.5 MB, free: 8.621 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003303/0.7242, allocations: 236.6 kB / 476.8 MB, free: 8.387 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.557e-05/0.7243, allocations: 16 kB / 476.8 MB, free: 8.371 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001875/0.7245, allocations: 342.8 kB / 477.1 MB, free: 8.027 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002147/0.7266, allocations: 481.7 kB / 477.6 MB, free: 7.559 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002413/0.7291, allocations: 0.6836 MB / 478.3 MB, free: 6.781 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00242/0.7316, allocations: 0.5185 MB / 478.8 MB, free: 6.262 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.618e-06/0.7316, allocations: 4 kB / 478.8 MB, free: 6.258 MB / 410.7 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.006773/0.7384, allocations: 1.506 MB / 480.3 MB, free: 4.738 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001411/0.7399, allocations: 2.444 MB / 482.7 MB, free: 2.105 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.48e-05/0.7399, allocations: 7.938 kB / 482.7 MB, free: 2.098 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0133/0.7533, allocations: 1.43 MB / 484.2 MB, free: 0.6641 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001268/0.7546, allocations: 171.8 kB / 484.3 MB, free: 0.4961 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005305/0.7599, allocations: 1.913 MB / 486.3 MB, free: 14.53 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001756/0.7617, allocations: 123.8 kB / 486.4 MB, free: 14.41 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001799/0.7619, allocations: 47.98 kB / 486.4 MB, free: 14.36 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.776e-05/0.762, allocations: 6.812 kB / 486.4 MB, free: 14.36 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006657/0.7686, allocations: 1.453 MB / 487.9 MB, free: 12.9 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.499e-05/0.7687, allocations: 11.94 kB / 487.9 MB, free: 12.89 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005663/0.7744, allocations: 0.7749 MB / 488.7 MB, free: 12.11 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00138/0.7758, allocations: 183.8 kB / 488.8 MB, free: 11.93 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00476/0.7806, allocations: 1.813 MB / 490.7 MB, free: 10.06 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001454/0.7821, allocations: 107.9 kB / 490.8 MB, free: 9.957 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000164/0.7823, allocations: 47.98 kB / 490.8 MB, free: 9.91 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 (71): * Single equations (assignments): 69 * 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 13,2 16} Notification: Performance of prepare postOptimizeDAE: time 0.0006985/0.783, allocations: 226.8 kB / 491 MB, free: 9.68 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002704/0.7833, allocations: 71.11 kB / 491.1 MB, free: 9.609 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0108/0.7941, allocations: 4.059 MB / 495.2 MB, free: 5.492 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.996e-05/0.7942, allocations: 51.92 kB / 495.2 MB, free: 5.441 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.676e-06/0.7942, allocations: 0 / 495.2 MB, free: 5.441 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.942e-05/0.7943, allocations: 7.984 kB / 495.2 MB, free: 5.434 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.3199/1.114, allocations: 5.543 MB / 0.489 GB, free: 125.9 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-05/1.114, allocations: 0.75 kB / 0.489 GB, free: 125.9 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008349/1.115, allocations: 107.6 kB / 0.4891 GB, free: 125.9 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01341/1.129, allocations: 2.09 MB / 0.4912 GB, free: 125.9 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001579/1.129, allocations: 24.59 kB / 0.4912 GB, free: 125.9 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005138/1.134, allocations: 2.598 MB / 0.4937 GB, free: 124.6 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.27e-06/1.134, allocations: 5 kB / 0.4937 GB, free: 124.6 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00741/1.141, allocations: 2.923 MB / 0.4966 GB, free: 123.4 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007457/1.142, allocations: 359.6 kB / 0.4969 GB, free: 123.2 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002158/1.142, allocations: 19.12 kB / 0.4969 GB, free: 123.2 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001316/1.144, allocations: 110.7 kB / 0.4971 GB, free: 123.2 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002148/1.144, allocations: 61.72 kB / 0.4971 GB, free: 123.1 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.967e-05/1.144, allocations: 38.11 kB / 0.4971 GB, free: 123.1 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0007365/1.145, allocations: 439.3 kB / 0.4976 GB, free: 122.9 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.91e-07/1.145, allocations: 3.906 kB / 0.4976 GB, free: 122.9 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004881/1.15, allocations: 1.413 MB / 0.499 GB, free: 122.8 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,$cse16.phase,$cse16.region,$cse17.phase,$cse17.region,$cse19.phase,$cse19.region,$cse20.phase,$cse20.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 (47): * Single equations (assignments): 36 * 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 12,2 23} Notification: Performance of Backend phase and start with SimCode phase: time 0.007824/1.158, allocations: 1.42 MB / 0.5003 GB, free: 122.7 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.008526/1.166, allocations: 2.332 MB / 0.5026 GB, free: 121.9 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 1.02e-05/1.166, allocations: 0 / 0.5026 GB, free: 121.9 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00298/1.169, allocations: 1.188 MB / 0.5038 GB, free: 121 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002663/1.172, allocations: 308.5 kB / 0.5041 GB, free: 120.8 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005927/1.178, allocations: 3.483 MB / 0.5075 GB, free: 117.3 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006543/1.179, allocations: 1.189 MB / 0.5086 GB, free: 116.1 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003116/1.179, allocations: 71.38 kB / 0.5087 GB, free: 116.1 MB / 426.7 MB Notification: Performance of SimCode: time 1.553e-06/1.179, allocations: 0 / 0.5087 GB, free: 116.1 MB / 426.7 MB Notification: Performance of Templates: time 0.07716/1.256, allocations: 44.35 MB / 0.552 GB, free: 71.77 MB / 426.7 MB make -j1 -f ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultCV.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.TestWaterPumpDefaultCVCalcHelperMain.o OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultCVCalcHelperMain.cpp In file included from OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultCVCalcHelperMain.cpp:29: ./OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultCVFunctions.cpp:6750:5: error: no matching function for call to 'add_array_scalar' add_array_scalar(c_(2), tmp446, tmp447); ^~~~~~~~~~~~~~~~~~~~~~~~ /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.TestWaterPumpDefaultCVCalcHelperMain.o' failed make: *** [OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultCVCalcHelperMain.o] Error 1