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.2_cpp_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_laminar") Notification: Performance of loadModel(ModelicaTest): time 2.331/2.331, allocations: 234.9 MB / 250.1 MB, free: 9.934 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.542e-05/3.552e-05, allocations: 4 kB / 308 MB, free: 15.91 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3754/0.3755, allocations: 54.85 MB / 362.8 MB, free: 12.08 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_laminar): time 0.09977/0.4753, allocations: 58.91 MB / 421.8 MB, free: 2.809 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.04122/0.5166, allocations: 20.28 MB / 442 MB, free: 14.49 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002057/0.5187, allocations: 51.56 kB / 442.1 MB, free: 14.44 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002722/0.5214, allocations: 0.6296 MB / 442.7 MB, free: 13.8 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01845/0.5399, allocations: 4.506 MB / 447.2 MB, free: 9.285 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01254/0.5525, allocations: 3.19 MB / 450.4 MB, free: 6.086 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.004557/0.5571, allocations: 1.611 MB / 452 MB, free: 4.469 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001693/0.5588, allocations: 0.7104 MB / 452.7 MB, free: 3.758 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003392/0.5623, allocations: 1.11 MB / 453.8 MB, free: 2.645 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.04304/0.6053, allocations: 14.84 MB / 468.7 MB, free: 3.801 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.04091/0.6463, allocations: 10.63 MB / 479.3 MB, free: 9.164 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.004541/0.6509, allocations: 500 kB / 479.8 MB, free: 8.676 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001238/0.6522, allocations: 394.8 kB / 480.2 MB, free: 8.289 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008814/0.6531, allocations: 164 kB / 480.3 MB, free: 8.129 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01329/0.6664, allocations: 4.576 MB / 484.9 MB, free: 3.543 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.999e-06/0.6665, allocations: 0 / 484.9 MB, free: 3.543 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.026e-06/0.6665, allocations: 0 / 484.9 MB, free: 3.543 MB / 410.7 MB Notification: Performance of Transformations before backend: time 5.767e-05/0.6666, allocations: 0 / 484.9 MB, free: 3.543 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.01313/0.6797, allocations: 2.426 MB / 487.3 MB, free: 1.062 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.156e-05/0.6798, allocations: 16.02 kB / 487.4 MB, free: 1.047 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006549/0.6863, allocations: 0.5759 MB / 487.9 MB, free: 480 kB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003129/0.6895, allocations: 0.9921 MB / 488.9 MB, free: 15.43 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001942/0.6898, allocations: 94 kB / 489 MB, free: 15.34 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004781/0.6903, allocations: 108 kB / 489.1 MB, free: 15.23 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009232/0.6995, allocations: 2.236 MB / 491.4 MB, free: 12.87 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.957e-05/0.6996, allocations: 0 / 491.4 MB, free: 12.87 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002874/0.6999, allocations: 51.98 kB / 491.4 MB, free: 12.82 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001982/0.7001, allocations: 86 kB / 491.5 MB, free: 12.73 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01074/0.7109, allocations: 2.385 MB / 493.9 MB, free: 10.34 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.02053/0.7315, allocations: 9.021 MB / 0.4911 GB, free: 0.668 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.3159/1.047, allocations: 1.779 MB / 0.4929 GB, free: 125.6 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05915/1.107, allocations: 19 MB / 0.5114 GB, free: 112.1 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.702e-05/1.107, allocations: 49.95 kB / 0.5114 GB, free: 112 MB / 426.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001309/1.108, allocations: 160.1 kB / 0.5116 GB, free: 112 MB / 426.7 MB Notification: Performance of pre-optimization done (n=109): time 5.1e-06/1.108, allocations: 0 / 0.5116 GB, free: 112 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.1816/1.29, allocations: 15.98 MB / 0.5272 GB, free: 97.51 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.043e-05/1.29, allocations: 226.9 kB / 0.5274 GB, free: 97.24 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001401/1.291, allocations: 0.7584 MB / 0.5282 GB, free: 96.46 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005376/1.292, allocations: 53.7 kB / 0.5282 GB, free: 96.41 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003785/1.292, allocations: 0.5904 MB / 0.5288 GB, free: 95.82 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007297/1.293, allocations: 0.5313 MB / 0.5293 GB, free: 95.29 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003136/1.293, allocations: 36 kB / 0.5293 GB, free: 95.26 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001332/1.293, allocations: 386.7 kB / 0.5297 GB, free: 94.87 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007483/1.301, allocations: 1.48 MB / 0.5312 GB, free: 93.39 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00794/1.309, allocations: 1.944 MB / 0.5331 GB, free: 91.25 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007936/1.317, allocations: 1.603 MB / 0.5346 GB, free: 89.66 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-05/1.317, allocations: 8 kB / 0.5346 GB, free: 89.65 MB / 426.7 MB Notification: Performance of matching and sorting (n=220) (initialization): time 0.02349/1.341, allocations: 4.66 MB / 0.5392 GB, free: 84.97 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009878/1.342, allocations: 4.793 MB / 0.5439 GB, free: 79.8 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.719e-05/1.342, allocations: 12.08 kB / 0.5439 GB, free: 79.79 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.1692/1.511, allocations: 7.891 MB / 0.5516 GB, free: 71.93 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002654/1.514, allocations: 363.5 kB / 0.5519 GB, free: 71.57 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02738/1.541, allocations: 5.087 MB / 0.5569 GB, free: 66.43 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005963/1.547, allocations: 227.8 kB / 0.5571 GB, free: 66.21 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006558/1.548, allocations: 127.9 kB / 0.5572 GB, free: 66.09 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.844e-05/1.548, allocations: 5.406 kB / 0.5572 GB, free: 66.08 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02548/1.573, allocations: 4.512 MB / 0.5616 GB, free: 61.56 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.973e-05/1.573, allocations: 12 kB / 0.5617 GB, free: 61.55 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01895/1.592, allocations: 2.887 MB / 0.5645 GB, free: 58.66 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003394/1.596, allocations: 427.4 kB / 0.5649 GB, free: 58.24 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02338/1.619, allocations: 4.352 MB / 0.5691 GB, free: 53.83 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005424/1.625, allocations: 231.7 kB / 0.5693 GB, free: 53.61 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000612/1.625, allocations: 119.9 kB / 0.5695 GB, free: 53.49 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.001366/1.627, allocations: 409.5 kB / 0.5699 GB, free: 53.08 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005708/1.627, allocations: 138.3 kB / 0.57 GB, free: 52.94 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03122/1.658, allocations: 9.043 MB / 0.5788 GB, free: 43.85 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.572e-05/1.659, allocations: 67.86 kB / 0.5789 GB, free: 43.78 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.092e-05/1.659, allocations: 0 / 0.5789 GB, free: 43.78 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.956e-05/1.659, allocations: 7.969 kB / 0.5789 GB, free: 43.77 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04354/1.702, allocations: 12.22 MB / 0.5908 GB, free: 31.46 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.838e-05/1.702, allocations: 4 kB / 0.5908 GB, free: 31.46 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001989/1.704, allocations: 263.9 kB / 0.5911 GB, free: 31.2 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.15/1.854, allocations: 8.323 MB / 0.5992 GB, free: 22.87 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005044/1.855, allocations: 59.91 kB / 0.5993 GB, free: 22.81 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02386/1.879, allocations: 5.649 MB / 0.6048 GB, free: 17.11 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.123e-06/1.879, allocations: 4.125 kB / 0.6048 GB, free: 17.11 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.034/1.913, allocations: 7.238 MB / 0.6119 GB, free: 9.723 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001931/1.915, allocations: 0.6727 MB / 0.6125 GB, free: 9.027 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006562/1.916, allocations: 39.98 kB / 0.6126 GB, free: 8.988 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004475/1.92, allocations: 223.5 kB / 0.6128 GB, free: 8.77 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004643/1.921, allocations: 125.8 kB / 0.6129 GB, free: 8.645 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003005/1.921, allocations: 67.91 kB / 0.6129 GB, free: 8.578 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001367/1.922, allocations: 0.763 MB / 0.6137 GB, free: 7.812 MB / 426.7 MB Notification: Performance of sort global known variables: time 5.01e-07/1.922, allocations: 0 / 0.6137 GB, free: 7.812 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.007362/1.93, allocations: 2.026 MB / 0.6157 GB, free: 5.922 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.008542/1.938, allocations: 1.711 MB / 0.6173 GB, free: 4.484 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.04041/1.979, allocations: 6.625 MB / 0.6238 GB, free: 13.86 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.23e-05/1.979, allocations: 4 kB / 0.6238 GB, free: 13.85 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01587/1.995, allocations: 2.951 MB / 0.6267 GB, free: 10.9 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005553/2, allocations: 0.5774 MB / 0.6273 GB, free: 10.33 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01881/2.019, allocations: 6.613 MB / 0.6337 GB, free: 3.746 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001961/2.021, allocations: 1.639 MB / 0.6353 GB, free: 2.066 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009028/2.022, allocations: 135.4 kB / 0.6355 GB, free: 1.934 MB / 442.7 MB Notification: Performance of SimCode: time 1.453e-06/2.022, allocations: 0 / 0.6355 GB, free: 1.934 MB / 442.7 MB Notification: Performance of Templates: time 0.5316/2.554, allocations: 69.37 MB / 0.7032 GB, free: 139.4 MB / 474.7 MB make -j1 -f ModelicaTest_3.2.2_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.2_cpp_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_laminarCalcHelperMain.o OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_laminarCalcHelperMain.cpp In file included from OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_laminarCalcHelperMain.cpp:29: ./OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_laminarFunctions.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_laminarCalcHelperMain.o' failed make: *** [OMCppModelicaTest_3.2.2_cpp_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_laminarCalcHelperMain.o] Error 1