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.1_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultCV") Notification: Performance of loadModel(ModelicaTest): time 1.937/1.937, allocations: 209.3 MB / 224.4 MB, free: 0.5078 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.552e-05/2.546e-05, allocations: 0 / 276.2 MB, free: 15.86 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3626/0.3627, allocations: 48.7 MB / 324.9 MB, free: 2.902 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultCV): time 0.05806/0.4208, allocations: 34.04 MB / 358.9 MB, free: 10.73 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.03294/0.4538, allocations: 16.18 MB / 375.1 MB, free: 13.27 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001331/0.4552, allocations: 31.75 kB / 375.1 MB, free: 13.23 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00176/0.457, allocations: 398 kB / 375.5 MB, free: 12.84 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01585/0.4729, allocations: 3.591 MB / 379.1 MB, free: 9.242 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01077/0.4837, allocations: 2.591 MB / 381.7 MB, free: 6.645 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.002518/0.4862, allocations: 0.8257 MB / 382.5 MB, free: 5.82 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007759/0.487, allocations: 311.4 kB / 382.8 MB, free: 5.516 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00187/0.4889, allocations: 0.5843 MB / 383.4 MB, free: 4.926 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01572/0.5047, allocations: 6.192 MB / 389.6 MB, free: 14.73 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02124/0.526, allocations: 6.957 MB / 396.5 MB, free: 7.766 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003003/0.5291, allocations: 420 kB / 397 MB, free: 7.355 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004297/0.5295, allocations: 155.4 kB / 397.1 MB, free: 7.203 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003674/0.5299, allocations: 84 kB / 397.2 MB, free: 7.121 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00946/0.5394, allocations: 3.341 MB / 400.5 MB, free: 3.773 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.479e-06/0.5395, allocations: 0 / 400.5 MB, free: 3.773 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.584e-06/0.5395, allocations: 0 / 400.5 MB, free: 3.773 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.101e-05/0.5395, allocations: 0 / 400.5 MB, free: 3.773 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.005414/0.5449, allocations: 1.474 MB / 402 MB, free: 2.254 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.635e-05/0.545, allocations: 12.03 kB / 402 MB, free: 2.242 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003341/0.5483, allocations: 306.7 kB / 402.3 MB, free: 1.941 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001408/0.5498, allocations: 0.5277 MB / 402.8 MB, free: 1.371 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.182e-05/0.5499, allocations: 53.31 kB / 402.9 MB, free: 1.32 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001434/0.5501, allocations: 63.89 kB / 403 MB, free: 1.258 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003966/0.554, allocations: 1.003 MB / 404 MB, free: 200 kB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.867e-05/0.5541, allocations: 4 kB / 404 MB, free: 196 kB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000111/0.5543, allocations: 28 kB / 404 MB, free: 168 kB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.15e-05/0.5543, allocations: 21.31 kB / 404 MB, free: 144 kB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004268/0.5586, allocations: 0.9339 MB / 404.9 MB, free: 15.2 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.008679/0.5673, allocations: 4.859 MB / 409.8 MB, free: 9.918 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004429/0.5718, allocations: 0.8478 MB / 410.6 MB, free: 9.062 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0711/0.6429, allocations: 21.58 MB / 432.2 MB, free: 0.8164 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.273e-05/0.643, allocations: 39 kB / 432.3 MB, free: 0.7695 MB / 362.7 MB Notification: Performance of pre-optimization done (n=47): time 4.058e-06/0.6431, allocations: 0 / 432.3 MB, free: 0.7695 MB / 362.7 MB Notification: Performance of matching and sorting (n=68): time 0.05777/0.7008, allocations: 4.498 MB / 436.8 MB, free: 12.17 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.104e-05/0.701, allocations: 115.4 kB / 436.9 MB, free: 12.04 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008962/0.7019, allocations: 457.9 kB / 437.3 MB, free: 11.58 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001436/0.702, allocations: 33.7 kB / 437.4 MB, free: 11.54 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003184/0.7024, allocations: 390.2 kB / 437.7 MB, free: 11.16 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003053/0.7027, allocations: 236.7 kB / 438 MB, free: 10.92 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.074e-05/0.7028, allocations: 12 kB / 438 MB, free: 10.91 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001546/0.703, allocations: 346.8 kB / 438.3 MB, free: 10.56 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002066/0.705, allocations: 489.6 kB / 438.8 MB, free: 10.08 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002229/0.7073, allocations: 0.6798 MB / 439.5 MB, free: 9.305 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003035/0.7104, allocations: 0.5146 MB / 440 MB, free: 8.793 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.143e-06/0.7104, allocations: 0 / 440 MB, free: 8.793 MB / 378.7 MB Notification: Performance of matching and sorting (n=102) (initialization): time 0.008289/0.7187, allocations: 1.506 MB / 441.5 MB, free: 7.273 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001358/0.7201, allocations: 2.44 MB / 443.9 MB, free: 4.641 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.564e-05/0.7202, allocations: 11.94 kB / 443.9 MB, free: 4.629 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01773/0.7379, allocations: 1.43 MB / 445.4 MB, free: 3.191 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001745/0.7397, allocations: 175.7 kB / 445.5 MB, free: 3.02 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006859/0.7466, allocations: 1.913 MB / 447.5 MB, free: 1.055 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002248/0.7489, allocations: 111.9 kB / 447.6 MB, free: 0.9453 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002157/0.7492, allocations: 55.97 kB / 447.6 MB, free: 0.8906 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.976e-05/0.7492, allocations: 7.438 kB / 447.6 MB, free: 0.8867 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009028/0.7583, allocations: 1.454 MB / 449.1 MB, free: 15.42 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.787e-05/0.7583, allocations: 4 kB / 449.1 MB, free: 15.42 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007259/0.7656, allocations: 0.7822 MB / 449.9 MB, free: 14.63 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001731/0.7674, allocations: 183.7 kB / 450.1 MB, free: 14.45 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006043/0.7734, allocations: 1.796 MB / 451.8 MB, free: 12.61 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001831/0.7753, allocations: 123.8 kB / 452 MB, free: 12.48 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001876/0.7755, allocations: 47.97 kB / 452 MB, free: 12.44 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 (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.0007815/0.7763, allocations: 233.6 kB / 452.2 MB, free: 12.2 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003115/0.7766, allocations: 63.25 kB / 452.3 MB, free: 12.14 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01298/0.7896, allocations: 4.059 MB / 456.4 MB, free: 8.02 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.311e-05/0.7897, allocations: 43.89 kB / 456.4 MB, free: 7.977 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.203e-05/0.7898, allocations: 4 kB / 456.4 MB, free: 7.973 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.019e-05/0.7898, allocations: 3.984 kB / 456.4 MB, free: 7.969 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0135/0.8033, allocations: 5.557 MB / 462 MB, free: 2.309 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.301e-05/0.8034, allocations: 0 / 462 MB, free: 2.309 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007587/0.8041, allocations: 103.9 kB / 462.1 MB, free: 2.207 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.01242/0.8166, allocations: 2.087 MB / 464.2 MB, free: 112 kB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001671/0.8168, allocations: 23.98 kB / 464.2 MB, free: 88 kB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005458/0.8223, allocations: 2.6 MB / 466.8 MB, free: 13.43 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.807e-06/0.8223, allocations: 0 / 466.8 MB, free: 13.43 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00806/0.8304, allocations: 2.931 MB / 469.7 MB, free: 10.42 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007678/0.8312, allocations: 362.6 kB / 470.1 MB, free: 10.04 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002208/0.8314, allocations: 12 kB / 470.1 MB, free: 10.03 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001307/0.8328, allocations: 107.8 kB / 470.2 MB, free: 9.926 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000228/0.833, allocations: 68.55 kB / 470.3 MB, free: 9.859 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001036/0.8331, allocations: 27.98 kB / 470.3 MB, free: 9.832 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0008523/0.834, allocations: 451 kB / 470.7 MB, free: 9.391 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.834, allocations: 0 / 470.7 MB, free: 9.391 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.005221/0.8392, allocations: 1.406 MB / 472.1 MB, free: 7.984 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,$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.007632/0.8469, allocations: 1.431 MB / 473.6 MB, free: 6.547 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.008797/0.8558, allocations: 2.316 MB / 475.9 MB, free: 4.219 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 5.961e-06/0.8558, allocations: 0 / 475.9 MB, free: 4.219 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00316/0.859, allocations: 1.2 MB / 477.1 MB, free: 3.016 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002771/0.8618, allocations: 302.6 kB / 477.4 MB, free: 2.723 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.284/1.146, allocations: 3.478 MB / 480.8 MB, free: 134 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009045/1.147, allocations: 1.192 MB / 482 MB, free: 133.3 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003468/1.147, allocations: 65.14 kB / 482.1 MB, free: 133.3 MB / 410.7 MB Notification: Performance of SimCode: time 1.012e-06/1.147, allocations: 0 / 482.1 MB, free: 133.3 MB / 410.7 MB Notification: Performance of Templates: time 0.08734/1.235, allocations: 44.18 MB / 0.514 GB, free: 105.4 MB / 410.7 MB make -j1 -f ModelicaTest_3.2.1_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.1_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultCVCalcHelperMain.o OMCppModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultCVCalcHelperMain.cpp In file included from OMCppModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultCVCalcHelperMain.cpp:29: ./OMCppModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultCVFunctions.cpp:6720:5: error: no matching function for call to 'add_array_scalar' add_array_scalar(c_(2), tmp448, tmp449); ^~~~~~~~~~~~~~~~~~~~~~~~ /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.TestWaterPumpDefaultCVCalcHelperMain.o' failed make: *** [OMCppModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultCVCalcHelperMain.o] Error 1