Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpPowerCharacteristic.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpPowerCharacteristic,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpPowerCharacteristic",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.164/2.164, allocations: 209.2 MB / 224.8 MB, free: 0.6211 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004563/0.0004564, allocations: 12 kB / 282.6 MB, free: 9.594 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3501/0.3506, allocations: 48.71 MB / 331.3 MB, free: 6.516 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpPowerCharacteristic): time 0.0579/0.4086, allocations: 34.96 MB / 366.3 MB, free: 11.48 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.03535/0.444, allocations: 17.2 MB / 383.4 MB, free: 10.25 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001314/0.4453, allocations: 27.75 kB / 383.5 MB, free: 10.22 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002312/0.4477, allocations: 426.1 kB / 383.9 MB, free: 9.805 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01875/0.4665, allocations: 4.04 MB / 387.9 MB, free: 5.754 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.013/0.4795, allocations: 2.891 MB / 390.8 MB, free: 2.852 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.00291/0.4825, allocations: 1.091 MB / 391.9 MB, free: 1.758 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009629/0.4835, allocations: 377.3 kB / 392.3 MB, free: 1.371 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00226/0.4857, allocations: 0.6384 MB / 392.9 MB, free: 0.7305 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01727/0.5031, allocations: 6.206 MB / 399.1 MB, free: 10.52 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002401/0.5034, allocations: 32 kB / 399.2 MB, free: 10.49 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02232/0.5257, allocations: 7.503 MB / 406.7 MB, free: 2.977 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003883/0.5261, allocations: 147.5 kB / 406.8 MB, free: 2.832 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003568/0.5265, allocations: 177.3 kB / 407 MB, free: 2.652 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0102/0.5367, allocations: 3.52 MB / 410.5 MB, free: 15.12 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.5368, allocations: 0 / 410.5 MB, free: 15.12 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.766e-06/0.5368, allocations: 0 / 410.5 MB, free: 15.12 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.507e-05/0.5368, allocations: 0 / 410.5 MB, free: 15.12 MB / 346.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.005911/0.5428, allocations: 1.516 MB / 412 MB, free: 13.56 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.562e-05/0.5428, allocations: 8.031 kB / 412 MB, free: 13.55 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003138/0.5432, allocations: 106.5 kB / 412.1 MB, free: 13.44 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00323/0.5464, allocations: 286.8 kB / 412.4 MB, free: 13.16 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001437/0.5479, allocations: 0.5277 MB / 412.9 MB, free: 12.59 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.203e-05/0.548, allocations: 57.27 kB / 413 MB, free: 12.53 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000149/0.5482, allocations: 56 kB / 413 MB, free: 12.47 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003965/0.5522, allocations: 0.9906 MB / 414 MB, free: 11.43 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.749e-05/0.5522, allocations: 0 / 414 MB, free: 11.43 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001097/0.5524, allocations: 24 kB / 414.1 MB, free: 11.4 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.018e-05/0.5524, allocations: 28.98 kB / 414.1 MB, free: 11.37 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004341/0.5568, allocations: 0.9131 MB / 415 MB, free: 10.46 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.007872/0.5647, allocations: 4.494 MB / 419.5 MB, free: 5.543 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004126/0.5689, allocations: 0.8014 MB / 420.3 MB, free: 4.734 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.6865/1.255, allocations: 83.86 MB / 0.4923 GB, free: 126 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.98e-05/1.255, allocations: 41.73 kB / 0.4924 GB, free: 125.9 MB / 410.7 MB Notification: Performance of pre-optimization done (n=48): time 3.035e-06/1.256, allocations: 0 / 0.4924 GB, free: 125.9 MB / 410.7 MB Notification: Performance of matching and sorting (n=52): time 0.01013/1.266, allocations: 2.297 MB / 0.4946 GB, free: 124.7 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.258e-05/1.266, allocations: 114.9 kB / 0.4947 GB, free: 124.6 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008003/1.267, allocations: 484.4 kB / 0.4952 GB, free: 124.3 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001144/1.267, allocations: 37.67 kB / 0.4952 GB, free: 124.3 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002222/1.267, allocations: 376.1 kB / 0.4956 GB, free: 123.9 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000189/1.267, allocations: 175.4 kB / 0.4958 GB, free: 123.8 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.438e-05/1.267, allocations: 15.97 kB / 0.4958 GB, free: 123.8 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 8.73e-05/1.267, allocations: 334.7 kB / 0.4961 GB, free: 123.4 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001112/1.268, allocations: 285.6 kB / 0.4964 GB, free: 123.3 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001282/1.27, allocations: 472.8 kB / 0.4968 GB, free: 122.9 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001282/1.271, allocations: 332.5 kB / 0.4971 GB, free: 122.8 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.901e-06/1.271, allocations: 2.906 kB / 0.4971 GB, free: 122.8 MB / 410.7 MB Notification: Performance of matching and sorting (n=81) (initialization): time 0.003879/1.275, allocations: 0.9719 MB / 0.4981 GB, free: 122.3 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001409/1.275, allocations: 254.2 kB / 0.4983 GB, free: 122 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.622e-05/1.275, allocations: 6.094 kB / 0.4983 GB, free: 122 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00356/1.279, allocations: 445.1 kB / 0.4988 GB, free: 121.8 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009576/1.28, allocations: 153.7 kB / 0.4989 GB, free: 121.7 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00195/1.282, allocations: 0.9035 MB / 0.4998 GB, free: 120.8 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001186/1.283, allocations: 87.84 kB / 0.4999 GB, free: 120.7 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.256e-05/1.283, allocations: 39.98 kB / 0.4999 GB, free: 120.6 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.231e-05/1.283, allocations: 5.094 kB / 0.4999 GB, free: 120.6 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004064/1.287, allocations: 0.9703 MB / 0.5009 GB, free: 119.7 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.087e-05/1.287, allocations: 4 kB / 0.5009 GB, free: 119.6 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002385/1.29, allocations: 328.7 kB / 0.5012 GB, free: 119.3 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009326/1.291, allocations: 147.8 kB / 0.5013 GB, free: 119.2 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001617/1.292, allocations: 0.8766 MB / 0.5022 GB, free: 118.3 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009533/1.293, allocations: 91.78 kB / 0.5023 GB, free: 118.2 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.873e-05/1.293, allocations: 35.98 kB / 0.5023 GB, free: 118.2 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 () * Number of clocked 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.0004959/1.294, allocations: 284.9 kB / 0.5026 GB, free: 117.9 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002827/1.294, allocations: 69.41 kB / 0.5026 GB, free: 117.8 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00752/1.302, allocations: 2.93 MB / 0.5055 GB, free: 114.9 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.083e-05/1.302, allocations: 43.94 kB / 0.5055 GB, free: 114.8 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.124e-05/1.302, allocations: 0 / 0.5055 GB, free: 114.8 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.652e-05/1.302, allocations: 3.984 kB / 0.5055 GB, free: 114.8 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009505/1.311, allocations: 4.079 MB / 0.5095 GB, free: 110.7 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.173e-05/1.311, allocations: 0 / 0.5095 GB, free: 110.7 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001889/1.313, allocations: 171.8 kB / 0.5097 GB, free: 110.5 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008035/1.314, allocations: 80.69 kB / 0.5098 GB, free: 110.4 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.975e-05/1.314, allocations: 12 kB / 0.5098 GB, free: 110.4 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008969/1.315, allocations: 1.185 MB / 0.5109 GB, free: 109.2 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/1.315, allocations: 4 kB / 0.5109 GB, free: 109.2 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00714/1.322, allocations: 2.605 MB / 0.5135 GB, free: 106.6 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008167/1.323, allocations: 318.9 kB / 0.5138 GB, free: 106.2 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002604/1.323, allocations: 12 kB / 0.5138 GB, free: 106.2 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001303/1.325, allocations: 71.84 kB / 0.5139 GB, free: 106.2 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002243/1.325, allocations: 56.48 kB / 0.5139 GB, free: 106.1 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.434e-05/1.325, allocations: 23.98 kB / 0.5139 GB, free: 106.1 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0006539/1.326, allocations: 395 kB / 0.5143 GB, free: 105.7 MB / 410.7 MB Notification: Performance of sort global known variables: time 3.61e-07/1.326, allocations: 0 / 0.5143 GB, free: 105.7 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.004517/1.33, allocations: 1.324 MB / 0.5156 GB, free: 104.5 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,$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 () * Number of clocked 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.01305/1.343, allocations: 4.436 MB / 0.5199 GB, free: 100.3 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004951/1.348, allocations: 1.53 MB / 0.5214 GB, free: 98.75 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.672e-06/1.349, allocations: 8.062 kB / 0.5214 GB, free: 98.74 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002073/1.351, allocations: 0.8714 MB / 0.5223 GB, free: 97.87 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002717/1.353, allocations: 298.6 kB / 0.5226 GB, free: 97.59 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008843/1.362, allocations: 4.266 MB / 0.5267 GB, free: 93.25 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006135/1.363, allocations: 1.162 MB / 0.5279 GB, free: 92.06 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007706/1.364, allocations: 455.3 kB / 0.5283 GB, free: 91.61 MB / 410.7 MB Notification: Performance of SimCode: time 1.011e-06/1.364, allocations: 3.938 kB / 0.5283 GB, free: 91.61 MB / 410.7 MB Error: Error building simulator. Build log: clang++ -Winvalid-pch -O0 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DSUNDIALS_MAJOR_VERSION=5 -DSUNDIALS_MINOR_VERSION=4 -DPMC_USE_SUNDIALS -DFMU_BUILD -DRUNTIME_STATIC_LINKING -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp" -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" -I"." -DUSE_LOGGER -c -o OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpPowerCharacteristicCalcHelperMain.o OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpPowerCharacteristicCalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpPowerCharacteristicCalcHelperMain.cpp:28: ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpPowerCharacteristicFunctions.cpp:6163:5: error: no matching function for call to 'add_array_scalar' add_array_scalar(c_(2), tmp289, tmp290); ^~~~~~~~~~~~~~~~~~~~~~~~ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/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); ^ In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpPowerCharacteristicCalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpPowerCharacteristicFMU.cpp:11: /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/FMU2/FMU2Wrapper.cpp:93:11: warning: 6 enumeration values not handled in switch: 'LC_INIT', 'LC_LS', 'LC_SOLVER'... [-Wswitch] switch (cat) { ^ 1 warning and 1 error generated. : recipe for target 'OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpPowerCharacteristicCalcHelperMain.o' failed make: *** [OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpPowerCharacteristicCalcHelperMain.o] Error 1