Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package ModelicaTest with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.2/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCheckValve,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pump.medium.h|pump.medium.p",fileNamePrefix="ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCheckValve") Notification: Performance of loadModel(ModelicaTest): time 2.353/2.353, allocations: 234.9 MB / 250.5 MB, free: 9.473 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004458/0.000446, allocations: 16 kB / 314.3 MB, free: 9.512 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3033/0.3038, allocations: 54.86 MB / 369.2 MB, free: 12.76 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCheckValve): time 0.0531/0.3569, allocations: 35.22 MB / 404.4 MB, free: 9.441 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.03042/0.3874, allocations: 17.31 MB / 421.7 MB, free: 8.09 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001121/0.3886, allocations: 27.75 kB / 421.8 MB, free: 8.062 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001521/0.3901, allocations: 434 kB / 422.2 MB, free: 7.637 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01492/0.405, allocations: 4.079 MB / 426.3 MB, free: 3.547 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0107/0.4158, allocations: 2.914 MB / 429.2 MB, free: 0.6289 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.002493/0.4183, allocations: 1.134 MB / 430.3 MB, free: 15.49 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008596/0.4192, allocations: 373.4 kB / 430.7 MB, free: 15.11 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001742/0.4209, allocations: 0.6423 MB / 431.3 MB, free: 14.47 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01327/0.4342, allocations: 6.515 MB / 437.8 MB, free: 7.949 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002059/0.4345, allocations: 32 kB / 437.9 MB, free: 7.918 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0231/0.4576, allocations: 7.546 MB / 445.4 MB, free: 372 kB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004809/0.4582, allocations: 143.5 kB / 445.5 MB, free: 228 kB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005736/0.4588, allocations: 173.3 kB / 445.7 MB, free: 48 kB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01413/0.4729, allocations: 3.559 MB / 449.3 MB, free: 12.48 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.538e-06/0.473, allocations: 0 / 449.3 MB, free: 12.48 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.643e-06/0.473, allocations: 0 / 449.3 MB, free: 12.48 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.533e-05/0.4731, allocations: 0 / 449.3 MB, free: 12.48 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.008494/0.4816, allocations: 1.539 MB / 450.8 MB, free: 10.89 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.089e-05/0.4817, allocations: 8.031 kB / 450.8 MB, free: 10.88 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006163/0.4878, allocations: 314.8 kB / 451.1 MB, free: 10.57 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002219/0.4901, allocations: 0.5238 MB / 451.6 MB, free: 10.01 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001415/0.4903, allocations: 45.31 kB / 451.7 MB, free: 9.969 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002441/0.4906, allocations: 56 kB / 451.7 MB, free: 9.914 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006366/0.4969, allocations: 0.9943 MB / 452.7 MB, free: 8.863 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.627e-05/0.4971, allocations: 7.906 kB / 452.7 MB, free: 8.855 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001861/0.4973, allocations: 31.94 kB / 452.8 MB, free: 8.824 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.605e-05/0.4974, allocations: 21.31 kB / 452.8 MB, free: 8.801 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006826/0.5042, allocations: 0.9143 MB / 453.7 MB, free: 7.883 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.01174/0.516, allocations: 4.356 MB / 458.1 MB, free: 3.121 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005881/0.5219, allocations: 0.7468 MB / 458.8 MB, free: 2.367 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4633/0.9853, allocations: 80.06 MB / 0.5262 GB, free: 99.49 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.232e-05/0.9853, allocations: 46.5 kB / 0.5263 GB, free: 99.44 MB / 426.7 MB Notification: Performance of pre-optimization done (n=48): time 3.674e-06/0.9854, allocations: 0 / 0.5263 GB, free: 99.44 MB / 426.7 MB Notification: Performance of matching and sorting (n=52): time 0.008009/0.9934, allocations: 2.298 MB / 0.5285 GB, free: 97.14 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.778e-05/0.9935, allocations: 107.2 kB / 0.5286 GB, free: 97.02 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006511/0.9941, allocations: 494 kB / 0.5291 GB, free: 96.54 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 6.389e-05/0.9942, allocations: 37.7 kB / 0.5291 GB, free: 96.49 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001908/0.9944, allocations: 376.6 kB / 0.5295 GB, free: 96.13 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000147/0.9946, allocations: 177.9 kB / 0.5297 GB, free: 95.96 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.511e-05/0.9946, allocations: 16 kB / 0.5297 GB, free: 95.94 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 6.69e-05/0.9947, allocations: 334.8 kB / 0.53 GB, free: 95.61 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007454/0.9955, allocations: 265.1 kB / 0.5303 GB, free: 95.34 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008152/0.9963, allocations: 466.5 kB / 0.5307 GB, free: 94.8 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008006/0.9971, allocations: 314 kB / 0.531 GB, free: 94.5 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.291e-06/0.9971, allocations: 4 kB / 0.531 GB, free: 94.49 MB / 426.7 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.002658/0.9998, allocations: 0.9338 MB / 0.5319 GB, free: 93.55 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001277/1, allocations: 277.7 kB / 0.5322 GB, free: 93.2 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.408e-05/1, allocations: 9.031 kB / 0.5322 GB, free: 93.19 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003097/1.003, allocations: 471.6 kB / 0.5326 GB, free: 92.73 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006928/1.004, allocations: 147.8 kB / 0.5328 GB, free: 92.58 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001633/1.005, allocations: 0.9357 MB / 0.5337 GB, free: 91.62 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009495/1.006, allocations: 91.78 kB / 0.5338 GB, free: 91.54 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.507e-05/1.007, allocations: 35.98 kB / 0.5338 GB, free: 91.5 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.275e-05/1.007, allocations: 4 kB / 0.5338 GB, free: 91.5 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003214/1.01, allocations: 0.9274 MB / 0.5347 GB, free: 90.57 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.528e-05/1.01, allocations: 8 kB / 0.5347 GB, free: 90.56 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001838/1.012, allocations: 310.3 kB / 0.535 GB, free: 90.25 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006991/1.012, allocations: 151.8 kB / 0.5352 GB, free: 90.11 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001229/1.014, allocations: 0.8662 MB / 0.536 GB, free: 89.22 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006956/1.014, allocations: 87.91 kB / 0.5361 GB, free: 89.13 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.301e-05/1.015, allocations: 39.92 kB / 0.5361 GB, free: 89.09 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.0004443/1.015, allocations: 289.4 kB / 0.5364 GB, free: 88.8 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001734/1.015, allocations: 63.25 kB / 0.5365 GB, free: 88.74 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004077/1.019, allocations: 2.75 MB / 0.5392 GB, free: 85.97 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.663e-05/1.019, allocations: 35.94 kB / 0.5392 GB, free: 85.94 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.259e-06/1.019, allocations: 1.312 kB / 0.5392 GB, free: 85.94 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.24e-05/1.019, allocations: 0 / 0.5392 GB, free: 85.94 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005204/1.025, allocations: 3.75 MB / 0.5429 GB, free: 82.14 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.299e-06/1.025, allocations: 0 / 0.5429 GB, free: 82.14 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006483/1.025, allocations: 147.8 kB / 0.543 GB, free: 82 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005307/1.026, allocations: 97.55 kB / 0.5431 GB, free: 81.89 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.577e-05/1.026, allocations: 23.98 kB / 0.5431 GB, free: 81.87 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007369/1.027, allocations: 1.128 MB / 0.5442 GB, free: 80.69 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.304e-06/1.027, allocations: 3.688 kB / 0.5442 GB, free: 80.69 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003852/1.031, allocations: 2.277 MB / 0.5464 GB, free: 78.39 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005176/1.031, allocations: 338.7 kB / 0.5468 GB, free: 78.04 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001384/1.031, allocations: 20.05 kB / 0.5468 GB, free: 78.02 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006255/1.032, allocations: 67.89 kB / 0.5469 GB, free: 77.95 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001334/1.032, allocations: 48.48 kB / 0.5469 GB, free: 77.91 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.468e-05/1.032, allocations: 23.98 kB / 0.5469 GB, free: 77.88 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0006719/1.033, allocations: 455 kB / 0.5474 GB, free: 77.44 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.033e-06/1.033, allocations: 0 / 0.5474 GB, free: 77.44 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003807/1.037, allocations: 1.335 MB / 0.5487 GB, free: 76.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: 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.005826/1.043, allocations: 1.383 MB / 0.55 GB, free: 75 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.00345/1.046, allocations: 1.386 MB / 0.5514 GB, free: 73.62 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.274e-06/1.046, allocations: 0.5625 kB / 0.5514 GB, free: 73.62 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001418/1.048, allocations: 0.7464 MB / 0.5521 GB, free: 72.88 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001674/1.049, allocations: 299.2 kB / 0.5524 GB, free: 72.59 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004667/1.054, allocations: 3.219 MB / 0.5555 GB, free: 69.45 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005846/1.055, allocations: 1.147 MB / 0.5566 GB, free: 68.27 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002592/1.055, allocations: 67.42 kB / 0.5567 GB, free: 68.2 MB / 426.7 MB Notification: Performance of SimCode: time 1.546e-06/1.055, allocations: 0 / 0.5567 GB, free: 68.2 MB / 426.7 MB Notification: Performance of Templates: time 0.05652/1.111, allocations: 40.03 MB / 0.5958 GB, free: 28.15 MB / 426.7 MB make -j1 -f ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCheckValve.makefile b'clang++ -fopenmp=libomp -Winvalid-pch -O0 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=5 -DSUNDIALS_MINOR_VERSION=4 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. -I"." -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/include/omc/c/sundials" -DMEASURETIME_PROFILEBLOCKS -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\nIn file included from OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCheckValveCalcHelperMain.cpp:28:\n./OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCheckValveFunctions.cpp:6173:5: error: no matching function for call to \'add_array_scalar\'\n add_array_scalar(c_(2), tmp279, tmp280);\n ^~~~~~~~~~~~~~~~~~~~~~~~\n/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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\nvoid add_array_scalar(const BaseArray& inputArray, T b, BaseArray& outputArray);\n ^\n1 error generated.\n: recipe for target \'OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCheckValveCalcHelperMain.o\' failed\nmake: *** [OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCheckValveCalcHelperMain.o] Error 1\n'