Running command: translateModel(Modelica.Media.Examples.ReferenceAir.MoistAir2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir2") Notification: Performance of loadModel(Modelica): time 2.141/2.141, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.865e-05/2.877e-05, allocations: 4 kB / 292.1 MB, free: 8.852 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09318/0.09324, allocations: 50.42 MB / 342.5 MB, free: 6.414 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 15.53/15.62, allocations: 6.123 GB / 6.458 GB, free: 102.3 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002556/15.62, allocations: 76.64 kB / 6.458 GB, free: 102.3 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.058/18.68, allocations: 0.6443 GB / 7.102 GB, free: 35.87 MB / 474.7 MB Notification: Performance of FrontEnd: time 3.535e-06/18.68, allocations: 0 / 7.102 GB, free: 35.87 MB / 474.7 MB Notification: Performance of Transformations before backend: time 3.702e-05/18.68, allocations: 20.56 kB / 7.102 GB, free: 35.87 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.008765/18.69, allocations: 2.327 MB / 7.104 GB, free: 34.22 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.334e-05/18.69, allocations: 9.312 kB / 7.104 GB, free: 34.22 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006284/18.69, allocations: 83.72 kB / 7.104 GB, free: 34.19 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007656/18.69, allocations: 436.7 kB / 7.105 GB, free: 33.81 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.369e-05/18.69, allocations: 51.25 kB / 7.105 GB, free: 33.79 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001271/18.69, allocations: 59.62 kB / 7.105 GB, free: 33.77 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00232/18.69, allocations: 0.7658 MB / 7.106 GB, free: 33.36 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.587e-05/18.69, allocations: 7.859 kB / 7.106 GB, free: 33.36 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000105/18.7, allocations: 27.5 kB / 7.106 GB, free: 33.34 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.528e-05/18.7, allocations: 16.38 kB / 7.106 GB, free: 33.34 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002763/18.7, allocations: 0.968 MB / 7.107 GB, free: 32.92 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01713/18.71, allocations: 12.48 MB / 7.119 GB, free: 20.19 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002311/18.72, allocations: 0.7543 MB / 7.12 GB, free: 19.84 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007541/18.72, allocations: 391.4 kB / 7.12 GB, free: 19.67 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04604/18.76, allocations: 30.73 MB / 7.15 GB, free: 2.59 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.407e-05/18.76, allocations: 47.14 kB / 7.15 GB, free: 2.539 MB / 490.7 MB Notification: Performance of pre-optimization done (n=78): time 4.316e-06/18.76, allocations: 0 / 7.15 GB, free: 2.539 MB / 490.7 MB Notification: Performance of matching and sorting (n=88): time 0.326/19.09, allocations: 3.012 MB / 7.153 GB, free: 57.77 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.392e-05/19.09, allocations: 65.34 kB / 7.153 GB, free: 57.7 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005807/19.09, allocations: 315 kB / 7.153 GB, free: 57.6 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001867/19.09, allocations: 44.27 kB / 7.153 GB, free: 57.57 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001497/19.09, allocations: 287.9 kB / 7.154 GB, free: 57.38 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003119/19.09, allocations: 307.8 kB / 7.154 GB, free: 57.22 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.554e-05/19.09, allocations: 18 kB / 7.154 GB, free: 57.22 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 9.648e-05/19.09, allocations: 346.3 kB / 7.154 GB, free: 56.91 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008896/19.09, allocations: 346.5 kB / 7.155 GB, free: 56.91 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001475/19.09, allocations: 466.5 kB / 7.155 GB, free: 56.82 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001352/19.1, allocations: 417.7 kB / 7.156 GB, free: 56.81 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.466e-06/19.1, allocations: 0 / 7.156 GB, free: 56.81 MB / 490.7 MB Notification: Performance of matching and sorting (n=106) (initialization): time 0.004034/19.1, allocations: 1.036 MB / 7.157 GB, free: 56.71 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.58e-05/19.1, allocations: 9.875 kB / 7.157 GB, free: 56.71 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.713e-05/19.1, allocations: 5.859 kB / 7.157 GB, free: 56.71 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001201/19.1, allocations: 169.8 kB / 7.157 GB, free: 56.68 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001239/19.1, allocations: 192.4 kB / 7.157 GB, free: 56.68 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002781/19.11, allocations: 3.909 MB / 7.161 GB, free: 53.01 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008843/19.11, allocations: 61.81 kB / 7.161 GB, free: 53.01 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001752/19.11, allocations: 51.12 kB / 7.161 GB, free: 53.01 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {2,2} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0002956/19.11, allocations: 158.9 kB / 7.161 GB, free: 52.9 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005549/19.11, allocations: 61.34 kB / 7.161 GB, free: 52.88 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003636/19.11, allocations: 1.295 MB / 7.162 GB, free: 52.73 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.66e-05/19.11, allocations: 9.031 kB / 7.162 GB, free: 52.73 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.897e-06/19.11, allocations: 5.625 kB / 7.162 GB, free: 52.73 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002636/19.11, allocations: 1.31 MB / 7.164 GB, free: 52.07 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004902/19.12, allocations: 1.973 MB / 7.165 GB, free: 51.71 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.707e-06/19.12, allocations: 2.812 kB / 7.165 GB, free: 51.71 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00111/19.12, allocations: 172.5 kB / 7.166 GB, free: 51.71 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003006/19.12, allocations: 311.3 kB / 7.166 GB, free: 51.68 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001923/19.12, allocations: 29.7 kB / 7.166 GB, free: 51.68 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007949/19.12, allocations: 1.297 MB / 7.167 GB, free: 50.51 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.013e-06/19.12, allocations: 0.9844 kB / 7.167 GB, free: 50.51 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003952/19.13, allocations: 1.42 MB / 7.169 GB, free: 50.25 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003004/19.13, allocations: 143.1 kB / 7.169 GB, free: 50.13 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001535/19.13, allocations: 21.92 kB / 7.169 GB, free: 50.13 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007871/19.13, allocations: 48.31 kB / 7.169 GB, free: 50.13 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001544/19.13, allocations: 58.45 kB / 7.169 GB, free: 50.13 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001727/19.13, allocations: 55.06 kB / 7.169 GB, free: 50.13 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0004547/19.13, allocations: 279.8 kB / 7.169 GB, free: 50.04 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.847e-06/19.13, allocations: 0 / 7.169 GB, free: 50.04 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.009506/19.14, allocations: 2.275 MB / 7.171 GB, free: 50.04 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 6 (volume.medium.p,volume.medium.Xi[1],volume.medium.T,volume1.medium.p,volume1.medium.Xi[1],volume1.medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (87): * Single equations (assignments): 85 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {2,2} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0158/19.16, allocations: 3.203 MB / 7.175 GB, free: 49.86 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.00297/19.16, allocations: 1.124 MB / 7.176 GB, free: 49.63 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 7.312e-06/19.16, allocations: 1.031 kB / 7.176 GB, free: 49.63 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001317/19.16, allocations: 498.1 kB / 7.176 GB, free: 49.61 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002306/19.16, allocations: 362.7 kB / 7.176 GB, free: 49.59 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003222/19.17, allocations: 1.434 MB / 7.178 GB, free: 49.31 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004686/19.17, allocations: 0.9309 MB / 7.179 GB, free: 48.61 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004737/19.17, allocations: 93.92 kB / 7.179 GB, free: 48.6 MB / 490.7 MB Notification: Performance of SimCode: time 1.605e-06/19.17, allocations: 0 / 7.179 GB, free: 48.6 MB / 490.7 MB Notification: Performance of Templates: time 0.1012/19.27, allocations: 61.41 MB / 7.239 GB, free: 43.78 MB / 490.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir2.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 -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -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.Media.Examples.ReferenceAir.MoistAir2CalcHelperMain.o OMCppModelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir2CalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir2CalcHelperMain.cpp:15: ./OMCppModelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir2Types.h:254:32: error: non-type template argument evaluates to -1, which cannot be narrowed to type 'std::size_t' (aka 'unsigned long') [-Wc++11-narrowing] typedef StatArrayDim1< double, -1> /*testarray2*/ Modelica_Media_Air_ReferenceMoistAir_massFractionSaturationRetType /* functionHeaderRegularFunction1 */; ^ ./OMCppModelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir2Types.h:255:31: error: non-type template argument evaluates to -1, which cannot be narrowed to type 'std::size_t' (aka 'unsigned long') [-Wc++11-narrowing] typedef StatArrayDim1& Modelica_Media_Air_ReferenceMoistAir_massFractionSaturationRefRetType /* functionHeaderRegularFunction1 */; ^ In file included from OMCppModelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir2CalcHelperMain.cpp:8: In file included from /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/Core/Modelica.h:205: /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/Core/Math/Array.h:822:12: error: array is too large (18446744073709551615 elements) T _array[external || nelems == 0? 1: nelems]; // static array ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/Core/Math/Array.h:833:30: note: in instantiation of template class 'StatArray' requested here class StatArrayDim1 : public StatArray ^ ./OMCppModelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir2Functions.h:584:70: note: in instantiation of template class 'StatArrayDim1' requested here Modelica_Media_Air_ReferenceMoistAir_massFractionSaturationRetType _Modelica_Media_Air_ReferenceMoistAir_massFractionSaturation; ^ In file included from OMCppModelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir2CalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir2Functions.cpp:1402:8: error: no matching member function for call to 'assign' X_.assign(tmp167); ~~~^~~~~~ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/Core/Math/Array.h:1413:16: note: candidate function not viable: no known conversion from 'Modelica_Media_Air_ReferenceMoistAir_massFractionSaturationRetType' (aka 'StatArrayDim1') to 'const BaseArray' for 1st argument virtual void assign(const BaseArray& b) ^ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/Core/Math/Array.h:1419:16: note: candidate function not viable: no known conversion from 'Modelica_Media_Air_ReferenceMoistAir_massFractionSaturationRetType' (aka 'StatArrayDim1') to 'const double *' for 1st argument virtual void assign(const T* data) ^ /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/Core/Math/Array.h:1425:16: note: candidate function not viable: no known conversion from 'Modelica_Media_Air_ReferenceMoistAir_massFractionSaturationRetType' (aka 'StatArrayDim1') to 'const double' for 1st argument virtual void assign(const T& value) ^ In file included from OMCppModelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir2CalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir2Functions.cpp:1443:10: error: no member named 'assign' in 'StatArrayDim1' output.assign(Xsat_); ~~~~~~ ^ In file included from OMCppModelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir2CalcHelperMain.cpp:8: In file included from /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/Core/Modelica.h:205: /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/Core/Math/Array.h:878:6: error: type 'StatArray' is not a direct or virtual base of 'StatArrayDim1' :StatArray() {} ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./OMCppModelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir2Functions.cpp:1396:86: note: in instantiation of member function 'StatArrayDim1::StatArrayDim1' requested here Modelica_Media_Air_ReferenceMoistAir_massFractionSaturationRetType /* undefined */ tmp167; ^ 6 errors generated. : recipe for target 'OMCppModelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir2CalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir2CalcHelperMain.o] Error 1