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_trunk_cpp_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_laminar") Notification: Performance of loadModel(ModelicaTest): time 2.446/2.446, allocations: 269 MB / 284.1 MB, free: 3.648 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.53e-05/3.527e-05, allocations: 4 kB / 349 MB, free: 10.77 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1931/0.1932, allocations: 61.9 MB / 410.9 MB, free: 12.87 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_laminar): time 0.4649/0.6581, allocations: 59.25 MB / 470.2 MB, free: 8.59 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.04024/0.6984, allocations: 20.35 MB / 490.5 MB, free: 7.984 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002317/0.7008, allocations: 55.56 kB / 490.6 MB, free: 7.93 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003156/0.704, allocations: 0.6258 MB / 491.2 MB, free: 7.301 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0189/0.723, allocations: 4.526 MB / 495.7 MB, free: 2.762 MB / 394.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01319/0.7362, allocations: 3.225 MB / 499 MB, free: 15.53 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.004679/0.7409, allocations: 1.627 MB / 0.4889 GB, free: 13.89 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001733/0.7427, allocations: 0.7066 MB / 0.4895 GB, free: 13.19 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003679/0.7464, allocations: 1.122 MB / 0.4906 GB, free: 12.06 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.036/0.7824, allocations: 14.83 MB / 0.5051 GB, free: 13.22 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.03065/0.8131, allocations: 10.65 MB / 0.5155 GB, free: 2.566 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00374/0.8169, allocations: 500 kB / 0.516 GB, free: 2.078 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001101/0.8181, allocations: 398.8 kB / 0.5164 GB, free: 1.688 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0008257/0.8189, allocations: 164 kB / 0.5165 GB, free: 1.527 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01269/0.8317, allocations: 4.607 MB / 0.521 GB, free: 12.91 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.402e-06/0.8317, allocations: 4 kB / 0.521 GB, free: 12.91 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.284e-06/0.8317, allocations: 3.938 kB / 0.521 GB, free: 12.9 MB / 442.7 MB Notification: Performance of Transformations before backend: time 7.272e-05/0.8318, allocations: 0 / 0.521 GB, free: 12.9 MB / 442.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.01257/0.8444, allocations: 2.426 MB / 0.5234 GB, free: 10.42 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.984e-05/0.8445, allocations: 12.03 kB / 0.5234 GB, free: 10.41 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006709/0.8512, allocations: 0.5875 MB / 0.524 GB, free: 9.82 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002929/0.8542, allocations: 0.9609 MB / 0.5249 GB, free: 8.812 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001806/0.8544, allocations: 90.14 kB / 0.525 GB, free: 8.723 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003899/0.8548, allocations: 107.9 kB / 0.5251 GB, free: 8.617 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008811/0.8636, allocations: 2.248 MB / 0.5273 GB, free: 6.246 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.373e-05/0.8637, allocations: 7.938 kB / 0.5273 GB, free: 6.238 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000272/0.864, allocations: 51.97 kB / 0.5274 GB, free: 6.188 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000187/0.8642, allocations: 86 kB / 0.5275 GB, free: 6.102 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01024/0.8744, allocations: 2.381 MB / 0.5298 GB, free: 3.711 MB / 442.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.0223/0.8968, allocations: 9.25 MB / 0.5388 GB, free: 9.852 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00902/0.9059, allocations: 1.932 MB / 0.5407 GB, free: 7.914 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08666/0.9926, allocations: 24.78 MB / 0.5649 GB, free: 12.2 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.115e-05/0.9927, allocations: 51.55 kB / 0.5649 GB, free: 12.14 MB / 490.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001499/0.9942, allocations: 166.7 kB / 0.5651 GB, free: 11.97 MB / 490.7 MB Notification: Performance of pre-optimization done (n=109): time 5.4e-06/0.9942, allocations: 0 / 0.5651 GB, free: 11.97 MB / 490.7 MB Notification: Performance of matching and sorting (n=109): time 0.03275/1.027, allocations: 4.525 MB / 0.5695 GB, free: 7.418 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001419/1.027, allocations: 218.6 kB / 0.5697 GB, free: 7.156 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001933/1.029, allocations: 0.8405 MB / 0.5706 GB, free: 6.301 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003423/1.03, allocations: 45.7 kB / 0.5706 GB, free: 6.25 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005727/1.03, allocations: 0.5564 MB / 0.5711 GB, free: 5.688 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005891/1.031, allocations: 374.6 kB / 0.5715 GB, free: 5.316 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001474/1.031, allocations: 24 kB / 0.5715 GB, free: 5.293 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001822/1.031, allocations: 362.7 kB / 0.5719 GB, free: 4.93 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002579/1.034, allocations: 0.6623 MB / 0.5725 GB, free: 4.266 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00301/1.037, allocations: 1.033 MB / 0.5735 GB, free: 3.082 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003002/1.04, allocations: 0.772 MB / 0.5743 GB, free: 2.309 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.557e-05/1.04, allocations: 4 kB / 0.5743 GB, free: 2.305 MB / 490.7 MB Notification: Performance of matching and sorting (n=158) (initialization): time 0.008063/1.048, allocations: 2.036 MB / 0.5763 GB, free: 264 kB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001651/1.05, allocations: 3.756 MB / 0.5799 GB, free: 12.21 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.238e-05/1.05, allocations: 8 kB / 0.5799 GB, free: 12.21 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.05591/1.106, allocations: 3.044 MB / 0.5829 GB, free: 9.16 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002245/1.108, allocations: 271.6 kB / 0.5832 GB, free: 8.895 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005042/1.113, allocations: 1.473 MB / 0.5846 GB, free: 7.395 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00267/1.116, allocations: 143.7 kB / 0.5848 GB, free: 7.254 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002819/1.116, allocations: 67.97 kB / 0.5848 GB, free: 7.188 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 1.683e-05/1.116, allocations: 4 kB / 0.5848 GB, free: 7.184 MB / 0.4948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.009156/1.125, allocations: 1.871 MB / 0.5866 GB, free: 5.305 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.328e-05/1.125, allocations: 8 kB / 0.5867 GB, free: 5.297 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001612/1.127, allocations: 205 kB / 0.5869 GB, free: 5.094 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003187/1.13, allocations: 351.5 kB / 0.5872 GB, free: 4.75 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001655/1.132, allocations: 0.7475 MB / 0.5879 GB, free: 3.977 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00228/1.134, allocations: 136 kB / 0.588 GB, free: 3.844 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003101/1.134, allocations: 71.97 kB / 0.5881 GB, free: 3.773 MB / 0.4948 GB 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.001145/1.136, allocations: 349.4 kB / 0.5884 GB, free: 3.422 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004777/1.136, allocations: 130.4 kB / 0.5886 GB, free: 3.293 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01399/1.15, allocations: 5.694 MB / 0.5941 GB, free: 13.56 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.767e-05/1.15, allocations: 67.84 kB / 0.5942 GB, free: 13.5 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.437e-06/1.15, allocations: 0 / 0.5942 GB, free: 13.5 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.194e-05/1.15, allocations: 7.969 kB / 0.5942 GB, free: 13.49 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01928/1.17, allocations: 7.729 MB / 0.6018 GB, free: 5.66 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.867e-05/1.17, allocations: 4 kB / 0.6018 GB, free: 5.656 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001794/1.172, allocations: 203.8 kB / 0.602 GB, free: 5.457 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0495/1.221, allocations: 3.932 MB / 0.6058 GB, free: 1.52 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003478/1.221, allocations: 31.95 kB / 0.6058 GB, free: 1.488 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3787/1.6, allocations: 2.387 MB / 0.6082 GB, free: 174.9 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.42e-06/1.6, allocations: 1.5 kB / 0.6082 GB, free: 174.9 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01149/1.612, allocations: 3.704 MB / 0.6118 GB, free: 174 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001782/1.614, allocations: 0.6416 MB / 0.6124 GB, free: 173.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005713/1.614, allocations: 23.08 kB / 0.6124 GB, free: 173.7 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002106/1.616, allocations: 123.8 kB / 0.6125 GB, free: 173.7 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003868/1.617, allocations: 106.6 kB / 0.6126 GB, free: 173.7 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001693/1.617, allocations: 43.42 kB / 0.6127 GB, free: 173.7 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.002566/1.619, allocations: 1.062 MB / 0.6137 GB, free: 173.3 MB / 0.5105 GB Notification: Performance of sort global known variables: time 7.01e-07/1.62, allocations: 0 / 0.6137 GB, free: 173.3 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.007686/1.627, allocations: 1.81 MB / 0.6155 GB, free: 173.1 MB / 0.5105 GB 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.01255/1.64, allocations: 1.564 MB / 0.617 GB, free: 172.9 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.01216/1.652, allocations: 3.055 MB / 0.62 GB, free: 171.9 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.044e-05/1.652, allocations: 3.75 kB / 0.62 GB, free: 171.9 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.004775/1.657, allocations: 1.488 MB / 0.6215 GB, free: 171.3 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006714/1.664, allocations: 0.6836 MB / 0.6221 GB, free: 171.2 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01203/1.676, allocations: 5.379 MB / 0.6274 GB, free: 168.3 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001712/1.678, allocations: 1.624 MB / 0.629 GB, free: 167.5 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008102/1.678, allocations: 119.1 kB / 0.6291 GB, free: 167.5 MB / 0.5105 GB Notification: Performance of SimCode: time 3.116e-06/1.678, allocations: 0 / 0.6291 GB, free: 167.5 MB / 0.5105 GB Notification: Performance of Templates: time 0.1059/1.784, allocations: 54.33 MB / 0.6821 GB, free: 121.6 MB / 0.5105 GB make -j1 -f ModelicaTest_trunk_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/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 OMCppModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_laminarCalcHelperMain.o OMCppModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_laminarCalcHelperMain.cpp In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_laminarCalcHelperMain.cpp:29: ./OMCppModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_laminarFunctions.cpp:6784:5: error: no matching function for call to 'add_array_scalar' add_array_scalar(c_(2), tmp541, tmp542); ^~~~~~~~~~~~~~~~~~~~~~~~ /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_trunk_cpp_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_laminarCalcHelperMain.o' failed make: *** [OMCppModelicaTest_trunk_cpp_ModelicaTest.Fluid.TestExamplesVariants.InverseParameterization_laminarCalcHelperMain.o] Error 1