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.1_cpp_Modelica.Fluid.Examples.InverseParameterization") Notification: Performance of loadModel(Modelica): time 1.808/1.808, allocations: 171.1 MB / 186.3 MB, free: 1.336 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 3.857e-05/3.868e-05, allocations: 6.188 kB / 228.1 MB, free: 7.988 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08898/0.08905, allocations: 38.76 MB / 266.9 MB, free: 1.141 MB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.InverseParameterization): time 0.3284/0.4175, allocations: 58.42 MB / 325.3 MB, free: 2.281 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.04098/0.4586, allocations: 20.08 MB / 345.4 MB, free: 2.973 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002459/0.4611, allocations: 55.94 kB / 345.4 MB, free: 2.945 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003023/0.4642, allocations: 0.6291 MB / 346.1 MB, free: 2.359 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01924/0.4835, allocations: 4.456 MB / 350.5 MB, free: 14.48 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01324/0.4968, allocations: 3.137 MB / 353.7 MB, free: 11.5 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.004677/0.5015, allocations: 1.603 MB / 355.3 MB, free: 9.895 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001828/0.5034, allocations: 0.6949 MB / 356 MB, free: 9.195 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003747/0.5072, allocations: 1.091 MB / 357 MB, free: 8.102 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.03826/0.5455, allocations: 14.69 MB / 371.7 MB, free: 9.406 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03064/0.5762, allocations: 10.45 MB / 382.2 MB, free: 14.95 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003557/0.5798, allocations: 484 kB / 382.7 MB, free: 14.47 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001058/0.5809, allocations: 386.8 kB / 383 MB, free: 14.09 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007062/0.5816, allocations: 164 kB / 383.2 MB, free: 13.93 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01285/0.5945, allocations: 4.518 MB / 387.7 MB, free: 9.406 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.158e-06/0.5945, allocations: 0 / 387.7 MB, free: 9.406 MB / 314.7 MB Notification: Performance of FrontEnd: time 3.266e-06/0.5946, allocations: 0 / 387.7 MB, free: 9.406 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.165e-05/0.5946, allocations: 4 kB / 387.7 MB, free: 9.402 MB / 314.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.0163/0.6109, allocations: 2.363 MB / 390.1 MB, free: 6.984 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.789e-05/0.611, allocations: 11.97 kB / 390.1 MB, free: 6.973 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01878/0.6298, allocations: 0.568 MB / 390.7 MB, free: 6.402 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008463/0.6383, allocations: 0.9881 MB / 391.6 MB, free: 5.367 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002601/0.6387, allocations: 90.14 kB / 391.7 MB, free: 5.277 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005803/0.6393, allocations: 108 kB / 391.8 MB, free: 5.172 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01882/0.6581, allocations: 2.236 MB / 394.1 MB, free: 2.812 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.638e-05/0.6582, allocations: 11.88 kB / 394.1 MB, free: 2.801 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003921/0.6586, allocations: 47.98 kB / 394.1 MB, free: 2.754 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002703/0.6589, allocations: 86 kB / 394.2 MB, free: 2.668 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01454/0.6735, allocations: 2.373 MB / 396.6 MB, free: 292 kB / 314.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.02635/0.6999, allocations: 9.021 MB / 405.6 MB, free: 6.613 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01092/0.7109, allocations: 1.791 MB / 407.4 MB, free: 4.82 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09472/0.8057, allocations: 18.98 MB / 426.4 MB, free: 15.53 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.31e-05/0.8058, allocations: 47.55 kB / 426.4 MB, free: 15.47 MB / 362.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001975/0.8078, allocations: 154.8 kB / 426.6 MB, free: 15.32 MB / 362.7 MB Notification: Performance of pre-optimization done (n=109): time 9.398e-06/0.8079, allocations: 7.938 kB / 426.6 MB, free: 15.31 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.4548/1.263, allocations: 15.96 MB / 442.5 MB, free: 131 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001016/1.263, allocations: 226.1 kB / 442.8 MB, free: 130.7 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001871/1.265, allocations: 0.7555 MB / 443.5 MB, free: 130.6 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0005966/1.265, allocations: 53.28 kB / 443.6 MB, free: 130.5 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006192/1.266, allocations: 0.5996 MB / 444.2 MB, free: 130.4 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.001109/1.267, allocations: 0.5326 MB / 444.7 MB, free: 130 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000355/1.268, allocations: 36.75 kB / 444.7 MB, free: 130 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001834/1.268, allocations: 379.5 kB / 445.1 MB, free: 129.7 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008228/1.276, allocations: 1.482 MB / 446.6 MB, free: 129.4 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008808/1.285, allocations: 1.944 MB / 448.5 MB, free: 128.3 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00851/1.293, allocations: 1.603 MB / 450.1 MB, free: 127.7 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.44e-05/1.294, allocations: 4.656 kB / 450.1 MB, free: 127.7 MB / 362.7 MB Notification: Performance of matching and sorting (n=220) (initialization): time 0.02557/1.319, allocations: 4.667 MB / 454.8 MB, free: 126 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001085/1.32, allocations: 4.795 MB / 459.6 MB, free: 120.9 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.523e-05/1.32, allocations: 12.81 kB / 459.6 MB, free: 120.9 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.1741/1.494, allocations: 7.882 MB / 467.5 MB, free: 119.3 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002736/1.497, allocations: 362.1 kB / 467.9 MB, free: 119.2 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02777/1.525, allocations: 5.095 MB / 473 MB, free: 116 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006016/1.531, allocations: 231.3 kB / 473.2 MB, free: 115.9 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007214/1.532, allocations: 129.9 kB / 473.3 MB, free: 115.8 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.731e-05/1.532, allocations: 3.969 kB / 473.3 MB, free: 115.8 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02607/1.558, allocations: 4.512 MB / 477.8 MB, free: 111.7 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.975e-05/1.558, allocations: 12 kB / 477.8 MB, free: 111.7 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01919/1.577, allocations: 2.881 MB / 480.7 MB, free: 108.8 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003399/1.581, allocations: 431.4 kB / 481.1 MB, free: 108.4 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02368/1.604, allocations: 4.347 MB / 485.5 MB, free: 104 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005626/1.61, allocations: 239.6 kB / 485.7 MB, free: 103.7 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006221/1.611, allocations: 119.9 kB / 485.8 MB, free: 103.6 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.001436/1.612, allocations: 405.3 kB / 486.2 MB, free: 103.2 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006072/1.613, allocations: 138.4 kB / 486.4 MB, free: 103.1 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03131/1.644, allocations: 9.027 MB / 495.4 MB, free: 94.01 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001049/1.644, allocations: 65.59 kB / 495.5 MB, free: 93.95 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.391e-05/1.644, allocations: 0 / 495.5 MB, free: 93.95 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.533e-05/1.645, allocations: 7.969 kB / 495.5 MB, free: 93.94 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04278/1.687, allocations: 12.23 MB / 0.4958 GB, free: 81.63 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.866e-05/1.687, allocations: 0 / 0.4958 GB, free: 81.63 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002005/1.689, allocations: 263.7 kB / 0.496 GB, free: 81.37 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.1482/1.838, allocations: 8.325 MB / 0.5042 GB, free: 73.04 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005198/1.838, allocations: 51.95 kB / 0.5042 GB, free: 72.99 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02452/1.863, allocations: 5.66 MB / 0.5097 GB, free: 67.28 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.142e-06/1.863, allocations: 0 / 0.5097 GB, free: 67.28 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03536/1.898, allocations: 7.252 MB / 0.5168 GB, free: 59.89 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001898/1.9, allocations: 0.669 MB / 0.5175 GB, free: 59.2 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007275/1.901, allocations: 32 kB / 0.5175 GB, free: 59.16 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004592/1.906, allocations: 214.2 kB / 0.5177 GB, free: 58.96 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005039/1.906, allocations: 133.8 kB / 0.5178 GB, free: 58.82 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003169/1.906, allocations: 67.95 kB / 0.5179 GB, free: 58.76 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.00134/1.908, allocations: 0.7591 MB / 0.5187 GB, free: 58 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.41e-07/1.908, allocations: 0 / 0.5187 GB, free: 58 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.00771/1.915, allocations: 2.016 MB / 0.5206 GB, free: 56.11 MB / 362.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.008783/1.924, allocations: 1.685 MB / 0.5223 GB, free: 54.71 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.04005/1.964, allocations: 6.633 MB / 0.5287 GB, free: 48.08 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.053e-05/1.964, allocations: 1.438 kB / 0.5287 GB, free: 48.08 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.01515/1.98, allocations: 2.951 MB / 0.5316 GB, free: 45.12 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005573/1.985, allocations: 0.5791 MB / 0.5322 GB, free: 44.55 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01567/2.001, allocations: 6.621 MB / 0.5387 GB, free: 37.95 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001202/2.002, allocations: 1.639 MB / 0.5403 GB, free: 36.27 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008024/2.003, allocations: 139.4 kB / 0.5404 GB, free: 36.14 MB / 362.7 MB Notification: Performance of SimCode: time 1.382e-06/2.003, allocations: 0 / 0.5404 GB, free: 36.14 MB / 362.7 MB Notification: Performance of Templates: time 0.3596/2.363, allocations: 69.14 MB / 0.6079 GB, free: 100.7 MB / 362.7 MB make -j1 -f Modelica_3.2.1_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.1_cpp_Modelica.Fluid.Examples.InverseParameterizationCalcHelperMain.o OMCppModelica_3.2.1_cpp_Modelica.Fluid.Examples.InverseParameterizationCalcHelperMain.cpp In file included from OMCppModelica_3.2.1_cpp_Modelica.Fluid.Examples.InverseParameterizationCalcHelperMain.cpp:29: ./OMCppModelica_3.2.1_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.1_cpp_Modelica.Fluid.Examples.InverseParameterizationCalcHelperMain.o' failed make: *** [OMCppModelica_3.2.1_cpp_Modelica.Fluid.Examples.InverseParameterizationCalcHelperMain.o] Error 1