Running command: translateModel(Modelica.Fluid.Examples.TraceSubstances.RoomCO2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.Xi.1.|volume.medium.p",fileNamePrefix="Modelica_trunk_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2") Notification: Performance of loadModel(Modelica): time 2.149/2.149, allocations: 224.7 MB / 241.1 MB, free: 1.703 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 2.825e-05/2.817e-05, allocations: 0 / 294.6 MB, free: 11.42 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1235/0.1236, allocations: 50.41 MB / 345 MB, free: 8.961 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Fluid.Examples.TraceSubstances.RoomCO2): time 0.6297/0.7533, allocations: 160.2 MB / 0.4933 GB, free: 10.36 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.02474/0.7781, allocations: 9.445 MB / 0.5025 GB, free: 0.8906 MB / 394.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002912/0.7811, allocations: 27.81 kB / 0.5025 GB, free: 0.8633 MB / 394.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001871/0.7831, allocations: 350.3 kB / 0.5029 GB, free: 0.5195 MB / 394.7 MB Notification: Performance of NFTyping.typeBindings: time 0.009159/0.7923, allocations: 2.029 MB / 0.5049 GB, free: 14.49 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01173/0.804, allocations: 1.656 MB / 0.5065 GB, free: 12.83 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.003523/0.8076, allocations: 1.108 MB / 0.5076 GB, free: 11.71 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001398/0.809, allocations: 0.5512 MB / 0.5081 GB, free: 11.16 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007493/0.8166, allocations: 1.882 MB / 0.5099 GB, free: 9.277 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003159/0.8198, allocations: 0.7093 MB / 0.5106 GB, free: 8.566 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01514/0.835, allocations: 5.173 MB / 0.5157 GB, free: 3.387 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001982/0.837, allocations: 208 kB / 0.5159 GB, free: 3.184 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001131/0.8382, allocations: 439 kB / 0.5163 GB, free: 2.754 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007082/0.8389, allocations: 128 kB / 0.5164 GB, free: 2.629 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00915/0.8481, allocations: 2.92 MB / 0.5193 GB, free: 15.7 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.8482, allocations: 0 / 0.5193 GB, free: 15.7 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.444e-06/0.8482, allocations: 0 / 0.5193 GB, free: 15.7 MB / 426.7 MB Notification: Performance of Transformations before backend: time 4.335e-05/0.8482, allocations: 0 / 0.5193 GB, free: 15.7 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 228 * Number of variables: 228 Notification: Performance of Generate backend data structure: time 0.006527/0.8548, allocations: 1.715 MB / 0.5209 GB, free: 13.93 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.964e-05/0.8549, allocations: 12.03 kB / 0.521 GB, free: 13.91 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008079/0.8557, allocations: 130.7 kB / 0.5211 GB, free: 13.79 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001928/0.8576, allocations: 0.6621 MB / 0.5217 GB, free: 13.08 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002085/0.8579, allocations: 133.4 kB / 0.5219 GB, free: 12.94 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002681/0.8581, allocations: 91.98 kB / 0.5219 GB, free: 12.85 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003859/0.862, allocations: 1.44 MB / 0.5233 GB, free: 11.34 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.549e-05/0.8621, allocations: 4 kB / 0.5234 GB, free: 11.34 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001977/0.8623, allocations: 39.98 kB / 0.5234 GB, free: 11.3 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001515/0.8625, allocations: 69.95 kB / 0.5235 GB, free: 11.23 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004128/0.8666, allocations: 1.468 MB / 0.5249 GB, free: 9.758 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.01485/0.8815, allocations: 6.4 MB / 0.5311 GB, free: 2.934 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003334/0.8849, allocations: 0.9837 MB / 0.5321 GB, free: 1.945 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002067/0.887, allocations: 1.797 MB / 0.5339 GB, free: 15.76 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.362e-05/0.8871, allocations: 47.56 kB / 0.5339 GB, free: 15.71 MB / 442.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0008377/0.888, allocations: 102.9 kB / 0.534 GB, free: 15.61 MB / 442.7 MB Notification: Performance of pre-optimization done (n=84): time 4.499e-06/0.888, allocations: 0 / 0.534 GB, free: 15.61 MB / 442.7 MB Notification: Performance of matching and sorting (n=96): time 0.03095/0.9189, allocations: 4.947 MB / 0.5388 GB, free: 10.61 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.627e-05/0.9191, allocations: 111.8 kB / 0.5389 GB, free: 10.48 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001967/0.9211, allocations: 0.6909 MB / 0.5396 GB, free: 9.781 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003865/0.9215, allocations: 45.7 kB / 0.5397 GB, free: 9.73 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005891/0.9221, allocations: 477.6 kB / 0.5401 GB, free: 9.258 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006564/0.9228, allocations: 343 kB / 0.5404 GB, free: 8.918 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000182/0.923, allocations: 28 kB / 0.5405 GB, free: 8.891 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.000231/0.9232, allocations: 358.8 kB / 0.5408 GB, free: 8.531 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003063/0.9263, allocations: 0.6116 MB / 0.5414 GB, free: 7.918 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003952/0.9303, allocations: 0.9459 MB / 0.5423 GB, free: 6.824 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003957/0.9343, allocations: 0.7949 MB / 0.5431 GB, free: 6.012 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.727e-05/0.9344, allocations: 3.953 kB / 0.5431 GB, free: 6.008 MB / 442.7 MB Notification: Performance of matching and sorting (n=155) (initialization): time 0.009238/0.9437, allocations: 1.883 MB / 0.5449 GB, free: 4.105 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.002441/0.9461, allocations: 4.06 MB / 0.5489 GB, free: 15.72 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.804e-05/0.9462, allocations: 19.94 kB / 0.5489 GB, free: 15.7 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003625/0.9499, allocations: 312.6 kB / 0.5492 GB, free: 15.39 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00303/0.953, allocations: 275.5 kB / 0.5495 GB, free: 15.12 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003542/0.9565, allocations: 0.9154 MB / 0.5504 GB, free: 14.18 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002804/0.9594, allocations: 107.8 kB / 0.5505 GB, free: 14.07 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003509/0.9597, allocations: 75.97 kB / 0.5506 GB, free: 14 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.903e-05/0.9598, allocations: 4 kB / 0.5506 GB, free: 14 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00896/0.9687, allocations: 1.804 MB / 0.5523 GB, free: 12.18 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.007e-05/0.9689, allocations: 16.12 kB / 0.5523 GB, free: 12.16 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003275/0.9721, allocations: 316.5 kB / 0.5526 GB, free: 11.85 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003052/0.9752, allocations: 271.6 kB / 0.5529 GB, free: 11.58 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003759/0.979, allocations: 0.9231 MB / 0.5538 GB, free: 10.63 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002477/0.9816, allocations: 103.8 kB / 0.5539 GB, free: 10.53 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003493/0.9819, allocations: 71.97 kB / 0.554 GB, free: 10.46 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 46 * Number of states: 0 () * Number of discrete variables: 6 (traceVolume.ind,traceSource.ind,volume.regularFlow[1],volume.regularFlow[2],volume.inFlow[2],volume.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (148): * Single equations (assignments): 145 * Array equations: 0 * Algorithm blocks: 2 * 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 {2 6} Notification: Performance of prepare postOptimizeDAE: time 0.001333/0.9833, allocations: 349.2 kB / 0.5543 GB, free: 10.11 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000489/0.9838, allocations: 98.88 kB / 0.5544 GB, free: 10.01 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009425/0.9932, allocations: 2.014 MB / 0.5564 GB, free: 7.969 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.439e-05/0.9933, allocations: 12 kB / 0.5564 GB, free: 7.957 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.198e-05/0.9934, allocations: 0 / 0.5564 GB, free: 7.957 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.104e-05/0.9934, allocations: 7.969 kB / 0.5564 GB, free: 7.949 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01153/1.005, allocations: 3.13 MB / 0.5594 GB, free: 4.723 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.615e-05/1.005, allocations: 7.938 kB / 0.5594 GB, free: 4.715 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001835/1.007, allocations: 183.8 kB / 0.5596 GB, free: 4.535 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003203/1.01, allocations: 380.6 kB / 0.56 GB, free: 4.16 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003083/1.01, allocations: 39.97 kB / 0.56 GB, free: 4.121 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002621/1.013, allocations: 0.888 MB / 0.5609 GB, free: 3.207 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.485e-05/1.013, allocations: 8.031 kB / 0.5609 GB, free: 3.199 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008003/1.021, allocations: 2.486 MB / 0.5633 GB, free: 0.6289 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001243/1.022, allocations: 347.6 kB / 0.5637 GB, free: 276 kB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003796/1.023, allocations: 27.98 kB / 0.5637 GB, free: 248 kB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001887/1.025, allocations: 87.78 kB / 0.5638 GB, free: 160 kB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002422/1.025, allocations: 76.83 kB / 0.5638 GB, free: 80 kB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000213/1.025, allocations: 51.91 kB / 0.5639 GB, free: 28 kB / 458.7 MB Notification: Performance of sorting global known variables: time 0.3/1.325, allocations: 0.5465 MB / 0.5644 GB, free: 174.8 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.523e-06/1.325, allocations: 0 / 0.5644 GB, free: 174.8 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.005331/1.331, allocations: 1.07 MB / 0.5655 GB, free: 174.8 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (volume.medium.p,volume.medium.Xi[1],volume.medium.T,volume.mC_scaled[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (99): * Single equations (assignments): 96 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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 {2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.004415/1.335, allocations: 0.9577 MB / 0.5664 GB, free: 174.6 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.009174/1.344, allocations: 2.636 MB / 0.569 GB, free: 174.2 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 1.239e-05/1.344, allocations: 2.656 kB / 0.569 GB, free: 174.2 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002672/1.347, allocations: 0.7318 MB / 0.5697 GB, free: 174 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004434/1.352, allocations: 0.49 MB / 0.5702 GB, free: 173.9 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009037/1.361, allocations: 2.99 MB / 0.5731 GB, free: 172.5 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009446/1.362, allocations: 1.143 MB / 0.5742 GB, free: 171.7 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009112/1.363, allocations: 126.7 kB / 0.5743 GB, free: 171.7 MB / 458.7 MB Notification: Performance of SimCode: time 1.182e-06/1.363, allocations: 0 / 0.5743 GB, free: 171.7 MB / 458.7 MB Notification: Performance of Templates: time 0.06384/1.426, allocations: 31.49 MB / 0.6051 GB, free: 147.6 MB / 458.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.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.TraceSubstances.RoomCO2CalcHelperMain.o OMCppModelica_trunk_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2CalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2CalcHelperMain.cpp:29: ./OMCppModelica_trunk_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2Functions.cpp:1474:34: error: use of undeclared identifier 'volume_' tmp315.push_back(Slice(1, 1, volume_.Medium_.nXi_)); ^ In file included from OMCppModelica_trunk_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2CalcHelperMain.cpp:30: ./OMCppModelica_trunk_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2Initialize.cpp:687:27: error: use of undeclared identifier 'pipe_P_Medium_P_nXi_' int tmp8_num_elems =(pipe_P_Medium_P_nXi_-1)/1+1; ^ ./OMCppModelica_trunk_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2Initialize.cpp:691:27: error: use of undeclared identifier 'pipe_P_Medium_P_nXi_' int tmp9_num_elems =(pipe_P_Medium_P_nXi_-1)/1+1; ^ ./OMCppModelica_trunk_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2Initialize.cpp:695:231: error: no matching function for call to object of type 'StatArrayDim1' _functions->Modelica_Math_Nonlinear_solveOneNonlinearEquation(_Closure0_f__nonlinear(_functions, /*box double*/_pipe_P_flowModel_P_states2_P_p_, /*box double*/_boundary4_P_ports1_P_h_outflow_, /*box BaseArray*//*t1*/ _boundary4_P_X_(/*t2*/tmp8)(/*t2*/tmp9) ), 190.0, 647.0, 1e-13, tmp10); ^~~~~~~~~~~~~~~ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsicpp/Core/Math/Array.h:986:16: note: candidate function not viable: no known conversion from 'DynArrayDim1' to 'const vector' (aka 'const vector') for 1st argument virtual T& operator()(const vector& idx) ^ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsicpp/Core/Math/Array.h:995:23: note: candidate function not viable: no known conversion from 'DynArrayDim1' to 'size_t' (aka 'unsigned long') for 1st argument inline virtual T& operator()(size_t index) ^ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsicpp/Core/Math/Array.h:977:22: note: candidate function not viable: no known conversion from 'DynArrayDim1' to 'const vector' (aka 'const vector') for 1st argument virtual const T& operator()(const vector& idx) const ^ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsicpp/Core/Math/Array.h:1004:29: note: candidate function not viable: no known conversion from 'DynArrayDim1' to 'size_t' (aka 'unsigned long') for 1st argument inline virtual const T& operator()(size_t index) const ^ In file included from OMCppModelica_trunk_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2CalcHelperMain.cpp:30: ./OMCppModelica_trunk_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2Initialize.cpp:1087:28: error: use of undeclared identifier 'pipe_P_Medium_P_nXi_' int tmp28_num_elems =(pipe_P_Medium_P_nXi_-1)/1+1; ^ ./OMCppModelica_trunk_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2Initialize.cpp:1091:202: error: no matching function for call to object of type 'StatArrayDim1' _functions->Modelica_Math_Nonlinear_solveOneNonlinearEquation(_Closure1_f__nonlinear(_functions, /*box double*/__z[3], /*box double*/_volume_P_ports2_P_h_outflow_, /*box BaseArray*//*t1*/ tmp27(/*t2*/tmp28) ), 190.0, 647.0, 1e-13, tmp29); ^~~~~ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsicpp/Core/Math/Array.h:986:16: note: candidate function not viable: no known conversion from 'DynArrayDim1' to 'const vector' (aka 'const vector') for 1st argument virtual T& operator()(const vector& idx) ^ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsicpp/Core/Math/Array.h:995:23: note: candidate function not viable: no known conversion from 'DynArrayDim1' to 'size_t' (aka 'unsigned long') for 1st argument inline virtual T& operator()(size_t index) ^ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsicpp/Core/Math/Array.h:977:22: note: candidate function not viable: no known conversion from 'DynArrayDim1' to 'const vector' (aka 'const vector') for 1st argument virtual const T& operator()(const vector& idx) const ^ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsicpp/Core/Math/Array.h:1004:29: note: candidate function not viable: no known conversion from 'DynArrayDim1' to 'size_t' (aka 'unsigned long') for 1st argument inline virtual const T& operator()(size_t index) const ^ In file included from OMCppModelica_trunk_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2CalcHelperMain.cpp:36: ./OMCppModelica_trunk_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.cpp:156:26: error: use of undeclared identifier 'pipe_P_Medium_P_nXi_' int tmp164_num_elems =(pipe_P_Medium_P_nXi_-1)/1+1; ^ ./OMCppModelica_trunk_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.cpp:160:26: error: use of undeclared identifier 'pipe_P_Medium_P_nXi_' int tmp165_num_elems =(pipe_P_Medium_P_nXi_-1)/1+1; ^ ./OMCppModelica_trunk_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.cpp:164:228: error: no matching function for call to object of type 'StatArrayDim1' _functions->Modelica_Math_Nonlinear_solveOneNonlinearEquation(_Closure2_f__nonlinear(_functions, /*box double*/_pipe_P_flowModel_P_states2_P_p_, /*box double*/_boundary4_P_ports1_P_h_outflow_, /*box BaseArray*//*t1*/ _boundary4_P_X_(/*t2*/tmp164)(/*t2*/tmp165) ), 190.0, 647.0, 1e-13, tmp166); ^~~~~~~~~~~~~~~ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsicpp/Core/Math/Array.h:986:16: note: candidate function not viable: no known conversion from 'DynArrayDim1' to 'const vector' (aka 'const vector') for 1st argument virtual T& operator()(const vector& idx) ^ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsicpp/Core/Math/Array.h:995:23: note: candidate function not viable: no known conversion from 'DynArrayDim1' to 'size_t' (aka 'unsigned long') for 1st argument inline virtual T& operator()(size_t index) ^ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsicpp/Core/Math/Array.h:977:22: note: candidate function not viable: no known conversion from 'DynArrayDim1' to 'const vector' (aka 'const vector') for 1st argument virtual const T& operator()(const vector& idx) const ^ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsicpp/Core/Math/Array.h:1004:29: note: candidate function not viable: no known conversion from 'DynArrayDim1' to 'size_t' (aka 'unsigned long') for 1st argument inline virtual const T& operator()(size_t index) const ^ In file included from OMCppModelica_trunk_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2CalcHelperMain.cpp:36: ./OMCppModelica_trunk_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.cpp:387:26: error: use of undeclared identifier 'pipe_P_Medium_P_nXi_' int tmp178_num_elems =(pipe_P_Medium_P_nXi_-1)/1+1; ^ ./OMCppModelica_trunk_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2.cpp:391:199: error: no matching function for call to object of type 'StatArrayDim1' _functions->Modelica_Math_Nonlinear_solveOneNonlinearEquation(_Closure3_f__nonlinear(_functions, /*box double*/__z[3], /*box double*/_volume_P_ports2_P_h_outflow_, /*box BaseArray*//*t1*/ tmp177(/*t2*/tmp178) ), 190.0, 647.0, 1e-13, tmp179); ^~~~~~ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsicpp/Core/Math/Array.h:986:16: note: candidate function not viable: no known conversion from 'DynArrayDim1' to 'const vector' (aka 'const vector') for 1st argument virtual T& operator()(const vector& idx) ^ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsicpp/Core/Math/Array.h:995:23: note: candidate function not viable: no known conversion from 'DynArrayDim1' to 'size_t' (aka 'unsigned long') for 1st argument inline virtual T& operator()(size_t index) ^ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsicpp/Core/Math/Array.h:977:22: note: candidate function not viable: no known conversion from 'DynArrayDim1' to 'const vector' (aka 'const vector') for 1st argument virtual const T& operator()(const vector& idx) const ^ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/omsicpp/Core/Math/Array.h:1004:29: note: candidate function not viable: no known conversion from 'DynArrayDim1' to 'size_t' (aka 'unsigned long') for 1st argument inline virtual const T& operator()(size_t index) const ^ 11 errors generated. : recipe for target 'OMCppModelica_trunk_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2CalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica.Fluid.Examples.TraceSubstances.RoomCO2CalcHelperMain.o] Error 1