Running command: translateModel(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefault,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_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefault") Notification: Performance of loadModel(ModelicaTest): time 2.462/2.462, allocations: 269 MB / 284.1 MB, free: 3.645 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.065e-05/4.068e-05, allocations: 7.984 kB / 349 MB, free: 10.75 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1647/0.1648, allocations: 61.9 MB / 410.9 MB, free: 12.84 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefault): time 0.3937/0.5585, allocations: 34.37 MB / 445.3 MB, free: 10.8 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.03426/0.5928, allocations: 16.29 MB / 461.6 MB, free: 15.8 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001383/0.5943, allocations: 30.94 kB / 461.6 MB, free: 15.79 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001662/0.596, allocations: 391.1 kB / 462 MB, free: 15.43 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01544/0.6114, allocations: 3.637 MB / 465.6 MB, free: 12.3 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01155/0.623, allocations: 2.628 MB / 468.3 MB, free: 10.24 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.002651/0.6257, allocations: 0.8274 MB / 469.1 MB, free: 9.648 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007187/0.6264, allocations: 309.9 kB / 469.4 MB, free: 9.445 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001831/0.6283, allocations: 0.5791 MB / 470 MB, free: 9.098 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01385/0.6421, allocations: 5.803 MB / 475.8 MB, free: 6.723 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02132/0.6635, allocations: 7.098 MB / 482.9 MB, free: 15.61 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003069/0.6666, allocations: 432 kB / 483.3 MB, free: 15.19 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004861/0.6672, allocations: 143.5 kB / 483.4 MB, free: 15.05 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005174/0.6677, allocations: 84 kB / 483.5 MB, free: 14.97 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0139/0.6816, allocations: 3.372 MB / 486.9 MB, free: 11.59 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.6817, allocations: 0 / 486.9 MB, free: 11.59 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.156e-06/0.6817, allocations: 3.938 kB / 486.9 MB, free: 11.59 MB / 394.7 MB Notification: Performance of Transformations before backend: time 2.898e-05/0.6818, allocations: 0 / 486.9 MB, free: 11.59 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 142 * Number of variables: 142 Notification: Performance of Generate backend data structure: time 0.008155/0.6899, allocations: 1.466 MB / 488.4 MB, free: 10.07 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.342e-05/0.69, allocations: 12.03 kB / 488.4 MB, free: 10.06 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005811/0.6959, allocations: 314.7 kB / 488.7 MB, free: 9.75 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002024/0.6979, allocations: 0.5123 MB / 489.2 MB, free: 9.195 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001316/0.6981, allocations: 45.31 kB / 489.2 MB, free: 9.152 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002252/0.6984, allocations: 52 kB / 489.3 MB, free: 9.102 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006257/0.7046, allocations: 0.9944 MB / 490.3 MB, free: 8.047 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.638e-05/0.7047, allocations: 0 / 490.3 MB, free: 8.047 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001615/0.7049, allocations: 28 kB / 490.3 MB, free: 8.02 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.011e-05/0.705, allocations: 21 kB / 490.3 MB, free: 8 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005935/0.7109, allocations: 0.913 MB / 491.2 MB, free: 7.086 MB / 394.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.009402/0.7204, allocations: 4.841 MB / 496.1 MB, free: 1.836 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003967/0.7244, allocations: 0.7482 MB / 496.8 MB, free: 1.078 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09079/0.8152, allocations: 24.42 MB / 0.509 GB, free: 5.766 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.763e-05/0.8153, allocations: 42.52 kB / 0.5091 GB, free: 5.715 MB / 426.7 MB Notification: Performance of pre-optimization done (n=43): time 3.627e-06/0.8154, allocations: 0 / 0.5091 GB, free: 5.715 MB / 426.7 MB Notification: Performance of matching and sorting (n=43): time 0.01131/0.8267, allocations: 1.739 MB / 0.5108 GB, free: 3.941 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.38e-05/0.8268, allocations: 114.8 kB / 0.5109 GB, free: 3.805 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009866/0.8278, allocations: 462 kB / 0.5113 GB, free: 3.344 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001143/0.8279, allocations: 37.7 kB / 0.5114 GB, free: 3.301 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003548/0.8283, allocations: 366.5 kB / 0.5117 GB, free: 2.941 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002175/0.8285, allocations: 149.9 kB / 0.5119 GB, free: 2.793 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.45e-05/0.8286, allocations: 8 kB / 0.5119 GB, free: 2.785 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001692/0.8288, allocations: 334.8 kB / 0.5122 GB, free: 2.449 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001213/0.83, allocations: 264.9 kB / 0.5124 GB, free: 2.191 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001407/0.8314, allocations: 451.2 kB / 0.5129 GB, free: 1.68 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00131/0.8328, allocations: 301.7 kB / 0.5132 GB, free: 1.387 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.562e-06/0.8328, allocations: 7.938 kB / 0.5132 GB, free: 1.379 MB / 426.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.00347/0.8363, allocations: 0.8458 MB / 0.514 GB, free: 0.5234 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001026/0.8373, allocations: 1.999 MB / 0.5159 GB, free: 14.37 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.162e-05/0.8374, allocations: 8 kB / 0.516 GB, free: 14.36 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002743/0.8402, allocations: 316.5 kB / 0.5163 GB, free: 14.05 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001023/0.8412, allocations: 131.8 kB / 0.5164 GB, free: 13.92 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001952/0.8432, allocations: 0.8372 MB / 0.5172 GB, free: 13.05 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001329/0.8446, allocations: 119.3 kB / 0.5173 GB, free: 12.94 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001103/0.8447, allocations: 31.98 kB / 0.5173 GB, free: 12.91 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.534e-05/0.8448, allocations: 11.94 kB / 0.5174 GB, free: 12.89 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003914/0.8487, allocations: 0.8199 MB / 0.5182 GB, free: 12.07 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.521e-05/0.8487, allocations: 4 kB / 0.5182 GB, free: 12.07 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001568/0.8503, allocations: 213.1 kB / 0.5184 GB, free: 11.86 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001039/0.8514, allocations: 139.8 kB / 0.5185 GB, free: 11.72 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001706/0.8531, allocations: 0.7827 MB / 0.5193 GB, free: 10.91 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001122/0.8543, allocations: 95.59 kB / 0.5193 GB, free: 10.82 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001221/0.8545, allocations: 39.97 kB / 0.5194 GB, free: 10.78 MB / 442.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: 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 (55): * Single equations (assignments): 54 * 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 {2 12} Notification: Performance of prepare postOptimizeDAE: time 0.0005723/0.8551, allocations: 209.6 kB / 0.5196 GB, free: 10.56 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002308/0.8553, allocations: 63.25 kB / 0.5196 GB, free: 10.5 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007499/0.8628, allocations: 3.12 MB / 0.5227 GB, free: 7.359 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.547e-05/0.8629, allocations: 39.94 kB / 0.5227 GB, free: 7.32 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.179e-05/0.863, allocations: 4 kB / 0.5227 GB, free: 7.316 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.729e-05/0.863, allocations: 3.984 kB / 0.5227 GB, free: 7.312 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002793/0.8658, allocations: 1.477 MB / 0.5242 GB, free: 5.785 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.627e-05/0.8659, allocations: 0 / 0.5242 GB, free: 5.785 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007443/0.8666, allocations: 95.86 kB / 0.5243 GB, free: 5.691 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003999/0.8706, allocations: 1.057 MB / 0.5253 GB, free: 4.633 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001154/0.8708, allocations: 12 kB / 0.5253 GB, free: 4.621 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002928/0.8738, allocations: 1.495 MB / 0.5268 GB, free: 3.098 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.506e-06/0.8738, allocations: 0 / 0.5268 GB, free: 3.098 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005344/0.8792, allocations: 2.11 MB / 0.5288 GB, free: 0.9688 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007588/0.88, allocations: 338.6 kB / 0.5292 GB, free: 0.6172 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001868/0.8802, allocations: 12 kB / 0.5292 GB, free: 0.6055 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009864/0.8812, allocations: 71.94 kB / 0.5292 GB, free: 0.5352 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002122/0.8814, allocations: 56.48 kB / 0.5293 GB, free: 492 kB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.933e-05/0.8815, allocations: 19.98 kB / 0.5293 GB, free: 472 kB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0009842/0.8825, allocations: 467 kB / 0.5298 GB, free: 0 / 442.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.8825, allocations: 0 / 0.5298 GB, free: 0 / 442.7 MB Notification: Performance of remove unused functions: time 0.005214/0.8877, allocations: 1.319 MB / 0.531 GB, free: 14.68 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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,$cse15.phase,$cse15.region,$cse16.phase,$cse16.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 (40): * Single equations (assignments): 30 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 18} Notification: Performance of Backend phase and start with SimCode phase: time 0.00814/0.896, allocations: 1.377 MB / 0.5324 GB, free: 13.3 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.00517/0.9012, allocations: 1.402 MB / 0.5338 GB, free: 11.9 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 7.203e-06/0.9012, allocations: 0 / 0.5338 GB, free: 11.9 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002179/0.9034, allocations: 0.8201 MB / 0.5346 GB, free: 11.09 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003002/0.9065, allocations: 327.8 kB / 0.5349 GB, free: 10.77 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006148/0.9127, allocations: 2.972 MB / 0.5378 GB, free: 7.77 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001001/0.9137, allocations: 1.154 MB / 0.5389 GB, free: 6.586 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003118/0.914, allocations: 59.42 kB / 0.539 GB, free: 6.527 MB / 458.7 MB Notification: Performance of SimCode: time 1.042e-06/0.9141, allocations: 0 / 0.539 GB, free: 6.527 MB / 458.7 MB Notification: Performance of Templates: time 0.08333/0.9974, allocations: 36.29 MB / 0.5744 GB, free: 2.238 MB / 490.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefault.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.TestWaterPumpDefaultCalcHelperMain.o OMCppModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultCalcHelperMain.cpp In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultCalcHelperMain.cpp:29: ./OMCppModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultFunctions.cpp:6358:5: error: no matching function for call to 'add_array_scalar' add_array_scalar(c_(2), tmp397, tmp398); ^~~~~~~~~~~~~~~~~~~~~~~~ /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.TestWaterPumpDefaultCalcHelperMain.o' failed make: *** [OMCppModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultCalcHelperMain.o] Error 1