Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/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@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Using package ModelicaTest with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaTest 3.2.1/package.mo) Running command: translateModel(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorage,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|pump.medium.h|pump.medium.p",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorage") Notification: Performance of loadModel(ModelicaTest): time 1.891/1.891, allocations: 209.3 MB / 224.8 MB, free: 1.215 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000434/0.0004342, allocations: 16 kB / 282.5 MB, free: 9.766 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08585/0.0863, allocations: 48.71 MB / 331.2 MB, free: 8.969 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorage): time 0.2554/0.3418, allocations: 34.95 MB / 366.1 MB, free: 11.95 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.03198/0.3738, allocations: 17.21 MB / 383.4 MB, free: 14.94 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001278/0.3751, allocations: 32.78 kB / 383.4 MB, free: 14.92 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001658/0.3768, allocations: 425.3 kB / 383.8 MB, free: 14.57 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01566/0.3925, allocations: 4.037 MB / 387.8 MB, free: 11.43 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01098/0.4035, allocations: 2.893 MB / 390.7 MB, free: 9.363 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.002473/0.406, allocations: 1.099 MB / 391.8 MB, free: 8.383 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007516/0.4068, allocations: 384.2 kB / 392.2 MB, free: 7.996 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001651/0.4085, allocations: 0.6307 MB / 392.8 MB, free: 7.363 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01233/0.4208, allocations: 6.175 MB / 399 MB, free: 1.18 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002162/0.4211, allocations: 35.94 kB / 399 MB, free: 1.145 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01877/0.4399, allocations: 7.433 MB / 406.5 MB, free: 9.703 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003045/0.4402, allocations: 143.5 kB / 406.6 MB, free: 9.562 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003651/0.4406, allocations: 173.3 kB / 406.8 MB, free: 9.387 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008251/0.4489, allocations: 3.504 MB / 410.3 MB, free: 5.875 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.739e-06/0.4489, allocations: 0 / 410.3 MB, free: 5.875 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.604e-06/0.4489, allocations: 0 / 410.3 MB, free: 5.875 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.182e-05/0.4489, allocations: 0 / 410.3 MB, free: 5.875 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.004551/0.4535, allocations: 1.516 MB / 411.8 MB, free: 4.309 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.337e-05/0.4536, allocations: 8.031 kB / 411.8 MB, free: 4.301 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002955/0.4565, allocations: 298.8 kB / 412.1 MB, free: 4.008 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001249/0.4578, allocations: 0.5277 MB / 412.6 MB, free: 3.438 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.403e-05/0.4579, allocations: 49.31 kB / 412.7 MB, free: 3.387 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001344/0.4581, allocations: 56 kB / 412.7 MB, free: 3.332 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003319/0.4614, allocations: 0.9829 MB / 413.7 MB, free: 2.293 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.274e-05/0.4615, allocations: 3.938 kB / 413.7 MB, free: 2.289 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.719e-05/0.4616, allocations: 28 kB / 413.8 MB, free: 2.262 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.154e-05/0.4616, allocations: 24.98 kB / 413.8 MB, free: 2.238 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003443/0.4651, allocations: 0.9092 MB / 414.7 MB, free: 1.328 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.006622/0.4718, allocations: 4.471 MB / 419.2 MB, free: 12.44 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003702/0.4755, allocations: 0.785 MB / 419.9 MB, free: 11.64 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4923/0.9678, allocations: 83.87 MB / 0.492 GB, free: 153.2 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.395e-05/0.9679, allocations: 41.38 kB / 0.492 GB, free: 153.1 MB / 426.7 MB Notification: Performance of pre-optimization done (n=48): time 3.302e-06/0.9679, allocations: 1.812 kB / 0.492 GB, free: 153.1 MB / 426.7 MB Notification: Performance of matching and sorting (n=52): time 0.008793/0.9767, allocations: 2.272 MB / 0.4943 GB, free: 152.8 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.864e-05/0.9768, allocations: 113.4 kB / 0.4944 GB, free: 152.7 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007762/0.9776, allocations: 490.9 kB / 0.4948 GB, free: 152.5 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 5.921e-05/0.9777, allocations: 32.55 kB / 0.4949 GB, free: 152.5 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002052/0.9779, allocations: 377 kB / 0.4952 GB, free: 152.2 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001601/0.9781, allocations: 180.2 kB / 0.4954 GB, free: 152 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.668e-05/0.9781, allocations: 10.66 kB / 0.4954 GB, free: 152 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 7.518e-05/0.9782, allocations: 345.5 kB / 0.4957 GB, free: 151.7 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008521/0.9791, allocations: 276.8 kB / 0.496 GB, free: 151.6 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009414/0.98, allocations: 478.6 kB / 0.4965 GB, free: 151.3 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009083/0.9809, allocations: 324.3 kB / 0.4968 GB, free: 151.2 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.328e-06/0.981, allocations: 1.656 kB / 0.4968 GB, free: 151.2 MB / 426.7 MB Notification: Performance of matching and sorting (n=81) (initialization): time 0.003133/0.9841, allocations: 0.9918 MB / 0.4977 GB, free: 150.9 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001273/0.9843, allocations: 253 kB / 0.498 GB, free: 150.6 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.545e-05/0.9843, allocations: 8.344 kB / 0.498 GB, free: 150.6 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003057/0.9874, allocations: 460.4 kB / 0.4984 GB, free: 150.5 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007285/0.9881, allocations: 146.7 kB / 0.4986 GB, free: 150.5 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001662/0.9898, allocations: 0.9133 MB / 0.4995 GB, free: 149.8 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008959/0.9907, allocations: 94.48 kB / 0.4996 GB, free: 149.8 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.287e-05/0.9908, allocations: 37.3 kB / 0.4996 GB, free: 149.8 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.166e-05/0.9909, allocations: 3.297 kB / 0.4996 GB, free: 149.8 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003085/0.9939, allocations: 0.9494 MB / 0.5005 GB, free: 149.5 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.291e-05/0.994, allocations: 9.375 kB / 0.5005 GB, free: 149.5 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001642/0.9956, allocations: 316.4 kB / 0.5008 GB, free: 149.4 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006484/0.9963, allocations: 149.2 kB / 0.501 GB, free: 149.4 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001353/0.9977, allocations: 0.8666 MB / 0.5018 GB, free: 148.8 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006799/0.9984, allocations: 89.67 kB / 0.5019 GB, free: 148.7 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.836e-05/0.9985, allocations: 35.83 kB / 0.5019 GB, free: 148.7 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.0004498/0.9989, allocations: 290.1 kB / 0.5022 GB, free: 148.5 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001713/0.9991, allocations: 61.72 kB / 0.5023 GB, free: 148.5 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004768/1.004, allocations: 2.92 MB / 0.5051 GB, free: 147.2 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.613e-05/1.004, allocations: 48.2 kB / 0.5052 GB, free: 147.1 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.365e-06/1.004, allocations: 4.531 kB / 0.5052 GB, free: 147.1 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.327e-05/1.004, allocations: 3.375 kB / 0.5052 GB, free: 147.1 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006244/1.01, allocations: 4.055 MB / 0.5091 GB, free: 145.3 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.069e-05/1.01, allocations: 7.938 kB / 0.5091 GB, free: 145.2 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008815/1.011, allocations: 166.9 kB / 0.5093 GB, free: 145.2 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004385/1.012, allocations: 77.39 kB / 0.5094 GB, free: 145.2 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.146e-05/1.012, allocations: 12.78 kB / 0.5094 GB, free: 145.2 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006088/1.012, allocations: 1.184 MB / 0.5105 GB, free: 144 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.714e-06/1.012, allocations: 0.75 kB / 0.5105 GB, free: 144 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004452/1.017, allocations: 2.59 MB / 0.5131 GB, free: 142.9 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005228/1.017, allocations: 316 kB / 0.5134 GB, free: 142.6 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001376/1.018, allocations: 15.34 kB / 0.5134 GB, free: 142.6 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006418/1.018, allocations: 70 kB / 0.5135 GB, free: 142.6 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001447/1.018, allocations: 59.34 kB / 0.5135 GB, free: 142.6 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.421e-05/1.018, allocations: 24.03 kB / 0.5135 GB, free: 142.6 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0006195/1.019, allocations: 399.2 kB / 0.5139 GB, free: 142.4 MB / 426.7 MB Notification: Performance of sort global known variables: time 8.61e-07/1.019, allocations: 0 / 0.5139 GB, free: 142.4 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.003863/1.023, allocations: 1.318 MB / 0.5152 GB, free: 142.3 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.005495/1.029, allocations: 1.377 MB / 0.5166 GB, free: 142.1 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0037/1.032, allocations: 1.51 MB / 0.518 GB, free: 141.5 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.149e-06/1.032, allocations: 0 / 0.518 GB, free: 141.5 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001655/1.034, allocations: 0.8642 MB / 0.5189 GB, free: 140.7 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001893/1.036, allocations: 305.8 kB / 0.5192 GB, free: 140.4 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004267/1.04, allocations: 3.28 MB / 0.5224 GB, free: 137.1 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005837/1.041, allocations: 1.17 MB / 0.5235 GB, free: 135.9 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002425/1.041, allocations: 67.36 kB / 0.5236 GB, free: 135.9 MB / 426.7 MB Notification: Performance of SimCode: time 1.571e-06/1.041, allocations: 0 / 0.5236 GB, free: 135.9 MB / 426.7 MB Notification: Performance of Templates: time 0.05514/1.096, allocations: 40.03 MB / 0.5627 GB, free: 95.82 MB / 426.7 MB make -j1 -f ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorage.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.1_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorageCalcHelperMain.o OMCppModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorageCalcHelperMain.cpp\nIn file included from OMCppModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorageCalcHelperMain.cpp:28:\n./OMCppModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorageFunctions.cpp:6177:5: error: no matching function for call to \'add_array_scalar\'\n add_array_scalar(c_(2), tmp289, tmp290);\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.1_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorageCalcHelperMain.o\' failed\nmake: *** [OMCppModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorageCalcHelperMain.o] Error 1\n'