Running command: translateModel(Modelica.Fluid.Examples.HeatingSystem,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|heater.mediums.1..h|heater.mediums.1..p|pipe.mediums.1..h|pipe.mediums.1..p|pipe.mediums.2..h|pipe.mediums.2..p|radiator.mediums.1..h|radiator.mediums.1..p|tank.level|tank.medium.h",fileNamePrefix="Modelica_trunk_cpp_Modelica.Fluid.Examples.HeatingSystem") Notification: Performance of loadModel(Modelica): time 2.108/2.108, allocations: 224.7 MB / 241.1 MB, free: 1.684 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.069e-05/3.087e-05, allocations: 4 kB / 294.6 MB, free: 11.42 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1084/0.1084, allocations: 50.41 MB / 345 MB, free: 8.973 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.HeatingSystem): time 0.4342/0.5427, allocations: 65.03 MB / 410 MB, free: 5.223 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.0397/0.5824, allocations: 19.1 MB / 429.1 MB, free: 4.988 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003915/0.5864, allocations: 109.1 kB / 429.2 MB, free: 4.988 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003718/0.5902, allocations: 0.8759 MB / 430.1 MB, free: 4.98 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01048/0.6007, allocations: 2.344 MB / 432.4 MB, free: 4.926 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01971/0.6205, allocations: 4.843 MB / 437.3 MB, free: 3.723 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.00788/0.6284, allocations: 3.221 MB / 440.5 MB, free: 2.73 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002648/0.6311, allocations: 1.283 MB / 441.8 MB, free: 1.902 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.3286/0.9597, allocations: 123 MB / 0.5515 GB, free: 12.57 MB / 458.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.4857/1.446, allocations: 53.18 MB / 0.6034 GB, free: 104.4 MB / 458.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02031/1.466, allocations: 7.987 MB / 0.6112 GB, free: 97.38 MB / 458.7 MB Notification: Performance of NFPackage.collectConstants: time 0.002083/1.468, allocations: 212.8 kB / 0.6114 GB, free: 97.17 MB / 458.7 MB Notification: Performance of NFScalarize.scalarize: time 0.002073/1.47, allocations: 0.8579 MB / 0.6123 GB, free: 96.59 MB / 458.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002004/1.472, allocations: 284 kB / 0.6125 GB, free: 96.31 MB / 458.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009473/1.482, allocations: 3.83 MB / 0.6163 GB, free: 93 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/1.482, allocations: 4 kB / 0.6163 GB, free: 93 MB / 458.7 MB Notification: Performance of FrontEnd: time 4.088e-06/1.482, allocations: 0 / 0.6163 GB, free: 93 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0001528/1.482, allocations: 0 / 0.6163 GB, free: 93 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 538 * Number of variables: 538 Notification: Performance of Generate backend data structure: time 0.01126/1.493, allocations: 2.754 MB / 0.619 GB, free: 90.41 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.927e-05/1.493, allocations: 8.031 kB / 0.619 GB, free: 90.4 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001999/1.495, allocations: 312.5 kB / 0.6193 GB, free: 90.09 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004654/1.5, allocations: 1.522 MB / 0.6208 GB, free: 88.91 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002925/1.5, allocations: 220.1 kB / 0.621 GB, free: 88.75 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008777/1.501, allocations: 192.1 kB / 0.6212 GB, free: 88.63 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008892/1.51, allocations: 3.274 MB / 0.6244 GB, free: 86.23 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.972e-05/1.51, allocations: 6.531 kB / 0.6244 GB, free: 86.22 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003862/1.511, allocations: 84.03 kB / 0.6245 GB, free: 86.2 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00047/1.511, allocations: 252.8 kB / 0.6247 GB, free: 85.99 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009229/1.52, allocations: 3.096 MB / 0.6277 GB, free: 83.93 MB / 458.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.03111/1.552, allocations: 13.96 MB / 0.6413 GB, free: 71.74 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006799/1.558, allocations: 2.272 MB / 0.6436 GB, free: 70.24 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0141/1.573, allocations: 5.996 MB / 0.6494 GB, free: 64.91 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.514e-05/1.573, allocations: 57.88 kB / 0.6495 GB, free: 64.86 MB / 458.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001308/1.574, allocations: 183.4 kB / 0.6497 GB, free: 64.71 MB / 458.7 MB Notification: Performance of pre-optimization done (n=172): time 6.663e-06/1.574, allocations: 0 / 0.6497 GB, free: 64.71 MB / 458.7 MB Notification: Performance of matching and sorting (n=198): time 0.03749/1.612, allocations: 9.186 MB / 0.6586 GB, free: 56.37 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.052e-05/1.612, allocations: 75.84 kB / 0.6587 GB, free: 56.29 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003167/1.615, allocations: 1.609 MB / 0.6603 GB, free: 54.64 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000565/1.615, allocations: 67.02 kB / 0.6603 GB, free: 54.57 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007527/1.616, allocations: 0.9725 MB / 0.6613 GB, free: 53.6 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001011/1.617, allocations: 0.6851 MB / 0.662 GB, free: 52.92 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002639/1.618, allocations: 48 kB / 0.662 GB, free: 52.87 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001604/1.618, allocations: 403.5 kB / 0.6624 GB, free: 52.47 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003273/1.621, allocations: 1.203 MB / 0.6636 GB, free: 51.26 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003831/1.625, allocations: 1.776 MB / 0.6653 GB, free: 49.25 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005559/1.63, allocations: 1.46 MB / 0.6667 GB, free: 47.8 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.91e-05/1.631, allocations: 8 kB / 0.6667 GB, free: 47.8 MB / 458.7 MB Notification: Performance of matching and sorting (n=299) (initialization): time 0.01818/1.649, allocations: 4.125 MB / 0.6708 GB, free: 43.76 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001899/1.651, allocations: 6.702 MB / 0.6773 GB, free: 36.55 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001001/1.651, allocations: 20 kB / 0.6773 GB, free: 36.53 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.03102/1.682, allocations: 3.61 MB / 0.6808 GB, free: 32.92 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00247/1.684, allocations: 334.8 kB / 0.6812 GB, free: 32.61 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01116/1.696, allocations: 4.022 MB / 0.6851 GB, free: 28.58 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003929/1.7, allocations: 202.8 kB / 0.6853 GB, free: 28.38 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000588/1.7, allocations: 116 kB / 0.6854 GB, free: 28.27 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.612e-05/1.7, allocations: 6.25 kB / 0.6854 GB, free: 28.27 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0109/1.711, allocations: 3.828 MB / 0.6891 GB, free: 24.54 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.076e-05/1.711, allocations: 16 kB / 0.6892 GB, free: 24.53 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01568/1.727, allocations: 2.631 MB / 0.6917 GB, free: 21.9 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002962/1.73, allocations: 373.2 kB / 0.6921 GB, free: 21.56 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008215/1.738, allocations: 3.521 MB / 0.6955 GB, free: 18.05 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002932/1.741, allocations: 193.6 kB / 0.6957 GB, free: 17.86 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003461/1.742, allocations: 112 kB / 0.6958 GB, free: 17.75 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 77 * Number of states: 0 () * Number of discrete variables: 4 (tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (173): * Single equations (assignments): 172 * 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 {19 108} Notification: Performance of prepare postOptimizeDAE: time 0.001734/1.743, allocations: 0.6257 MB / 0.6964 GB, free: 17.14 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006815/1.744, allocations: 225.2 kB / 0.6966 GB, free: 16.91 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0117/1.756, allocations: 4.013 MB / 0.7006 GB, free: 12.89 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.507e-05/1.756, allocations: 29.86 kB / 0.7006 GB, free: 12.86 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.547e-05/1.756, allocations: 4 kB / 0.7006 GB, free: 12.86 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.009174/1.765, allocations: 3.411 MB / 0.7039 GB, free: 9.375 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01693/1.782, allocations: 6.352 MB / 0.7101 GB, free: 3 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.775e-05/1.782, allocations: 5.344 kB / 0.7101 GB, free: 3 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002807/1.785, allocations: 321.2 kB / 0.7104 GB, free: 2.703 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006938/1.792, allocations: 1.239 MB / 0.7116 GB, free: 1.445 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005561/1.793, allocations: 71.95 kB / 0.7117 GB, free: 1.375 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01501/1.808, allocations: 10.54 MB / 0.722 GB, free: 6.156 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.395e-06/1.808, allocations: 0 / 0.722 GB, free: 6.156 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01594/1.824, allocations: 5.233 MB / 0.7271 GB, free: 0.8984 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002337/1.826, allocations: 0.6344 MB / 0.7277 GB, free: 248 kB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008171/1.827, allocations: 59.98 kB / 0.7278 GB, free: 188 kB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003066/1.83, allocations: 139.7 kB / 0.7279 GB, free: 48 kB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006409/1.831, allocations: 169.1 kB / 0.7281 GB, free: 15.89 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003342/1.831, allocations: 79.95 kB / 0.7282 GB, free: 15.81 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.002907/1.834, allocations: 1.216 MB / 0.7293 GB, free: 14.57 MB / 490.7 MB Notification: Performance of sort global known variables: time 7.82e-07/1.834, allocations: 0 / 0.7293 GB, free: 14.57 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.007316/1.841, allocations: 1.738 MB / 0.731 GB, free: 12.83 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 10 (tank.level,tank.medium.T,heater.mediums[1].p,heater.mediums[1].T,radiator.mediums[1].p,radiator.mediums[1].T,pipe.mediums[1].p,pipe.mediums[1].T,pipe.mediums[2].p,pipe.mediums[2].T) * Number of discrete variables: 4 (tank.regularFlow[1],tank.regularFlow[2],tank.inFlow[1],tank.inFlow[2]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (182): * Single equations (assignments): 168 * 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: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 6,(1,100.0%) 2} * Non-linear torn systems: 3 {1 9,2 8,6 17} Notification: Performance of Backend phase and start with SimCode phase: time 0.003573/1.845, allocations: 0.9752 MB / 0.732 GB, free: 11.94 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.02036/1.865, allocations: 5.038 MB / 0.7369 GB, free: 7.004 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.238e-05/1.865, allocations: 0 / 0.7369 GB, free: 7.004 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.009745/1.875, allocations: 2.251 MB / 0.7391 GB, free: 4.723 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0104/1.886, allocations: 0.9267 MB / 0.74 GB, free: 3.801 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3717/2.257, allocations: 6.697 MB / 0.7466 GB, free: 196.9 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002711/2.26, allocations: 1.894 MB / 0.7484 GB, free: 196.2 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001371/2.262, allocations: 206.1 kB / 0.7486 GB, free: 196.2 MB / 490.7 MB Notification: Performance of SimCode: time 1.232e-06/2.262, allocations: 0 / 0.7486 GB, free: 196.2 MB / 490.7 MB Notification: Performance of Templates: time 0.1345/2.396, allocations: 85.22 MB / 0.8318 GB, free: 125.7 MB / 490.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Fluid.Examples.HeatingSystem.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_trunk_cpp_Modelica.Fluid.Examples.HeatingSystemCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica.Fluid.Examples.HeatingSystemCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica.Fluid.Examples.HeatingSystemCalcHelperMain.cpp:29: ./OMCppModelica_trunk_cpp_Modelica.Fluid.Examples.HeatingSystemFunctions.cpp:1233:5: error: no matching function for call to 'add_array_scalar' add_array_scalar(c_(2), tmp420, tmp421); ^~~~~~~~~~~~~~~~~~~~~~~~ /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_trunk_cpp_Modelica.Fluid.Examples.HeatingSystemCalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica.Fluid.Examples.HeatingSystemCalcHelperMain.o] Error 1