Running command: translateModel(ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_laminar,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_laminar") Notification: Performance of loadModel(ModelicaTest): time 2.097/2.097, allocations: 209.3 MB / 224.4 MB, free: 0.5117 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.988e-05/4.006e-05, allocations: 4 kB / 276.1 MB, free: 15.86 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3827/0.3828, allocations: 48.71 MB / 324.8 MB, free: 2.898 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_laminar): time 0.09371/0.4766, allocations: 58.47 MB / 383.3 MB, free: 5.004 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.0411/0.5178, allocations: 20.06 MB / 403.4 MB, free: 0.8945 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002395/0.5202, allocations: 51.56 kB / 403.4 MB, free: 0.8438 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002914/0.5232, allocations: 0.6335 MB / 404.1 MB, free: 212 kB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02/0.5432, allocations: 4.451 MB / 408.5 MB, free: 11.74 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01307/0.5563, allocations: 3.151 MB / 411.7 MB, free: 8.582 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.004669/0.561, allocations: 1.591 MB / 413.3 MB, free: 6.988 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001745/0.5628, allocations: 0.6948 MB / 414 MB, free: 6.293 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00364/0.5665, allocations: 1.099 MB / 415.1 MB, free: 5.191 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.03556/0.6021, allocations: 14.67 MB / 429.7 MB, free: 6.512 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03138/0.6335, allocations: 10.45 MB / 440.2 MB, free: 12.05 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004257/0.6379, allocations: 484 kB / 440.6 MB, free: 11.58 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001072/0.639, allocations: 394.8 kB / 441 MB, free: 11.2 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007122/0.6397, allocations: 164 kB / 441.2 MB, free: 11.04 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01343/0.6532, allocations: 4.506 MB / 445.7 MB, free: 6.52 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.6532, allocations: 4 kB / 445.7 MB, free: 6.516 MB / 378.7 MB Notification: Performance of FrontEnd: time 6.682e-06/0.6533, allocations: 0 / 445.7 MB, free: 6.516 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.384e-05/0.6533, allocations: 3.938 kB / 445.7 MB, free: 6.512 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.01239/0.6657, allocations: 2.371 MB / 448.1 MB, free: 4.086 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.98e-05/0.6658, allocations: 8.031 kB / 448.1 MB, free: 4.078 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006636/0.6724, allocations: 0.5719 MB / 448.7 MB, free: 3.504 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003079/0.6756, allocations: 0.9804 MB / 449.6 MB, free: 2.477 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001581/0.6758, allocations: 94.14 kB / 449.7 MB, free: 2.383 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003442/0.6761, allocations: 104 kB / 449.8 MB, free: 2.281 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008943/0.6851, allocations: 2.248 MB / 452.1 MB, free: 15.91 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.68e-05/0.6852, allocations: 7.938 kB / 452.1 MB, free: 15.9 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000304/0.6855, allocations: 47.98 kB / 452.1 MB, free: 15.86 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002172/0.6858, allocations: 86 kB / 452.2 MB, free: 15.77 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01095/0.6967, allocations: 2.373 MB / 454.6 MB, free: 13.39 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.01857/0.7154, allocations: 9.033 MB / 463.6 MB, free: 3.707 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007591/0.723, allocations: 1.787 MB / 465.4 MB, free: 1.91 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3456/1.069, allocations: 18.97 MB / 484.4 MB, free: 130 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.292e-05/1.069, allocations: 46.03 kB / 484.4 MB, free: 130 MB / 410.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001478/1.07, allocations: 157.4 kB / 484.6 MB, free: 130 MB / 410.7 MB Notification: Performance of pre-optimization done (n=109): time 5.921e-06/1.07, allocations: 0.9375 kB / 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.1889/1.259, allocations: 15.98 MB / 0.4888 GB, free: 126 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001033/1.259, allocations: 222.5 kB / 0.489 GB, free: 125.8 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001639/1.261, allocations: 0.7606 MB / 0.4898 GB, free: 125.3 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0006358/1.262, allocations: 52.48 kB / 0.4898 GB, free: 125.3 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004462/1.262, allocations: 0.5999 MB / 0.4904 GB, free: 124.7 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007892/1.263, allocations: 0.5314 MB / 0.4909 GB, free: 124.3 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003125/1.263, allocations: 35.56 kB / 0.491 GB, free: 124.2 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001454/1.263, allocations: 375.6 kB / 0.4913 GB, free: 123.9 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007682/1.271, allocations: 1.484 MB / 0.4928 GB, free: 123.1 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008261/1.279, allocations: 1.944 MB / 0.4947 GB, free: 121.7 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008121/1.288, allocations: 1.599 MB / 0.4962 GB, free: 120.9 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.567e-05/1.288, allocations: 7.484 kB / 0.4962 GB, free: 120.9 MB / 410.7 MB Notification: Performance of matching and sorting (n=220) (initialization): time 0.02434/1.312, allocations: 4.665 MB / 0.5008 GB, free: 118.4 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001092/1.313, allocations: 4.799 MB / 0.5055 GB, free: 113.3 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.857e-05/1.313, allocations: 11.22 kB / 0.5055 GB, free: 113.3 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.17/1.483, allocations: 7.894 MB / 0.5132 GB, free: 106.4 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002655/1.486, allocations: 359.5 kB / 0.5135 GB, free: 106.1 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02687/1.513, allocations: 5.085 MB / 0.5185 GB, free: 100.9 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005913/1.519, allocations: 227.7 kB / 0.5187 GB, free: 100.7 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005176/1.519, allocations: 131.9 kB / 0.5189 GB, free: 100.6 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.72e-05/1.519, allocations: 4 kB / 0.5189 GB, free: 100.6 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02497/1.544, allocations: 4.511 MB / 0.5233 GB, free: 96.05 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.934e-05/1.545, allocations: 12 kB / 0.5233 GB, free: 96.04 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0188/1.563, allocations: 2.887 MB / 0.5261 GB, free: 93.14 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003342/1.567, allocations: 427.4 kB / 0.5265 GB, free: 92.73 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02288/1.59, allocations: 4.344 MB / 0.5307 GB, free: 88.33 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005324/1.595, allocations: 243.3 kB / 0.531 GB, free: 88.1 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003986/1.595, allocations: 127.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.001387/1.597, allocations: 406.3 kB / 0.5315 GB, free: 87.57 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005837/1.597, allocations: 138.4 kB / 0.5316 GB, free: 87.43 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03019/1.628, allocations: 9.032 MB / 0.5404 GB, free: 78.35 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.383e-05/1.628, allocations: 59.91 kB / 0.5405 GB, free: 78.29 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.322e-05/1.628, allocations: 0 / 0.5405 GB, free: 78.29 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.365e-05/1.628, allocations: 7.969 kB / 0.5405 GB, free: 78.28 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04266/1.671, allocations: 12.22 MB / 0.5524 GB, free: 65.96 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.405e-05/1.671, allocations: 4.281 kB / 0.5524 GB, free: 65.96 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001957/1.673, allocations: 263.7 kB / 0.5527 GB, free: 65.7 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.1504/1.823, allocations: 8.325 MB / 0.5608 GB, free: 57.37 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004607/1.824, allocations: 51.95 kB / 0.5609 GB, free: 57.32 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02361/1.847, allocations: 5.659 MB / 0.5664 GB, free: 51.61 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.092e-06/1.847, allocations: 4 kB / 0.5664 GB, free: 51.6 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03375/1.881, allocations: 7.24 MB / 0.5735 GB, free: 44.22 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001892/1.883, allocations: 0.6728 MB / 0.5741 GB, free: 43.52 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006239/1.884, allocations: 32.25 kB / 0.5742 GB, free: 43.49 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004497/1.888, allocations: 211.7 kB / 0.5744 GB, free: 43.29 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004133/1.889, allocations: 141.8 kB / 0.5745 GB, free: 43.14 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002856/1.889, allocations: 67.95 kB / 0.5746 GB, free: 43.08 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.00133/1.89, allocations: 0.7552 MB / 0.5753 GB, free: 42.32 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.91e-07/1.89, allocations: 0 / 0.5753 GB, free: 42.32 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.007546/1.898, allocations: 2.017 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.008319/1.906, allocations: 1.688 MB / 0.5789 GB, free: 39.01 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.03882/1.945, allocations: 6.634 MB / 0.5854 GB, free: 32.39 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.237e-05/1.945, allocations: 4.672 kB / 0.5854 GB, free: 32.38 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01447/1.959, allocations: 2.94 MB / 0.5883 GB, free: 29.44 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005104/1.965, allocations: 0.5972 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.01499/1.98, allocations: 6.612 MB / 0.5953 GB, free: 22.25 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001201/1.981, allocations: 1.639 MB / 0.5969 GB, free: 20.57 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008214/1.982, allocations: 139.3 kB / 0.597 GB, free: 20.44 MB / 410.7 MB Notification: Performance of SimCode: time 1.764e-06/1.982, allocations: 3.938 kB / 0.5971 GB, free: 20.43 MB / 410.7 MB Notification: Performance of Templates: time 0.4343/2.416, allocations: 69.2 MB / 0.6646 GB, free: 122.8 MB / 426.7 MB make -j1 -f ModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_laminar.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_laminarCalcHelperMain.o OMCppModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_laminarCalcHelperMain.cpp In file included from OMCppModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_laminarCalcHelperMain.cpp:29: ./OMCppModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_laminarFunctions.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_laminarCalcHelperMain.o' failed make: *** [OMCppModelicaTest_3.2.1_cpp_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_laminarCalcHelperMain.o] Error 1