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.TestWaterPumpStorage.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.TestWaterPumpStorage,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.TestWaterPumpStorage") Notification: Performance of loadModel(ModelicaTest): time 2.185/2.185, allocations: 234.9 MB / 250.5 MB, free: 9.48 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00043/0.0004302, allocations: 12 kB / 314.3 MB, free: 9.512 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3152/0.3156, allocations: 54.87 MB / 369.2 MB, free: 10.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorage): time 0.05871/0.3744, allocations: 35.22 MB / 404.4 MB, free: 7.398 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.03033/0.4048, allocations: 17.31 MB / 421.7 MB, free: 6.051 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001023/0.4058, allocations: 27.75 kB / 421.7 MB, free: 6.023 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001453/0.4073, allocations: 434 kB / 422.2 MB, free: 5.598 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01431/0.4216, allocations: 4.075 MB / 426.2 MB, free: 1.512 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01039/0.4321, allocations: 2.919 MB / 429.2 MB, free: 14.59 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.002259/0.4343, allocations: 1.11 MB / 430.3 MB, free: 13.47 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000709/0.4351, allocations: 377.4 kB / 430.6 MB, free: 13.09 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001517/0.4366, allocations: 0.6346 MB / 431.3 MB, free: 12.45 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01223/0.4489, allocations: 6.277 MB / 437.6 MB, free: 6.172 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002135/0.4491, allocations: 35.94 kB / 437.6 MB, free: 6.137 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0181/0.4672, allocations: 7.546 MB / 445.1 MB, free: 14.58 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002965/0.4676, allocations: 143.5 kB / 445.3 MB, free: 14.44 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003614/0.468, allocations: 169.3 kB / 445.4 MB, free: 14.27 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008052/0.476, allocations: 3.547 MB / 449 MB, free: 10.71 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.502e-06/0.4761, allocations: 4 kB / 449 MB, free: 10.71 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.016e-06/0.4761, allocations: 0 / 449 MB, free: 10.71 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.198e-05/0.4761, allocations: 0 / 449 MB, free: 10.71 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.004522/0.4806, allocations: 1.536 MB / 450.5 MB, free: 9.125 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.09e-05/0.4807, allocations: 8.031 kB / 450.5 MB, free: 9.117 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00294/0.4837, allocations: 314.7 kB / 450.8 MB, free: 8.809 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001159/0.4849, allocations: 0.5277 MB / 451.4 MB, free: 8.242 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.359e-05/0.485, allocations: 53.3 kB / 451.4 MB, free: 8.191 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001325/0.4851, allocations: 56 kB / 451.5 MB, free: 8.137 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003226/0.4884, allocations: 0.9944 MB / 452.5 MB, free: 7.078 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.725e-05/0.4884, allocations: 0 / 452.5 MB, free: 7.078 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000101/0.4885, allocations: 28 kB / 452.5 MB, free: 7.051 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.562e-05/0.4886, allocations: 24.94 kB / 452.5 MB, free: 7.027 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003373/0.492, allocations: 0.9092 MB / 453.4 MB, free: 6.113 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.006444/0.4984, allocations: 4.475 MB / 457.9 MB, free: 1.219 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003108/0.5016, allocations: 0.7953 MB / 458.7 MB, free: 428 kB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.5078/1.009, allocations: 83.92 MB / 0.5299 GB, free: 28.45 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.352e-05/1.009, allocations: 42.98 kB / 0.53 GB, free: 28.39 MB / 394.7 MB Notification: Performance of pre-optimization done (n=48): time 3.721e-06/1.009, allocations: 0 / 0.53 GB, free: 28.39 MB / 394.7 MB Notification: Performance of matching and sorting (n=52): time 0.008026/1.018, allocations: 2.272 MB / 0.5322 GB, free: 26.15 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.659e-05/1.018, allocations: 107.8 kB / 0.5323 GB, free: 26.02 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006608/1.018, allocations: 494.4 kB / 0.5327 GB, free: 25.54 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 7.425e-05/1.018, allocations: 33.7 kB / 0.5328 GB, free: 25.5 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001885/1.019, allocations: 376.1 kB / 0.5331 GB, free: 25.13 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001538/1.019, allocations: 177.5 kB / 0.5333 GB, free: 24.96 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.598e-05/1.019, allocations: 16 kB / 0.5333 GB, free: 24.95 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 6.966e-05/1.019, allocations: 334.8 kB / 0.5336 GB, free: 24.61 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007654/1.02, allocations: 281.1 kB / 0.5339 GB, free: 24.33 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008676/1.021, allocations: 473.9 kB / 0.5344 GB, free: 23.79 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000846/1.021, allocations: 328 kB / 0.5347 GB, free: 23.48 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.907e-06/1.021, allocations: 0 / 0.5347 GB, free: 23.48 MB / 394.7 MB Notification: Performance of matching and sorting (n=81) (initialization): time 0.002934/1.024, allocations: 0.993 MB / 0.5356 GB, free: 22.47 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001379/1.025, allocations: 256.2 kB / 0.5359 GB, free: 22.14 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.332e-05/1.025, allocations: 4 kB / 0.5359 GB, free: 22.14 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002871/1.027, allocations: 460.5 kB / 0.5363 GB, free: 21.69 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007133/1.028, allocations: 143.8 kB / 0.5365 GB, free: 21.55 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001601/1.03, allocations: 0.9258 MB / 0.5374 GB, free: 20.6 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008856/1.031, allocations: 99.83 kB / 0.5375 GB, free: 20.5 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.626e-05/1.031, allocations: 32 kB / 0.5375 GB, free: 20.47 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.206e-05/1.031, allocations: 0 / 0.5375 GB, free: 20.47 MB / 394.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00291/1.034, allocations: 0.9588 MB / 0.5384 GB, free: 19.51 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.392e-05/1.034, allocations: 8 kB / 0.5384 GB, free: 19.5 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001593/1.035, allocations: 313.5 kB / 0.5387 GB, free: 19.2 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006451/1.036, allocations: 147.8 kB / 0.5389 GB, free: 19.05 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001257/1.037, allocations: 0.8761 MB / 0.5397 GB, free: 18.16 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007024/1.038, allocations: 90.81 kB / 0.5398 GB, free: 18.07 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.973e-05/1.038, allocations: 32 kB / 0.5399 GB, free: 18.04 MB / 394.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.0004187/1.039, allocations: 297.9 kB / 0.5401 GB, free: 17.74 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001841/1.039, allocations: 59.25 kB / 0.5402 GB, free: 17.68 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004336/1.043, allocations: 2.915 MB / 0.543 GB, free: 14.75 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.255e-05/1.043, allocations: 43.94 kB / 0.5431 GB, free: 14.7 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.944e-06/1.043, allocations: 3.984 kB / 0.5431 GB, free: 14.7 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.055e-05/1.043, allocations: 0 / 0.5431 GB, free: 14.7 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005567/1.049, allocations: 4.055 MB / 0.547 GB, free: 10.6 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.07e-05/1.049, allocations: 6.609 kB / 0.5471 GB, free: 10.59 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008268/1.05, allocations: 163.8 kB / 0.5472 GB, free: 10.43 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004407/1.05, allocations: 81.62 kB / 0.5473 GB, free: 10.35 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.41e-05/1.05, allocations: 19.98 kB / 0.5473 GB, free: 10.33 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005811/1.051, allocations: 1.181 MB / 0.5485 GB, free: 9.102 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.316e-06/1.051, allocations: 0 / 0.5485 GB, free: 9.102 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003968/1.055, allocations: 2.582 MB / 0.551 GB, free: 6.496 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004829/1.055, allocations: 326.7 kB / 0.5513 GB, free: 6.156 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001258/1.056, allocations: 16 kB / 0.5513 GB, free: 6.141 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006513/1.056, allocations: 68 kB / 0.5514 GB, free: 6.074 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001369/1.056, allocations: 48.48 kB / 0.5514 GB, free: 6.027 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.062e-05/1.056, allocations: 27.98 kB / 0.5514 GB, free: 6 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0005636/1.057, allocations: 399 kB / 0.5518 GB, free: 5.609 MB / 394.7 MB Notification: Performance of sort global known variables: time 7.74e-07/1.057, allocations: 0 / 0.5518 GB, free: 5.609 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.00381/1.061, allocations: 1.332 MB / 0.5531 GB, free: 4.375 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: 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.005771/1.067, allocations: 1.374 MB / 0.5545 GB, free: 3.199 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.003709/1.07, allocations: 1.503 MB / 0.5559 GB, free: 1.707 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.822e-06/1.07, allocations: 0 / 0.5559 GB, free: 1.707 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001612/1.072, allocations: 0.8794 MB / 0.5568 GB, free: 0.832 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001801/1.074, allocations: 297.5 kB / 0.5571 GB, free: 0.5469 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005685/1.08, allocations: 3.274 MB / 0.5603 GB, free: 13.29 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00108/1.081, allocations: 1.163 MB / 0.5614 GB, free: 12.1 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003105/1.081, allocations: 67.42 kB / 0.5615 GB, free: 12.04 MB / 410.7 MB Notification: Performance of SimCode: time 1.743e-06/1.081, allocations: 0 / 0.5615 GB, free: 12.04 MB / 410.7 MB Notification: Performance of Templates: time 0.07431/1.155, allocations: 40.21 MB / 0.6007 GB, free: 3.797 MB / 442.7 MB make -j1 -f ModelicaTest_3.2.2_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.2_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorageCalcHelperMain.o OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorageCalcHelperMain.cpp\nIn file included from OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorageCalcHelperMain.cpp:28:\n./OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorageFunctions.cpp:6207: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.TestWaterPumpStorageCalcHelperMain.o\' failed\nmake: *** [OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpStorageCalcHelperMain.o] Error 1\n'