Running command: translateModel(Modelica.Fluid.Examples.PumpingSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|PT1.y|pumps.medium.T|pumps.medium.p|reservoir.level|reservoir.medium.T|PumpRPMGenerator.y|controller.y",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Fluid.Examples.PumpingSystem") Notification: Performance of loadModel(Modelica): time 2.264/2.264, allocations: 194.9 MB / 211.2 MB, free: 8.344 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.959e-05/2.967e-05, allocations: 4 kB / 258.8 MB, free: 8.707 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3124/0.3124, allocations: 44.5 MB / 303.3 MB, free: 12.77 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.PumpingSystem): time 0.115/0.4275, allocations: 53.07 MB / 356.4 MB, free: 8.52 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.07646/0.504, allocations: 22.47 MB / 378.8 MB, free: 1.988 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001968/0.5061, allocations: 51.62 kB / 378.9 MB, free: 1.938 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002469/0.5086, allocations: 0.5674 MB / 379.4 MB, free: 1.367 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01815/0.5268, allocations: 4.572 MB / 384 MB, free: 12.78 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01166/0.5385, allocations: 2.878 MB / 386.9 MB, free: 9.895 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.004501/0.543, allocations: 1.727 MB / 388.6 MB, free: 8.164 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001764/0.5448, allocations: 0.7298 MB / 389.4 MB, free: 7.434 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02632/0.5712, allocations: 9.357 MB / 398.7 MB, free: 14.07 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.05378/0.625, allocations: 15.29 MB / 414 MB, free: 14.77 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02877/0.6539, allocations: 8.112 MB / 422.1 MB, free: 6.648 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00371/0.6576, allocations: 0.5039 MB / 422.6 MB, free: 6.145 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001042/0.6587, allocations: 378.9 kB / 423 MB, free: 5.773 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008245/0.6596, allocations: 164 kB / 423.2 MB, free: 5.613 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01259/0.6722, allocations: 4.588 MB / 427.7 MB, free: 1.016 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.6723, allocations: 0 / 427.7 MB, free: 1.016 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.326e-06/0.6723, allocations: 0 / 427.7 MB, free: 1.016 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.593e-05/0.6724, allocations: 0 / 427.7 MB, free: 1.016 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 307 * Number of variables: 307 Notification: Performance of Generate backend data structure: time 0.2577/0.93, allocations: 2.23 MB / 430 MB, free: 113.1 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.48e-05/0.9301, allocations: 10.08 kB / 430 MB, free: 113.1 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005531/0.9357, allocations: 479.4 kB / 430.4 MB, free: 113 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002706/0.9384, allocations: 0.87 MB / 431.3 MB, free: 112.6 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002708/0.9388, allocations: 183.8 kB / 431.5 MB, free: 112.4 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000473/0.9392, allocations: 114.6 kB / 431.6 MB, free: 112.4 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006724/0.946, allocations: 2.011 MB / 433.6 MB, free: 111.5 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.538e-05/0.9461, allocations: 3.969 kB / 433.6 MB, free: 111.5 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002371/0.9463, allocations: 46.25 kB / 433.7 MB, free: 111.4 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001447/0.9465, allocations: 85.11 kB / 433.8 MB, free: 111.4 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006333/0.9528, allocations: 1.773 MB / 435.5 MB, free: 110.5 MB / 362.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.02549/0.9784, allocations: 9.359 MB / 444.9 MB, free: 102.7 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008055/0.9865, allocations: 1.497 MB / 446.4 MB, free: 101.8 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2278/1.214, allocations: 64.3 MB / 0.4987 GB, free: 30.7 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003739/1.218, allocations: 1.078 MB / 0.4998 GB, free: 29.59 MB / 362.7 MB Notification: Performance of pre-optimization done (n=110): time 5.4e-06/1.218, allocations: 0 / 0.4998 GB, free: 29.59 MB / 362.7 MB Notification: Performance of matching and sorting (n=121): time 0.02771/1.246, allocations: 6.593 MB / 0.5062 GB, free: 22.87 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001014/1.246, allocations: 299.9 kB / 0.5065 GB, free: 22.5 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001674/1.248, allocations: 0.9259 MB / 0.5074 GB, free: 21.56 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002919/1.248, allocations: 49.7 kB / 0.5074 GB, free: 21.51 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004434/1.249, allocations: 0.5618 MB / 0.508 GB, free: 20.95 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005111/1.249, allocations: 415 kB / 0.5084 GB, free: 20.54 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001433/1.249, allocations: 28 kB / 0.5084 GB, free: 20.52 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001125/1.249, allocations: 366.7 kB / 0.5088 GB, free: 20.15 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001865/1.251, allocations: 0.6451 MB / 0.5094 GB, free: 19.5 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002146/1.253, allocations: 1.05 MB / 0.5104 GB, free: 18.28 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002076/1.255, allocations: 0.748 MB / 0.5111 GB, free: 17.53 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.055e-05/1.256, allocations: 4 kB / 0.5111 GB, free: 17.53 MB / 362.7 MB Notification: Performance of matching and sorting (n=183) (initialization): time 0.00617/1.262, allocations: 2.102 MB / 0.5132 GB, free: 15.4 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009195/1.263, allocations: 4.445 MB / 0.5175 GB, free: 10.6 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.421e-05/1.263, allocations: 15.95 kB / 0.5176 GB, free: 10.59 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0106/1.273, allocations: 1.012 MB / 0.5185 GB, free: 9.566 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002384/1.276, allocations: 299.5 kB / 0.5188 GB, free: 9.273 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004731/1.281, allocations: 4.041 MB / 0.5228 GB, free: 5.082 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002488/1.283, allocations: 115.8 kB / 0.5229 GB, free: 4.969 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002979/1.283, allocations: 79.97 kB / 0.523 GB, free: 4.891 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.601e-05/1.283, allocations: 4 kB / 0.523 GB, free: 4.887 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005748/1.289, allocations: 1.866 MB / 0.5248 GB, free: 3.004 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.856e-05/1.289, allocations: 13.41 kB / 0.5248 GB, free: 2.992 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009321/1.299, allocations: 0.7494 MB / 0.5255 GB, free: 2.238 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002454/1.301, allocations: 315.5 kB / 0.5258 GB, free: 1.93 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009798/1.311, allocations: 6.739 MB / 0.5324 GB, free: 10.75 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001889/1.313, allocations: 115.8 kB / 0.5325 GB, free: 10.64 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003139/1.313, allocations: 79.92 kB / 0.5326 GB, free: 10.56 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 51 * Number of states: 0 () * Number of discrete variables: 24 (pipe.flowModel.states[2].phase,pipe.flowModel.states[1].phase,$whenCondition2,$whenCondition1,reservoir.regularFlow[1],reservoir.regularFlow[2],reservoir.regularFlow[3],reservoir.inFlow[1],reservoir.inFlow[2],reservoir.inFlow[3],$PRE.controller.y,controller.y,PumpRPMGenerator.endValue,PumpRPMGenerator.rate,PumpRPMGenerator.T,reservoir.medium.phase,pumps.medium.phase,sink.state.phase,sink.medium.phase,userValve.state_b.phase,userValve.state_a.phase,pumps.monitoring.state_in.phase,source.state.phase,source.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (160): * Single equations (assignments): 154 * 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: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 6 {2 1,1 6,2 7,1 1,2 3,2 1} Notification: Performance of prepare postOptimizeDAE: time 0.001227/1.315, allocations: 383.5 kB / 0.533 GB, free: 10.18 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004708/1.315, allocations: 134.4 kB / 0.5331 GB, free: 10.05 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01191/1.327, allocations: 4.956 MB / 0.5379 GB, free: 5.031 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.017e-05/1.327, allocations: 51.92 kB / 0.538 GB, free: 4.98 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.628e-06/1.327, allocations: 4 kB / 0.538 GB, free: 4.977 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.584e-05/1.327, allocations: 7.969 kB / 0.538 GB, free: 4.969 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01608/1.343, allocations: 6.753 MB / 0.5446 GB, free: 14.14 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.003e-05/1.343, allocations: 8 kB / 0.5446 GB, free: 14.13 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001629/1.345, allocations: 179.7 kB / 0.5448 GB, free: 13.95 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007417/1.352, allocations: 1.379 MB / 0.5461 GB, free: 12.56 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002959/1.353, allocations: 39.97 kB / 0.5462 GB, free: 12.52 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006083/1.359, allocations: 4.462 MB / 0.5505 GB, free: 7.902 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.412e-06/1.359, allocations: 8.141 kB / 0.5505 GB, free: 7.895 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01187/1.371, allocations: 4.937 MB / 0.5553 GB, free: 2.844 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001586/1.372, allocations: 0.5405 MB / 0.5559 GB, free: 2.281 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004732/1.373, allocations: 35.92 kB / 0.5559 GB, free: 2.246 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002025/1.375, allocations: 103.8 kB / 0.556 GB, free: 2.145 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004014/1.375, allocations: 125.1 kB / 0.5561 GB, free: 2.02 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001797/1.376, allocations: 47.97 kB / 0.5562 GB, free: 1.973 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.002202/1.378, allocations: 0.9846 MB / 0.5571 GB, free: 0.9883 MB / 394.7 MB Notification: Performance of sort global known variables: time 5.61e-07/1.378, allocations: 0 / 0.5571 GB, free: 0.9883 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.007454/1.385, allocations: 1.903 MB / 0.559 GB, free: 15.23 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 5 (pumps.medium.p,pumps.medium.T,reservoir.level,reservoir.medium.T,PT1.y) * Number of discrete variables: 36 ($cse2.phase,$cse2.region,$cse3.phase,$cse3.region,$cse5.phase,$cse5.region,$cse6.phase,$cse6.region,$cse7.phase,$cse7.region,$cse11.phase,$cse11.region,$cse12.phase,$cse12.region,$cse13.phase,$cse13.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse18.phase,$cse18.region,$cse19.phase,$cse19.region,$whenCondition2,$whenCondition1,reservoir.regularFlow[1],reservoir.regularFlow[2],reservoir.regularFlow[3],reservoir.inFlow[1],reservoir.inFlow[2],reservoir.inFlow[3],controller.y,PumpRPMGenerator.endValue,PumpRPMGenerator.rate,PumpRPMGenerator.T) * Number of discrete states: 2 (controller.y,PumpRPMGenerator.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (113): * Single equations (assignments): 93 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 11 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 6 {2 1,1 1,1 6,2 9,2 3,2 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.008688/1.394, allocations: 1.672 MB / 0.5606 GB, free: 13.75 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.01159/1.406, allocations: 3.443 MB / 0.564 GB, free: 10.27 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 8.947e-06/1.406, allocations: 0 / 0.564 GB, free: 10.27 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005183/1.411, allocations: 1.511 MB / 0.5655 GB, free: 8.762 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005908/1.417, allocations: 0.6379 MB / 0.5661 GB, free: 8.129 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01251/1.429, allocations: 5.258 MB / 0.5712 GB, free: 2.824 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001511/1.431, allocations: 1.53 MB / 0.5727 GB, free: 1.258 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007794/1.432, allocations: 127.4 kB / 0.5728 GB, free: 1.133 MB / 410.7 MB Notification: Performance of SimCode: time 9.92e-07/1.432, allocations: 8 kB / 0.5728 GB, free: 1.125 MB / 410.7 MB Notification: Performance of Templates: time 0.3936/1.825, allocations: 88.88 MB / 0.6596 GB, free: 74.28 MB / 410.7 MB make -j1 -f Modelica_3.2.2_cpp_Modelica.Fluid.Examples.PumpingSystem.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 OMCppModelica_3.2.2_cpp_Modelica.Fluid.Examples.PumpingSystemCalcHelperMain.o OMCppModelica_3.2.2_cpp_Modelica.Fluid.Examples.PumpingSystemCalcHelperMain.cpp In file included from OMCppModelica_3.2.2_cpp_Modelica.Fluid.Examples.PumpingSystemCalcHelperMain.cpp:29: ./OMCppModelica_3.2.2_cpp_Modelica.Fluid.Examples.PumpingSystemFunctions.cpp:740:5: error: no matching function for call to 'add_array_scalar' add_array_scalar(c_(2), tmp284, tmp285); ^~~~~~~~~~~~~~~~~~~~~~~~ /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 'OMCppModelica_3.2.2_cpp_Modelica.Fluid.Examples.PumpingSystemCalcHelperMain.o' failed make: *** [OMCppModelica_3.2.2_cpp_Modelica.Fluid.Examples.PumpingSystemCalcHelperMain.o] Error 1