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_trunk_cpp_Modelica.Fluid.Examples.InverseParameterization") Notification: Performance of loadModel(Modelica): time 2.378/2.378, allocations: 224.7 MB / 241.1 MB, free: 1.672 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 3.03e-05/3.027e-05, allocations: 4 kB / 294.6 MB, free: 11.4 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.116/0.1161, allocations: 50.41 MB / 345 MB, free: 8.945 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.InverseParameterization): time 0.405/0.5211, allocations: 59.22 MB / 404.2 MB, free: 6.148 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.03825/0.5594, allocations: 20.34 MB / 424.5 MB, free: 5.914 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002255/0.5618, allocations: 51.12 kB / 424.6 MB, free: 5.914 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002248/0.564, allocations: 0.6331 MB / 425.2 MB, free: 5.902 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01935/0.5834, allocations: 4.514 MB / 429.7 MB, free: 5.805 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01306/0.5965, allocations: 3.222 MB / 433 MB, free: 5.461 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.004594/0.6011, allocations: 1.63 MB / 434.6 MB, free: 5.219 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001652/0.6028, allocations: 0.7181 MB / 435.3 MB, free: 4.938 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003731/0.6066, allocations: 1.114 MB / 436.4 MB, free: 4.73 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.03213/0.6388, allocations: 14.86 MB / 451.3 MB, free: 13.51 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03177/0.6706, allocations: 10.65 MB / 461.9 MB, free: 3.25 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003829/0.6745, allocations: 0.4921 MB / 462.4 MB, free: 2.758 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001122/0.6757, allocations: 392.3 kB / 462.8 MB, free: 2.379 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009451/0.6766, allocations: 164 kB / 463 MB, free: 2.219 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01341/0.69, allocations: 4.602 MB / 467.6 MB, free: 13.89 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.461e-06/0.6901, allocations: 0 / 467.6 MB, free: 13.89 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.525e-06/0.6901, allocations: 0 / 467.6 MB, free: 13.89 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.783e-05/0.6902, allocations: 0 / 467.6 MB, free: 13.89 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.01273/0.7029, allocations: 2.425 MB / 470 MB, free: 11.43 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.286e-05/0.703, allocations: 8.031 kB / 470 MB, free: 11.42 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006612/0.7096, allocations: 0.5902 MB / 470.6 MB, free: 10.83 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002958/0.7126, allocations: 0.9588 MB / 471.5 MB, free: 9.855 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001708/0.7129, allocations: 96.27 kB / 471.6 MB, free: 9.766 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003759/0.7132, allocations: 107.1 kB / 471.7 MB, free: 9.664 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009237/0.7225, allocations: 2.254 MB / 474 MB, free: 7.305 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.087e-05/0.7226, allocations: 0 / 474 MB, free: 7.305 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002867/0.7229, allocations: 48.22 kB / 474 MB, free: 7.262 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001935/0.7231, allocations: 86 kB / 474.1 MB, free: 7.176 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01089/0.734, allocations: 2.381 MB / 476.5 MB, free: 4.785 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.02292/0.757, allocations: 9.25 MB / 485.8 MB, free: 11 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008895/0.7659, allocations: 1.932 MB / 487.7 MB, free: 9.066 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08822/0.8542, allocations: 24.78 MB / 0.5005 GB, free: 13.36 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.36e-05/0.8543, allocations: 51.52 kB / 0.5005 GB, free: 13.3 MB / 410.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001432/0.8558, allocations: 177.6 kB / 0.5007 GB, free: 13.13 MB / 410.7 MB Notification: Performance of pre-optimization done (n=109): time 4.358e-06/0.8558, allocations: 0 / 0.5007 GB, free: 13.13 MB / 410.7 MB Notification: Performance of matching and sorting (n=109): time 0.03248/0.8883, allocations: 4.521 MB / 0.5051 GB, free: 8.59 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001703/0.8885, allocations: 222.6 kB / 0.5053 GB, free: 8.324 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001926/0.8904, allocations: 0.8443 MB / 0.5061 GB, free: 7.465 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00037/0.8908, allocations: 41.7 kB / 0.5062 GB, free: 7.418 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005983/0.8914, allocations: 0.5579 MB / 0.5067 GB, free: 6.859 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006094/0.8921, allocations: 369.5 kB / 0.5071 GB, free: 6.5 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001561/0.8922, allocations: 24 kB / 0.5071 GB, free: 6.477 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0002253/0.8925, allocations: 362.7 kB / 0.5074 GB, free: 6.113 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002622/0.8951, allocations: 0.6662 MB / 0.5081 GB, free: 5.449 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003089/0.8982, allocations: 1.021 MB / 0.5091 GB, free: 4.285 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002995/0.9013, allocations: 0.7759 MB / 0.5098 GB, free: 3.508 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.649e-05/0.9013, allocations: 4 kB / 0.5098 GB, free: 3.504 MB / 410.7 MB Notification: Performance of matching and sorting (n=158) (initialization): time 0.007642/0.909, allocations: 2.036 MB / 0.5118 GB, free: 1.461 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00178/0.9108, allocations: 3.752 MB / 0.5155 GB, free: 13.41 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.333e-05/0.9109, allocations: 15.95 kB / 0.5155 GB, free: 13.4 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0561/0.967, allocations: 3.022 MB / 0.5185 GB, free: 10.38 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002199/0.9693, allocations: 283.6 kB / 0.5187 GB, free: 10.1 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005088/0.9744, allocations: 1.479 MB / 0.5202 GB, free: 8.594 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002702/0.9772, allocations: 135.8 kB / 0.5203 GB, free: 8.461 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002693/0.9775, allocations: 79.89 kB / 0.5204 GB, free: 8.383 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.685e-05/0.9775, allocations: 4 kB / 0.5204 GB, free: 8.379 MB / 426.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008884/0.9864, allocations: 1.87 MB / 0.5222 GB, free: 6.512 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.855e-05/0.9865, allocations: 8.844 kB / 0.5222 GB, free: 6.504 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001536/0.988, allocations: 212.8 kB / 0.5224 GB, free: 6.293 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003089/0.9912, allocations: 343.5 kB / 0.5227 GB, free: 5.957 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001607/0.9928, allocations: 0.7513 MB / 0.5235 GB, free: 5.18 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002074/0.9949, allocations: 139.8 kB / 0.5236 GB, free: 5.043 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002311/0.9952, allocations: 67.98 kB / 0.5237 GB, free: 4.977 MB / 426.7 MB 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.001068/0.9962, allocations: 353.3 kB / 0.524 GB, free: 4.621 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004297/0.9967, allocations: 126.5 kB / 0.5241 GB, free: 4.496 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01303/1.01, allocations: 5.7 MB / 0.5297 GB, free: 14.77 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.746e-05/1.01, allocations: 59.91 kB / 0.5298 GB, free: 14.71 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.988e-06/1.01, allocations: 4 kB / 0.5298 GB, free: 14.71 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.556e-05/1.01, allocations: 7.969 kB / 0.5298 GB, free: 14.7 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01765/1.028, allocations: 7.726 MB / 0.5373 GB, free: 6.914 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.309e-05/1.028, allocations: 0 / 0.5373 GB, free: 6.914 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001643/1.029, allocations: 207.8 kB / 0.5375 GB, free: 6.711 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.04843/1.078, allocations: 3.927 MB / 0.5414 GB, free: 2.777 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003069/1.078, allocations: 32.05 kB / 0.5414 GB, free: 2.746 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005396/1.084, allocations: 2.395 MB / 0.5437 GB, free: 332 kB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.066e-06/1.084, allocations: 0 / 0.5437 GB, free: 332 kB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009801/1.093, allocations: 3.703 MB / 0.5473 GB, free: 12.55 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001519/1.095, allocations: 0.6489 MB / 0.548 GB, free: 11.88 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004288/1.095, allocations: 31.83 kB / 0.548 GB, free: 11.85 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001894/1.097, allocations: 123.8 kB / 0.5481 GB, free: 11.73 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003212/1.098, allocations: 101.2 kB / 0.5482 GB, free: 11.63 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001595/1.098, allocations: 43.98 kB / 0.5483 GB, free: 11.59 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.002329/1.1, allocations: 1.062 MB / 0.5493 GB, free: 10.53 MB / 458.7 MB Notification: Performance of sort global known variables: time 6.21e-07/1.1, allocations: 0 / 0.5493 GB, free: 10.53 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.006828/1.107, allocations: 1.811 MB / 0.5511 GB, free: 8.719 MB / 458.7 MB 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.007825/1.115, allocations: 1.551 MB / 0.5526 GB, free: 7.297 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.01171/1.127, allocations: 3.043 MB / 0.5556 GB, free: 4.254 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.25e-05/1.127, allocations: 4 kB / 0.5556 GB, free: 4.25 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004571/1.131, allocations: 1.492 MB / 0.557 GB, free: 2.754 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006077/1.137, allocations: 0.6893 MB / 0.5577 GB, free: 2.066 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3339/1.471, allocations: 5.371 MB / 0.5629 GB, free: 114.5 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00186/1.473, allocations: 1.622 MB / 0.5645 GB, free: 113.7 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007704/1.474, allocations: 119.1 kB / 0.5646 GB, free: 113.7 MB / 458.7 MB Notification: Performance of SimCode: time 1.653e-06/1.474, allocations: 0.7812 kB / 0.5646 GB, free: 113.7 MB / 458.7 MB Notification: Performance of Templates: time 0.1077/1.582, allocations: 54.27 MB / 0.6176 GB, free: 81.15 MB / 458.7 MB make -j1 -f Modelica_trunk_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/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 OMCppModelica_trunk_cpp_Modelica.Fluid.Examples.InverseParameterizationCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica.Fluid.Examples.InverseParameterizationCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica.Fluid.Examples.InverseParameterizationCalcHelperMain.cpp:29: ./OMCppModelica_trunk_cpp_Modelica.Fluid.Examples.InverseParameterizationFunctions.cpp:450:5: error: no matching function for call to 'add_array_scalar' add_array_scalar(c_(2), tmp276, tmp277); ^~~~~~~~~~~~~~~~~~~~~~~~ /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_trunk_cpp_Modelica.Fluid.Examples.InverseParameterizationCalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica.Fluid.Examples.InverseParameterizationCalcHelperMain.o] Error 1