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.TestWaterPumpStorage.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.TestWaterPumpStorage,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpStorage",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.202/2.202, allocations: 234.9 MB / 250.4 MB, free: 9.703 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004206/0.0004208, allocations: 8 kB / 314.4 MB, free: 9.652 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.352/0.3525, allocations: 54.86 MB / 369.3 MB, free: 12.79 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorage): time 0.06824/0.4207, allocations: 35.22 MB / 404.5 MB, free: 9.465 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.04417/0.465, allocations: 17.32 MB / 421.8 MB, free: 8.109 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001122/0.4661, allocations: 31.75 kB / 421.8 MB, free: 8.078 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00196/0.4681, allocations: 426.1 kB / 422.3 MB, free: 7.66 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01726/0.4854, allocations: 4.083 MB / 426.3 MB, free: 3.566 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01234/0.4978, allocations: 2.917 MB / 429.3 MB, free: 0.6445 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.002756/0.5006, allocations: 1.118 MB / 430.4 MB, free: 15.52 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008625/0.5015, allocations: 377.4 kB / 430.7 MB, free: 15.14 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001998/0.5035, allocations: 0.6346 MB / 431.4 MB, free: 14.5 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01691/0.5204, allocations: 6.273 MB / 437.7 MB, free: 8.227 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002108/0.5207, allocations: 32 kB / 437.7 MB, free: 8.195 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02153/0.5422, allocations: 7.55 MB / 445.2 MB, free: 0.6367 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000336/0.5426, allocations: 139.5 kB / 445.4 MB, free: 0.5 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003485/0.543, allocations: 173.3 kB / 445.5 MB, free: 332 kB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009648/0.5526, allocations: 3.551 MB / 449.1 MB, free: 12.77 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.758e-06/0.5527, allocations: 0 / 449.1 MB, free: 12.77 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.205e-06/0.5527, allocations: 0 / 449.1 MB, free: 12.77 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.758e-05/0.5527, allocations: 4 kB / 449.1 MB, free: 12.76 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.005659/0.5584, allocations: 1.536 MB / 450.6 MB, free: 11.18 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.979e-05/0.5585, allocations: 8.031 kB / 450.6 MB, free: 11.17 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002202/0.5587, allocations: 102.5 kB / 450.7 MB, free: 11.06 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003113/0.5618, allocations: 314.8 kB / 451 MB, free: 10.75 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001311/0.5632, allocations: 0.5238 MB / 451.6 MB, free: 10.19 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.603e-05/0.5633, allocations: 45.31 kB / 451.6 MB, free: 10.14 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001527/0.5634, allocations: 67.89 kB / 451.7 MB, free: 10.08 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003765/0.5672, allocations: 0.9868 MB / 452.7 MB, free: 9.027 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.228e-05/0.5673, allocations: 7.875 kB / 452.7 MB, free: 9.02 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001075/0.5674, allocations: 28 kB / 452.7 MB, free: 8.992 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.791e-05/0.5675, allocations: 25 kB / 452.7 MB, free: 8.969 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004128/0.5716, allocations: 0.9091 MB / 453.6 MB, free: 8.055 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.007346/0.579, allocations: 4.467 MB / 458.1 MB, free: 3.168 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003881/0.5829, allocations: 0.7888 MB / 458.9 MB, free: 2.367 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.632/1.215, allocations: 83.93 MB / 0.5301 GB, free: 94.1 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.001e-05/1.215, allocations: 35 kB / 0.5301 GB, free: 94.06 MB / 426.7 MB Notification: Performance of pre-optimization done (n=48): time 2.504e-06/1.215, allocations: 0 / 0.5301 GB, free: 94.06 MB / 426.7 MB Notification: Performance of matching and sorting (n=52): time 0.009551/1.225, allocations: 2.279 MB / 0.5324 GB, free: 91.8 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.553e-05/1.225, allocations: 107.2 kB / 0.5325 GB, free: 91.67 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007579/1.225, allocations: 497.8 kB / 0.5329 GB, free: 91.19 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 8.598e-05/1.226, allocations: 29.7 kB / 0.533 GB, free: 91.15 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002001/1.226, allocations: 376.1 kB / 0.5333 GB, free: 90.79 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001614/1.226, allocations: 177.7 kB / 0.5335 GB, free: 90.61 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.303e-05/1.226, allocations: 12 kB / 0.5335 GB, free: 90.6 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 7.713e-05/1.226, allocations: 338.8 kB / 0.5338 GB, free: 90.26 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001032/1.227, allocations: 281.8 kB / 0.5341 GB, free: 89.98 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001126/1.228, allocations: 472.9 kB / 0.5345 GB, free: 89.45 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001149/1.229, allocations: 328.8 kB / 0.5349 GB, free: 89.12 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.999e-06/1.229, allocations: 0 / 0.5349 GB, free: 89.12 MB / 426.7 MB Notification: Performance of matching and sorting (n=81) (initialization): time 0.003906/1.233, allocations: 0.9847 MB / 0.5358 GB, free: 88.13 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001391/1.234, allocations: 255.8 kB / 0.5361 GB, free: 87.8 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.437e-05/1.234, allocations: 8 kB / 0.5361 GB, free: 87.79 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003765/1.237, allocations: 461.5 kB / 0.5365 GB, free: 87.34 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009156/1.238, allocations: 147.8 kB / 0.5367 GB, free: 87.2 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001861/1.24, allocations: 0.9245 MB / 0.5376 GB, free: 86.25 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001152/1.241, allocations: 91.84 kB / 0.5376 GB, free: 86.16 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.346e-05/1.242, allocations: 35.98 kB / 0.5377 GB, free: 86.12 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.188e-05/1.242, allocations: 4 kB / 0.5377 GB, free: 86.12 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00388/1.245, allocations: 0.9561 MB / 0.5386 GB, free: 85.16 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.233e-05/1.245, allocations: 4 kB / 0.5386 GB, free: 85.16 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002129/1.248, allocations: 314.1 kB / 0.5389 GB, free: 84.85 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000913/1.249, allocations: 147.8 kB / 0.5391 GB, free: 84.71 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001604/1.25, allocations: 0.8703 MB / 0.5399 GB, free: 83.81 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009138/1.251, allocations: 87.89 kB / 0.54 GB, free: 83.73 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.809e-05/1.251, allocations: 35.98 kB / 0.54 GB, free: 83.69 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 (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.000491/1.252, allocations: 281.9 kB / 0.5403 GB, free: 83.41 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001675/1.252, allocations: 63.25 kB / 0.5404 GB, free: 83.34 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005188/1.257, allocations: 2.926 MB / 0.5432 GB, free: 80.4 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.958e-05/1.257, allocations: 42.75 kB / 0.5433 GB, free: 80.36 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.668e-06/1.257, allocations: 3.625 kB / 0.5433 GB, free: 80.36 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.145e-05/1.257, allocations: 7.984 kB / 0.5433 GB, free: 80.35 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006522/1.264, allocations: 4.061 MB / 0.5472 GB, free: 76.25 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.015e-05/1.264, allocations: 0 / 0.5472 GB, free: 76.25 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001275/1.265, allocations: 167.8 kB / 0.5474 GB, free: 76.08 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005419/1.266, allocations: 76.69 kB / 0.5475 GB, free: 76 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.805e-05/1.266, allocations: 16 kB / 0.5475 GB, free: 75.99 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006266/1.266, allocations: 1.185 MB / 0.5486 GB, free: 74.75 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/1.266, allocations: 0 / 0.5486 GB, free: 74.75 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004929/1.271, allocations: 2.582 MB / 0.5512 GB, free: 72.15 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005237/1.272, allocations: 326.6 kB / 0.5515 GB, free: 71.82 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001657/1.272, allocations: 24.02 kB / 0.5515 GB, free: 71.79 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008622/1.273, allocations: 63.95 kB / 0.5516 GB, free: 71.73 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001541/1.273, allocations: 52.47 kB / 0.5516 GB, free: 71.68 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.34e-05/1.273, allocations: 20 kB / 0.5516 GB, free: 71.66 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0006311/1.274, allocations: 399 kB / 0.552 GB, free: 71.27 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.8e-07/1.274, allocations: 0 / 0.552 GB, free: 71.27 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004382/1.278, allocations: 1.33 MB / 0.5533 GB, free: 70.04 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,$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 () * Number of clocked 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.01268/1.291, allocations: 4.422 MB / 0.5576 GB, free: 65.83 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004717/1.296, allocations: 1.514 MB / 0.5591 GB, free: 64.32 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.162e-06/1.296, allocations: 4.062 kB / 0.5591 GB, free: 64.32 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00194/1.298, allocations: 0.8674 MB / 0.56 GB, free: 63.45 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002599/1.3, allocations: 294.4 kB / 0.5602 GB, free: 63.18 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008337/1.309, allocations: 4.258 MB / 0.5644 GB, free: 58.84 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006105/1.309, allocations: 1.167 MB / 0.5655 GB, free: 57.64 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007272/1.31, allocations: 447.3 kB / 0.566 GB, free: 57.21 MB / 426.7 MB Notification: Performance of SimCode: time 1.102e-06/1.31, allocations: 0 / 0.566 GB, free: 57.21 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_TestWaterPumpStorageCalcHelperMain.o OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpStorageCalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpStorageCalcHelperMain.cpp:28: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpStorageFunctions.cpp:6207: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_TestWaterPumpStorageCalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpStorageFMU.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_TestWaterPumpStorageCalcHelperMain.o' failed make: *** [OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpStorageCalcHelperMain.o] Error 1