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.2_cpp_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_turbulent") Notification: Performance of loadModel(ModelicaTest): time 2.547/2.547, allocations: 234.9 MB / 250.1 MB, free: 9.938 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.389e-05/3.379e-05, allocations: 4 kB / 308 MB, free: 15.91 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3797/0.3797, allocations: 54.86 MB / 362.9 MB, free: 12.05 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_turbulent): time 0.1033/0.4831, allocations: 58.91 MB / 421.8 MB, free: 2.797 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.04211/0.5253, allocations: 20.27 MB / 442 MB, free: 14.48 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002591/0.528, allocations: 59.56 kB / 442.1 MB, free: 14.42 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003216/0.5312, allocations: 0.6218 MB / 442.7 MB, free: 13.8 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01884/0.5501, allocations: 4.51 MB / 447.2 MB, free: 9.273 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01277/0.563, allocations: 3.194 MB / 450.4 MB, free: 6.07 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.004507/0.5675, allocations: 1.619 MB / 452 MB, free: 4.445 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001729/0.5693, allocations: 0.7065 MB / 452.7 MB, free: 3.738 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003693/0.573, allocations: 1.099 MB / 453.8 MB, free: 2.637 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.03696/0.61, allocations: 14.83 MB / 468.7 MB, free: 3.797 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03115/0.6412, allocations: 10.64 MB / 479.3 MB, free: 9.152 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003858/0.6451, allocations: 496 kB / 479.8 MB, free: 8.668 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001069/0.6463, allocations: 386.8 kB / 480.2 MB, free: 8.289 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007501/0.647, allocations: 164 kB / 480.3 MB, free: 8.129 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01312/0.6602, allocations: 4.58 MB / 484.9 MB, free: 3.539 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.6602, allocations: 0 / 484.9 MB, free: 3.539 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.446e-06/0.6602, allocations: 4 kB / 484.9 MB, free: 3.535 MB / 410.7 MB Notification: Performance of Transformations before backend: time 7.134e-05/0.6603, allocations: 0 / 484.9 MB, free: 3.535 MB / 410.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.01274/0.6731, allocations: 2.426 MB / 487.3 MB, free: 1.055 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.121e-05/0.6731, allocations: 12.03 kB / 487.4 MB, free: 1.043 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006656/0.6798, allocations: 0.5798 MB / 487.9 MB, free: 472 kB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003167/0.683, allocations: 0.9959 MB / 488.9 MB, free: 15.42 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001801/0.6833, allocations: 90.14 kB / 489 MB, free: 15.33 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004685/0.6837, allocations: 108 kB / 489.1 MB, free: 15.22 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009239/0.693, allocations: 2.244 MB / 491.4 MB, free: 12.86 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.443e-05/0.6931, allocations: 7.938 kB / 491.4 MB, free: 12.85 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002759/0.6934, allocations: 43.98 kB / 491.4 MB, free: 12.8 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001948/0.6936, allocations: 82 kB / 491.5 MB, free: 12.72 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01075/0.7044, allocations: 2.381 MB / 493.9 MB, free: 10.33 MB / 426.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.01904/0.7235, allocations: 9.025 MB / 0.4911 GB, free: 0.6562 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3097/1.033, allocations: 1.777 MB / 0.4929 GB, free: 125.6 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0604/1.094, allocations: 19 MB / 0.5114 GB, free: 112 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.973e-05/1.094, allocations: 51.95 kB / 0.5115 GB, free: 111.9 MB / 426.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001307/1.095, allocations: 155.8 kB / 0.5116 GB, free: 111.9 MB / 426.7 MB Notification: Performance of pre-optimization done (n=109): time 5.36e-06/1.095, allocations: 0 / 0.5116 GB, free: 111.9 MB / 426.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.2034/1.298, allocations: 15.97 MB / 0.5272 GB, free: 97.52 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.406e-05/1.299, allocations: 222.9 kB / 0.5274 GB, free: 97.25 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001394/1.3, allocations: 0.7598 MB / 0.5282 GB, free: 96.47 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005616/1.301, allocations: 57.7 kB / 0.5282 GB, free: 96.41 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000391/1.301, allocations: 0.5936 MB / 0.5288 GB, free: 95.82 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007676/1.302, allocations: 0.5275 MB / 0.5293 GB, free: 95.3 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003198/1.302, allocations: 36 kB / 0.5293 GB, free: 95.26 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001299/1.302, allocations: 382.7 kB / 0.5297 GB, free: 94.88 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007287/1.31, allocations: 1.48 MB / 0.5311 GB, free: 93.4 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008006/1.318, allocations: 1.94 MB / 0.533 GB, free: 91.27 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007794/1.326, allocations: 1.607 MB / 0.5346 GB, free: 89.66 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.436e-05/1.326, allocations: 4 kB / 0.5346 GB, free: 89.66 MB / 426.7 MB Notification: Performance of matching and sorting (n=220) (initialization): time 0.02312/1.349, allocations: 4.664 MB / 0.5392 GB, free: 84.98 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009967/1.35, allocations: 4.789 MB / 0.5438 GB, free: 79.82 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.817e-05/1.35, allocations: 17.2 kB / 0.5439 GB, free: 79.8 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.1725/1.522, allocations: 7.898 MB / 0.5516 GB, free: 71.93 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002595/1.525, allocations: 363.5 kB / 0.5519 GB, free: 71.58 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02699/1.552, allocations: 5.079 MB / 0.5569 GB, free: 66.45 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005798/1.558, allocations: 235.8 kB / 0.5571 GB, free: 66.22 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004955/1.558, allocations: 123.9 kB / 0.5572 GB, free: 66.1 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.5e-05/1.558, allocations: 5.406 kB / 0.5572 GB, free: 66.09 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02543/1.584, allocations: 4.514 MB / 0.5616 GB, free: 61.57 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.137e-05/1.584, allocations: 12 kB / 0.5616 GB, free: 61.56 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0191/1.603, allocations: 2.883 MB / 0.5645 GB, free: 58.67 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003332/1.606, allocations: 427.4 kB / 0.5649 GB, free: 58.25 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02342/1.63, allocations: 4.352 MB / 0.5691 GB, free: 53.84 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00537/1.635, allocations: 235.7 kB / 0.5693 GB, free: 53.61 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005256/1.636, allocations: 119.9 kB / 0.5695 GB, free: 53.5 MB / 426.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.001333/1.637, allocations: 409.3 kB / 0.5698 GB, free: 53.09 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005599/1.638, allocations: 138.3 kB / 0.57 GB, free: 52.95 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03099/1.669, allocations: 9.038 MB / 0.5788 GB, free: 43.86 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.103e-05/1.669, allocations: 63.88 kB / 0.5789 GB, free: 43.8 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.289e-05/1.669, allocations: 3.984 kB / 0.5789 GB, free: 43.8 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.998e-05/1.669, allocations: 15.89 kB / 0.5789 GB, free: 43.78 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04246/1.711, allocations: 12.23 MB / 0.5908 GB, free: 31.46 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.664e-05/1.712, allocations: 4 kB / 0.5908 GB, free: 31.46 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001975/1.713, allocations: 255.7 kB / 0.5911 GB, free: 31.21 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.1531/1.867, allocations: 8.316 MB / 0.5992 GB, free: 22.89 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004384/1.867, allocations: 51.95 kB / 0.5992 GB, free: 22.84 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02377/1.891, allocations: 5.656 MB / 0.6048 GB, free: 17.13 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.973e-06/1.891, allocations: 3.938 kB / 0.6048 GB, free: 17.12 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03398/1.925, allocations: 7.237 MB / 0.6118 GB, free: 9.742 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001891/1.927, allocations: 0.6766 MB / 0.6125 GB, free: 9.043 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006036/1.928, allocations: 32.25 kB / 0.6125 GB, free: 9.012 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004624/1.932, allocations: 219.6 kB / 0.6127 GB, free: 8.797 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006757/1.933, allocations: 137.7 kB / 0.6129 GB, free: 8.66 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003549/1.933, allocations: 71.91 kB / 0.6129 GB, free: 8.59 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001464/1.935, allocations: 0.7591 MB / 0.6137 GB, free: 7.828 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.142e-06/1.935, allocations: 0 / 0.6137 GB, free: 7.828 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.007827/1.943, allocations: 2.022 MB / 0.6157 GB, free: 5.941 MB / 426.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.008248/1.951, allocations: 1.707 MB / 0.6173 GB, free: 4.504 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.04005/1.991, allocations: 6.637 MB / 0.6238 GB, free: 13.87 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 9.558e-06/1.991, allocations: 0 / 0.6238 GB, free: 13.87 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01581/2.007, allocations: 2.939 MB / 0.6267 GB, free: 10.93 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005295/2.012, allocations: 0.5897 MB / 0.6273 GB, free: 10.34 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0169/2.029, allocations: 6.615 MB / 0.6337 GB, free: 3.754 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001613/2.031, allocations: 1.639 MB / 0.6353 GB, free: 2.074 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000844/2.032, allocations: 131.4 kB / 0.6354 GB, free: 1.945 MB / 442.7 MB Notification: Performance of SimCode: time 9.71e-07/2.032, allocations: 0 / 0.6354 GB, free: 1.945 MB / 442.7 MB Notification: Performance of Templates: time 0.4443/2.476, allocations: 69.39 MB / 0.7032 GB, free: 139.5 MB / 474.7 MB make -j1 -f ModelicaTest_3.2.2_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.2_cpp_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_turbulentCalcHelperMain.o OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_turbulentCalcHelperMain.cpp In file included from OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_turbulentCalcHelperMain.cpp:29: ./OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_turbulentFunctions.cpp:7398:5: error: no matching function for call to 'add_array_scalar' add_array_scalar(c_(2), tmp586, tmp587); ^~~~~~~~~~~~~~~~~~~~~~~~ /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.2_cpp_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_turbulentCalcHelperMain.o' failed make: *** [OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_turbulentCalcHelperMain.o] Error 1