Running command: translateModel(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpRecirculation,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pump.medium.T|N_pump.y|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|V1.port_b.m_flow|V1.port_b.p|V1.port_b.h_outflow|V1.minLimiter.y|V2.port_b.m_flow|V2.port_b.p|V2.port_b.h_outflow|V2.minLimiter.y|V1_Opening.y|V2_Opening.y",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpRecirculation") Notification: Performance of loadModel(ModelicaTest): time 2.503/2.503, allocations: 269 MB / 284.1 MB, free: 3.637 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.102e-05/3.082e-05, allocations: 4 kB / 349 MB, free: 10.76 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1415/0.1415, allocations: 61.89 MB / 410.9 MB, free: 12.86 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpRecirculation): time 0.3608/0.5024, allocations: 17.78 MB / 428.7 MB, free: 3.43 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.01557/0.518, allocations: 6.993 MB / 435.7 MB, free: 1.906 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001654/0.5197, allocations: 38.44 kB / 435.7 MB, free: 1.887 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001768/0.5215, allocations: 362.8 kB / 436.1 MB, free: 1.73 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004077/0.5256, allocations: 0.8589 MB / 437 MB, free: 1.387 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.008635/0.5343, allocations: 1.737 MB / 438.7 MB, free: 0.6133 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.002903/0.5372, allocations: 0.8202 MB / 439.5 MB, free: 136 kB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001475/0.5388, allocations: 458.7 kB / 440 MB, free: 15.98 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002291/0.5411, allocations: 0.5447 MB / 440.5 MB, free: 15.75 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001802/0.543, allocations: 472.7 kB / 441 MB, free: 15.59 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003047/0.5461, allocations: 0.5849 MB / 441.6 MB, free: 15.45 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006636/0.5468, allocations: 60.62 kB / 441.6 MB, free: 15.45 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003586/0.5472, allocations: 182.5 kB / 441.8 MB, free: 15.36 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005508/0.5477, allocations: 81.62 kB / 441.9 MB, free: 15.36 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002735/0.5505, allocations: 1.009 MB / 442.9 MB, free: 15.13 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.5505, allocations: 0 / 442.9 MB, free: 15.13 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.955e-06/0.5506, allocations: 0 / 442.9 MB, free: 15.13 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.044e-05/0.5506, allocations: 1.188 kB / 442.9 MB, free: 15.13 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: 131 * Number of variables: 131 Notification: Performance of Generate backend data structure: time 0.003894/0.5545, allocations: 0.9897 MB / 443.9 MB, free: 14.45 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.4e-05/0.5546, allocations: 9.156 kB / 443.9 MB, free: 14.45 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007175/0.5553, allocations: 101 kB / 444 MB, free: 14.41 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001525/0.5568, allocations: 0.5438 MB / 444.5 MB, free: 14.03 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.719e-05/0.5569, allocations: 41.61 kB / 444.6 MB, free: 14.01 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001603/0.5571, allocations: 56.69 kB / 444.6 MB, free: 13.99 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002581/0.5597, allocations: 0.8186 MB / 445.4 MB, free: 13.61 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.305e-05/0.5598, allocations: 5.219 kB / 445.4 MB, free: 13.61 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001257/0.5599, allocations: 26.97 kB / 445.5 MB, free: 13.59 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.057e-05/0.5599, allocations: 23.31 kB / 445.5 MB, free: 13.59 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002882/0.5628, allocations: 0.7936 MB / 446.3 MB, free: 13.34 MB / 362.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.008279/0.5712, allocations: 3.633 MB / 449.9 MB, free: 10.32 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00208/0.5733, allocations: 496.1 kB / 450.4 MB, free: 10.09 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005488/0.5739, allocations: 0.569 MB / 451 MB, free: 9.41 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.698e-05/0.5739, allocations: 42.34 kB / 451 MB, free: 9.363 MB / 362.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001266/0.5752, allocations: 130.2 kB / 451.1 MB, free: 9.293 MB / 362.7 MB Notification: Performance of pre-optimization done (n=45): time 3.356e-06/0.5752, allocations: 4 kB / 451.1 MB, free: 9.289 MB / 362.7 MB Notification: Performance of matching and sorting (n=69): time 0.09745/0.6727, allocations: 8.045 MB / 459.2 MB, free: 5.09 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.286e-05/0.6728, allocations: 115.7 kB / 459.3 MB, free: 4.961 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001134/0.674, allocations: 0.5451 MB / 459.8 MB, free: 4.641 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002623/0.6742, allocations: 37.83 kB / 459.9 MB, free: 4.602 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003416/0.6746, allocations: 381.9 kB / 460.3 MB, free: 4.246 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003566/0.675, allocations: 237.5 kB / 460.5 MB, free: 4.039 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001214/0.6751, allocations: 20.12 kB / 460.5 MB, free: 4.023 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001522/0.6753, allocations: 345.7 kB / 460.8 MB, free: 3.684 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00265/0.6779, allocations: 0.526 MB / 461.4 MB, free: 3.426 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002806/0.6808, allocations: 0.7267 MB / 462.1 MB, free: 2.922 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002924/0.6837, allocations: 0.5797 MB / 462.7 MB, free: 2.633 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.352e-06/0.6838, allocations: 3.938 kB / 462.7 MB, free: 2.629 MB / 362.7 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.006693/0.6905, allocations: 1.479 MB / 464.2 MB, free: 1.879 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008558/0.6914, allocations: 2 MB / 466.2 MB, free: 15.74 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.854e-05/0.6914, allocations: 5.906 kB / 466.2 MB, free: 15.74 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01767/0.7091, allocations: 1.212 MB / 467.4 MB, free: 14.81 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002972/0.7121, allocations: 303.5 kB / 467.7 MB, free: 14.52 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002194/0.7143, allocations: 0.8515 MB / 468.5 MB, free: 13.64 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002709/0.7171, allocations: 135.8 kB / 468.7 MB, free: 13.51 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002183/0.7173, allocations: 59.92 kB / 468.7 MB, free: 13.45 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.398e-05/0.7173, allocations: 4 kB / 468.7 MB, free: 13.45 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006974/0.7243, allocations: 1.413 MB / 470.1 MB, free: 12.03 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.359e-05/0.7244, allocations: 4 kB / 470.1 MB, free: 12.02 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008696/0.7253, allocations: 113.2 kB / 470.3 MB, free: 11.91 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00305/0.7283, allocations: 315.5 kB / 470.6 MB, free: 11.6 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004566/0.7329, allocations: 2.174 MB / 472.7 MB, free: 9.234 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002435/0.7354, allocations: 135.8 kB / 472.9 MB, free: 9.102 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000343/0.7358, allocations: 60.02 kB / 472.9 MB, free: 9.043 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 82 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 14} Notification: Performance of prepare postOptimizeDAE: time 0.000805/0.7366, allocations: 209.7 kB / 473.1 MB, free: 8.828 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003885/0.737, allocations: 86.92 kB / 473.2 MB, free: 8.742 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007922/0.745, allocations: 1.802 MB / 475 MB, free: 6.926 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.401e-05/0.745, allocations: 12 kB / 475 MB, free: 6.914 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.745, allocations: 0 / 475 MB, free: 6.914 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.519e-05/0.7451, allocations: 3.984 kB / 475 MB, free: 6.91 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.011/0.7561, allocations: 2.88 MB / 477.9 MB, free: 3.941 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.031e-05/0.7561, allocations: 3.953 kB / 477.9 MB, free: 3.938 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002212/0.7583, allocations: 231.6 kB / 478.1 MB, free: 3.711 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01129/0.7697, allocations: 1.064 MB / 479.2 MB, free: 2.645 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001605/0.7698, allocations: 27.97 kB / 479.2 MB, free: 2.617 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001481/0.7713, allocations: 0.8755 MB / 480.1 MB, free: 1.719 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.953e-06/0.7714, allocations: 0 / 480.1 MB, free: 1.719 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008972/0.7803, allocations: 2.177 MB / 482.3 MB, free: 15.52 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007708/0.7811, allocations: 291.7 kB / 482.6 MB, free: 15.22 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002723/0.7814, allocations: 16 kB / 482.6 MB, free: 15.2 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002051/0.7835, allocations: 131.9 kB / 482.7 MB, free: 15.07 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002097/0.7837, allocations: 60.91 kB / 482.8 MB, free: 15.02 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001553/0.7839, allocations: 43.95 kB / 482.8 MB, free: 14.97 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0008301/0.7847, allocations: 439 kB / 483.2 MB, free: 14.55 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.7847, allocations: 0 / 483.2 MB, free: 14.55 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002784/0.7875, allocations: 0.5858 MB / 483.8 MB, free: 13.96 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (pump.medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (68): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {3 24} Notification: Performance of Backend phase and start with SimCode phase: time 0.001566/0.7891, allocations: 411 kB / 484.2 MB, free: 13.56 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.01033/0.7995, allocations: 2.189 MB / 486.4 MB, free: 11.36 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.96e-06/0.7995, allocations: 4 kB / 486.4 MB, free: 11.36 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003025/0.8026, allocations: 0.6884 MB / 487.1 MB, free: 10.66 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003173/0.8058, allocations: 372.9 kB / 487.5 MB, free: 10.3 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005206/0.811, allocations: 2.043 MB / 489.5 MB, free: 8.23 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006985/0.8117, allocations: 0.9849 MB / 490.5 MB, free: 7.215 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008117/0.8125, allocations: 123.3 kB / 490.6 MB, free: 7.094 MB / 394.7 MB Notification: Performance of SimCode: time 9.52e-07/0.8125, allocations: 0 / 490.6 MB, free: 7.094 MB / 394.7 MB Notification: Performance of Templates: time 0.04552/0.8581, allocations: 21.12 MB / 0.4998 GB, free: 2.051 MB / 410.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpRecirculation.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/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/C-Sources" -I"." -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" "-I/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/C-Sources" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpRecirculationCalcHelperMain.o OMCppModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpRecirculationCalcHelperMain.cpp In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpRecirculationCalcHelperMain.cpp:29: ./OMCppModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpRecirculationFunctions.cpp:1233:5: error: no matching function for call to 'add_array_scalar' add_array_scalar(c_(2), tmp381, tmp382); ^~~~~~~~~~~~~~~~~~~~~~~~ /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_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpRecirculationCalcHelperMain.o' failed make: *** [OMCppModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpRecirculationCalcHelperMain.o] Error 1