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.TestWaterPumpCheckValve.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.TestWaterPumpCheckValve,fileNamePrefix="ModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpCheckValve",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.39/2.39, allocations: 234.9 MB / 250.5 MB, free: 9.559 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006777/0.000678, allocations: 16 kB / 314.4 MB, free: 9.508 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.342/0.3427, allocations: 54.86 MB / 369.3 MB, free: 10.73 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCheckValve): time 0.05834/0.4011, allocations: 35.22 MB / 404.5 MB, free: 7.41 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.03518/0.4364, allocations: 17.32 MB / 421.8 MB, free: 6.055 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001049/0.4375, allocations: 31.75 kB / 421.8 MB, free: 6.023 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001875/0.4394, allocations: 426 kB / 422.3 MB, free: 5.605 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01716/0.4566, allocations: 4.079 MB / 426.3 MB, free: 1.516 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01241/0.469, allocations: 2.925 MB / 429.3 MB, free: 14.59 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.002761/0.4718, allocations: 1.13 MB / 430.4 MB, free: 13.45 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008176/0.4726, allocations: 377.4 kB / 430.8 MB, free: 13.07 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00187/0.4745, allocations: 0.6463 MB / 431.4 MB, free: 12.42 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01698/0.4915, allocations: 6.499 MB / 437.9 MB, free: 5.918 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000232/0.4918, allocations: 32 kB / 437.9 MB, free: 5.887 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02114/0.5129, allocations: 7.55 MB / 445.5 MB, free: 14.33 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003408/0.5133, allocations: 147.5 kB / 445.6 MB, free: 14.18 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003328/0.5137, allocations: 173.3 kB / 445.8 MB, free: 14.01 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009472/0.5232, allocations: 3.555 MB / 449.4 MB, free: 10.45 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.097e-06/0.5232, allocations: 0 / 449.4 MB, free: 10.45 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.025e-06/0.5233, allocations: 0 / 449.4 MB, free: 10.45 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.192e-05/0.5233, allocations: 0 / 449.4 MB, free: 10.45 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.005571/0.5289, allocations: 1.54 MB / 450.9 MB, free: 8.855 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.753e-05/0.5289, allocations: 8.031 kB / 450.9 MB, free: 8.848 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001977/0.5291, allocations: 102.5 kB / 451 MB, free: 8.738 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003048/0.5322, allocations: 314.8 kB / 451.3 MB, free: 8.43 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001269/0.5335, allocations: 0.52 MB / 451.8 MB, free: 7.871 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.203e-05/0.5336, allocations: 45.31 kB / 451.9 MB, free: 7.828 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001504/0.5337, allocations: 63.91 kB / 451.9 MB, free: 7.766 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00376/0.5375, allocations: 0.9982 MB / 452.9 MB, free: 6.711 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.038e-05/0.5376, allocations: 3.938 kB / 452.9 MB, free: 6.707 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001075/0.5377, allocations: 24 kB / 453 MB, free: 6.684 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.691e-05/0.5378, allocations: 21.31 kB / 453 MB, free: 6.66 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004095/0.5419, allocations: 0.9221 MB / 453.9 MB, free: 5.734 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.007423/0.5493, allocations: 4.356 MB / 458.3 MB, free: 0.9727 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003574/0.5529, allocations: 0.748 MB / 459 MB, free: 224 kB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.5884/1.141, allocations: 80.07 MB / 0.5264 GB, free: 33.14 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.518e-05/1.141, allocations: 35 kB / 0.5265 GB, free: 33.1 MB / 394.7 MB Notification: Performance of pre-optimization done (n=48): time 2.555e-06/1.141, allocations: 3.938 kB / 0.5265 GB, free: 33.1 MB / 394.7 MB Notification: Performance of matching and sorting (n=52): time 0.00992/1.151, allocations: 2.3 MB / 0.5287 GB, free: 30.8 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.538e-05/1.152, allocations: 111 kB / 0.5288 GB, free: 30.67 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007297/1.152, allocations: 489.1 kB / 0.5293 GB, free: 30.19 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 8.035e-05/1.152, allocations: 37.7 kB / 0.5293 GB, free: 30.14 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002017/1.153, allocations: 378.7 kB / 0.5297 GB, free: 29.78 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001687/1.153, allocations: 178.2 kB / 0.5299 GB, free: 29.61 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.358e-05/1.153, allocations: 12 kB / 0.5299 GB, free: 29.59 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 7.976e-05/1.153, allocations: 338.8 kB / 0.5302 GB, free: 29.25 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000976/1.154, allocations: 261.1 kB / 0.5305 GB, free: 29 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001088/1.155, allocations: 466.7 kB / 0.5309 GB, free: 28.46 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001071/1.156, allocations: 314 kB / 0.5312 GB, free: 28.15 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.781e-06/1.156, allocations: 4 kB / 0.5312 GB, free: 28.14 MB / 394.7 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.003449/1.16, allocations: 0.9413 MB / 0.5321 GB, free: 27.19 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001449/1.16, allocations: 266 kB / 0.5324 GB, free: 26.85 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.55e-05/1.16, allocations: 8 kB / 0.5324 GB, free: 26.84 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003785/1.164, allocations: 476.3 kB / 0.5328 GB, free: 26.38 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008904/1.165, allocations: 144.6 kB / 0.533 GB, free: 26.23 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001888/1.166, allocations: 0.9346 MB / 0.5339 GB, free: 25.27 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00113/1.168, allocations: 91.83 kB / 0.534 GB, free: 25.18 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.864e-05/1.168, allocations: 35.98 kB / 0.534 GB, free: 25.15 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.211e-05/1.168, allocations: 4 kB / 0.534 GB, free: 25.14 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003782/1.171, allocations: 0.9276 MB / 0.5349 GB, free: 24.21 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.076e-05/1.172, allocations: 8 kB / 0.5349 GB, free: 24.21 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002096/1.174, allocations: 311.3 kB / 0.5352 GB, free: 23.9 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009485/1.175, allocations: 147.8 kB / 0.5354 GB, free: 23.76 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001558/1.176, allocations: 0.8715 MB / 0.5362 GB, free: 22.87 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009147/1.177, allocations: 90.52 kB / 0.5363 GB, free: 22.78 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.065e-05/1.177, allocations: 35.98 kB / 0.5363 GB, free: 22.75 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 27 * 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 {4 19} Notification: Performance of prepare postOptimizeDAE: time 0.0004906/1.178, allocations: 288.9 kB / 0.5366 GB, free: 22.45 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001734/1.178, allocations: 63.25 kB / 0.5367 GB, free: 22.39 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004997/1.183, allocations: 2.746 MB / 0.5394 GB, free: 19.62 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.078e-05/1.183, allocations: 31.95 kB / 0.5394 GB, free: 19.59 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.526e-06/1.183, allocations: 0 / 0.5394 GB, free: 19.59 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.023e-05/1.183, allocations: 7.922 kB / 0.5394 GB, free: 19.58 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006128/1.189, allocations: 3.745 MB / 0.543 GB, free: 15.79 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.01e-05/1.189, allocations: 0 / 0.543 GB, free: 15.79 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001018/1.19, allocations: 154.4 kB / 0.5432 GB, free: 15.64 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006576/1.191, allocations: 101.5 kB / 0.5433 GB, free: 15.54 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.426e-05/1.191, allocations: 19.98 kB / 0.5433 GB, free: 15.52 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008638/1.192, allocations: 1.128 MB / 0.5444 GB, free: 14.34 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/1.192, allocations: 192 / 0.5444 GB, free: 14.34 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004633/1.197, allocations: 2.289 MB / 0.5466 GB, free: 12.02 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005419/1.197, allocations: 334.8 kB / 0.547 GB, free: 11.68 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001764/1.197, allocations: 12 kB / 0.547 GB, free: 11.66 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008288/1.198, allocations: 71.94 kB / 0.547 GB, free: 11.59 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001516/1.198, allocations: 44.48 kB / 0.5471 GB, free: 11.55 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.81e-05/1.198, allocations: 20 kB / 0.5471 GB, free: 11.53 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0007343/1.199, allocations: 463 kB / 0.5476 GB, free: 11.08 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.21e-07/1.199, allocations: 0 / 0.5476 GB, free: 11.08 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.00448/1.204, allocations: 1.328 MB / 0.5488 GB, free: 9.848 MB / 394.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: 21 ($cse1.phase,$cse1.region,$cse2.phase,$cse2.region,$cse4.phase,$cse4.region,$cse5.phase,$cse5.region,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse9.region3boundary,$cse10.region3boundary,$cse12.phase,$cse12.region,$cse16.phase,$cse16.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 (62): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 10 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01206/1.216, allocations: 4.096 MB / 0.5528 GB, free: 5.938 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.004303/1.22, allocations: 1.41 MB / 0.5542 GB, free: 4.531 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.068e-06/1.22, allocations: 4.062 kB / 0.5542 GB, free: 4.527 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001707/1.222, allocations: 0.7425 MB / 0.555 GB, free: 3.785 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00263/1.225, allocations: 286.8 kB / 0.5552 GB, free: 3.52 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00876/1.233, allocations: 4.196 MB / 0.5593 GB, free: 15.28 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008992/1.234, allocations: 1.151 MB / 0.5604 GB, free: 14.1 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008297/1.235, allocations: 451.3 kB / 0.5609 GB, free: 13.66 MB / 410.7 MB Notification: Performance of SimCode: time 1.162e-06/1.235, allocations: 0 / 0.5609 GB, free: 13.66 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_2_cpp_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpCheckValveCalcHelperMain.o OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpCheckValveCalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpCheckValveCalcHelperMain.cpp:28: ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpCheckValveFunctions.cpp:6173:5: error: no matching function for call to 'add_array_scalar' add_array_scalar(c_(2), tmp279, tmp280); ^~~~~~~~~~~~~~~~~~~~~~~~ /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_TestWaterPumpCheckValveCalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpCheckValveFMU.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_TestWaterPumpCheckValveCalcHelperMain.o' failed make: *** [OMCppModelicaTest_3_2_2_cpp_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpCheckValveCalcHelperMain.o] Error 1