Running command: translateModel(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpNPSH,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Source.ports.1..m_flow|Source.ports.1..p|Source.ports.1..h_outflow|Sink.ports.1..m_flow|Sink.ports.1..p|Sink.ports.1..h_outflow|pump.port_b.m_flow|pump.port_b.p|pump.port_b.h_outflow|valveOpening.y|Valve.port_b.m_flow|Valve.port_b.p|Valve.port_b.h_outflow|Valve.minLimiter.y|downstreamPressure.y",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpNPSH") Notification: Performance of loadModel(ModelicaTest): time 2.435/2.435, allocations: 269 MB / 284.1 MB, free: 3.637 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.972e-05/2.981e-05, allocations: 7.938 kB / 349 MB, free: 10.75 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1352/0.1353, allocations: 61.89 MB / 410.9 MB, free: 12.86 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpNPSH): time 0.4368/0.5722, allocations: 34.41 MB / 445.3 MB, free: 10.8 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.03592/0.6082, allocations: 16.78 MB / 462.1 MB, free: 15.4 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001715/0.6099, allocations: 34.38 kB / 462.2 MB, free: 15.38 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002231/0.6122, allocations: 395.7 kB / 462.5 MB, free: 15.02 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01617/0.6285, allocations: 3.705 MB / 466.2 MB, free: 11.83 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01155/0.64, allocations: 2.627 MB / 468.9 MB, free: 9.766 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.002681/0.6427, allocations: 0.8304 MB / 469.7 MB, free: 9.176 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007613/0.6435, allocations: 311.3 kB / 470 MB, free: 8.973 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001994/0.6456, allocations: 0.5865 MB / 470.6 MB, free: 8.621 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01528/0.6609, allocations: 5.821 MB / 476.4 MB, free: 6.117 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02128/0.6822, allocations: 7.141 MB / 483.6 MB, free: 14.96 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00293/0.6852, allocations: 436 kB / 484 MB, free: 14.54 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003793/0.6856, allocations: 147.5 kB / 484.1 MB, free: 14.39 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004935/0.6861, allocations: 84 kB / 484.2 MB, free: 14.31 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01184/0.698, allocations: 3.407 MB / 487.6 MB, free: 10.9 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.698, allocations: 0 / 487.6 MB, free: 10.9 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.655e-06/0.6981, allocations: 0 / 487.6 MB, free: 10.9 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.845e-05/0.6981, allocations: 4 kB / 487.6 MB, free: 10.89 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.007007/0.7051, allocations: 1.49 MB / 489.1 MB, free: 9.355 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.855e-05/0.7052, allocations: 12.02 kB / 489.1 MB, free: 9.344 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006076/0.7113, allocations: 334.7 kB / 489.4 MB, free: 9.016 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001771/0.7131, allocations: 0.52 MB / 490 MB, free: 8.453 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001173/0.7132, allocations: 49.31 kB / 490 MB, free: 8.406 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001982/0.7134, allocations: 56 kB / 490.1 MB, free: 8.352 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005367/0.7188, allocations: 1.003 MB / 491.1 MB, free: 7.289 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.392e-05/0.7189, allocations: 3.938 kB / 491.1 MB, free: 7.285 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001564/0.7191, allocations: 28 kB / 491.1 MB, free: 7.258 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.702e-05/0.7191, allocations: 25.3 kB / 491.1 MB, free: 7.23 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006123/0.7253, allocations: 0.926 MB / 492.1 MB, free: 6.301 MB / 394.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.01189/0.7372, allocations: 4.948 MB / 497 MB, free: 0.9336 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006017/0.7433, allocations: 0.8589 MB / 497.9 MB, free: 68 kB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09417/0.8375, allocations: 24.56 MB / 0.5102 GB, free: 4.602 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.718e-05/0.8376, allocations: 42.94 kB / 0.5102 GB, free: 4.551 MB / 426.7 MB Notification: Performance of pre-optimization done (n=46): time 5.36e-06/0.8376, allocations: 0 / 0.5102 GB, free: 4.551 MB / 426.7 MB Notification: Performance of matching and sorting (n=46): time 0.01071/0.8483, allocations: 1.765 MB / 0.5119 GB, free: 2.758 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001147/0.8485, allocations: 110.8 kB / 0.512 GB, free: 2.625 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009499/0.8494, allocations: 462 kB / 0.5125 GB, free: 2.164 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 8.828e-05/0.8495, allocations: 37.7 kB / 0.5125 GB, free: 2.121 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003297/0.8499, allocations: 366.5 kB / 0.5129 GB, free: 1.762 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002105/0.8501, allocations: 153.8 kB / 0.513 GB, free: 1.609 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.112e-05/0.8502, allocations: 16 kB / 0.513 GB, free: 1.594 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001587/0.8504, allocations: 326.8 kB / 0.5133 GB, free: 1.266 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001181/0.8515, allocations: 285.1 kB / 0.5136 GB, free: 0.9883 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001369/0.8529, allocations: 452.2 kB / 0.514 GB, free: 484 kB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001258/0.8542, allocations: 316.6 kB / 0.5143 GB, free: 164 kB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.991e-06/0.8542, allocations: 7.938 kB / 0.5144 GB, free: 156 kB / 426.7 MB Notification: Performance of matching and sorting (n=71) (initialization): time 0.003441/0.8577, allocations: 0.8672 MB / 0.5152 GB, free: 15.27 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008856/0.8586, allocations: 2.001 MB / 0.5172 GB, free: 13.12 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.006e-05/0.8586, allocations: 4 kB / 0.5172 GB, free: 13.11 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002607/0.8613, allocations: 312.5 kB / 0.5175 GB, free: 12.8 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001003/0.8623, allocations: 139.8 kB / 0.5176 GB, free: 12.67 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001778/0.8641, allocations: 0.8411 MB / 0.5184 GB, free: 11.8 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001245/0.8654, allocations: 127.3 kB / 0.5185 GB, free: 11.68 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.928e-05/0.8655, allocations: 31.98 kB / 0.5186 GB, free: 11.64 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.486e-05/0.8655, allocations: 4 kB / 0.5186 GB, free: 11.64 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003711/0.8692, allocations: 0.8465 MB / 0.5194 GB, free: 10.79 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.462e-05/0.8693, allocations: 8 kB / 0.5194 GB, free: 10.79 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001494/0.8708, allocations: 212.6 kB / 0.5196 GB, free: 10.57 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009917/0.8718, allocations: 143.8 kB / 0.5197 GB, free: 10.43 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001603/0.8734, allocations: 0.7787 MB / 0.5205 GB, free: 9.629 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009555/0.8744, allocations: 103.6 kB / 0.5206 GB, free: 9.527 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.333e-05/0.8745, allocations: 35.98 kB / 0.5206 GB, free: 9.492 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (58): * Single equations (assignments): 57 * 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 12} Notification: Performance of prepare postOptimizeDAE: time 0.0005081/0.875, allocations: 204.2 kB / 0.5208 GB, free: 9.285 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000206/0.8752, allocations: 67.28 kB / 0.5209 GB, free: 9.219 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007114/0.8824, allocations: 3.182 MB / 0.524 GB, free: 6.023 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.683e-05/0.8825, allocations: 47.83 kB / 0.524 GB, free: 5.977 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.776e-06/0.8825, allocations: 0 / 0.524 GB, free: 5.977 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.373e-05/0.8825, allocations: 7.984 kB / 0.5241 GB, free: 5.969 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002541/0.8851, allocations: 1.508 MB / 0.5255 GB, free: 4.406 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.376e-06/0.8851, allocations: 4 kB / 0.5255 GB, free: 4.402 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007402/0.8859, allocations: 87.94 kB / 0.5256 GB, free: 4.316 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003733/0.8896, allocations: 1.087 MB / 0.5267 GB, free: 3.219 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001007/0.8898, allocations: 23.94 kB / 0.5267 GB, free: 3.195 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002622/0.8924, allocations: 1.474 MB / 0.5281 GB, free: 1.699 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.394e-06/0.8924, allocations: 64 / 0.5281 GB, free: 1.699 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004991/0.8974, allocations: 2.145 MB / 0.5302 GB, free: 15.53 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006296/0.8981, allocations: 346.7 kB / 0.5306 GB, free: 15.17 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001798/0.8983, allocations: 12 kB / 0.5306 GB, free: 15.16 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009508/0.8992, allocations: 87.78 kB / 0.5307 GB, free: 15.07 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001739/0.8994, allocations: 52.47 kB / 0.5307 GB, free: 15.02 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.767e-05/0.8995, allocations: 16 kB / 0.5307 GB, free: 15.01 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.000896/0.9004, allocations: 471 kB / 0.5312 GB, free: 14.54 MB / 458.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.9004, allocations: 4 kB / 0.5312 GB, free: 14.54 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.004863/0.9053, allocations: 1.335 MB / 0.5325 GB, free: 13.2 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 25 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse9.region3boundary,$cse10.region3boundary,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse20.phase,$cse20.region,$cse21.phase,$cse21.region,Source.medium.phase,Sink.medium.phase,pump.heatTransfer.states[1].phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (45): * Single equations (assignments): 35 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 9 * 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 18} Notification: Performance of Backend phase and start with SimCode phase: time 0.007016/0.9124, allocations: 1.385 MB / 0.5338 GB, free: 11.82 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.005028/0.9174, allocations: 1.442 MB / 0.5352 GB, free: 10.38 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 6.141e-06/0.9175, allocations: 0 / 0.5352 GB, free: 10.38 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002032/0.9195, allocations: 0.8392 MB / 0.5361 GB, free: 9.539 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002867/0.9224, allocations: 319.8 kB / 0.5364 GB, free: 9.23 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005721/0.9281, allocations: 3.008 MB / 0.5393 GB, free: 6.199 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009382/0.9291, allocations: 1.158 MB / 0.5404 GB, free: 5.012 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003167/0.9295, allocations: 67.42 kB / 0.5405 GB, free: 4.949 MB / 458.7 MB Notification: Performance of SimCode: time 9.32e-07/0.9295, allocations: 4 kB / 0.5405 GB, free: 4.945 MB / 458.7 MB Notification: Performance of Templates: time 0.08279/1.012, allocations: 36.69 MB / 0.5763 GB, free: 272 kB / 490.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpNPSH.makefile 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=2 -DSUNDIALS_MINOR_VERSION=6 -DPMC_USE_SUNDIALS -DENABLE_OMSI -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsi/" -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsi/base" -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsi/solver" -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsicpp/" -I. "-I/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/C-Sources" -I"." -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" "-I/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/C-Sources" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpNPSHCalcHelperMain.o OMCppModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpNPSHCalcHelperMain.cpp In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpNPSHCalcHelperMain.cpp:29: ./OMCppModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpNPSHFunctions.cpp:6385:5: error: no matching function for call to 'add_array_scalar' add_array_scalar(c_(2), tmp405, tmp406); ^~~~~~~~~~~~~~~~~~~~~~~~ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsicpp/Core/Math/ArrayOperations.h:91:6: note: candidate function not viable: no known conversion from 'double' to 'const BaseArray' for 1st argument void add_array_scalar(const BaseArray& inputArray, T b, BaseArray& outputArray); ^ 1 error generated. : recipe for target 'OMCppModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpNPSHCalcHelperMain.o' failed make: *** [OMCppModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpNPSHCalcHelperMain.o] Error 1