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.TestWaterPumpCheckValve.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.TestWaterPumpCheckValve,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.TestWaterPumpCheckValve") Notification: Performance of loadModel(ModelicaTest): time 1.915/1.915, allocations: 209.3 MB / 224.8 MB, free: 1.465 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004363/0.0004364, allocations: 12 kB / 282.5 MB, free: 9.797 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08983/0.09029, allocations: 48.72 MB / 331.2 MB, free: 8.988 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCheckValve): time 0.2991/0.3895, allocations: 34.95 MB / 366.2 MB, free: 11.96 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.03129/0.4208, allocations: 17.2 MB / 383.4 MB, free: 14.95 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001316/0.4222, allocations: 27.59 kB / 383.4 MB, free: 14.93 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001685/0.4239, allocations: 426.2 kB / 383.8 MB, free: 14.58 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01573/0.4396, allocations: 4.036 MB / 387.8 MB, free: 11.45 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01114/0.4508, allocations: 2.896 MB / 390.7 MB, free: 9.375 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.002542/0.4534, allocations: 1.119 MB / 391.8 MB, free: 8.348 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007864/0.4542, allocations: 381.1 kB / 392.2 MB, free: 7.961 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001764/0.456, allocations: 0.6501 MB / 392.9 MB, free: 7.309 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01295/0.469, allocations: 6.417 MB / 399.3 MB, free: 0.8828 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002027/0.4692, allocations: 28 kB / 399.3 MB, free: 0.8555 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01898/0.4882, allocations: 7.425 MB / 406.7 MB, free: 9.422 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003203/0.4886, allocations: 147.4 kB / 406.9 MB, free: 9.277 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003626/0.4889, allocations: 173.3 kB / 407.1 MB, free: 9.102 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008285/0.4972, allocations: 3.508 MB / 410.6 MB, free: 5.586 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.422e-06/0.4973, allocations: 0 / 410.6 MB, free: 5.586 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.325e-06/0.4973, allocations: 0 / 410.6 MB, free: 5.586 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.129e-05/0.4973, allocations: 0 / 410.6 MB, free: 5.586 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.004678/0.502, allocations: 1.512 MB / 412.1 MB, free: 4.023 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.245e-05/0.5021, allocations: 8.031 kB / 412.1 MB, free: 4.016 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003007/0.5051, allocations: 302.8 kB / 412.4 MB, free: 3.719 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0012/0.5063, allocations: 0.5277 MB / 412.9 MB, free: 3.148 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.559e-05/0.5064, allocations: 49.31 kB / 413 MB, free: 3.098 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001308/0.5066, allocations: 56 kB / 413 MB, free: 3.043 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003282/0.5099, allocations: 0.9904 MB / 414 MB, free: 1.996 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.607e-05/0.5099, allocations: 4 kB / 414 MB, free: 1.992 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.392e-05/0.51, allocations: 24 kB / 414 MB, free: 1.969 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.42e-05/0.5101, allocations: 25.25 kB / 414.1 MB, free: 1.945 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003525/0.5136, allocations: 0.9143 MB / 415 MB, free: 1.031 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.006614/0.5203, allocations: 4.352 MB / 419.3 MB, free: 12.27 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003074/0.5234, allocations: 0.7537 MB / 420.1 MB, free: 11.51 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2128/0.7362, allocations: 80.04 MB / 0.4884 GB, free: 3.172 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.973e-05/0.7362, allocations: 41.25 kB / 0.4884 GB, free: 3.125 MB / 426.7 MB Notification: Performance of pre-optimization done (n=48): time 4.029e-06/0.7363, allocations: 0 / 0.4884 GB, free: 3.125 MB / 426.7 MB Notification: Performance of matching and sorting (n=52): time 0.009181/0.7455, allocations: 2.294 MB / 0.4907 GB, free: 0.7578 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.75e-05/0.7456, allocations: 111.2 kB / 0.4908 GB, free: 0.625 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008355/0.7464, allocations: 486.7 kB / 0.4912 GB, free: 148 kB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 9.016e-05/0.7465, allocations: 33.7 kB / 0.4913 GB, free: 108 kB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.2173/0.9639, allocations: 372 kB / 0.4916 GB, free: 153.6 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002371/0.9641, allocations: 185.1 kB / 0.4918 GB, free: 153.5 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.352e-05/0.9642, allocations: 12.62 kB / 0.4918 GB, free: 153.5 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 8.525e-05/0.9643, allocations: 337.4 kB / 0.4921 GB, free: 153.2 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009032/0.9652, allocations: 264.2 kB / 0.4924 GB, free: 153.2 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009953/0.9662, allocations: 464.4 kB / 0.4928 GB, free: 153 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00106/0.9673, allocations: 309.4 kB / 0.4931 GB, free: 153 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.626e-06/0.9673, allocations: 2.156 kB / 0.4931 GB, free: 153 MB / 426.7 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.003313/0.9707, allocations: 0.9493 MB / 0.4941 GB, free: 152.8 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000143/0.9709, allocations: 271.8 kB / 0.4943 GB, free: 152.5 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.669e-05/0.9709, allocations: 5.875 kB / 0.4943 GB, free: 152.5 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003355/0.9743, allocations: 476.6 kB / 0.4948 GB, free: 152.4 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007112/0.975, allocations: 140.4 kB / 0.4949 GB, free: 152.4 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001669/0.9767, allocations: 0.9316 MB / 0.4958 GB, free: 151.8 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009346/0.9777, allocations: 93.53 kB / 0.4959 GB, free: 151.8 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.67e-05/0.9778, allocations: 32.52 kB / 0.4959 GB, free: 151.7 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.312e-05/0.9778, allocations: 4.719 kB / 0.4959 GB, free: 151.7 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003227/0.981, allocations: 0.9306 MB / 0.4969 GB, free: 151.4 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.944e-05/0.9811, allocations: 5.5 kB / 0.4969 GB, free: 151.4 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001758/0.9829, allocations: 309 kB / 0.4972 GB, free: 151.4 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007239/0.9836, allocations: 153.8 kB / 0.4973 GB, free: 151.4 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001381/0.985, allocations: 0.8631 MB / 0.4981 GB, free: 150.7 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007224/0.9858, allocations: 83.48 kB / 0.4982 GB, free: 150.7 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.395e-05/0.9859, allocations: 39.17 kB / 0.4983 GB, free: 150.7 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.0004685/0.9864, allocations: 286.8 kB / 0.4985 GB, free: 150.5 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001632/0.9865, allocations: 61.59 kB / 0.4986 GB, free: 150.4 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004733/0.9913, allocations: 2.75 MB / 0.5013 GB, free: 149.2 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.859e-05/0.9914, allocations: 33.89 kB / 0.5013 GB, free: 149.2 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.838e-06/0.9914, allocations: 4.609 kB / 0.5013 GB, free: 149.2 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.325e-05/0.9914, allocations: 4.297 kB / 0.5013 GB, free: 149.2 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006054/0.9975, allocations: 3.744 MB / 0.505 GB, free: 147.5 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.732e-06/0.9975, allocations: 3.953 kB / 0.505 GB, free: 147.5 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007248/0.9983, allocations: 147 kB / 0.5051 GB, free: 147.5 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005716/0.9988, allocations: 106.5 kB / 0.5052 GB, free: 147.4 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.465e-05/0.9989, allocations: 15.62 kB / 0.5052 GB, free: 147.4 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007672/0.9997, allocations: 1.134 MB / 0.5063 GB, free: 146.3 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.161e-06/0.9997, allocations: 0.6094 kB / 0.5063 GB, free: 146.3 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004428/1.004, allocations: 2.276 MB / 0.5086 GB, free: 145.3 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000578/1.005, allocations: 330.8 kB / 0.5089 GB, free: 145 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00015/1.005, allocations: 19.92 kB / 0.5089 GB, free: 145 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007316/1.006, allocations: 77.05 kB / 0.509 GB, free: 145 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001573/1.006, allocations: 50.81 kB / 0.509 GB, free: 145 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.404e-05/1.006, allocations: 23.81 kB / 0.509 GB, free: 145 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0007994/1.007, allocations: 461.2 kB / 0.5095 GB, free: 144.8 MB / 426.7 MB Notification: Performance of sort global known variables: time 7.69e-07/1.007, allocations: 0 / 0.5095 GB, free: 144.8 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.004244/1.011, allocations: 1.318 MB / 0.5108 GB, free: 144.7 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.005957/1.017, allocations: 1.376 MB / 0.5121 GB, free: 144.5 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.003916/1.021, allocations: 1.405 MB / 0.5135 GB, free: 144 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.962e-06/1.021, allocations: 0 / 0.5135 GB, free: 144 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001683/1.023, allocations: 0.7421 MB / 0.5142 GB, free: 143.7 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00201/1.025, allocations: 294.9 kB / 0.5145 GB, free: 143.6 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004919/1.03, allocations: 3.215 MB / 0.5176 GB, free: 141.9 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006341/1.03, allocations: 1.146 MB / 0.5187 GB, free: 141.1 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002691/1.031, allocations: 71.02 kB / 0.5188 GB, free: 141.1 MB / 426.7 MB Notification: Performance of SimCode: time 2.11e-06/1.031, allocations: 4 kB / 0.5188 GB, free: 141.1 MB / 426.7 MB Notification: Performance of Templates: time 0.05631/1.087, allocations: 39.85 MB / 0.5577 GB, free: 101.5 MB / 426.7 MB make -j1 -f ModelicaTest_3.2.1_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.1_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCheckValveCalcHelperMain.o OMCppModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCheckValveCalcHelperMain.cpp\nIn file included from OMCppModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCheckValveCalcHelperMain.cpp:28:\n./OMCppModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCheckValveFunctions.cpp:6143:5: error: no matching function for call to \'add_array_scalar\'\n add_array_scalar(c_(2), tmp281, tmp282);\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.TestWaterPumpCheckValveCalcHelperMain.o\' failed\nmake: *** [OMCppModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpCheckValveCalcHelperMain.o] Error 1\n'