Running command: translateModel(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpVariableSpeed,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|N_pump.y|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",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpVariableSpeed") Notification: Performance of loadModel(ModelicaTest): time 2.484/2.484, allocations: 269 MB / 284.1 MB, free: 3.629 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.545e-05/3.544e-05, allocations: 4 kB / 349 MB, free: 10.77 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1369/0.137, allocations: 61.9 MB / 410.9 MB, free: 12.86 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpVariableSpeed): time 0.3855/0.5225, allocations: 34.4 MB / 445.3 MB, free: 10.73 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.03354/0.5561, allocations: 16.29 MB / 461.6 MB, free: 15.8 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001348/0.5575, allocations: 29.75 kB / 461.7 MB, free: 15.78 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001724/0.5593, allocations: 396.4 kB / 462 MB, free: 15.43 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01551/0.5748, allocations: 3.641 MB / 465.7 MB, free: 12.29 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01164/0.5865, allocations: 2.635 MB / 468.3 MB, free: 10.22 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.002707/0.5892, allocations: 0.8321 MB / 469.1 MB, free: 9.621 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008258/0.5901, allocations: 304.2 kB / 469.4 MB, free: 9.426 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002017/0.5921, allocations: 0.6002 MB / 470 MB, free: 9.059 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01392/0.6061, allocations: 5.8 MB / 475.8 MB, free: 6.707 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02103/0.6272, allocations: 7.09 MB / 482.9 MB, free: 15.61 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002996/0.6302, allocations: 436 kB / 483.4 MB, free: 15.18 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004294/0.6307, allocations: 151.5 kB / 483.5 MB, free: 15.03 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004999/0.6312, allocations: 84 kB / 483.6 MB, free: 14.95 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009576/0.6408, allocations: 3.383 MB / 487 MB, free: 11.56 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.6409, allocations: 0 / 487 MB, free: 11.56 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.415e-06/0.6409, allocations: 0 / 487 MB, free: 11.56 MB / 394.7 MB Notification: Performance of Transformations before backend: time 2.229e-05/0.6409, allocations: 0 / 487 MB, free: 11.56 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: 142 * Number of variables: 142 Notification: Performance of Generate backend data structure: time 0.005511/0.6464, allocations: 1.49 MB / 488.5 MB, free: 10.02 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.273e-05/0.6465, allocations: 8.031 kB / 488.5 MB, free: 10.01 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003371/0.6499, allocations: 314.7 kB / 488.8 MB, free: 9.703 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001328/0.6512, allocations: 0.52 MB / 489.3 MB, free: 9.141 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.151e-05/0.6513, allocations: 45.31 kB / 489.3 MB, free: 9.098 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001313/0.6515, allocations: 52 kB / 489.4 MB, free: 9.047 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003978/0.6555, allocations: 1.01 MB / 490.4 MB, free: 7.977 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.655e-05/0.6556, allocations: 0 / 490.4 MB, free: 7.977 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001096/0.6557, allocations: 28 kB / 490.4 MB, free: 7.949 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.894e-05/0.6557, allocations: 21 kB / 490.5 MB, free: 7.93 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004399/0.6601, allocations: 0.9521 MB / 491.4 MB, free: 6.977 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.00932/0.6695, allocations: 4.747 MB / 496.1 MB, free: 1.855 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004624/0.6742, allocations: 0.8703 MB / 497 MB, free: 0.9805 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08587/0.7601, allocations: 24.51 MB / 0.5093 GB, free: 5.562 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.148e-05/0.7603, allocations: 42.94 kB / 0.5093 GB, free: 5.512 MB / 426.7 MB Notification: Performance of pre-optimization done (n=45): time 3.546e-06/0.7603, allocations: 3.938 kB / 0.5093 GB, free: 5.508 MB / 426.7 MB Notification: Performance of matching and sorting (n=45): time 0.01095/0.7712, allocations: 1.754 MB / 0.5111 GB, free: 3.727 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.141e-05/0.7714, allocations: 106.8 kB / 0.5112 GB, free: 3.598 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000945/0.7723, allocations: 458.2 kB / 0.5116 GB, free: 3.141 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 9.653e-05/0.7724, allocations: 33.7 kB / 0.5116 GB, free: 3.102 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003473/0.7728, allocations: 366.5 kB / 0.512 GB, free: 2.742 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002218/0.773, allocations: 153.8 kB / 0.5121 GB, free: 2.59 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.476e-05/0.7731, allocations: 12 kB / 0.5121 GB, free: 2.578 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001856/0.7733, allocations: 342.8 kB / 0.5125 GB, free: 2.234 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001342/0.7747, allocations: 268.9 kB / 0.5127 GB, free: 1.973 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001471/0.7761, allocations: 459.7 kB / 0.5132 GB, free: 1.449 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001378/0.7775, allocations: 303.6 kB / 0.5135 GB, free: 1.152 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.029e-05/0.7776, allocations: 4 kB / 0.5135 GB, free: 1.148 MB / 426.7 MB Notification: Performance of matching and sorting (n=69) (initialization): time 0.003669/0.7813, allocations: 0.868 MB / 0.5143 GB, free: 276 kB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001179/0.7825, allocations: 2.09 MB / 0.5163 GB, free: 14.02 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.438e-05/0.7825, allocations: 8 kB / 0.5164 GB, free: 14.01 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002719/0.7853, allocations: 312.5 kB / 0.5166 GB, free: 13.7 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001097/0.7864, allocations: 143.8 kB / 0.5168 GB, free: 13.56 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001916/0.7884, allocations: 0.8333 MB / 0.5176 GB, free: 12.7 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001271/0.7897, allocations: 131.3 kB / 0.5177 GB, free: 12.57 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001048/0.7898, allocations: 31.98 kB / 0.5178 GB, free: 12.54 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.386e-05/0.7898, allocations: 4 kB / 0.5178 GB, free: 12.54 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003949/0.7938, allocations: 0.8281 MB / 0.5186 GB, free: 11.7 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.12e-05/0.7938, allocations: 8 kB / 0.5186 GB, free: 11.7 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001505/0.7953, allocations: 196.7 kB / 0.5188 GB, free: 11.5 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00107/0.7964, allocations: 151.7 kB / 0.5189 GB, free: 11.35 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001641/0.7981, allocations: 0.7786 MB / 0.5197 GB, free: 10.55 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000993/0.7991, allocations: 103.6 kB / 0.5198 GB, free: 10.45 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001081/0.7993, allocations: 35.98 kB / 0.5198 GB, free: 10.41 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * 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 (56): * Single equations (assignments): 55 * 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.0005183/0.7998, allocations: 204 kB / 0.52 GB, free: 10.2 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002095/0.8, allocations: 67.2 kB / 0.5201 GB, free: 10.14 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006884/0.8069, allocations: 2.962 MB / 0.523 GB, free: 7.156 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.346e-05/0.807, allocations: 43.94 kB / 0.523 GB, free: 7.113 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.788e-06/0.8071, allocations: 0 / 0.523 GB, free: 7.113 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.336e-05/0.8071, allocations: 0 / 0.523 GB, free: 7.113 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002576/0.8097, allocations: 1.403 MB / 0.5244 GB, free: 5.656 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.448e-06/0.8097, allocations: 0 / 0.5244 GB, free: 5.656 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008877/0.8106, allocations: 107.9 kB / 0.5245 GB, free: 5.551 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003821/0.8145, allocations: 1.062 MB / 0.5255 GB, free: 4.492 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000105/0.8146, allocations: 12 kB / 0.5255 GB, free: 4.48 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002834/0.8175, allocations: 1.497 MB / 0.527 GB, free: 2.953 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.053e-06/0.8175, allocations: 0 / 0.527 GB, free: 2.953 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004987/0.8225, allocations: 1.941 MB / 0.5289 GB, free: 0.9922 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008379/0.8234, allocations: 374.5 kB / 0.5292 GB, free: 0.6055 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002065/0.8236, allocations: 15.95 kB / 0.5292 GB, free: 0.5898 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001031/0.8247, allocations: 87.83 kB / 0.5293 GB, free: 0.5039 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001804/0.8249, allocations: 44.48 kB / 0.5294 GB, free: 472 kB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.179e-05/0.825, allocations: 23.98 kB / 0.5294 GB, free: 448 kB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001222/0.8262, allocations: 0.5615 MB / 0.5299 GB, free: 15.87 MB / 458.7 MB Notification: Performance of sort global known variables: time 7.01e-07/0.8262, allocations: 0 / 0.5299 GB, free: 15.87 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.00513/0.8314, allocations: 1.327 MB / 0.5312 GB, free: 14.54 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: 21 ($cse3.phase,$cse3.region,$cse7.phase,$cse7.region,$cse9.region3boundary,$cse10.region3boundary,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.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 (39): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 6 * 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.007808/0.8392, allocations: 1.364 MB / 0.5326 GB, free: 13.18 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.005281/0.8445, allocations: 1.352 MB / 0.5339 GB, free: 11.83 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 6.502e-06/0.8446, allocations: 0 / 0.5339 GB, free: 11.83 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002105/0.8467, allocations: 0.7299 MB / 0.5346 GB, free: 11.1 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003053/0.8498, allocations: 352.3 kB / 0.5349 GB, free: 10.76 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00599/0.8558, allocations: 2.832 MB / 0.5377 GB, free: 7.898 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009911/0.8569, allocations: 1.15 MB / 0.5388 GB, free: 6.719 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003288/0.8572, allocations: 59.42 kB / 0.5389 GB, free: 6.664 MB / 458.7 MB Notification: Performance of SimCode: time 9.027e-06/0.8572, allocations: 4 kB / 0.5389 GB, free: 6.66 MB / 458.7 MB Notification: Performance of Templates: time 0.08439/0.9416, allocations: 36.55 MB / 0.5746 GB, free: 2.125 MB / 490.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpVariableSpeed.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.TestWaterPumpVariableSpeedCalcHelperMain.o OMCppModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpVariableSpeedCalcHelperMain.cpp In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpVariableSpeedCalcHelperMain.cpp:29: ./OMCppModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpVariableSpeedFunctions.cpp:6358:5: error: no matching function for call to 'add_array_scalar' add_array_scalar(c_(2), tmp408, tmp409); ^~~~~~~~~~~~~~~~~~~~~~~~ /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.TestWaterPumpVariableSpeedCalcHelperMain.o' failed make: *** [OMCppModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpVariableSpeedCalcHelperMain.o] Error 1