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_trunk_cpp_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_turbulent") Notification: Performance of loadModel(ModelicaTest): time 2.326/2.326, allocations: 269 MB / 284.1 MB, free: 3.629 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.605e-05/2.608e-05, allocations: 4 kB / 349 MB, free: 10.75 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1315/0.1316, allocations: 61.9 MB / 410.9 MB, free: 12.85 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_turbulent): time 0.4292/0.5608, allocations: 59.25 MB / 470.2 MB, free: 8.602 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.04164/0.6025, allocations: 20.37 MB / 490.5 MB, free: 7.973 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00233/0.6049, allocations: 55.56 kB / 490.6 MB, free: 7.918 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002855/0.6078, allocations: 0.6258 MB / 491.2 MB, free: 7.289 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01911/0.6269, allocations: 4.513 MB / 495.7 MB, free: 2.762 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01311/0.6401, allocations: 3.225 MB / 499 MB, free: 15.53 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.004725/0.6449, allocations: 1.627 MB / 0.4889 GB, free: 13.89 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001846/0.6468, allocations: 0.7066 MB / 0.4896 GB, free: 13.19 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003737/0.6506, allocations: 1.118 MB / 0.4906 GB, free: 12.07 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.03895/0.6896, allocations: 14.86 MB / 0.5052 GB, free: 13.2 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03138/0.721, allocations: 10.65 MB / 0.5156 GB, free: 2.543 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00395/0.725, allocations: 500 kB / 0.516 GB, free: 2.055 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001143/0.7262, allocations: 394.8 kB / 0.5164 GB, free: 1.668 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008729/0.7271, allocations: 164 kB / 0.5166 GB, free: 1.508 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01338/0.7405, allocations: 4.599 MB / 0.5211 GB, free: 12.9 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.7406, allocations: 0 / 0.5211 GB, free: 12.9 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.916e-06/0.7406, allocations: 4 kB / 0.5211 GB, free: 12.89 MB / 442.7 MB Notification: Performance of Transformations before backend: time 7.923e-05/0.7407, allocations: 0 / 0.5211 GB, free: 12.89 MB / 442.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.01284/0.7535, allocations: 2.433 MB / 0.5234 GB, free: 10.41 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.779e-05/0.7536, allocations: 12.03 kB / 0.5234 GB, free: 10.39 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006594/0.7602, allocations: 0.5875 MB / 0.524 GB, free: 9.805 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003082/0.7633, allocations: 0.9609 MB / 0.525 GB, free: 8.797 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001923/0.7636, allocations: 94.14 kB / 0.525 GB, free: 8.703 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004876/0.7641, allocations: 103.9 kB / 0.5251 GB, free: 8.602 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009535/0.7736, allocations: 2.252 MB / 0.5273 GB, free: 6.227 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.772e-05/0.7737, allocations: 7.938 kB / 0.5274 GB, free: 6.219 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002906/0.774, allocations: 43.98 kB / 0.5274 GB, free: 6.176 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002066/0.7742, allocations: 82 kB / 0.5275 GB, free: 6.094 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01081/0.7851, allocations: 2.385 MB / 0.5298 GB, free: 3.699 MB / 442.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.02417/0.8093, allocations: 9.257 MB / 0.5388 GB, free: 9.832 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009266/0.8186, allocations: 1.924 MB / 0.5407 GB, free: 7.902 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09107/0.9097, allocations: 24.78 MB / 0.5649 GB, free: 12.18 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.41e-05/0.9098, allocations: 43.56 kB / 0.565 GB, free: 12.12 MB / 490.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00141/0.9113, allocations: 174.7 kB / 0.5651 GB, free: 11.95 MB / 490.7 MB Notification: Performance of pre-optimization done (n=109): time 3.727e-06/0.9113, allocations: 0 / 0.5651 GB, free: 11.95 MB / 490.7 MB Notification: Performance of matching and sorting (n=109): time 0.03362/0.9449, allocations: 4.517 MB / 0.5695 GB, free: 7.406 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001965/0.9452, allocations: 226.6 kB / 0.5698 GB, free: 7.137 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002444/0.9476, allocations: 0.8405 MB / 0.5706 GB, free: 6.281 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003112/0.948, allocations: 45.7 kB / 0.5706 GB, free: 6.23 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007373/0.9487, allocations: 0.5525 MB / 0.5712 GB, free: 5.672 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006798/0.9494, allocations: 374.6 kB / 0.5715 GB, free: 5.301 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002035/0.9496, allocations: 28 kB / 0.5715 GB, free: 5.273 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0002573/0.9499, allocations: 366.7 kB / 0.5719 GB, free: 4.906 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003583/0.9535, allocations: 0.6623 MB / 0.5725 GB, free: 4.242 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004692/0.9582, allocations: 1.029 MB / 0.5735 GB, free: 3.062 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0042/0.9625, allocations: 0.7759 MB / 0.5743 GB, free: 2.285 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-05/0.9626, allocations: 4 kB / 0.5743 GB, free: 2.281 MB / 490.7 MB Notification: Performance of matching and sorting (n=158) (initialization): time 0.0107/0.9733, allocations: 2.032 MB / 0.5763 GB, free: 244 kB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002389/0.9757, allocations: 3.753 MB / 0.58 GB, free: 12.2 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.789e-05/0.9758, allocations: 8 kB / 0.58 GB, free: 12.19 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.08771/1.064, allocations: 3.028 MB / 0.5829 GB, free: 9.16 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009615/1.073, allocations: 275.6 kB / 0.5832 GB, free: 8.891 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01164/1.085, allocations: 1.473 MB / 0.5846 GB, free: 7.391 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003134/1.088, allocations: 135.7 kB / 0.5848 GB, free: 7.258 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.007223/1.095, allocations: 79.91 kB / 0.5848 GB, free: 7.18 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 2.023e-05/1.095, allocations: 4 kB / 0.5848 GB, free: 7.176 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01433/1.11, allocations: 1.875 MB / 0.5867 GB, free: 5.293 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.24e-05/1.11, allocations: 8 kB / 0.5867 GB, free: 5.285 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002283/1.112, allocations: 196.8 kB / 0.5869 GB, free: 5.09 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004673/1.117, allocations: 351.5 kB / 0.5872 GB, free: 4.746 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002368/1.119, allocations: 0.7475 MB / 0.5879 GB, free: 3.973 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003468/1.123, allocations: 131.8 kB / 0.588 GB, free: 3.844 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006804/1.124, allocations: 71.91 kB / 0.5881 GB, free: 3.773 MB / 0.4948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * 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 (129): * Single equations (assignments): 128 * 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 {6 24} Notification: Performance of prepare postOptimizeDAE: time 0.002165/1.126, allocations: 353.4 kB / 0.5885 GB, free: 3.418 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007105/1.126, allocations: 134.4 kB / 0.5886 GB, free: 3.285 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01571/1.142, allocations: 5.701 MB / 0.5941 GB, free: 13.55 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000103/1.142, allocations: 59.91 kB / 0.5942 GB, free: 13.49 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.363e-05/1.142, allocations: 4 kB / 0.5942 GB, free: 13.48 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.481e-05/1.142, allocations: 11.91 kB / 0.5942 GB, free: 13.47 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01969/1.162, allocations: 7.733 MB / 0.6018 GB, free: 5.641 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.107e-05/1.162, allocations: 4 kB / 0.6018 GB, free: 5.637 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001717/1.164, allocations: 203.8 kB / 0.602 GB, free: 5.438 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.04959/1.214, allocations: 3.924 MB / 0.6058 GB, free: 1.508 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000296/1.214, allocations: 31.94 kB / 0.6058 GB, free: 1.477 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.361/1.575, allocations: 2.389 MB / 0.6082 GB, free: 174.8 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.51e-06/1.575, allocations: 2.75 kB / 0.6082 GB, free: 174.8 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01034/1.585, allocations: 3.706 MB / 0.6118 GB, free: 173.9 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001536/1.587, allocations: 0.6398 MB / 0.6124 GB, free: 173.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004727/1.587, allocations: 23.75 kB / 0.6124 GB, free: 173.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002006/1.589, allocations: 125.3 kB / 0.6126 GB, free: 173.6 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003351/1.59, allocations: 100.1 kB / 0.6127 GB, free: 173.6 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001575/1.59, allocations: 45.05 kB / 0.6127 GB, free: 173.6 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.002295/1.592, allocations: 1.063 MB / 0.6137 GB, free: 173.2 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.162e-06/1.592, allocations: 3.688 kB / 0.6137 GB, free: 173.2 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.006948/1.599, allocations: 1.809 MB / 0.6155 GB, free: 173 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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,$cse14.phase,$cse14.region,$cse15.phase,$cse15.region,$cse18.phase,$cse18.region,$cse20.phase,$cse20.region,$cse22.phase,$cse22.region,$cse27.phase,$cse27.region,$cse29.phase,$cse29.region,$cse30.phase,$cse30.region,$cse33.phase,$cse33.region,$cse36.phase,$cse36.region,$cse37.phase,$cse37.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 (93): * Single equations (assignments): 80 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {6 35} Notification: Performance of Backend phase and start with SimCode phase: time 0.007976/1.607, allocations: 1.558 MB / 0.617 GB, free: 172.8 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01194/1.619, allocations: 3.048 MB / 0.62 GB, free: 171.8 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.005e-05/1.619, allocations: 1.031 kB / 0.62 GB, free: 171.8 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.004686/1.624, allocations: 1.494 MB / 0.6215 GB, free: 171.2 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006543/1.631, allocations: 0.6973 MB / 0.6221 GB, free: 171 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01162/1.642, allocations: 5.371 MB / 0.6274 GB, free: 168.1 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001694/1.644, allocations: 1.622 MB / 0.629 GB, free: 167.4 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007661/1.645, allocations: 119.3 kB / 0.6291 GB, free: 167.4 MB / 0.5105 GB Notification: Performance of SimCode: time 1.062e-06/1.645, allocations: 1.031 kB / 0.6291 GB, free: 167.4 MB / 0.5105 GB Notification: Performance of Templates: time 0.1045/1.749, allocations: 54.34 MB / 0.6822 GB, free: 121.6 MB / 0.5105 GB make -j1 -f ModelicaTest_trunk_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/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/C-Sources" -I"." -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" "-I/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/C-Sources" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_turbulentCalcHelperMain.o OMCppModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_turbulentCalcHelperMain.cpp In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_turbulentCalcHelperMain.cpp:29: ./OMCppModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_turbulentFunctions.cpp:6784:5: error: no matching function for call to 'add_array_scalar' add_array_scalar(c_(2), tmp541, tmp542); ^~~~~~~~~~~~~~~~~~~~~~~~ /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_trunk_cpp_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_turbulentCalcHelperMain.o' failed make: *** [OMCppModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_turbulentCalcHelperMain.o] Error 1