Running command: translateModel(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpPowerCharacteristic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pump.medium.h|pump.medium.p",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpPowerCharacteristic") Notification: Performance of loadModel(ModelicaTest): time 2.377/2.377, allocations: 234.9 MB / 250.1 MB, free: 10.02 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.796e-05/3.791e-05, allocations: 4 kB / 308 MB, free: 15.99 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3675/0.3676, allocations: 54.86 MB / 362.9 MB, free: 12.06 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpPowerCharacteristic): time 0.06075/0.4284, allocations: 34.21 MB / 397.1 MB, free: 11.58 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.03393/0.4624, allocations: 16.23 MB / 413.3 MB, free: 11.31 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001219/0.4637, allocations: 31.75 kB / 413.3 MB, free: 11.28 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001766/0.4655, allocations: 394.1 kB / 413.7 MB, free: 10.89 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01515/0.4807, allocations: 3.63 MB / 417.3 MB, free: 7.254 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01066/0.4913, allocations: 2.601 MB / 419.9 MB, free: 4.648 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.002472/0.4938, allocations: 0.8178 MB / 420.8 MB, free: 3.828 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008708/0.4948, allocations: 303.4 kB / 421 MB, free: 3.531 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002108/0.4969, allocations: 0.5765 MB / 421.6 MB, free: 2.953 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01621/0.5132, allocations: 6.266 MB / 427.9 MB, free: 12.68 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02143/0.5346, allocations: 7.164 MB / 435.1 MB, free: 5.512 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00319/0.5379, allocations: 435.9 kB / 435.5 MB, free: 5.086 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004612/0.5384, allocations: 147.5 kB / 435.6 MB, free: 4.941 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003665/0.5388, allocations: 84 kB / 435.7 MB, free: 4.859 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009649/0.5485, allocations: 3.38 MB / 439.1 MB, free: 1.473 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.5485, allocations: 0 / 439.1 MB, free: 1.473 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.234e-06/0.5485, allocations: 0 / 439.1 MB, free: 1.473 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.638e-05/0.5486, allocations: 0 / 439.1 MB, free: 1.473 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: 142 * Number of variables: 142 Notification: Performance of Generate backend data structure: time 0.005535/0.5541, allocations: 1.47 MB / 440.6 MB, free: 15.95 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.992e-05/0.5542, allocations: 12.03 kB / 440.6 MB, free: 15.94 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00356/0.5577, allocations: 314.7 kB / 440.9 MB, free: 15.63 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001375/0.5592, allocations: 0.5161 MB / 441.4 MB, free: 15.07 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.701e-05/0.5593, allocations: 53.31 kB / 441.4 MB, free: 15.02 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001558/0.5595, allocations: 55.91 kB / 441.5 MB, free: 14.97 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004844/0.5643, allocations: 0.9945 MB / 442.5 MB, free: 13.91 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.015e-05/0.5644, allocations: 3.984 kB / 442.5 MB, free: 13.91 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001561/0.5646, allocations: 27.94 kB / 442.5 MB, free: 13.88 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.736e-05/0.5647, allocations: 25 kB / 442.5 MB, free: 13.86 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006209/0.5709, allocations: 0.9131 MB / 443.5 MB, free: 12.94 MB / 378.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.01027/0.5812, allocations: 4.479 MB / 447.9 MB, free: 8.043 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005531/0.5868, allocations: 0.7956 MB / 448.7 MB, free: 7.238 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.6579/1.245, allocations: 83.92 MB / 0.5202 GB, free: 131.9 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.015e-05/1.245, allocations: 39 kB / 0.5202 GB, free: 131.8 MB / 442.7 MB Notification: Performance of pre-optimization done (n=48): time 2.966e-06/1.245, allocations: 0 / 0.5202 GB, free: 131.8 MB / 442.7 MB Notification: Performance of matching and sorting (n=52): time 0.01007/1.255, allocations: 2.29 MB / 0.5224 GB, free: 129.6 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.573e-05/1.255, allocations: 107.2 kB / 0.5226 GB, free: 129.4 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006845/1.256, allocations: 429.3 kB / 0.523 GB, free: 129 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 8.04e-05/1.256, allocations: 37.7 kB / 0.523 GB, free: 129 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001993/1.256, allocations: 375.2 kB / 0.5234 GB, free: 128.6 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001708/1.256, allocations: 181.2 kB / 0.5235 GB, free: 128.4 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.428e-05/1.256, allocations: 12 kB / 0.5235 GB, free: 128.4 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 7.791e-05/1.256, allocations: 343.1 kB / 0.5239 GB, free: 128.1 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001059/1.257, allocations: 277.1 kB / 0.5241 GB, free: 127.8 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001153/1.259, allocations: 476.7 kB / 0.5246 GB, free: 127.2 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001158/1.26, allocations: 331.1 kB / 0.5249 GB, free: 126.9 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.43e-06/1.26, allocations: 0 / 0.5249 GB, free: 126.9 MB / 442.7 MB Notification: Performance of matching and sorting (n=81) (initialization): time 0.003787/1.264, allocations: 0.9718 MB / 0.5259 GB, free: 125.9 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004724/1.264, allocations: 2.179 MB / 0.528 GB, free: 123.6 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.56e-05/1.264, allocations: 4 kB / 0.528 GB, free: 123.6 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003127/1.267, allocations: 417.1 kB / 0.5284 GB, free: 123.2 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009692/1.268, allocations: 147.3 kB / 0.5285 GB, free: 123 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00188/1.27, allocations: 0.9131 MB / 0.5294 GB, free: 122.1 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001189/1.271, allocations: 99.86 kB / 0.5295 GB, free: 122 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.376e-05/1.272, allocations: 40 kB / 0.5295 GB, free: 122 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.306e-05/1.272, allocations: 1.094 kB / 0.5295 GB, free: 122 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003984/1.276, allocations: 0.9647 MB / 0.5305 GB, free: 121 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.553e-05/1.276, allocations: 10.58 kB / 0.5305 GB, free: 121 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002202/1.278, allocations: 321.8 kB / 0.5308 GB, free: 120.7 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009717/1.279, allocations: 147.8 kB / 0.5309 GB, free: 120.5 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00163/1.281, allocations: 0.8728 MB / 0.5318 GB, free: 119.6 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009286/1.281, allocations: 95.83 kB / 0.5319 GB, free: 119.6 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.95e-05/1.282, allocations: 36 kB / 0.5319 GB, free: 119.5 MB / 442.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 (61): * Single equations (assignments): 60 * 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 18} Notification: Performance of prepare postOptimizeDAE: time 0.0004604/1.282, allocations: 210.8 kB / 0.5321 GB, free: 119.3 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000173/1.282, allocations: 59.34 kB / 0.5322 GB, free: 119.2 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005129/1.287, allocations: 2.935 MB / 0.535 GB, free: 116.3 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.043e-05/1.287, allocations: 43.92 kB / 0.5351 GB, free: 116.3 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.087e-06/1.287, allocations: 3.953 kB / 0.5351 GB, free: 116.3 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.337e-05/1.287, allocations: 3.984 kB / 0.5351 GB, free: 116.3 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006711/1.294, allocations: 4.071 MB / 0.5391 GB, free: 112.1 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.13e-05/1.294, allocations: 7.922 kB / 0.5391 GB, free: 112.1 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001292/1.296, allocations: 168.4 kB / 0.5392 GB, free: 112 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004448/1.296, allocations: 72.66 kB / 0.5393 GB, free: 111.9 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.645e-05/1.296, allocations: 16 kB / 0.5393 GB, free: 111.9 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006301/1.297, allocations: 1.177 MB / 0.5405 GB, free: 110.6 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.178e-06/1.297, allocations: 3.953 kB / 0.5405 GB, free: 110.6 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004981/1.302, allocations: 2.597 MB / 0.543 GB, free: 108 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005681/1.302, allocations: 326.7 kB / 0.5433 GB, free: 107.7 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001738/1.303, allocations: 12 kB / 0.5433 GB, free: 107.7 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008832/1.303, allocations: 72 kB / 0.5434 GB, free: 107.6 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001678/1.304, allocations: 56.44 kB / 0.5435 GB, free: 107.5 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.263e-05/1.304, allocations: 27.31 kB / 0.5435 GB, free: 107.5 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0006925/1.304, allocations: 395 kB / 0.5439 GB, free: 107.1 MB / 442.7 MB Notification: Performance of sort global known variables: time 5.21e-07/1.304, allocations: 0 / 0.5439 GB, free: 107.1 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004464/1.309, allocations: 1.288 MB / 0.5451 GB, free: 105.9 MB / 442.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,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse11.region3boundary,$cse12.region3boundary,$cse13.phase,$cse13.region,$cse14.phase,$cse14.region,$cse15.region3boundary,$cse16.region3boundary,$cse18.phase,$cse18.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 (68): * Single equations (assignments): 53 * 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.008013/1.317, allocations: 1.378 MB / 0.5465 GB, free: 104.8 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.004868/1.322, allocations: 1.531 MB / 0.548 GB, free: 103.3 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 7.454e-06/1.322, allocations: 4 kB / 0.548 GB, free: 103.3 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002165/1.324, allocations: 0.8796 MB / 0.5488 GB, free: 102.4 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002747/1.327, allocations: 296.2 kB / 0.5491 GB, free: 102.1 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00591/1.333, allocations: 3.274 MB / 0.5523 GB, free: 98.86 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006501/1.334, allocations: 1.163 MB / 0.5534 GB, free: 97.68 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003806/1.334, allocations: 71.42 kB / 0.5535 GB, free: 97.61 MB / 442.7 MB Notification: Performance of SimCode: time 1.643e-06/1.334, allocations: 0 / 0.5535 GB, free: 97.61 MB / 442.7 MB Notification: Performance of Templates: time 0.07052/1.405, allocations: 38.94 MB / 0.5915 GB, free: 58.65 MB / 442.7 MB make -j1 -f ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpPowerCharacteristic.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.2_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpPowerCharacteristicCalcHelperMain.o OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpPowerCharacteristicCalcHelperMain.cpp In file included from OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpPowerCharacteristicCalcHelperMain.cpp:29: ./OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpPowerCharacteristicFunctions.cpp:6337:5: error: no matching function for call to 'add_array_scalar' add_array_scalar(c_(2), tmp395, tmp396); ^~~~~~~~~~~~~~~~~~~~~~~~ /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.2_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpPowerCharacteristicCalcHelperMain.o' failed make: *** [OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpPowerCharacteristicCalcHelperMain.o] Error 1