Running command: translateModel(Modelica.Fluid.Examples.InverseParameterization,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|sink.ports.1..m_flow|sink1.ports.1..m_flow|sink2.ports.1..m_flow|pipe1.flowModel.dps_fg_turbulent.1.|pipe1.flowModel.pathLengths_nominal.1.|pipe2.flowModel.pathLengths_nominal.1.",fileNamePrefix="Modelica_3.2.2_cpp_Modelica.Fluid.Examples.InverseParameterization") Notification: Performance of loadModel(Modelica): time 2.137/2.137, allocations: 194.9 MB / 211.2 MB, free: 8.348 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 2.826e-05/2.813e-05, allocations: 4 kB / 258.8 MB, free: 8.711 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3347/0.3348, allocations: 44.51 MB / 303.3 MB, free: 12.77 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.InverseParameterization): time 0.1045/0.4394, allocations: 58.87 MB / 362.2 MB, free: 2.695 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.04221/0.4817, allocations: 20.26 MB / 382.4 MB, free: 14.39 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002166/0.4839, allocations: 59.5 kB / 382.5 MB, free: 14.33 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002778/0.4867, allocations: 0.6257 MB / 383.1 MB, free: 13.7 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.02149/0.5083, allocations: 4.506 MB / 387.6 MB, free: 9.184 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01295/0.5213, allocations: 3.201 MB / 390.8 MB, free: 5.973 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.00464/0.5259, allocations: 1.615 MB / 392.4 MB, free: 4.355 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001753/0.5277, allocations: 0.6988 MB / 393.1 MB, free: 3.656 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00377/0.5315, allocations: 1.103 MB / 394.2 MB, free: 2.551 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.03669/0.5683, allocations: 14.84 MB / 409.1 MB, free: 3.699 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03109/0.5994, allocations: 10.64 MB / 419.7 MB, free: 9.051 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003851/0.6033, allocations: 496 kB / 420.2 MB, free: 8.566 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001122/0.6045, allocations: 394.8 kB / 420.6 MB, free: 8.18 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000931/0.6055, allocations: 160 kB / 420.7 MB, free: 8.023 MB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0132/0.6187, allocations: 4.58 MB / 425.3 MB, free: 3.434 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.661e-06/0.6188, allocations: 4 kB / 425.3 MB, free: 3.43 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.597e-06/0.6188, allocations: 0 / 425.3 MB, free: 3.43 MB / 362.7 MB Notification: Performance of Transformations before backend: time 9.024e-05/0.6189, allocations: 0 / 425.3 MB, free: 3.43 MB / 362.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.01282/0.6317, allocations: 2.422 MB / 427.7 MB, free: 0.9531 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.288e-05/0.6318, allocations: 12.02 kB / 427.7 MB, free: 0.9414 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006685/0.6385, allocations: 0.5914 MB / 428.3 MB, free: 356 kB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2563/0.8948, allocations: 0.9781 MB / 429.3 MB, free: 111.3 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002411/0.8951, allocations: 94.55 kB / 429.4 MB, free: 111.3 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005819/0.8957, allocations: 109.5 kB / 429.5 MB, free: 111.3 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0097/0.9054, allocations: 2.235 MB / 431.8 MB, free: 110.5 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.443e-05/0.9055, allocations: 3.188 kB / 431.8 MB, free: 110.5 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002807/0.9058, allocations: 48.8 kB / 431.8 MB, free: 110.4 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001986/0.9061, allocations: 83.47 kB / 431.9 MB, free: 110.4 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01012/0.9162, allocations: 2.385 MB / 434.3 MB, free: 109.7 MB / 362.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.01788/0.9341, allocations: 9.007 MB / 443.3 MB, free: 102 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007397/0.9416, allocations: 1.797 MB / 445.1 MB, free: 101.1 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05882/1, allocations: 19 MB / 464.1 MB, free: 81.71 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.136e-05/1.001, allocations: 51.59 kB / 464.1 MB, free: 81.66 MB / 362.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001389/1.002, allocations: 160.9 kB / 464.3 MB, free: 81.5 MB / 362.7 MB Notification: Performance of pre-optimization done (n=109): time 6.171e-06/1.002, allocations: 0 / 464.3 MB, free: 81.5 MB / 362.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.1834/1.185, allocations: 15.96 MB / 480.2 MB, free: 65.42 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.638e-05/1.186, allocations: 226.9 kB / 480.5 MB, free: 65.15 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001396/1.187, allocations: 0.7623 MB / 481.2 MB, free: 64.37 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005549/1.188, allocations: 53.7 kB / 481.3 MB, free: 64.31 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00039/1.188, allocations: 0.5965 MB / 481.9 MB, free: 63.71 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007204/1.189, allocations: 0.5279 MB / 482.4 MB, free: 63.19 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003205/1.189, allocations: 36 kB / 482.4 MB, free: 63.16 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000127/1.189, allocations: 382.7 kB / 482.8 MB, free: 62.77 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007248/1.196, allocations: 1.483 MB / 484.3 MB, free: 61.29 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007752/1.204, allocations: 1.941 MB / 486.2 MB, free: 59.16 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008015/1.212, allocations: 1.611 MB / 487.8 MB, free: 57.55 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.466e-05/1.212, allocations: 4 kB / 487.9 MB, free: 57.55 MB / 362.7 MB Notification: Performance of matching and sorting (n=220) (initialization): time 0.02448/1.237, allocations: 4.663 MB / 492.5 MB, free: 52.87 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001103/1.238, allocations: 4.801 MB / 497.3 MB, free: 47.69 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.011e-05/1.238, allocations: 12 kB / 497.3 MB, free: 47.68 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.2177/1.456, allocations: 7.893 MB / 0.4934 GB, free: 39.81 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002751/1.459, allocations: 355.5 kB / 0.4937 GB, free: 39.46 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02832/1.487, allocations: 5.085 MB / 0.4987 GB, free: 34.32 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005945/1.493, allocations: 243.5 kB / 0.4989 GB, free: 34.09 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001032/1.494, allocations: 131.8 kB / 0.499 GB, free: 33.96 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.612e-05/1.494, allocations: 5.406 kB / 0.499 GB, free: 33.95 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02663/1.521, allocations: 4.509 MB / 0.5034 GB, free: 29.44 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.144e-05/1.521, allocations: 12 kB / 0.5035 GB, free: 29.43 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01926/1.54, allocations: 2.878 MB / 0.5063 GB, free: 26.54 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003454/1.544, allocations: 431.3 kB / 0.5067 GB, free: 26.12 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02368/1.567, allocations: 4.356 MB / 0.5109 GB, free: 21.71 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005457/1.573, allocations: 231.7 kB / 0.5112 GB, free: 21.48 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006441/1.574, allocations: 119.9 kB / 0.5113 GB, free: 21.36 MB / 362.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.001473/1.575, allocations: 413.3 kB / 0.5117 GB, free: 20.95 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006147/1.576, allocations: 134.4 kB / 0.5118 GB, free: 20.82 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03201/1.608, allocations: 9.026 MB / 0.5206 GB, free: 11.74 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.649e-05/1.608, allocations: 67.86 kB / 0.5207 GB, free: 11.67 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.235e-05/1.608, allocations: 4 kB / 0.5207 GB, free: 11.67 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.071e-05/1.608, allocations: 7.969 kB / 0.5207 GB, free: 11.66 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04336/1.651, allocations: 12.22 MB / 0.5326 GB, free: 15.34 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.479e-05/1.651, allocations: 0 / 0.5326 GB, free: 15.34 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002138/1.654, allocations: 267.7 kB / 0.5329 GB, free: 15.08 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.1577/1.811, allocations: 8.317 MB / 0.541 GB, free: 6.75 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006452/1.812, allocations: 55.95 kB / 0.5411 GB, free: 6.695 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03667/1.849, allocations: 5.656 MB / 0.5466 GB, free: 0.9883 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.955e-06/1.849, allocations: 0 / 0.5466 GB, free: 0.9883 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0464/1.895, allocations: 7.236 MB / 0.5536 GB, free: 9.602 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002188/1.898, allocations: 0.6728 MB / 0.5543 GB, free: 8.906 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009282/1.898, allocations: 32 kB / 0.5543 GB, free: 8.875 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004998/1.904, allocations: 215.6 kB / 0.5545 GB, free: 8.664 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000595/1.904, allocations: 133.8 kB / 0.5547 GB, free: 8.535 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003535/1.905, allocations: 67.91 kB / 0.5547 GB, free: 8.469 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001681/1.906, allocations: 0.7629 MB / 0.5555 GB, free: 7.703 MB / 394.7 MB Notification: Performance of sort global known variables: time 7.01e-07/1.906, allocations: 0 / 0.5555 GB, free: 7.703 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.008758/1.915, allocations: 2.026 MB / 0.5575 GB, free: 5.812 MB / 394.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.009614/1.925, allocations: 1.678 MB / 0.5591 GB, free: 4.41 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.2964/2.221, allocations: 6.63 MB / 0.5656 GB, free: 135.5 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.169e-05/2.221, allocations: 1 kB / 0.5656 GB, free: 135.5 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01543/2.237, allocations: 2.948 MB / 0.5684 GB, free: 134.6 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005501/2.242, allocations: 0.5874 MB / 0.569 GB, free: 134.4 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01599/2.258, allocations: 6.629 MB / 0.5755 GB, free: 131.1 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001211/2.259, allocations: 1.638 MB / 0.5771 GB, free: 130.3 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008036/2.26, allocations: 135.7 kB / 0.5772 GB, free: 130.3 MB / 394.7 MB Notification: Performance of SimCode: time 1.573e-06/2.26, allocations: 3.938 kB / 0.5772 GB, free: 130.3 MB / 394.7 MB Notification: Performance of Templates: time 0.125/2.385, allocations: 69.32 MB / 0.6449 GB, free: 65.81 MB / 394.7 MB make -j1 -f Modelica_3.2.2_cpp_Modelica.Fluid.Examples.InverseParameterization.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 OMCppModelica_3.2.2_cpp_Modelica.Fluid.Examples.InverseParameterizationCalcHelperMain.o OMCppModelica_3.2.2_cpp_Modelica.Fluid.Examples.InverseParameterizationCalcHelperMain.cpp In file included from OMCppModelica_3.2.2_cpp_Modelica.Fluid.Examples.InverseParameterizationCalcHelperMain.cpp:29: ./OMCppModelica_3.2.2_cpp_Modelica.Fluid.Examples.InverseParameterizationFunctions.cpp:1001:5: error: no matching function for call to 'add_array_scalar' add_array_scalar(c_(2), tmp325, tmp326); ^~~~~~~~~~~~~~~~~~~~~~~~ /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 'OMCppModelica_3.2.2_cpp_Modelica.Fluid.Examples.InverseParameterizationCalcHelperMain.o' failed make: *** [OMCppModelica_3.2.2_cpp_Modelica.Fluid.Examples.InverseParameterizationCalcHelperMain.o] Error 1