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.TestWaterPumpPowerCharacteristic.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.TestWaterPumpPowerCharacteristic,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.TestWaterPumpPowerCharacteristic") Notification: Performance of loadModel(ModelicaTest): time 2.334/2.334, allocations: 234.9 MB / 250.5 MB, free: 9.609 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004408/0.0004409, allocations: 15.98 kB / 314.3 MB, free: 9.648 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2929/0.2934, allocations: 54.86 MB / 369.2 MB, free: 12.78 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpPowerCharacteristic): time 0.05546/0.3489, allocations: 35.22 MB / 404.4 MB, free: 9.461 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.03195/0.3809, allocations: 17.31 MB / 421.7 MB, free: 8.117 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001136/0.3821, allocations: 31.69 kB / 421.7 MB, free: 8.086 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001471/0.3835, allocations: 430 kB / 422.2 MB, free: 7.664 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01478/0.3984, allocations: 4.079 MB / 426.2 MB, free: 3.574 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01049/0.4089, allocations: 2.912 MB / 429.2 MB, free: 0.6562 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.002383/0.4113, allocations: 1.11 MB / 430.3 MB, free: 15.54 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007686/0.4121, allocations: 381.4 kB / 430.6 MB, free: 15.16 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001603/0.4137, allocations: 0.6346 MB / 431.3 MB, free: 14.52 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01264/0.4264, allocations: 6.277 MB / 437.6 MB, free: 8.238 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001798/0.4266, allocations: 32 kB / 437.6 MB, free: 8.207 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01828/0.4449, allocations: 7.632 MB / 445.2 MB, free: 0.5664 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003075/0.4452, allocations: 151.5 kB / 445.4 MB, free: 428 kB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003368/0.4456, allocations: 169.3 kB / 445.5 MB, free: 252 kB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008111/0.4537, allocations: 3.582 MB / 449.1 MB, free: 12.66 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.122e-06/0.4537, allocations: 0 / 449.1 MB, free: 12.66 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.52e-06/0.4538, allocations: 0 / 449.1 MB, free: 12.66 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.719e-05/0.4538, allocations: 0 / 449.1 MB, free: 12.66 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.004627/0.4584, allocations: 1.536 MB / 450.6 MB, free: 11.07 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.036e-05/0.4585, allocations: 12.03 kB / 450.7 MB, free: 11.06 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002972/0.4615, allocations: 314.8 kB / 451 MB, free: 10.75 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00119/0.4627, allocations: 0.52 MB / 451.5 MB, free: 10.19 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.327e-05/0.4628, allocations: 53.31 kB / 451.5 MB, free: 10.14 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001303/0.4629, allocations: 55.98 kB / 451.6 MB, free: 10.09 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003207/0.4662, allocations: 0.9971 MB / 452.6 MB, free: 9.027 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.969e-05/0.4662, allocations: 3.938 kB / 452.6 MB, free: 9.023 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.613e-05/0.4663, allocations: 24 kB / 452.6 MB, free: 9 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.515e-05/0.4664, allocations: 24.94 kB / 452.6 MB, free: 8.977 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00341/0.4698, allocations: 0.917 MB / 453.6 MB, free: 8.055 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.006701/0.4765, allocations: 4.491 MB / 458.1 MB, free: 3.145 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003273/0.4798, allocations: 0.7978 MB / 458.8 MB, free: 2.336 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4646/0.9445, allocations: 83.93 MB / 0.5301 GB, free: 94.09 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.898e-05/0.9446, allocations: 43 kB / 0.5301 GB, free: 94.04 MB / 426.7 MB Notification: Performance of pre-optimization done (n=48): time 6.881e-06/0.9446, allocations: 0 / 0.5301 GB, free: 94.04 MB / 426.7 MB Notification: Performance of matching and sorting (n=52): time 0.008127/0.9527, allocations: 2.288 MB / 0.5323 GB, free: 91.77 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.801e-05/0.9528, allocations: 111.2 kB / 0.5324 GB, free: 91.64 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006713/0.9535, allocations: 490.2 kB / 0.5329 GB, free: 91.16 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 6.646e-05/0.9536, allocations: 41.7 kB / 0.5329 GB, free: 91.11 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001808/0.9538, allocations: 368.5 kB / 0.5333 GB, free: 90.75 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001511/0.9539, allocations: 183.3 kB / 0.5335 GB, free: 90.57 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.781e-05/0.954, allocations: 19.94 kB / 0.5335 GB, free: 90.55 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 7.153e-05/0.9541, allocations: 334.6 kB / 0.5338 GB, free: 90.22 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007665/0.9549, allocations: 281.1 kB / 0.5341 GB, free: 89.95 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008398/0.9557, allocations: 472.9 kB / 0.5345 GB, free: 89.41 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000832/0.9566, allocations: 334 kB / 0.5348 GB, free: 89.08 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.987e-06/0.9566, allocations: 0 / 0.5348 GB, free: 89.08 MB / 426.7 MB Notification: Performance of matching and sorting (n=81) (initialization): time 0.002843/0.9594, allocations: 0.9794 MB / 0.5358 GB, free: 88.09 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001191/0.9596, allocations: 248.4 kB / 0.536 GB, free: 87.77 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.284e-05/0.9596, allocations: 9.219 kB / 0.536 GB, free: 87.76 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002774/0.9624, allocations: 446.7 kB / 0.5365 GB, free: 87.32 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006407/0.9631, allocations: 147.8 kB / 0.5366 GB, free: 87.18 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001459/0.9646, allocations: 0.9113 MB / 0.5375 GB, free: 86.24 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000877/0.9655, allocations: 91.84 kB / 0.5376 GB, free: 86.15 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.433e-05/0.9656, allocations: 40.61 kB / 0.5376 GB, free: 86.11 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.069e-05/0.9656, allocations: 0 / 0.5376 GB, free: 86.11 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002862/0.9685, allocations: 0.966 MB / 0.5386 GB, free: 85.14 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.135e-05/0.9685, allocations: 4 kB / 0.5386 GB, free: 85.14 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001719/0.9702, allocations: 326.3 kB / 0.5389 GB, free: 84.82 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006272/0.9709, allocations: 151.8 kB / 0.539 GB, free: 84.67 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001257/0.9722, allocations: 0.8806 MB / 0.5399 GB, free: 83.77 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006968/0.9729, allocations: 90.66 kB / 0.54 GB, free: 83.68 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.504e-05/0.973, allocations: 47.64 kB / 0.54 GB, free: 83.64 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 (61): * Single equations (assignments): 60 * 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 {3 18} Notification: Performance of prepare postOptimizeDAE: time 0.00043/0.9734, allocations: 281.7 kB / 0.5403 GB, free: 83.35 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001555/0.9736, allocations: 63.25 kB / 0.5404 GB, free: 83.29 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004178/0.9778, allocations: 2.935 MB / 0.5432 GB, free: 80.34 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.205e-05/0.9779, allocations: 43.89 kB / 0.5433 GB, free: 80.3 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.717e-06/0.9779, allocations: 0 / 0.5433 GB, free: 80.3 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.28e-05/0.9779, allocations: 3.984 kB / 0.5433 GB, free: 80.29 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005696/0.9836, allocations: 4.074 MB / 0.5472 GB, free: 76.17 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.155e-05/0.9837, allocations: 6.641 kB / 0.5473 GB, free: 76.17 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008489/0.9845, allocations: 171.8 kB / 0.5474 GB, free: 76 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004446/0.985, allocations: 77.77 kB / 0.5475 GB, free: 75.92 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.701e-05/0.9851, allocations: 12 kB / 0.5475 GB, free: 75.91 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005991/0.9857, allocations: 1.189 MB / 0.5487 GB, free: 74.67 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.297e-06/0.9857, allocations: 0 / 0.5487 GB, free: 74.67 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008404/0.9941, allocations: 2.593 MB / 0.5512 GB, free: 72.06 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009154/0.9951, allocations: 322.8 kB / 0.5515 GB, free: 71.72 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00025/0.9954, allocations: 12 kB / 0.5515 GB, free: 71.71 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001332/0.9967, allocations: 83.8 kB / 0.5516 GB, free: 71.63 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000247/0.997, allocations: 52.48 kB / 0.5516 GB, free: 71.58 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001217/0.9972, allocations: 23.98 kB / 0.5517 GB, free: 71.55 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001111/0.9983, allocations: 395 kB / 0.552 GB, free: 71.17 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.238e-06/0.9983, allocations: 0 / 0.552 GB, free: 71.17 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.007225/1.006, allocations: 1.334 MB / 0.5533 GB, free: 69.93 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,$cse9.phase,$cse9.region,$cse10.phase,$cse10.region,$cse11.region3boundary,$cse12.region3boundary,$cse13.phase,$cse13.region,$cse14.phase,$cse14.region,$cse15.region3boundary,$cse16.region3boundary,$cse18.phase,$cse18.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 (68): * Single equations (assignments): 53 * 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.01133/1.017, allocations: 1.382 MB / 0.5547 GB, free: 68.78 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.007003/1.024, allocations: 1.534 MB / 0.5562 GB, free: 67.25 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 9.372e-06/1.024, allocations: 3.844 kB / 0.5562 GB, free: 67.25 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003178/1.027, allocations: 0.8757 MB / 0.5571 GB, free: 66.38 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003545/1.031, allocations: 293.3 kB / 0.5573 GB, free: 66.1 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00859/1.04, allocations: 3.278 MB / 0.5605 GB, free: 62.85 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001129/1.041, allocations: 1.163 MB / 0.5617 GB, free: 61.66 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005289/1.041, allocations: 71.36 kB / 0.5617 GB, free: 61.59 MB / 426.7 MB Notification: Performance of SimCode: time 2.895e-06/1.041, allocations: 4 kB / 0.5617 GB, free: 61.59 MB / 426.7 MB Notification: Performance of Templates: time 0.07246/1.114, allocations: 40.43 MB / 0.6012 GB, free: 21.13 MB / 426.7 MB make -j1 -f ModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpPowerCharacteristic.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.TestWaterPumpPowerCharacteristicCalcHelperMain.o OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpPowerCharacteristicCalcHelperMain.cpp\nIn file included from OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpPowerCharacteristicCalcHelperMain.cpp:28:\n./OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpPowerCharacteristicFunctions.cpp:6193:5: error: no matching function for call to \'add_array_scalar\'\n add_array_scalar(c_(2), tmp287, tmp288);\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.TestWaterPumpPowerCharacteristicCalcHelperMain.o\' failed\nmake: *** [OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpPowerCharacteristicCalcHelperMain.o] Error 1\n'