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.1_cpp_Modelica.Fluid.Examples.PumpingSystem") Notification: Performance of loadModel(Modelica): time 2.029/2.029, allocations: 171.1 MB / 186.3 MB, free: 1.422 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.434e-05/3.403e-05, allocations: 0 / 228.1 MB, free: 8 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0843/0.08436, allocations: 38.77 MB / 266.9 MB, free: 1.148 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.PumpingSystem): time 0.3312/0.4156, allocations: 52.66 MB / 319.5 MB, free: 4.59 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.04255/0.4582, allocations: 22.27 MB / 341.8 MB, free: 5.793 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00238/0.4606, allocations: 45.34 kB / 341.9 MB, free: 5.77 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002762/0.4635, allocations: 0.5778 MB / 342.4 MB, free: 5.23 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01928/0.4828, allocations: 4.513 MB / 347 MB, free: 1.312 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01274/0.4956, allocations: 2.836 MB / 349.8 MB, free: 15 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.004851/0.5005, allocations: 1.698 MB / 351.5 MB, free: 13.68 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001795/0.5023, allocations: 0.7336 MB / 352.2 MB, free: 12.94 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02476/0.5272, allocations: 9.236 MB / 361.5 MB, free: 3.699 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.03853/0.5657, allocations: 15.11 MB / 376.6 MB, free: 4.578 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02593/0.5917, allocations: 7.968 MB / 384.5 MB, free: 12.6 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003812/0.5956, allocations: 500 kB / 385 MB, free: 12.11 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001102/0.5968, allocations: 386.8 kB / 385.4 MB, free: 11.73 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00083/0.5976, allocations: 160 kB / 385.6 MB, free: 11.58 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01313/0.6108, allocations: 4.525 MB / 390.1 MB, free: 7.043 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.55e-06/0.6108, allocations: 0 / 390.1 MB, free: 7.043 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.877e-06/0.6108, allocations: 0 / 390.1 MB, free: 7.043 MB / 314.7 MB Notification: Performance of Transformations before backend: time 8.475e-05/0.6109, allocations: 0 / 390.1 MB, free: 7.043 MB / 314.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.01026/0.6212, allocations: 2.201 MB / 392.3 MB, free: 4.789 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.157e-05/0.6213, allocations: 8.031 kB / 392.3 MB, free: 4.781 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004984/0.6263, allocations: 445.9 kB / 392.7 MB, free: 4.344 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002579/0.6289, allocations: 0.8596 MB / 393.6 MB, free: 3.438 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000266/0.6292, allocations: 187.4 kB / 393.8 MB, free: 3.234 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000413/0.6297, allocations: 124 kB / 393.9 MB, free: 3.113 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006744/0.6364, allocations: 2.004 MB / 395.9 MB, free: 0.9805 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.335e-05/0.6365, allocations: 7.891 kB / 395.9 MB, free: 0.9727 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002467/0.6368, allocations: 55.98 kB / 396 MB, free: 0.918 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001676/0.637, allocations: 74.09 kB / 396 MB, free: 0.8438 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006907/0.6439, allocations: 1.776 MB / 397.8 MB, free: 15.05 MB / 330.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.02372/0.6677, allocations: 9.37 MB / 407.2 MB, free: 5.07 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00573/0.6735, allocations: 1.494 MB / 408.7 MB, free: 3.531 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.528/1.201, allocations: 64.21 MB / 472.9 MB, free: 112 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004035/1.206, allocations: 1.085 MB / 474 MB, free: 111 MB / 362.7 MB Notification: Performance of pre-optimization done (n=110): time 5.371e-06/1.206, allocations: 0 / 474 MB, free: 111 MB / 362.7 MB Notification: Performance of matching and sorting (n=121): time 0.03421/1.24, allocations: 6.586 MB / 480.5 MB, free: 104.4 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001282/1.24, allocations: 297.2 kB / 480.8 MB, free: 104.1 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002278/1.242, allocations: 0.9155 MB / 481.8 MB, free: 103.1 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003731/1.243, allocations: 53.7 kB / 481.8 MB, free: 103.1 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005981/1.243, allocations: 0.5717 MB / 482.4 MB, free: 102.5 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007036/1.244, allocations: 413.3 kB / 482.8 MB, free: 102.1 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002029/1.244, allocations: 35.94 kB / 482.8 MB, free: 102.1 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001481/1.244, allocations: 366.8 kB / 483.2 MB, free: 101.7 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002687/1.247, allocations: 0.6363 MB / 483.8 MB, free: 101.1 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003142/1.25, allocations: 1.046 MB / 484.9 MB, free: 99.84 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003091/1.254, allocations: 0.748 MB / 485.6 MB, free: 99.09 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.86e-05/1.254, allocations: 6.922 kB / 485.6 MB, free: 99.09 MB / 362.7 MB Notification: Performance of matching and sorting (n=183) (initialization): time 0.008825/1.262, allocations: 2.11 MB / 487.7 MB, free: 96.95 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001139/1.264, allocations: 4.447 MB / 492.2 MB, free: 92.16 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.776e-05/1.264, allocations: 12 kB / 492.2 MB, free: 92.14 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01529/1.279, allocations: 1.014 MB / 493.2 MB, free: 91.12 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003549/1.283, allocations: 295.5 kB / 493.5 MB, free: 90.84 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00764/1.29, allocations: 4.038 MB / 497.5 MB, free: 86.65 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004252/1.295, allocations: 131.3 kB / 497.7 MB, free: 86.52 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004711/1.295, allocations: 67.98 kB / 497.7 MB, free: 86.46 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.842e-05/1.295, allocations: 4 kB / 497.7 MB, free: 86.45 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007454/1.303, allocations: 1.87 MB / 499.6 MB, free: 84.57 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.036e-05/1.303, allocations: 15.95 kB / 499.6 MB, free: 84.55 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00921/1.312, allocations: 0.7509 MB / 0.4886 GB, free: 83.79 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002383/1.314, allocations: 315.5 kB / 0.4889 GB, free: 83.48 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008193/1.323, allocations: 6.735 MB / 0.4955 GB, free: 76.32 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001777/1.325, allocations: 123.9 kB / 0.4956 GB, free: 76.2 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001886/1.325, allocations: 67.92 kB / 0.4957 GB, free: 76.14 MB / 362.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.001038/1.326, allocations: 387.6 kB / 0.4961 GB, free: 75.75 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003851/1.326, allocations: 134.4 kB / 0.4962 GB, free: 75.62 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009621/1.336, allocations: 4.961 MB / 0.501 GB, free: 70.6 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.701e-05/1.336, allocations: 47.94 kB / 0.5011 GB, free: 70.55 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.614e-06/1.336, allocations: 4 kB / 0.5011 GB, free: 70.55 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.798e-05/1.336, allocations: 7.969 kB / 0.5011 GB, free: 70.54 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0129/1.349, allocations: 6.744 MB / 0.5077 GB, free: 63.72 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.336e-05/1.349, allocations: 7.984 kB / 0.5077 GB, free: 63.71 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001518/1.35, allocations: 179.7 kB / 0.5079 GB, free: 63.54 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00686/1.357, allocations: 1.374 MB / 0.5092 GB, free: 62.16 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003372/1.358, allocations: 43.92 kB / 0.5092 GB, free: 62.11 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004883/1.363, allocations: 4.46 MB / 0.5136 GB, free: 57.5 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.927e-06/1.363, allocations: 4.031 kB / 0.5136 GB, free: 57.5 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01031/1.373, allocations: 4.937 MB / 0.5184 GB, free: 52.45 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001441/1.375, allocations: 0.5445 MB / 0.519 GB, free: 51.88 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004908/1.375, allocations: 24 kB / 0.519 GB, free: 51.86 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002102/1.377, allocations: 111.8 kB / 0.5191 GB, free: 51.75 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004072/1.378, allocations: 121.1 kB / 0.5192 GB, free: 51.62 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001692/1.378, allocations: 51.92 kB / 0.5192 GB, free: 51.57 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001844/1.38, allocations: 0.9885 MB / 0.5202 GB, free: 50.59 MB / 362.7 MB Notification: Performance of sort global known variables: time 6.11e-07/1.38, allocations: 0 / 0.5202 GB, free: 50.59 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.006764/1.386, allocations: 1.886 MB / 0.5221 GB, free: 48.84 MB / 362.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.009701/1.396, allocations: 1.665 MB / 0.5237 GB, free: 47.45 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.01432/1.411, allocations: 3.443 MB / 0.527 GB, free: 43.97 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.037e-05/1.411, allocations: 0 / 0.527 GB, free: 43.97 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004802/1.415, allocations: 1.503 MB / 0.5285 GB, free: 42.46 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005786/1.421, allocations: 0.6304 MB / 0.5291 GB, free: 41.84 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01156/1.433, allocations: 5.26 MB / 0.5343 GB, free: 36.54 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001135/1.434, allocations: 1.533 MB / 0.5358 GB, free: 34.97 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007373/1.435, allocations: 131.4 kB / 0.5359 GB, free: 34.84 MB / 362.7 MB Notification: Performance of SimCode: time 1.112e-06/1.435, allocations: 0 / 0.5359 GB, free: 34.84 MB / 362.7 MB Notification: Performance of Templates: time 0.4985/1.933, allocations: 88.71 MB / 0.6225 GB, free: 84.57 MB / 362.7 MB make -j1 -f Modelica_3.2.1_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.1_cpp_Modelica.Fluid.Examples.PumpingSystemCalcHelperMain.o OMCppModelica_3.2.1_cpp_Modelica.Fluid.Examples.PumpingSystemCalcHelperMain.cpp In file included from OMCppModelica_3.2.1_cpp_Modelica.Fluid.Examples.PumpingSystemCalcHelperMain.cpp:29: ./OMCppModelica_3.2.1_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.1_cpp_Modelica.Fluid.Examples.PumpingSystemCalcHelperMain.o' failed make: *** [OMCppModelica_3.2.1_cpp_Modelica.Fluid.Examples.PumpingSystemCalcHelperMain.o] Error 1