Running command: translateModel(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultLV,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|downstreamPressure.y",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultLV") Notification: Performance of loadModel(ModelicaTest): time 1.98/1.98, allocations: 209.3 MB / 224.4 MB, free: 0.5039 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.132e-05/3.139e-05, allocations: 4 kB / 276.2 MB, free: 15.85 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.396/0.3961, allocations: 48.69 MB / 324.9 MB, free: 2.895 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultLV): time 0.06781/0.464, allocations: 33.61 MB / 358.5 MB, free: 11.05 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.02632/0.4903, allocations: 12.98 MB / 371.4 MB, free: 0.8789 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001093/0.4915, allocations: 25.56 kB / 371.5 MB, free: 0.8672 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001331/0.4928, allocations: 341.5 kB / 371.8 MB, free: 0.5508 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01462/0.5075, allocations: 3.404 MB / 375.2 MB, free: 13.14 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00681/0.5143, allocations: 1.608 MB / 376.8 MB, free: 11.52 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.00224/0.5166, allocations: 0.7511 MB / 377.6 MB, free: 10.77 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007428/0.5174, allocations: 279.5 kB / 377.8 MB, free: 10.5 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001805/0.5192, allocations: 0.5374 MB / 378.4 MB, free: 9.957 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008806/0.5281, allocations: 3.462 MB / 381.8 MB, free: 6.492 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02049/0.5486, allocations: 6.794 MB / 388.6 MB, free: 15.69 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003072/0.5517, allocations: 412 kB / 389 MB, free: 15.29 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000394/0.5522, allocations: 131.5 kB / 389.2 MB, free: 15.16 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003483/0.5525, allocations: 76 kB / 389.2 MB, free: 15.08 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009358/0.5619, allocations: 3.2 MB / 392.4 MB, free: 11.88 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.562, allocations: 0 / 392.4 MB, free: 11.88 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.434e-06/0.562, allocations: 0 / 392.4 MB, free: 11.88 MB / 330.7 MB Notification: Performance of Transformations before backend: time 5.053e-05/0.562, allocations: 4 kB / 392.4 MB, free: 11.87 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: 137 * Number of variables: 137 Notification: Performance of Generate backend data structure: time 0.004882/0.5669, allocations: 1.376 MB / 393.8 MB, free: 10.45 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.599e-05/0.567, allocations: 8.031 kB / 393.8 MB, free: 10.44 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003221/0.5702, allocations: 278.9 kB / 394.1 MB, free: 10.16 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001283/0.5716, allocations: 0.4967 MB / 394.6 MB, free: 9.625 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.079e-05/0.5717, allocations: 45.31 kB / 394.6 MB, free: 9.582 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001348/0.5718, allocations: 52 kB / 394.7 MB, free: 9.531 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003882/0.5757, allocations: 0.9551 MB / 395.6 MB, free: 8.52 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.033e-05/0.5758, allocations: 3.938 kB / 395.6 MB, free: 8.516 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001037/0.5759, allocations: 28 kB / 395.7 MB, free: 8.488 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.772e-05/0.576, allocations: 21 kB / 395.7 MB, free: 8.465 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004069/0.58, allocations: 0.8701 MB / 396.6 MB, free: 7.598 MB / 330.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.007591/0.5877, allocations: 4.658 MB / 401.2 MB, free: 2.508 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003966/0.5917, allocations: 0.768 MB / 402 MB, free: 1.73 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06976/0.6615, allocations: 21.58 MB / 423.6 MB, free: 9.488 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.095e-05/0.6616, allocations: 38.56 kB / 423.6 MB, free: 9.441 MB / 362.7 MB Notification: Performance of pre-optimization done (n=43): time 3.557e-06/0.6616, allocations: 3.938 kB / 423.6 MB, free: 9.438 MB / 362.7 MB Notification: Performance of matching and sorting (n=58): time 0.01695/0.6786, allocations: 2.967 MB / 426.6 MB, free: 6.395 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.523e-05/0.6787, allocations: 119.3 kB / 426.7 MB, free: 6.254 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007152/0.6794, allocations: 380.9 kB / 427.1 MB, free: 5.871 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001211/0.6796, allocations: 33.7 kB / 427.1 MB, free: 5.832 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003206/0.6799, allocations: 370.2 kB / 427.5 MB, free: 5.469 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003009/0.6802, allocations: 209.1 kB / 427.7 MB, free: 5.262 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.559e-05/0.6803, allocations: 12 kB / 427.7 MB, free: 5.25 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002265/0.6806, allocations: 342.8 kB / 428 MB, free: 4.906 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001415/0.682, allocations: 317.8 kB / 428.3 MB, free: 4.598 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00153/0.6836, allocations: 0.511 MB / 428.8 MB, free: 4.004 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001493/0.6851, allocations: 374 kB / 429.2 MB, free: 3.637 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.77e-06/0.6851, allocations: 0 / 429.2 MB, free: 3.637 MB / 362.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.004943/0.6901, allocations: 1.101 MB / 430.3 MB, free: 2.523 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001036/0.6911, allocations: 2.361 MB / 432.7 MB, free: 15.98 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.975e-05/0.6912, allocations: 8 kB / 432.7 MB, free: 15.97 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003112/0.6943, allocations: 405.3 kB / 433.1 MB, free: 15.57 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001009/0.6954, allocations: 151.8 kB / 433.2 MB, free: 15.42 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003031/0.6984, allocations: 1.514 MB / 434.7 MB, free: 13.85 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001196/0.6997, allocations: 83.91 kB / 434.8 MB, free: 13.77 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001252/0.6998, allocations: 39.98 kB / 434.8 MB, free: 13.73 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.613e-05/0.6999, allocations: 4 kB / 434.8 MB, free: 13.73 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004437/0.7043, allocations: 1.002 MB / 435.9 MB, free: 12.72 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.939e-05/0.7044, allocations: 8.594 kB / 435.9 MB, free: 12.71 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002615/0.707, allocations: 381.3 kB / 436.2 MB, free: 12.34 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001007/0.708, allocations: 143.8 kB / 436.4 MB, free: 12.2 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002798/0.7108, allocations: 1.476 MB / 437.8 MB, free: 10.67 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009919/0.7119, allocations: 91.78 kB / 437.9 MB, free: 10.58 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.611e-05/0.712, allocations: 35.98 kB / 438 MB, free: 10.54 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * 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 (64): * Single equations (assignments): 62 * 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 8,3 10} Notification: Performance of prepare postOptimizeDAE: time 0.0005342/0.7125, allocations: 225.3 kB / 438.2 MB, free: 10.32 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001994/0.7127, allocations: 55.34 kB / 438.2 MB, free: 10.26 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0081/0.7208, allocations: 3.427 MB / 441.7 MB, free: 6.773 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.062e-05/0.721, allocations: 47.92 kB / 441.7 MB, free: 6.727 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.082e-05/0.721, allocations: 3.953 kB / 441.7 MB, free: 6.723 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.698e-05/0.721, allocations: 4.172 kB / 441.7 MB, free: 6.719 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01119/0.7322, allocations: 4.731 MB / 446.5 MB, free: 1.918 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.364e-05/0.7323, allocations: 3.938 kB / 446.5 MB, free: 1.914 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000766/0.733, allocations: 107.9 kB / 446.6 MB, free: 1.809 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00352/0.7366, allocations: 0.8713 MB / 447.4 MB, free: 0.9297 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000115/0.7367, allocations: 15.98 kB / 447.5 MB, free: 0.9141 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003392/0.7402, allocations: 1.949 MB / 449.4 MB, free: 14.91 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.376e-06/0.7402, allocations: 0 / 449.4 MB, free: 14.91 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00598/0.7462, allocations: 2.27 MB / 451.7 MB, free: 12.57 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006277/0.7469, allocations: 314.9 kB / 452 MB, free: 12.24 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001745/0.7471, allocations: 15.98 kB / 452 MB, free: 12.22 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009693/0.748, allocations: 91.72 kB / 452.1 MB, free: 12.13 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001952/0.7482, allocations: 60.41 kB / 452.1 MB, free: 12.07 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.267e-05/0.7483, allocations: 27.98 kB / 452.2 MB, free: 12.05 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0006784/0.749, allocations: 391.1 kB / 452.6 MB, free: 11.66 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.749, allocations: 0 / 452.6 MB, free: 11.66 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.004597/0.7537, allocations: 1.238 MB / 453.8 MB, free: 10.43 MB / 394.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,$cse16.phase,$cse16.region,$cse17.phase,$cse17.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 (48): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 10 * 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 7,2 15} Notification: Performance of Backend phase and start with SimCode phase: time 0.007371/0.7611, allocations: 1.334 MB / 455.1 MB, free: 9.086 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.006852/0.768, allocations: 1.757 MB / 456.9 MB, free: 7.32 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 8.806e-06/0.768, allocations: 4 kB / 456.9 MB, free: 7.316 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002686/0.7707, allocations: 0.9844 MB / 457.9 MB, free: 6.336 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002581/0.7734, allocations: 286.6 kB / 458.2 MB, free: 6.059 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006649/0.78, allocations: 3.172 MB / 461.3 MB, free: 2.848 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009697/0.7811, allocations: 1.158 MB / 462.5 MB, free: 1.664 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003207/0.7814, allocations: 63.42 kB / 462.5 MB, free: 1.602 MB / 394.7 MB Notification: Performance of SimCode: time 1.202e-06/0.7814, allocations: 0 / 462.5 MB, free: 1.602 MB / 394.7 MB Notification: Performance of Templates: time 0.4762/1.258, allocations: 39.93 MB / 0.4907 GB, free: 123.5 MB / 410.7 MB make -j1 -f ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultLV.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.TestWaterPumpDefaultLVCalcHelperMain.o OMCppModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultLVCalcHelperMain.cpp In file included from OMCppModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultLVCalcHelperMain.cpp:29: ./OMCppModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultLVFunctions.cpp:6046:5: error: no matching function for call to 'add_array_scalar' add_array_scalar(c_(2), tmp370, tmp371); ^~~~~~~~~~~~~~~~~~~~~~~~ /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.TestWaterPumpDefaultLVCalcHelperMain.o' failed make: *** [OMCppModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultLVCalcHelperMain.o] Error 1