Running command: translateModel(ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_turbulent,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|eps_m_flow_turbulent|pump.port_b.m_flow|pump.port_b.p|pump.port_b.h_outflow|orifice.port_b.m_flow|orifice.port_b.p|orifice.port_b.h_outflow|sink.ports.1..m_flow|sink.ports.1..p|sink.ports.1..h_outflow|pipe1.port_b.m_flow|pipe1.port_b.p|pipe1.port_b.h_outflow|sink1.ports.1..m_flow|sink1.ports.1..p|sink1.ports.1..h_outflow|p_set.y|pipe2.port_b.m_flow|pipe2.port_b.p|pipe2.port_b.h_outflow|sink2.ports.1..m_flow|sink2.ports.1..p|sink2.ports.1..h_outflow",fileNamePrefix="ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_turbulent") Notification: Performance of loadModel(ModelicaTest): time 2.065/2.065, allocations: 209.3 MB / 224.4 MB, free: 444 kB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 4e-05/3.99e-05, allocations: 4 kB / 276.2 MB, free: 15.84 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3886/0.3887, allocations: 48.69 MB / 324.9 MB, free: 2.895 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_turbulent): time 0.1098/0.4985, allocations: 58.47 MB / 383.3 MB, free: 4.988 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.04282/0.5414, allocations: 20.06 MB / 403.4 MB, free: 0.8867 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002539/0.544, allocations: 59.5 kB / 403.4 MB, free: 0.8281 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003129/0.5472, allocations: 0.6297 MB / 404.1 MB, free: 200 kB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02048/0.5677, allocations: 4.44 MB / 408.5 MB, free: 11.74 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01313/0.5809, allocations: 3.159 MB / 411.7 MB, free: 8.574 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.004706/0.5856, allocations: 1.591 MB / 413.3 MB, free: 6.98 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001734/0.5874, allocations: 0.6949 MB / 414 MB, free: 6.285 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003744/0.5912, allocations: 1.095 MB / 415.1 MB, free: 5.188 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.03811/0.6294, allocations: 14.68 MB / 429.7 MB, free: 6.5 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03141/0.6609, allocations: 10.44 MB / 440.2 MB, free: 12.05 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003897/0.6648, allocations: 491.9 kB / 440.7 MB, free: 11.57 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001218/0.6661, allocations: 394.8 kB / 441 MB, free: 11.18 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008743/0.667, allocations: 160 kB / 441.2 MB, free: 11.03 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01334/0.6804, allocations: 4.514 MB / 445.7 MB, free: 6.504 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.6804, allocations: 0 / 445.7 MB, free: 6.504 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.797e-06/0.6804, allocations: 0 / 445.7 MB, free: 6.504 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.847e-05/0.6805, allocations: 0 / 445.7 MB, free: 6.504 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 287 * Number of variables: 287 Notification: Performance of Generate backend data structure: time 0.0127/0.6932, allocations: 2.371 MB / 448.1 MB, free: 4.078 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.746e-05/0.6933, allocations: 12.03 kB / 448.1 MB, free: 4.066 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006686/0.7, allocations: 0.568 MB / 448.7 MB, free: 3.496 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003428/0.7035, allocations: 0.9842 MB / 449.6 MB, free: 2.465 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002015/0.7038, allocations: 94.14 kB / 449.7 MB, free: 2.371 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004645/0.7042, allocations: 108 kB / 449.8 MB, free: 2.266 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00936/0.7136, allocations: 2.244 MB / 452.1 MB, free: 15.89 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.496e-05/0.7137, allocations: 7.922 kB / 452.1 MB, free: 15.89 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002877/0.714, allocations: 47.98 kB / 452.1 MB, free: 15.84 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002011/0.7142, allocations: 90 kB / 452.2 MB, free: 15.75 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01058/0.7248, allocations: 2.377 MB / 454.6 MB, free: 13.36 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.01994/0.7448, allocations: 9.021 MB / 463.6 MB, free: 3.699 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008164/0.753, allocations: 1.787 MB / 465.4 MB, free: 1.902 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3482/1.101, allocations: 18.97 MB / 484.4 MB, free: 130.1 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.913e-05/1.101, allocations: 45.45 kB / 484.4 MB, free: 130 MB / 410.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001461/1.103, allocations: 154.8 kB / 484.6 MB, free: 130 MB / 410.7 MB Notification: Performance of pre-optimization done (n=109): time 5.791e-06/1.103, allocations: 0 / 484.6 MB, free: 130 MB / 410.7 MB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: pump.medium.p Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=159): time 0.1948/1.298, allocations: 15.98 MB / 0.4888 GB, free: 126.1 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001145/1.298, allocations: 226.7 kB / 0.489 GB, free: 125.8 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001761/1.3, allocations: 0.7567 MB / 0.4898 GB, free: 125.4 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006788/1.3, allocations: 51.11 kB / 0.4898 GB, free: 125.3 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004984/1.301, allocations: 0.5947 MB / 0.4904 GB, free: 124.8 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009959/1.302, allocations: 0.5411 MB / 0.4909 GB, free: 124.3 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000327/1.302, allocations: 32.38 kB / 0.491 GB, free: 124.3 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001557/1.302, allocations: 381 kB / 0.4913 GB, free: 123.9 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008075/1.31, allocations: 1.484 MB / 0.4928 GB, free: 123.1 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008524/1.319, allocations: 1.939 MB / 0.4947 GB, free: 121.8 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008242/1.327, allocations: 1.609 MB / 0.4962 GB, free: 120.9 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.637e-05/1.327, allocations: 3.938 kB / 0.4962 GB, free: 120.9 MB / 410.7 MB Notification: Performance of matching and sorting (n=220) (initialization): time 0.02561/1.353, allocations: 4.66 MB / 0.5008 GB, free: 118.5 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001261/1.354, allocations: 4.795 MB / 0.5055 GB, free: 113.3 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.556e-05/1.354, allocations: 11.19 kB / 0.5055 GB, free: 113.3 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.1738/1.528, allocations: 7.899 MB / 0.5132 GB, free: 106.4 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002718/1.531, allocations: 363.4 kB / 0.5135 GB, free: 106.1 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02776/1.559, allocations: 5.077 MB / 0.5185 GB, free: 100.9 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006091/1.565, allocations: 231.8 kB / 0.5187 GB, free: 100.7 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006777/1.566, allocations: 123.9 kB / 0.5188 GB, free: 100.6 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.777e-05/1.566, allocations: 7.594 kB / 0.5188 GB, free: 100.6 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02561/1.591, allocations: 4.511 MB / 0.5233 GB, free: 96.05 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.38e-05/1.591, allocations: 12.16 kB / 0.5233 GB, free: 96.04 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01931/1.611, allocations: 2.886 MB / 0.5261 GB, free: 93.15 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003467/1.614, allocations: 427.4 kB / 0.5265 GB, free: 92.73 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0241/1.638, allocations: 4.353 MB / 0.5307 GB, free: 88.33 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005635/1.644, allocations: 231.6 kB / 0.531 GB, free: 88.1 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000777/1.645, allocations: 131.9 kB / 0.5311 GB, free: 87.97 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 12 (pipe2.flowModel.states[2].phase,pipe2.flowModel.states[1].phase,pipe1.flowModel.states[2].phase,pipe1.flowModel.states[1].phase,source.medium.phase,pump.heatTransfer.states[1].phase,sink.medium.phase,sink1.medium.phase,sink2.medium.phase,orifice.state_b.phase,orifice.state_a.phase,pump.monitoring.state_in.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (166): * Single equations (assignments): 164 * 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 {5 21,6 24} Notification: Performance of prepare postOptimizeDAE: time 0.001573/1.647, allocations: 414 kB / 0.5315 GB, free: 87.56 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006421/1.647, allocations: 134.4 kB / 0.5316 GB, free: 87.43 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03258/1.68, allocations: 9.04 MB / 0.5404 GB, free: 78.34 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.847e-05/1.68, allocations: 63.91 kB / 0.5405 GB, free: 78.28 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.329e-05/1.68, allocations: 0 / 0.5405 GB, free: 78.28 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.243e-05/1.68, allocations: 11.36 kB / 0.5405 GB, free: 78.27 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04466/1.725, allocations: 12.23 MB / 0.5525 GB, free: 65.95 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.62e-05/1.725, allocations: 0 / 0.5525 GB, free: 65.95 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002005/1.727, allocations: 260 kB / 0.5527 GB, free: 65.7 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.1545/1.881, allocations: 8.32 MB / 0.5608 GB, free: 57.37 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005954/1.882, allocations: 51.95 kB / 0.5609 GB, free: 57.32 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02442/1.906, allocations: 5.663 MB / 0.5664 GB, free: 51.6 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.444e-06/1.907, allocations: 4 kB / 0.5664 GB, free: 51.59 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03517/1.942, allocations: 7.235 MB / 0.5735 GB, free: 44.22 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001961/1.944, allocations: 0.6728 MB / 0.5741 GB, free: 43.52 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007444/1.944, allocations: 36 kB / 0.5742 GB, free: 43.49 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004811/1.949, allocations: 215.9 kB / 0.5744 GB, free: 43.28 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005513/1.95, allocations: 129.8 kB / 0.5745 GB, free: 43.15 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003234/1.95, allocations: 71.95 kB / 0.5746 GB, free: 43.08 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001378/1.952, allocations: 0.7552 MB / 0.5753 GB, free: 42.32 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.01e-07/1.952, allocations: 0 / 0.5753 GB, free: 42.32 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.007989/1.96, allocations: 2.012 MB / 0.5773 GB, free: 40.44 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 35 ($cse3.phase,$cse3.region,$cse5.region3boundary,$cse6.region3boundary,$cse7.phase,$cse7.region,$cse8.phase,$cse8.region,$cse13.phase,$cse13.region,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse16.phase,$cse16.region,$cse18.phase,$cse18.region,$cse25.phase,$cse25.region,$cse27.phase,$cse27.region,$cse28.phase,$cse28.region,$cse29.phase,$cse29.region,$cse31.phase,$cse31.region,$cse32.phase,$cse32.region,source.medium.phase,pump.heatTransfer.states[1].phase,sink.medium.phase,sink1.medium.phase,sink2.medium.phase) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (119): * Single equations (assignments): 105 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 12 * 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 {5 21,6 35} Notification: Performance of Backend phase and start with SimCode phase: time 0.009071/1.969, allocations: 1.705 MB / 0.5789 GB, free: 39 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.04076/2.01, allocations: 6.629 MB / 0.5854 GB, free: 32.38 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.268e-05/2.01, allocations: 0 / 0.5854 GB, free: 32.38 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01539/2.025, allocations: 2.949 MB / 0.5883 GB, free: 29.42 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005601/2.031, allocations: 0.586 MB / 0.5889 GB, free: 28.84 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01621/2.047, allocations: 6.616 MB / 0.5953 GB, free: 22.25 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001193/2.048, allocations: 1.635 MB / 0.5969 GB, free: 20.57 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008404/2.049, allocations: 143.4 kB / 0.5971 GB, free: 20.43 MB / 410.7 MB Notification: Performance of SimCode: time 1.523e-06/2.049, allocations: 0 / 0.5971 GB, free: 20.43 MB / 410.7 MB Notification: Performance of Templates: time 0.4234/2.472, allocations: 69.22 MB / 0.6647 GB, free: 122.8 MB / 426.7 MB make -j1 -f ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_turbulent.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.TestExamplesVariants.InverseParameterization_turbulentCalcHelperMain.o OMCppModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_turbulentCalcHelperMain.cpp In file included from OMCppModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_turbulentCalcHelperMain.cpp:29: ./OMCppModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_turbulentFunctions.cpp:7368:5: error: no matching function for call to 'add_array_scalar' add_array_scalar(c_(2), tmp588, tmp589); ^~~~~~~~~~~~~~~~~~~~~~~~ /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.TestExamplesVariants.InverseParameterization_turbulentCalcHelperMain.o' failed make: *** [OMCppModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_turbulentCalcHelperMain.o] Error 1