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_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpVariableSpeed") Notification: Performance of loadModel(ModelicaTest): time 2.062/2.062, allocations: 209.3 MB / 224.4 MB, free: 0.5742 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.973e-05/2.983e-05, allocations: 0 / 276.2 MB, free: 15.87 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3745/0.3745, allocations: 48.7 MB / 324.9 MB, free: 2.883 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpVariableSpeed): time 0.05852/0.4331, allocations: 33.98 MB / 358.8 MB, free: 10.79 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0335/0.4667, allocations: 16.14 MB / 375 MB, free: 13.38 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001328/0.4681, allocations: 31.75 kB / 375 MB, free: 13.34 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001692/0.4698, allocations: 398 kB / 375.4 MB, free: 12.95 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0159/0.4857, allocations: 3.587 MB / 379 MB, free: 9.355 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01072/0.4965, allocations: 2.593 MB / 381.6 MB, free: 6.762 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.002376/0.4989, allocations: 0.8065 MB / 382.4 MB, free: 5.953 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006437/0.4995, allocations: 295.4 kB / 382.7 MB, free: 5.664 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001599/0.5012, allocations: 0.5726 MB / 383.2 MB, free: 5.086 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01495/0.5161, allocations: 6.18 MB / 389.4 MB, free: 14.9 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02112/0.5373, allocations: 6.957 MB / 396.4 MB, free: 7.938 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003205/0.5406, allocations: 420 kB / 396.8 MB, free: 7.527 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004245/0.541, allocations: 135.5 kB / 396.9 MB, free: 7.395 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003533/0.5414, allocations: 87.94 kB / 397 MB, free: 7.309 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009663/0.5511, allocations: 3.321 MB / 400.3 MB, free: 3.98 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.908e-06/0.5511, allocations: 0 / 400.3 MB, free: 3.98 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.504e-06/0.5512, allocations: 4 kB / 400.3 MB, free: 3.977 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.867e-05/0.5512, allocations: 0 / 400.3 MB, free: 3.977 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.005312/0.5565, allocations: 1.454 MB / 401.8 MB, free: 2.473 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.003e-05/0.5566, allocations: 11.97 kB / 401.8 MB, free: 2.461 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003349/0.5599, allocations: 298.8 kB / 402.1 MB, free: 2.168 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001324/0.5613, allocations: 0.5238 MB / 402.6 MB, free: 1.602 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.913e-05/0.5614, allocations: 45.31 kB / 402.7 MB, free: 1.559 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001368/0.5616, allocations: 59.95 kB / 402.7 MB, free: 1.5 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003905/0.5655, allocations: 1.002 MB / 403.7 MB, free: 448 kB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.506e-05/0.5655, allocations: 0 / 403.7 MB, free: 448 kB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000113/0.5657, allocations: 28 kB / 403.7 MB, free: 420 kB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.258e-05/0.5657, allocations: 21 kB / 403.8 MB, free: 396 kB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00438/0.5701, allocations: 0.9482 MB / 404.7 MB, free: 15.44 MB / 346.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.007798/0.578, allocations: 4.659 MB / 409.4 MB, free: 10.36 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004202/0.5822, allocations: 0.7927 MB / 410.2 MB, free: 9.562 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.06298/0.6452, allocations: 18.57 MB / 428.7 MB, free: 4.734 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.139e-05/0.6453, allocations: 38.89 kB / 428.8 MB, free: 4.688 MB / 362.7 MB Notification: Performance of pre-optimization done (n=45): time 3.516e-06/0.6453, allocations: 0 / 428.8 MB, free: 4.688 MB / 362.7 MB Notification: Performance of matching and sorting (n=65): time 0.04903/0.6944, allocations: 4.385 MB / 433.2 MB, free: 208 kB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001208/0.6946, allocations: 107.4 kB / 433.3 MB, free: 76 kB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008206/0.6954, allocations: 417.9 kB / 433.7 MB, free: 15.66 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001635/0.6956, allocations: 41.7 kB / 433.7 MB, free: 15.61 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003082/0.6959, allocations: 378.2 kB / 434.1 MB, free: 15.24 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003034/0.6962, allocations: 232.7 kB / 434.3 MB, free: 15.01 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.946e-05/0.6963, allocations: 12 kB / 434.3 MB, free: 15 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001566/0.6965, allocations: 342.8 kB / 434.7 MB, free: 14.65 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001865/0.6984, allocations: 409.7 kB / 435.1 MB, free: 14.25 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002095/0.7005, allocations: 0.6227 MB / 435.7 MB, free: 13.53 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002137/0.7027, allocations: 473.9 kB / 436.1 MB, free: 13.07 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.027e-06/0.7027, allocations: 4 kB / 436.1 MB, free: 13.06 MB / 378.7 MB Notification: Performance of matching and sorting (n=95) (initialization): time 0.005562/0.7083, allocations: 1.297 MB / 437.4 MB, free: 11.75 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001133/0.7095, allocations: 2.606 MB / 440.1 MB, free: 8.941 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.32e-05/0.7095, allocations: 8 kB / 440.1 MB, free: 8.934 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006497/0.716, allocations: 0.8523 MB / 440.9 MB, free: 8.074 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001324/0.7174, allocations: 187.8 kB / 441.1 MB, free: 7.891 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003703/0.7211, allocations: 1.675 MB / 442.8 MB, free: 6.164 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001566/0.7227, allocations: 107.9 kB / 442.9 MB, free: 6.059 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001579/0.7229, allocations: 51.97 kB / 442.9 MB, free: 6.008 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.65e-05/0.7229, allocations: 4 kB / 442.9 MB, free: 6.004 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005833/0.7288, allocations: 1.26 MB / 444.2 MB, free: 4.738 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.807e-05/0.7289, allocations: 8 kB / 444.2 MB, free: 4.73 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003479/0.7324, allocations: 0.5519 MB / 444.7 MB, free: 4.172 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00137/0.7338, allocations: 195.7 kB / 444.9 MB, free: 3.98 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003353/0.7372, allocations: 1.612 MB / 446.6 MB, free: 2.316 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001416/0.7386, allocations: 111.8 kB / 446.7 MB, free: 2.207 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001459/0.7388, allocations: 47.97 kB / 446.7 MB, free: 2.16 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 30 * 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 (72): * Single equations (assignments): 70 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 9,2 12} Notification: Performance of prepare postOptimizeDAE: time 0.0006118/0.7394, allocations: 221.6 kB / 446.9 MB, free: 1.934 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002357/0.7397, allocations: 63.25 kB / 447 MB, free: 1.871 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009498/0.7492, allocations: 3.602 MB / 450.6 MB, free: 14.24 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.095e-05/0.7493, allocations: 35.94 kB / 450.6 MB, free: 14.21 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.059e-05/0.7493, allocations: 4 kB / 450.6 MB, free: 14.2 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.012e-05/0.7493, allocations: 3.984 kB / 450.6 MB, free: 14.2 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01177/0.7611, allocations: 4.894 MB / 455.5 MB, free: 9.234 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.226e-05/0.7612, allocations: 0 / 455.5 MB, free: 9.234 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009952/0.7622, allocations: 135.9 kB / 455.7 MB, free: 9.102 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007107/0.7693, allocations: 1.602 MB / 457.3 MB, free: 7.492 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001423/0.7695, allocations: 19.98 kB / 457.3 MB, free: 7.473 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004452/0.774, allocations: 2.342 MB / 459.6 MB, free: 5.082 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.007e-06/0.774, allocations: 0 / 459.6 MB, free: 5.082 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007156/0.7812, allocations: 2.473 MB / 462.1 MB, free: 2.57 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007779/0.7821, allocations: 319 kB / 462.4 MB, free: 2.238 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002095/0.7823, allocations: 12 kB / 462.4 MB, free: 2.227 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001269/0.7836, allocations: 115.9 kB / 462.5 MB, free: 2.113 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002207/0.7838, allocations: 64.5 kB / 462.6 MB, free: 2.051 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.951e-05/0.7839, allocations: 27.98 kB / 462.6 MB, free: 2.023 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0007612/0.7847, allocations: 415 kB / 463 MB, free: 1.613 MB / 394.7 MB Notification: Performance of sort global known variables: time 7.61e-07/0.7847, allocations: 7.938 kB / 463 MB, free: 1.605 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.005443/0.7902, allocations: 1.374 MB / 464.4 MB, free: 236 kB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 21 ($cse3.phase,$cse3.region,$cse5.phase,$cse5.region,$cse6.region3boundary,$cse7.region3boundary,$cse8.phase,$cse8.region,$cse9.phase,$cse9.region,$cse12.phase,$cse12.region,$cse13.phase,$cse13.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.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 (50): * Single equations (assignments): 42 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {2 7,2 18} Notification: Performance of Backend phase and start with SimCode phase: time 0.00838/0.7986, allocations: 1.419 MB / 465.8 MB, free: 14.8 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.007993/0.8066, allocations: 1.996 MB / 467.8 MB, free: 12.81 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.476e-06/0.8067, allocations: 3.938 kB / 467.8 MB, free: 12.81 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003117/0.8098, allocations: 1.016 MB / 468.8 MB, free: 11.79 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002748/0.8126, allocations: 289.1 kB / 469.1 MB, free: 11.51 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006845/0.8195, allocations: 3.084 MB / 472.2 MB, free: 8.395 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009999/0.8206, allocations: 1.131 MB / 473.3 MB, free: 7.234 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003829/0.821, allocations: 67.41 kB / 473.4 MB, free: 7.168 MB / 410.7 MB Notification: Performance of SimCode: time 1.132e-06/0.821, allocations: 0 / 473.4 MB, free: 7.168 MB / 410.7 MB Notification: Performance of Templates: time 0.3583/1.179, allocations: 42.33 MB / 0.5037 GB, free: 114.5 MB / 410.7 MB make -j1 -f ModelicaTest_3.2.1_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"." -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpVariableSpeedCalcHelperMain.o OMCppModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpVariableSpeedCalcHelperMain.cpp In file included from OMCppModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpVariableSpeedCalcHelperMain.cpp:29: ./OMCppModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpVariableSpeedFunctions.cpp:6701:5: error: no matching function for call to 'add_array_scalar' add_array_scalar(c_(2), tmp447, tmp448); ^~~~~~~~~~~~~~~~~~~~~~~~ /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_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpVariableSpeedCalcHelperMain.o' failed make: *** [OMCppModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpVariableSpeedCalcHelperMain.o] Error 1