Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpPowerCharacteristic.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpPowerCharacteristic,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpPowerCharacteristic",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.4/2.4, allocations: 234.9 MB / 250.4 MB, free: 9.777 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004388/0.0004389, allocations: 12 kB / 314.4 MB, free: 9.727 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3585/0.359, allocations: 54.86 MB / 369.3 MB, free: 12.79 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpPowerCharacteristic): time 0.05773/0.4168, allocations: 35.22 MB / 404.5 MB, free: 9.473 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.03495/0.4518, allocations: 17.32 MB / 421.8 MB, free: 8.117 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001244/0.4531, allocations: 27.75 kB / 421.8 MB, free: 8.09 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001849/0.455, allocations: 430 kB / 422.3 MB, free: 7.668 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01714/0.4722, allocations: 4.083 MB / 426.3 MB, free: 3.574 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01231/0.4845, allocations: 2.917 MB / 429.3 MB, free: 0.6523 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.00284/0.4873, allocations: 1.106 MB / 430.4 MB, free: 15.54 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009249/0.4883, allocations: 377.4 kB / 430.7 MB, free: 15.16 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00199/0.4903, allocations: 0.6423 MB / 431.4 MB, free: 14.52 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0169/0.5072, allocations: 6.277 MB / 437.7 MB, free: 8.234 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002527/0.5075, allocations: 32 kB / 437.7 MB, free: 8.203 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02163/0.5292, allocations: 7.628 MB / 445.3 MB, free: 0.5664 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003596/0.5296, allocations: 143.5 kB / 445.5 MB, free: 436 kB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003427/0.53, allocations: 177.3 kB / 445.6 MB, free: 252 kB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009735/0.5397, allocations: 3.574 MB / 449.2 MB, free: 12.66 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.5398, allocations: 0 / 449.2 MB, free: 12.66 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.745e-06/0.5398, allocations: 0 / 449.2 MB, free: 12.66 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.066e-05/0.5398, allocations: 0 / 449.2 MB, free: 12.66 MB / 378.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.005671/0.5455, allocations: 1.543 MB / 450.7 MB, free: 11.07 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.011e-05/0.5456, allocations: 8.031 kB / 450.8 MB, free: 11.06 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000195/0.5458, allocations: 102.5 kB / 450.9 MB, free: 10.95 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003026/0.5488, allocations: 306.8 kB / 451.2 MB, free: 10.65 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001306/0.5501, allocations: 0.5238 MB / 451.7 MB, free: 10.09 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.378e-05/0.5502, allocations: 53.31 kB / 451.7 MB, free: 10.04 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000145/0.5504, allocations: 55.91 kB / 451.8 MB, free: 9.984 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003832/0.5542, allocations: 0.9906 MB / 452.8 MB, free: 8.93 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.002e-05/0.5543, allocations: 7.938 kB / 452.8 MB, free: 8.922 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001091/0.5544, allocations: 28 kB / 452.8 MB, free: 8.895 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.294e-05/0.5545, allocations: 32.92 kB / 452.8 MB, free: 8.863 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004083/0.5586, allocations: 0.9053 MB / 453.7 MB, free: 7.953 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.007581/0.5662, allocations: 4.491 MB / 458.2 MB, free: 3.043 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003969/0.5702, allocations: 0.7928 MB / 459 MB, free: 2.238 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.5978/1.168, allocations: 83.93 MB / 0.5302 GB, free: 93.93 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.826e-05/1.168, allocations: 39 kB / 0.5303 GB, free: 93.88 MB / 426.7 MB Notification: Performance of pre-optimization done (n=48): time 2.825e-06/1.168, allocations: 0 / 0.5303 GB, free: 93.88 MB / 426.7 MB Notification: Performance of matching and sorting (n=52): time 0.009575/1.178, allocations: 2.288 MB / 0.5325 GB, free: 91.62 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.582e-05/1.178, allocations: 111.2 kB / 0.5326 GB, free: 91.49 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007138/1.179, allocations: 498 kB / 0.5331 GB, free: 91 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 6.785e-05/1.179, allocations: 37.7 kB / 0.5331 GB, free: 90.96 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002/1.179, allocations: 369.9 kB / 0.5335 GB, free: 90.6 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001576/1.179, allocations: 179.1 kB / 0.5337 GB, free: 90.43 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.461e-05/1.179, allocations: 16 kB / 0.5337 GB, free: 90.41 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 7.63e-05/1.179, allocations: 342.6 kB / 0.534 GB, free: 90.07 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001071/1.18, allocations: 285.1 kB / 0.5343 GB, free: 89.79 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001147/1.181, allocations: 477.6 kB / 0.5347 GB, free: 89.25 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001128/1.183, allocations: 318 kB / 0.535 GB, free: 88.93 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.611e-06/1.183, allocations: 4 kB / 0.535 GB, free: 88.93 MB / 426.7 MB Notification: Performance of matching and sorting (n=81) (initialization): time 0.003707/1.186, allocations: 0.9798 MB / 0.536 GB, free: 87.94 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001223/1.186, allocations: 260.3 kB / 0.5362 GB, free: 87.61 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.335e-05/1.186, allocations: 4 kB / 0.5362 GB, free: 87.6 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003424/1.19, allocations: 443.5 kB / 0.5367 GB, free: 87.17 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009056/1.191, allocations: 147.8 kB / 0.5368 GB, free: 87.02 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001885/1.193, allocations: 0.9068 MB / 0.5377 GB, free: 86.09 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001142/1.194, allocations: 96.39 kB / 0.5378 GB, free: 86 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.307e-05/1.194, allocations: 39.98 kB / 0.5378 GB, free: 85.96 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.327e-06/1.194, allocations: 0 / 0.5378 GB, free: 85.96 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003983/1.198, allocations: 0.9665 MB / 0.5388 GB, free: 84.99 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.05e-05/1.198, allocations: 4 kB / 0.5388 GB, free: 84.99 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002304/1.2, allocations: 334 kB / 0.5391 GB, free: 84.66 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009213/1.201, allocations: 146.7 kB / 0.5392 GB, free: 84.52 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001617/1.203, allocations: 0.8729 MB / 0.5401 GB, free: 83.62 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000956/1.204, allocations: 91.78 kB / 0.5402 GB, free: 83.53 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.377e-05/1.204, allocations: 39.98 kB / 0.5402 GB, free: 83.49 MB / 426.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.0005035/1.204, allocations: 284.8 kB / 0.5405 GB, free: 83.21 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001732/1.205, allocations: 67.23 kB / 0.5405 GB, free: 83.14 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005188/1.21, allocations: 2.928 MB / 0.5434 GB, free: 80.2 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.896e-05/1.21, allocations: 43.92 kB / 0.5434 GB, free: 80.15 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.053e-05/1.21, allocations: 3.953 kB / 0.5434 GB, free: 80.15 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.144e-05/1.21, allocations: 3.984 kB / 0.5434 GB, free: 80.14 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006748/1.217, allocations: 4.081 MB / 0.5474 GB, free: 76.02 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.009e-05/1.217, allocations: 0 / 0.5474 GB, free: 76.02 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001292/1.218, allocations: 171.8 kB / 0.5476 GB, free: 75.85 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005364/1.219, allocations: 72.75 kB / 0.5477 GB, free: 75.78 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.685e-05/1.219, allocations: 19.98 kB / 0.5477 GB, free: 75.76 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006221/1.219, allocations: 1.178 MB / 0.5488 GB, free: 74.53 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.426e-06/1.219, allocations: 3.953 kB / 0.5488 GB, free: 74.53 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005018/1.224, allocations: 2.605 MB / 0.5514 GB, free: 71.9 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005571/1.225, allocations: 310.9 kB / 0.5517 GB, free: 71.58 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001695/1.225, allocations: 20.05 kB / 0.5517 GB, free: 71.56 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000869/1.226, allocations: 75.8 kB / 0.5518 GB, free: 71.48 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001711/1.226, allocations: 56.42 kB / 0.5518 GB, free: 71.43 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.734e-05/1.226, allocations: 20 kB / 0.5518 GB, free: 71.41 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0006583/1.227, allocations: 399 kB / 0.5522 GB, free: 71.02 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.11e-07/1.227, allocations: 0 / 0.5522 GB, free: 71.02 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004751/1.232, allocations: 1.33 MB / 0.5535 GB, free: 69.79 MB / 426.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.01313/1.245, allocations: 4.437 MB / 0.5579 GB, free: 65.56 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004787/1.25, allocations: 1.533 MB / 0.5594 GB, free: 64.04 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.348e-06/1.25, allocations: 448 / 0.5594 GB, free: 64.04 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001879/1.252, allocations: 0.8792 MB / 0.5602 GB, free: 63.16 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00268/1.254, allocations: 312.7 kB / 0.5605 GB, free: 62.87 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008712/1.263, allocations: 4.258 MB / 0.5647 GB, free: 58.54 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006204/1.264, allocations: 1.167 MB / 0.5658 GB, free: 57.34 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007323/1.265, allocations: 455.3 kB / 0.5662 GB, free: 56.9 MB / 426.7 MB Notification: Performance of SimCode: time 1.233e-06/1.265, allocations: 0 / 0.5662 GB, free: 56.9 MB / 426.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_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:28: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpPowerCharacteristicFunctions.cpp:6193:5: error: no matching function for call to 'add_array_scalar' add_array_scalar(c_(2), tmp287, tmp288); ^~~~~~~~~~~~~~~~~~~~~~~~ /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_2_cpp_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpPowerCharacteristicCalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_2_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_2_cpp_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpPowerCharacteristicCalcHelperMain.o' failed make: *** [OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpPowerCharacteristicCalcHelperMain.o] Error 1