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.TestWaterPumpStorage.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.TestWaterPumpStorage,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpStorage",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 1.938/1.938, allocations: 209.2 MB / 224.8 MB, free: 1.695 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004242/0.000424, allocations: 12 kB / 282.6 MB, free: 9.746 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1107/0.1111, allocations: 48.71 MB / 331.3 MB, free: 8.941 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorage): time 0.3379/0.4491, allocations: 34.97 MB / 366.2 MB, free: 11.96 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0358/0.4849, allocations: 17.19 MB / 383.4 MB, free: 14.96 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001628/0.4866, allocations: 26.91 kB / 383.5 MB, free: 14.94 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002481/0.4892, allocations: 430.5 kB / 383.9 MB, free: 14.59 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02005/0.5093, allocations: 4.03 MB / 387.9 MB, free: 11.46 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01366/0.523, allocations: 2.903 MB / 390.8 MB, free: 9.383 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.003285/0.5263, allocations: 1.102 MB / 391.9 MB, free: 8.336 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008537/0.5272, allocations: 373.2 kB / 392.3 MB, free: 7.957 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001982/0.5292, allocations: 0.6423 MB / 392.9 MB, free: 7.312 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01693/0.5461, allocations: 6.187 MB / 399.1 MB, free: 1.117 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002463/0.5464, allocations: 28 kB / 399.1 MB, free: 1.09 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02214/0.5686, allocations: 7.429 MB / 406.6 MB, free: 9.652 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003501/0.569, allocations: 143.5 kB / 406.7 MB, free: 9.512 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003958/0.5694, allocations: 173.3 kB / 406.9 MB, free: 9.336 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0103/0.5797, allocations: 3.496 MB / 410.4 MB, free: 5.832 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.041e-06/0.5798, allocations: 8 kB / 410.4 MB, free: 5.824 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.775e-06/0.5798, allocations: 0 / 410.4 MB, free: 5.824 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.352e-05/0.5798, allocations: 4 kB / 410.4 MB, free: 5.82 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.005849/0.5857, allocations: 1.512 MB / 411.9 MB, free: 4.258 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.884e-05/0.5857, allocations: 8.031 kB / 411.9 MB, free: 4.25 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002117/0.586, allocations: 98.52 kB / 412 MB, free: 4.145 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003153/0.5891, allocations: 298.8 kB / 412.3 MB, free: 3.852 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001432/0.5906, allocations: 0.5277 MB / 412.8 MB, free: 3.281 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.398e-05/0.5907, allocations: 45.31 kB / 412.9 MB, free: 3.234 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001497/0.5909, allocations: 59.98 kB / 412.9 MB, free: 3.176 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003908/0.5948, allocations: 0.9828 MB / 413.9 MB, free: 2.137 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.825e-05/0.5949, allocations: 11.92 kB / 413.9 MB, free: 2.125 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001111/0.595, allocations: 28 kB / 413.9 MB, free: 2.098 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.485e-05/0.5951, allocations: 21 kB / 414 MB, free: 2.078 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0042/0.5993, allocations: 0.9053 MB / 414.9 MB, free: 1.172 MB / 330.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.007781/0.6071, allocations: 4.479 MB / 419.4 MB, free: 12.27 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004181/0.6113, allocations: 0.785 MB / 420.1 MB, free: 11.48 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.6494/1.261, allocations: 83.86 MB / 0.4922 GB, free: 153 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.259e-05/1.261, allocations: 39.64 kB / 0.4922 GB, free: 153 MB / 426.7 MB Notification: Performance of pre-optimization done (n=48): time 3.016e-06/1.261, allocations: 1.453 kB / 0.4922 GB, free: 153 MB / 426.7 MB Notification: Performance of matching and sorting (n=52): time 0.011/1.272, allocations: 2.27 MB / 0.4944 GB, free: 152.7 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.338e-05/1.272, allocations: 108.9 kB / 0.4945 GB, free: 152.5 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009272/1.273, allocations: 493.9 kB / 0.495 GB, free: 152.4 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 9.827e-05/1.273, allocations: 33.45 kB / 0.495 GB, free: 152.3 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002489/1.273, allocations: 373.5 kB / 0.4954 GB, free: 152 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002172/1.274, allocations: 188.3 kB / 0.4956 GB, free: 151.9 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.505e-05/1.274, allocations: 15.56 kB / 0.4956 GB, free: 151.9 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 9.153e-05/1.274, allocations: 334.8 kB / 0.4959 GB, free: 151.6 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001173/1.275, allocations: 278.4 kB / 0.4962 GB, free: 151.5 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00126/1.276, allocations: 475.4 kB / 0.4966 GB, free: 151.2 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001269/1.277, allocations: 324.2 kB / 0.4969 GB, free: 151.1 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.921e-06/1.277, allocations: 1.375 kB / 0.4969 GB, free: 151.1 MB / 426.7 MB Notification: Performance of matching and sorting (n=81) (initialization): time 0.004348/1.282, allocations: 0.9884 MB / 0.4979 GB, free: 150.7 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001851/1.282, allocations: 262.5 kB / 0.4982 GB, free: 150.4 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.756e-05/1.282, allocations: 10.64 kB / 0.4982 GB, free: 150.4 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004067/1.286, allocations: 455.5 kB / 0.4986 GB, free: 150.4 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001024/1.287, allocations: 146.7 kB / 0.4987 GB, free: 150.3 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002132/1.289, allocations: 0.9226 MB / 0.4996 GB, free: 149.7 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001287/1.291, allocations: 96.25 kB / 0.4997 GB, free: 149.7 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001102/1.291, allocations: 33.34 kB / 0.4998 GB, free: 149.7 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.395e-05/1.291, allocations: 3.656 kB / 0.4998 GB, free: 149.7 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004502/1.295, allocations: 0.9545 MB / 0.5007 GB, free: 149.3 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.556e-05/1.296, allocations: 5.906 kB / 0.5007 GB, free: 149.3 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00235/1.298, allocations: 317.5 kB / 0.501 GB, free: 149.3 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001018/1.299, allocations: 149.3 kB / 0.5012 GB, free: 149.3 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001761/1.301, allocations: 0.8663 MB / 0.502 GB, free: 148.6 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001044/1.302, allocations: 87.47 kB / 0.5021 GB, free: 148.6 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.441e-05/1.302, allocations: 34.69 kB / 0.5021 GB, free: 148.6 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.000602/1.302, allocations: 289.3 kB / 0.5024 GB, free: 148.3 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002086/1.303, allocations: 61.19 kB / 0.5025 GB, free: 148.3 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006464/1.309, allocations: 2.922 MB / 0.5053 GB, free: 147 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.913e-05/1.309, allocations: 51.19 kB / 0.5054 GB, free: 147 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.047e-05/1.309, allocations: 3.172 kB / 0.5054 GB, free: 147 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.079e-05/1.309, allocations: 4.688 kB / 0.5054 GB, free: 147 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008657/1.318, allocations: 4.063 MB / 0.5093 GB, free: 145.1 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.141e-05/1.318, allocations: 0 / 0.5093 GB, free: 145.1 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001358/1.319, allocations: 167.7 kB / 0.5095 GB, free: 145.1 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005801/1.32, allocations: 69.77 kB / 0.5096 GB, free: 145.1 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.598e-05/1.32, allocations: 19.8 kB / 0.5096 GB, free: 145.1 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007052/1.321, allocations: 1.18 MB / 0.5107 GB, free: 143.9 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/1.321, allocations: 0.75 kB / 0.5107 GB, free: 143.9 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005931/1.327, allocations: 2.593 MB / 0.5133 GB, free: 142.7 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006765/1.328, allocations: 319.3 kB / 0.5136 GB, free: 142.5 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001711/1.328, allocations: 16.12 kB / 0.5136 GB, free: 142.5 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008531/1.329, allocations: 72.2 kB / 0.5137 GB, free: 142.5 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001693/1.329, allocations: 52.28 kB / 0.5137 GB, free: 142.5 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.302e-05/1.329, allocations: 22.47 kB / 0.5137 GB, free: 142.4 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.000777/1.33, allocations: 404.1 kB / 0.5141 GB, free: 142.3 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.91e-07/1.33, allocations: 0 / 0.5141 GB, free: 142.3 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005109/1.335, allocations: 1.318 MB / 0.5154 GB, free: 142.2 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.01379/1.349, allocations: 4.401 MB / 0.5197 GB, free: 139.9 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.005112/1.354, allocations: 1.515 MB / 0.5212 GB, free: 138.4 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.612e-06/1.354, allocations: 4.438 kB / 0.5212 GB, free: 138.4 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002108/1.356, allocations: 0.8558 MB / 0.522 GB, free: 137.5 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002852/1.359, allocations: 311.1 kB / 0.5223 GB, free: 137.2 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00962/1.368, allocations: 4.259 MB / 0.5265 GB, free: 132.9 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006698/1.369, allocations: 1.166 MB / 0.5276 GB, free: 131.7 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008386/1.37, allocations: 451.3 kB / 0.528 GB, free: 131.3 MB / 426.7 MB Notification: Performance of SimCode: time 2.124e-06/1.37, allocations: 0 / 0.528 GB, free: 131.3 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_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:28: ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpStorageFunctions.cpp:6177: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_TestWaterPumpStorageCalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_1_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_1_cpp_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpStorageCalcHelperMain.o' failed make: *** [OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpStorageCalcHelperMain.o] Error 1