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.TestWaterPumpCheckValve.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.TestWaterPumpCheckValve,fileNamePrefix="ModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpCheckValve",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.02/2.02, allocations: 209.2 MB / 224.8 MB, free: 0.7578 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004328/0.0004329, allocations: 12 kB / 282.6 MB, free: 9.613 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1032/0.1037, allocations: 48.72 MB / 331.3 MB, free: 8.805 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCheckValve): time 0.3327/0.4364, allocations: 34.96 MB / 366.2 MB, free: 11.8 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.03632/0.4728, allocations: 17.19 MB / 383.4 MB, free: 14.81 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001325/0.4742, allocations: 28.38 kB / 383.5 MB, free: 14.8 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001984/0.4762, allocations: 433.6 kB / 383.9 MB, free: 14.44 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01858/0.4948, allocations: 4.037 MB / 387.9 MB, free: 11.3 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01316/0.508, allocations: 2.898 MB / 390.8 MB, free: 9.23 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.003177/0.5112, allocations: 1.12 MB / 391.9 MB, free: 8.242 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009028/0.5121, allocations: 377.2 kB / 392.3 MB, free: 7.855 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002095/0.5142, allocations: 0.6424 MB / 393 MB, free: 7.211 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01775/0.532, allocations: 6.409 MB / 399.4 MB, free: 0.7969 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002589/0.5323, allocations: 32 kB / 399.4 MB, free: 0.7656 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02271/0.5551, allocations: 7.425 MB / 406.8 MB, free: 9.332 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003706/0.5555, allocations: 151.4 kB / 407 MB, free: 9.184 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003861/0.5559, allocations: 173.3 kB / 407.1 MB, free: 9.008 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01064/0.5665, allocations: 3.505 MB / 410.6 MB, free: 5.496 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.5666, allocations: 0 / 410.6 MB, free: 5.496 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.406e-06/0.5666, allocations: 0 / 410.6 MB, free: 5.496 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.467e-05/0.5667, allocations: 0 / 410.6 MB, free: 5.496 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.00625/0.5729, allocations: 1.524 MB / 412.2 MB, free: 3.922 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.196e-05/0.573, allocations: 8.031 kB / 412.2 MB, free: 3.914 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000222/0.5732, allocations: 102.5 kB / 412.3 MB, free: 3.805 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003106/0.5763, allocations: 290.8 kB / 412.6 MB, free: 3.52 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001352/0.5777, allocations: 0.5239 MB / 413.1 MB, free: 2.953 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.449e-05/0.5778, allocations: 57.19 kB / 413.1 MB, free: 2.895 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001592/0.578, allocations: 56 kB / 413.2 MB, free: 2.84 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003836/0.5818, allocations: 0.9866 MB / 414.2 MB, free: 1.797 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.438e-05/0.5819, allocations: 3.938 kB / 414.2 MB, free: 1.793 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001078/0.582, allocations: 28 kB / 414.2 MB, free: 1.766 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.733e-05/0.5821, allocations: 21.31 kB / 414.2 MB, free: 1.746 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004094/0.5862, allocations: 0.9144 MB / 415.2 MB, free: 0.832 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.007085/0.5933, allocations: 4.352 MB / 419.5 MB, free: 12.07 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00362/0.597, allocations: 0.7538 MB / 420.3 MB, free: 11.31 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3457/0.9427, allocations: 80.04 MB / 0.4886 GB, free: 2.969 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.836e-05/0.9428, allocations: 35 kB / 0.4886 GB, free: 2.926 MB / 426.7 MB Notification: Performance of pre-optimization done (n=48): time 2.775e-06/0.9428, allocations: 0 / 0.4886 GB, free: 2.926 MB / 426.7 MB Notification: Performance of matching and sorting (n=52): time 0.01087/0.9537, allocations: 2.294 MB / 0.4908 GB, free: 0.5586 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.595e-05/0.9538, allocations: 107.2 kB / 0.4909 GB, free: 440 kB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2646/1.218, allocations: 488.1 kB / 0.4914 GB, free: 153.5 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001566/1.219, allocations: 34.08 kB / 0.4914 GB, free: 153.5 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003465/1.219, allocations: 371.2 kB / 0.4918 GB, free: 153.3 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002629/1.219, allocations: 184.2 kB / 0.492 GB, free: 153.2 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.57e-05/1.219, allocations: 14.81 kB / 0.492 GB, free: 153.2 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001112/1.22, allocations: 339.4 kB / 0.4923 GB, free: 152.9 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001279/1.221, allocations: 265.6 kB / 0.4926 GB, free: 152.9 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001364/1.222, allocations: 465.2 kB / 0.493 GB, free: 152.7 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001361/1.224, allocations: 311.7 kB / 0.4933 GB, free: 152.7 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.056e-06/1.224, allocations: 4.219 kB / 0.4933 GB, free: 152.7 MB / 426.7 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.004081/1.228, allocations: 0.9499 MB / 0.4942 GB, free: 152.6 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001773/1.228, allocations: 261.2 kB / 0.4945 GB, free: 152.2 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.776e-05/1.228, allocations: 7.375 kB / 0.4945 GB, free: 152.2 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005001/1.233, allocations: 478.4 kB / 0.495 GB, free: 152.2 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001243/1.234, allocations: 143.8 kB / 0.4951 GB, free: 152.2 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002645/1.237, allocations: 0.9306 MB / 0.496 GB, free: 151.5 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001662/1.239, allocations: 96.48 kB / 0.4961 GB, free: 151.5 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001491/1.239, allocations: 40.48 kB / 0.4961 GB, free: 151.5 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.726e-05/1.239, allocations: 6.438 kB / 0.4961 GB, free: 151.5 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.006241/1.245, allocations: 0.9231 MB / 0.497 GB, free: 151.2 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.95e-05/1.245, allocations: 6.875 kB / 0.497 GB, free: 151.2 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003084/1.248, allocations: 316.9 kB / 0.4973 GB, free: 151.1 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001289/1.25, allocations: 146.8 kB / 0.4975 GB, free: 151.1 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002305/1.252, allocations: 0.8691 MB / 0.4983 GB, free: 150.4 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001299/1.253, allocations: 81.02 kB / 0.4984 GB, free: 150.4 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001294/1.253, allocations: 39.7 kB / 0.4985 GB, free: 150.4 MB / 426.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.0007225/1.254, allocations: 288.8 kB / 0.4987 GB, free: 150.2 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000258/1.254, allocations: 56.97 kB / 0.4988 GB, free: 150.1 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00837/1.263, allocations: 2.747 MB / 0.5015 GB, free: 148.9 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.875e-05/1.263, allocations: 33.66 kB / 0.5015 GB, free: 148.9 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.142e-05/1.263, allocations: 5.391 kB / 0.5015 GB, free: 148.9 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.848e-05/1.263, allocations: 3.234 kB / 0.5015 GB, free: 148.9 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01051/1.274, allocations: 3.744 MB / 0.5052 GB, free: 147.2 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-05/1.274, allocations: 9.125 kB / 0.5052 GB, free: 147.2 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001485/1.275, allocations: 142.8 kB / 0.5053 GB, free: 147.2 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009566/1.276, allocations: 106.3 kB / 0.5054 GB, free: 147.1 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.825e-05/1.276, allocations: 15.73 kB / 0.5054 GB, free: 147.1 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001239/1.277, allocations: 1.134 MB / 0.5065 GB, free: 146 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.566e-06/1.277, allocations: 1.031 kB / 0.5065 GB, free: 146 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007485/1.285, allocations: 2.277 MB / 0.5088 GB, free: 145 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009135/1.286, allocations: 336 kB / 0.5091 GB, free: 144.8 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002597/1.286, allocations: 17.48 kB / 0.5091 GB, free: 144.8 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001272/1.288, allocations: 72.72 kB / 0.5092 GB, free: 144.7 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002397/1.288, allocations: 47.81 kB / 0.5092 GB, free: 144.7 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.753e-05/1.288, allocations: 21.03 kB / 0.5092 GB, free: 144.7 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001323/1.289, allocations: 463.4 kB / 0.5097 GB, free: 144.5 MB / 426.7 MB Notification: Performance of sort global known variables: time 5.81e-07/1.289, allocations: 1.25 kB / 0.5097 GB, free: 144.5 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.007655/1.297, allocations: 1.316 MB / 0.511 GB, free: 144.4 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: 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.0172/1.314, allocations: 4.112 MB / 0.515 GB, free: 142.8 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.00525/1.319, allocations: 1.399 MB / 0.5163 GB, free: 142.3 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 8.045e-06/1.32, allocations: 0 / 0.5163 GB, free: 142.3 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001966/1.322, allocations: 0.7396 MB / 0.5171 GB, free: 142 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002825/1.324, allocations: 288.1 kB / 0.5173 GB, free: 141.9 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009531/1.334, allocations: 4.202 MB / 0.5214 GB, free: 138.8 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006968/1.335, allocations: 1.15 MB / 0.5226 GB, free: 137.6 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007858/1.336, allocations: 451.3 kB / 0.523 GB, free: 137.1 MB / 426.7 MB Notification: Performance of SimCode: time 1.734e-06/1.336, allocations: 0 / 0.523 GB, free: 137.1 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_TestWaterPumpCheckValveCalcHelperMain.o OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpCheckValveCalcHelperMain.cpp In file included from OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpCheckValveCalcHelperMain.cpp:28: ./OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpCheckValveFunctions.cpp:6143:5: error: no matching function for call to 'add_array_scalar' add_array_scalar(c_(2), tmp281, tmp282); ^~~~~~~~~~~~~~~~~~~~~~~~ /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_TestWaterPumpCheckValveCalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_3_2_1_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_1_cpp_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpCheckValveCalcHelperMain.o' failed make: *** [OMCppModelicaTest_3_2_1_cpp_ModelicaTest_Fluid_TestComponents_Machines_TestWaterPumpCheckValveCalcHelperMain.o] Error 1