Running command: translateModel(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorage,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pump.medium.h|pump.medium.p",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorage") Notification: Performance of loadModel(ModelicaTest): time 1.904/1.904, allocations: 209.3 MB / 224.4 MB, free: 432 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.236e-05/3.248e-05, allocations: 4 kB / 276.2 MB, free: 15.84 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3498/0.3498, allocations: 48.69 MB / 324.8 MB, free: 2.906 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorage): time 0.06409/0.414, allocations: 33.96 MB / 358.8 MB, free: 10.78 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.04353/0.4576, allocations: 16.13 MB / 374.9 MB, free: 13.39 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001571/0.4592, allocations: 31.75 kB / 375 MB, free: 13.36 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002548/0.4618, allocations: 398 kB / 375.4 MB, free: 12.97 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02126/0.4831, allocations: 3.595 MB / 379 MB, free: 9.367 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0159/0.499, allocations: 2.571 MB / 381.5 MB, free: 6.789 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.003378/0.5025, allocations: 0.8139 MB / 382.3 MB, free: 5.973 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001206/0.5037, allocations: 299.4 kB / 382.6 MB, free: 5.68 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002437/0.5062, allocations: 0.5726 MB / 383.2 MB, free: 5.102 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01615/0.5224, allocations: 6.176 MB / 389.4 MB, free: 14.92 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02138/0.5438, allocations: 6.95 MB / 396.3 MB, free: 7.965 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003214/0.5471, allocations: 420 kB / 396.7 MB, free: 7.555 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004251/0.5476, allocations: 151.4 kB / 396.9 MB, free: 7.406 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003658/0.548, allocations: 80 kB / 397 MB, free: 7.328 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009738/0.5577, allocations: 3.313 MB / 400.3 MB, free: 4.008 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.578e-06/0.5578, allocations: 0 / 400.3 MB, free: 4.008 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.214e-06/0.5578, allocations: 0 / 400.3 MB, free: 4.008 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.766e-05/0.5578, allocations: 4 kB / 400.3 MB, free: 4.004 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: 142 * Number of variables: 142 Notification: Performance of Generate backend data structure: time 0.005302/0.5631, allocations: 1.443 MB / 401.7 MB, free: 2.512 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.747e-05/0.5632, allocations: 8.031 kB / 401.7 MB, free: 2.504 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003402/0.5666, allocations: 290.8 kB / 402 MB, free: 2.219 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001453/0.5681, allocations: 0.5239 MB / 402.5 MB, free: 1.652 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.038e-05/0.5682, allocations: 49.31 kB / 402.6 MB, free: 1.605 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001552/0.5684, allocations: 59.95 kB / 402.7 MB, free: 1.547 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00397/0.5724, allocations: 0.9902 MB / 403.6 MB, free: 0.5 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.361e-05/0.5724, allocations: 4 kB / 403.6 MB, free: 0.4961 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001055/0.5726, allocations: 20 kB / 403.7 MB, free: 488 kB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.003e-05/0.5726, allocations: 24.94 kB / 403.7 MB, free: 460 kB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004447/0.5771, allocations: 0.9132 MB / 404.6 MB, free: 15.54 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.007945/0.5851, allocations: 4.475 MB / 409.1 MB, free: 10.64 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005974/0.5911, allocations: 0.7844 MB / 409.9 MB, free: 9.852 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.6836/1.275, allocations: 83.85 MB / 493.7 MB, free: 128.6 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.118e-05/1.275, allocations: 40.77 kB / 493.8 MB, free: 128.5 MB / 410.7 MB Notification: Performance of pre-optimization done (n=48): time 4.007e-06/1.275, allocations: 0 / 493.8 MB, free: 128.5 MB / 410.7 MB Notification: Performance of matching and sorting (n=52): time 0.01505/1.29, allocations: 2.269 MB / 496 MB, free: 127.4 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.065e-05/1.29, allocations: 115 kB / 496.1 MB, free: 127.3 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00114/1.291, allocations: 433.7 kB / 496.6 MB, free: 127 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001432/1.291, allocations: 36.64 kB / 496.6 MB, free: 127 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003161/1.292, allocations: 378.4 kB / 497 MB, free: 126.6 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002615/1.292, allocations: 179.9 kB / 497.1 MB, free: 126.5 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.94e-05/1.292, allocations: 13.41 kB / 497.2 MB, free: 126.5 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001025/1.292, allocations: 336.5 kB / 497.5 MB, free: 126.1 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001536/1.294, allocations: 276.8 kB / 497.7 MB, free: 126 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001675/1.295, allocations: 472.3 kB / 498.2 MB, free: 125.6 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001672/1.297, allocations: 319.8 kB / 498.5 MB, free: 125.5 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.195e-06/1.297, allocations: 2.188 kB / 498.5 MB, free: 125.5 MB / 410.7 MB Notification: Performance of matching and sorting (n=81) (initialization): time 0.005417/1.303, allocations: 0.9747 MB / 499.5 MB, free: 125 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005617/1.303, allocations: 2.181 MB / 0.4899 GB, free: 122.7 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.388e-05/1.303, allocations: 5.75 kB / 0.4899 GB, free: 122.7 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004498/1.308, allocations: 411.9 kB / 0.4903 GB, free: 122.5 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001308/1.309, allocations: 144.4 kB / 0.4905 GB, free: 122.5 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002696/1.312, allocations: 0.9181 MB / 0.4914 GB, free: 121.7 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001748/1.314, allocations: 94.94 kB / 0.4914 GB, free: 121.7 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001421/1.314, allocations: 34.08 kB / 0.4915 GB, free: 121.7 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.933e-05/1.314, allocations: 4.312 kB / 0.4915 GB, free: 121.7 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004405/1.318, allocations: 0.9512 MB / 0.4924 GB, free: 121.2 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.651e-05/1.318, allocations: 7.125 kB / 0.4924 GB, free: 121.2 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002051/1.32, allocations: 308.8 kB / 0.4927 GB, free: 121.1 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009736/1.321, allocations: 151.8 kB / 0.4929 GB, free: 121 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00165/1.323, allocations: 0.8729 MB / 0.4937 GB, free: 120.3 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001064/1.324, allocations: 82.06 kB / 0.4938 GB, free: 120.3 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.626e-05/1.324, allocations: 32.66 kB / 0.4938 GB, free: 120.3 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * 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 (60): * Single equations (assignments): 59 * 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 20} Notification: Performance of prepare postOptimizeDAE: time 0.0005166/1.325, allocations: 219.1 kB / 0.494 GB, free: 120.1 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002093/1.325, allocations: 61.78 kB / 0.4941 GB, free: 120.1 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005228/1.33, allocations: 2.917 MB / 0.4969 GB, free: 118.4 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.269e-05/1.33, allocations: 42.69 kB / 0.497 GB, free: 118.4 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.236e-06/1.33, allocations: 0 / 0.497 GB, free: 118.4 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.314e-05/1.33, allocations: 3.984 kB / 0.497 GB, free: 118.4 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006481/1.337, allocations: 4.066 MB / 0.501 GB, free: 114.5 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.568e-06/1.337, allocations: 0 / 0.501 GB, free: 114.5 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00127/1.338, allocations: 167.8 kB / 0.5011 GB, free: 114.4 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004452/1.339, allocations: 66.3 kB / 0.5012 GB, free: 114.3 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.075e-05/1.339, allocations: 19.98 kB / 0.5012 GB, free: 114.3 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006285/1.339, allocations: 1.183 MB / 0.5023 GB, free: 113.1 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/1.339, allocations: 1.094 kB / 0.5023 GB, free: 113.1 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004865/1.344, allocations: 2.589 MB / 0.5049 GB, free: 110.5 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005617/1.345, allocations: 322.8 kB / 0.5052 GB, free: 110.1 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001711/1.345, allocations: 16.06 kB / 0.5052 GB, free: 110.1 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008413/1.346, allocations: 67.84 kB / 0.5053 GB, free: 110 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000156/1.346, allocations: 52.48 kB / 0.5053 GB, free: 110 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.468e-05/1.346, allocations: 23.98 kB / 0.5053 GB, free: 110 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0006343/1.347, allocations: 399 kB / 0.5057 GB, free: 109.6 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.41e-07/1.347, allocations: 4 kB / 0.5057 GB, free: 109.6 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004268/1.351, allocations: 1.276 MB / 0.507 GB, free: 108.4 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (pump.medium.p,pump.medium.h) * Number of discrete variables: 25 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region,$cse10.region3boundary,$cse11.region3boundary,$cse12.phase,$cse12.region,$cse13.phase,$cse13.region,$cse14.region3boundary,$cse15.region3boundary,$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 (67): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 13 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.006871/1.358, allocations: 1.363 MB / 0.5083 GB, free: 107.2 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004726/1.363, allocations: 1.509 MB / 0.5098 GB, free: 105.7 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.312e-06/1.363, allocations: 448 / 0.5098 GB, free: 105.7 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001927/1.365, allocations: 0.8597 MB / 0.5106 GB, free: 104.9 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002611/1.367, allocations: 311.8 kB / 0.5109 GB, free: 104.6 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005652/1.373, allocations: 3.278 MB / 0.5141 GB, free: 101.3 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006191/1.374, allocations: 1.162 MB / 0.5152 GB, free: 100.1 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000341/1.374, allocations: 71.41 kB / 0.5153 GB, free: 100.1 MB / 410.7 MB Notification: Performance of SimCode: time 1.152e-06/1.374, allocations: 0 / 0.5153 GB, free: 100.1 MB / 410.7 MB Notification: Performance of Templates: time 0.07057/1.445, allocations: 38.53 MB / 0.5529 GB, free: 61.52 MB / 410.7 MB make -j1 -f ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorage.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.TestWaterPumpStorageCalcHelperMain.o OMCppModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorageCalcHelperMain.cpp In file included from OMCppModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorageCalcHelperMain.cpp:29: ./OMCppModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorageFunctions.cpp:6321: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_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorageCalcHelperMain.o' failed make: *** [OMCppModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorageCalcHelperMain.o] Error 1