Running command: translateModel(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultCV,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.TestWaterPumpDefaultCV") Notification: Performance of loadModel(ModelicaTest): time 2.442/2.442, allocations: 269 MB / 284.1 MB, free: 3.633 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.172e-05/3.176e-05, allocations: 8 kB / 349 MB, free: 10.74 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1347/0.1348, allocations: 61.9 MB / 410.9 MB, free: 12.83 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultCV): time 0.3813/0.5162, allocations: 34.45 MB / 445.4 MB, free: 10.73 MB / 362.7 MB Notification: Performance of NFInst.instExpressions: time 0.03579/0.552, allocations: 16.35 MB / 461.7 MB, free: 15.69 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001576/0.5537, allocations: 30.28 kB / 461.8 MB, free: 15.68 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001977/0.5557, allocations: 398.9 kB / 462.2 MB, free: 15.32 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01593/0.5716, allocations: 3.642 MB / 465.8 MB, free: 12.18 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01197/0.5836, allocations: 2.643 MB / 468.4 MB, free: 10.1 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.002627/0.5863, allocations: 0.852 MB / 469.3 MB, free: 9.492 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008791/0.5872, allocations: 313.1 kB / 469.6 MB, free: 9.289 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002165/0.5894, allocations: 0.6027 MB / 470.2 MB, free: 8.926 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01474/0.6042, allocations: 5.814 MB / 476 MB, free: 6.516 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02125/0.6255, allocations: 7.098 MB / 483.1 MB, free: 15.41 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00317/0.6287, allocations: 440 kB / 483.5 MB, free: 14.98 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004929/0.6293, allocations: 147.5 kB / 483.7 MB, free: 14.83 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005446/0.6298, allocations: 84 kB / 483.8 MB, free: 14.75 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009937/0.6398, allocations: 3.407 MB / 487.2 MB, free: 11.34 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.6399, allocations: 4 kB / 487.2 MB, free: 11.33 MB / 394.7 MB Notification: Performance of FrontEnd: time 5.06e-06/0.6399, allocations: 3.984 kB / 487.2 MB, free: 11.33 MB / 394.7 MB Notification: Performance of Transformations before backend: time 2.495e-05/0.6399, allocations: 3.938 kB / 487.2 MB, free: 11.32 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.006009/0.6459, allocations: 1.497 MB / 488.7 MB, free: 9.777 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.365e-05/0.646, allocations: 12.03 kB / 488.7 MB, free: 9.766 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003622/0.6496, allocations: 322.6 kB / 489 MB, free: 9.449 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001448/0.6511, allocations: 0.5123 MB / 489.5 MB, free: 8.895 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.967e-05/0.6513, allocations: 57.23 kB / 489.6 MB, free: 8.84 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001559/0.6514, allocations: 60 kB / 489.6 MB, free: 8.781 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004296/0.6557, allocations: 1.003 MB / 490.6 MB, free: 7.719 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.642e-05/0.6558, allocations: 3.938 kB / 490.6 MB, free: 7.715 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001226/0.656, allocations: 28 kB / 490.7 MB, free: 7.688 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.603e-05/0.656, allocations: 21.31 kB / 490.7 MB, free: 7.664 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004662/0.6607, allocations: 0.9416 MB / 491.6 MB, free: 6.719 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.0102/0.671, allocations: 4.881 MB / 496.5 MB, free: 1.449 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005096/0.6761, allocations: 0.9098 MB / 497.4 MB, free: 0.5312 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1169/0.7931, allocations: 24.43 MB / 0.5096 GB, free: 5.215 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.57e-05/0.7932, allocations: 43 kB / 0.5097 GB, free: 5.164 MB / 426.7 MB Notification: Performance of pre-optimization done (n=47): time 4.709e-06/0.7932, allocations: 0 / 0.5097 GB, free: 5.164 MB / 426.7 MB Notification: Performance of matching and sorting (n=47): time 0.01835/0.8116, allocations: 1.991 MB / 0.5116 GB, free: 3.145 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.16e-05/0.8117, allocations: 115.2 kB / 0.5117 GB, free: 3.008 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001336/0.8131, allocations: 478 kB / 0.5122 GB, free: 2.531 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001328/0.8132, allocations: 33.7 kB / 0.5122 GB, free: 2.492 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005035/0.8137, allocations: 370.5 kB / 0.5126 GB, free: 2.129 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002958/0.8141, allocations: 161.7 kB / 0.5127 GB, free: 1.969 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.957e-05/0.8142, allocations: 15.94 kB / 0.5127 GB, free: 1.953 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001932/0.8144, allocations: 334.8 kB / 0.513 GB, free: 1.617 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001783/0.8162, allocations: 297.1 kB / 0.5133 GB, free: 1.328 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001966/0.8182, allocations: 480.2 kB / 0.5138 GB, free: 0.7773 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001818/0.82, allocations: 332.6 kB / 0.5141 GB, free: 464 kB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.555e-06/0.82, allocations: 0 / 0.5141 GB, free: 464 kB / 426.7 MB Notification: Performance of matching and sorting (n=76) (initialization): time 0.005056/0.8251, allocations: 0.9376 MB / 0.515 GB, free: 15.51 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001116/0.8263, allocations: 2.005 MB / 0.517 GB, free: 13.35 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.101e-05/0.8263, allocations: 8 kB / 0.517 GB, free: 13.34 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.006/0.8323, allocations: 492.3 kB / 0.5175 GB, free: 12.86 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001494/0.8339, allocations: 143.8 kB / 0.5176 GB, free: 12.71 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002688/0.8366, allocations: 0.907 MB / 0.5185 GB, free: 11.79 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001837/0.8385, allocations: 135.2 kB / 0.5186 GB, free: 11.65 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001579/0.8387, allocations: 39.94 kB / 0.5186 GB, free: 11.61 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.026e-05/0.8387, allocations: 4 kB / 0.5186 GB, free: 11.61 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005406/0.8441, allocations: 0.8851 MB / 0.5195 GB, free: 10.72 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.556e-05/0.8442, allocations: 8 kB / 0.5195 GB, free: 10.71 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001622/0.8458, allocations: 205.1 kB / 0.5197 GB, free: 10.51 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001224/0.8471, allocations: 163.8 kB / 0.5199 GB, free: 10.35 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002143/0.8492, allocations: 0.7865 MB / 0.5206 GB, free: 9.535 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001064/0.8503, allocations: 103.6 kB / 0.5207 GB, free: 9.434 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001051/0.8505, allocations: 35.98 kB / 0.5208 GB, free: 9.398 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 (59): * Single equations (assignments): 58 * 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 16} Notification: Performance of prepare postOptimizeDAE: time 0.0005284/0.851, allocations: 216.3 kB / 0.521 GB, free: 9.18 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002228/0.8512, allocations: 67.16 kB / 0.521 GB, free: 9.113 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007096/0.8583, allocations: 3.164 MB / 0.5241 GB, free: 5.938 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.962e-05/0.8585, allocations: 51.88 kB / 0.5242 GB, free: 5.887 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.236e-06/0.8585, allocations: 0 / 0.5242 GB, free: 5.887 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.915e-05/0.8585, allocations: 3.984 kB / 0.5242 GB, free: 5.883 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00261/0.8611, allocations: 1.508 MB / 0.5257 GB, free: 4.32 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.538e-06/0.8612, allocations: 0 / 0.5257 GB, free: 4.32 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007325/0.8619, allocations: 87.88 kB / 0.5257 GB, free: 4.234 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0053/0.8673, allocations: 1.222 MB / 0.5269 GB, free: 3.008 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.885e-05/0.8674, allocations: 12 kB / 0.5269 GB, free: 2.996 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002936/0.8704, allocations: 1.556 MB / 0.5285 GB, free: 1.414 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.387e-06/0.8704, allocations: 0 / 0.5285 GB, free: 1.414 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005365/0.8758, allocations: 2.184 MB / 0.5306 GB, free: 15.21 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006559/0.8765, allocations: 338.7 kB / 0.5309 GB, free: 14.86 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001875/0.8767, allocations: 12 kB / 0.5309 GB, free: 14.85 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009982/0.8777, allocations: 79.78 kB / 0.531 GB, free: 14.77 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001776/0.8779, allocations: 60.36 kB / 0.5311 GB, free: 14.71 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.873e-05/0.878, allocations: 23.98 kB / 0.5311 GB, free: 14.69 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0009392/0.8789, allocations: 483 kB / 0.5316 GB, free: 14.21 MB / 458.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.8789, allocations: 0 / 0.5316 GB, free: 14.21 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.004798/0.8837, allocations: 1.335 MB / 0.5329 GB, free: 12.88 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,$cse17.phase,$cse17.region,$cse18.phase,$cse18.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 (40): * Single equations (assignments): 30 * 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 23} Notification: Performance of Backend phase and start with SimCode phase: time 0.007136/0.8909, allocations: 1.372 MB / 0.5342 GB, free: 11.5 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.005773/0.8967, allocations: 1.503 MB / 0.5357 GB, free: 9.996 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 6.132e-06/0.8968, allocations: 0 / 0.5357 GB, free: 9.996 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002067/0.8989, allocations: 0.8437 MB / 0.5365 GB, free: 9.156 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003109/0.902, allocations: 325.6 kB / 0.5368 GB, free: 8.84 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005914/0.9079, allocations: 3.022 MB / 0.5397 GB, free: 5.793 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009293/0.9089, allocations: 1.17 MB / 0.5409 GB, free: 4.594 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003261/0.9093, allocations: 59.42 kB / 0.5409 GB, free: 4.535 MB / 458.7 MB Notification: Performance of SimCode: time 7.92e-07/0.9093, allocations: 0 / 0.5409 GB, free: 4.535 MB / 458.7 MB Notification: Performance of Templates: time 0.08215/0.9914, allocations: 36.77 MB / 0.5769 GB, free: 15.77 MB / 0.4948 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultCV.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.TestWaterPumpDefaultCVCalcHelperMain.o OMCppModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultCVCalcHelperMain.cpp In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultCVCalcHelperMain.cpp:29: ./OMCppModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultCVFunctions.cpp:6377:5: error: no matching function for call to 'add_array_scalar' add_array_scalar(c_(2), tmp401, tmp402); ^~~~~~~~~~~~~~~~~~~~~~~~ /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.TestWaterPumpDefaultCVCalcHelperMain.o' failed make: *** [OMCppModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestComponents.Machines.TestWaterPumpDefaultCVCalcHelperMain.o] Error 1