Running command: translateModel(Modelica.Media.Examples.ReferenceAir.MoistAir,tolerance=1e-05,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir") Notification: Performance of loadModel(Modelica): time 1.924/1.924, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 2.462e-05/2.47e-05, allocations: 0 / 292.1 MB, free: 8.82 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09229/0.09233, allocations: 50.41 MB / 342.5 MB, free: 6.391 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 15.81/15.9, allocations: 6.205 GB / 6.54 GB, free: 76.34 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002352/15.9, allocations: 77.64 kB / 6.54 GB, free: 76.3 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.9631/16.86, allocations: 202 MB / 6.737 GB, free: 50.42 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.046e-06/16.86, allocations: 0 / 6.737 GB, free: 50.42 MB / 442.7 MB Notification: Performance of Transformations before backend: time 2.345e-05/16.86, allocations: 4 kB / 6.737 GB, free: 50.42 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.006213/16.87, allocations: 1.441 MB / 6.738 GB, free: 48.93 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.558e-05/16.87, allocations: 16.02 kB / 6.738 GB, free: 48.91 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001856/16.87, allocations: 23.81 kB / 6.738 GB, free: 48.89 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000251/16.87, allocations: 210.8 kB / 6.739 GB, free: 48.64 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.92e-05/16.87, allocations: 12.33 kB / 6.739 GB, free: 48.63 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.371e-05/16.87, allocations: 27.89 kB / 6.739 GB, free: 48.6 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006883/16.87, allocations: 257.2 kB / 6.739 GB, free: 48.34 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.908e-05/16.87, allocations: 0 / 6.739 GB, free: 48.34 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.021e-05/16.87, allocations: 15.94 kB / 6.739 GB, free: 48.32 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.131e-05/16.87, allocations: 4 kB / 6.739 GB, free: 48.32 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006742/16.87, allocations: 267.8 kB / 6.739 GB, free: 48.06 MB / 442.7 MB Warning: The model contains alias variables with conflicting start and/or 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.001587/16.87, allocations: 0.7305 MB / 6.74 GB, free: 47.26 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007718/16.87, allocations: 225.2 kB / 6.74 GB, free: 47.02 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002188/16.87, allocations: 117.7 kB / 6.74 GB, free: 46.9 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01354/16.89, allocations: 12.47 MB / 6.752 GB, free: 31.92 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.067e-05/16.89, allocations: 38.5 kB / 6.752 GB, free: 31.88 MB / 442.7 MB Notification: Performance of pre-optimization done (n=29): time 4.134e-06/16.89, allocations: 3.938 kB / 6.752 GB, free: 31.87 MB / 442.7 MB Notification: Performance of matching and sorting (n=36): time 0.00245/16.89, allocations: 0.5072 MB / 6.753 GB, free: 31.36 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.182e-05/16.89, allocations: 85.28 kB / 6.753 GB, free: 31.25 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000105/16.89, allocations: 117 kB / 6.753 GB, free: 31.13 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 4.231e-05/16.89, allocations: 33.7 kB / 6.753 GB, free: 31.09 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.424e-05/16.89, allocations: 175 kB / 6.753 GB, free: 30.92 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001007/16.89, allocations: 126.1 kB / 6.754 GB, free: 30.8 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.102e-05/16.89, allocations: 12 kB / 6.754 GB, free: 30.79 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 7.209e-05/16.89, allocations: 326.8 kB / 6.754 GB, free: 30.46 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002533/16.89, allocations: 112 kB / 6.754 GB, free: 30.35 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003884/16.89, allocations: 183.8 kB / 6.754 GB, free: 30.14 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003781/16.89, allocations: 135.3 kB / 6.754 GB, free: 30.01 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.843e-06/16.89, allocations: 0 / 6.754 GB, free: 30.01 MB / 442.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001025/16.89, allocations: 361.4 kB / 6.755 GB, free: 29.65 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.134e-05/16.89, allocations: 8 kB / 6.755 GB, free: 29.64 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.9e-06/16.89, allocations: 0 / 6.755 GB, free: 29.64 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.236e-05/16.89, allocations: 4 kB / 6.755 GB, free: 29.64 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006098/16.89, allocations: 100.1 kB / 6.755 GB, free: 29.54 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.216e-05/16.89, allocations: 4 kB / 6.755 GB, free: 29.54 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003919/16.89, allocations: 31.81 kB / 6.755 GB, free: 29.51 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.799e-05/16.89, allocations: 19.98 kB / 6.755 GB, free: 29.49 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (43): * Single equations (assignments): 43 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001277/16.89, allocations: 128.8 kB / 6.755 GB, free: 29.36 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001881/16.89, allocations: 19.81 kB / 6.755 GB, free: 29.34 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000707/16.9, allocations: 195.5 kB / 6.755 GB, free: 29.14 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.828e-06/16.9, allocations: 4 kB / 6.755 GB, free: 29.14 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.562e-06/16.9, allocations: 4 kB / 6.755 GB, free: 29.14 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.28e-06/16.9, allocations: 7.984 kB / 6.755 GB, free: 29.13 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001487/16.9, allocations: 0.7182 MB / 6.756 GB, free: 28.34 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.564e-06/16.9, allocations: 3.953 kB / 6.756 GB, free: 28.34 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005378/16.9, allocations: 79.88 kB / 6.756 GB, free: 28.26 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.015e-05/16.9, allocations: 4 kB / 6.756 GB, free: 28.25 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4e-05/16.9, allocations: 15.94 kB / 6.756 GB, free: 28.24 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.144e-06/16.9, allocations: 4 kB / 6.756 GB, free: 28.23 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.706e-06/16.9, allocations: 7.938 kB / 6.756 GB, free: 28.23 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001342/16.9, allocations: 0.7056 MB / 6.757 GB, free: 27.45 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001868/16.9, allocations: 128.8 kB / 6.757 GB, free: 27.3 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.681e-05/16.9, allocations: 12 kB / 6.757 GB, free: 27.29 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004699/16.9, allocations: 15.98 kB / 6.757 GB, free: 27.28 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.039e-05/16.9, allocations: 35.95 kB / 6.757 GB, free: 27.24 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.06e-05/16.9, allocations: 12 kB / 6.757 GB, free: 27.23 MB / 442.7 MB Notification: Performance of sorting global known variables: time 7.492e-05/16.9, allocations: 99.27 kB / 6.757 GB, free: 27.13 MB / 442.7 MB Notification: Performance of sort global known variables: time 7.28e-07/16.9, allocations: 0 / 6.757 GB, free: 27.13 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.004747/16.9, allocations: 1.112 MB / 6.758 GB, free: 26.02 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 2 (medium.p,medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 38 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.008957/16.91, allocations: 1.623 MB / 6.76 GB, free: 24.39 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0008449/16.91, allocations: 290 kB / 6.76 GB, free: 24.11 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.759e-06/16.91, allocations: 4 kB / 6.76 GB, free: 24.11 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003976/16.92, allocations: 151.8 kB / 6.76 GB, free: 23.96 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007668/16.92, allocations: 92.61 kB / 6.76 GB, free: 23.87 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.035/16.95, allocations: 12.34 MB / 6.772 GB, free: 11.21 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002154/16.95, allocations: 0.7374 MB / 6.773 GB, free: 10.45 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002787/16.95, allocations: 47.41 kB / 6.773 GB, free: 10.41 MB / 442.7 MB Notification: Performance of SimCode: time 1.708e-06/16.95, allocations: 0 / 6.773 GB, free: 10.41 MB / 442.7 MB Notification: Performance of Templates: time 0.3228/17.27, allocations: 25.36 MB / 6.798 GB, free: 53.27 MB / 442.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir.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.MoistAirCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.MoistAirCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.MoistAirCalcHelperMain.cpp:15: ./OMCppModelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.MoistAirTypes.h:226: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.MoistAirTypes.h:227: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.MoistAirCalcHelperMain.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.MoistAirFunctions.h:360: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.MoistAirCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.MoistAirFunctions.cpp:1370:8: error: no matching member function for call to 'assign' X_.assign(tmp120); ~~~^~~~~~ /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.MoistAirCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.MoistAirFunctions.cpp:1411:10: error: no member named 'assign' in 'StatArrayDim1' output.assign(Xsat_); ~~~~~~ ^ In file included from OMCppModelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.MoistAirCalcHelperMain.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.MoistAirFunctions.cpp:1364:86: note: in instantiation of member function 'StatArrayDim1::StatArrayDim1' requested here Modelica_Media_Air_ReferenceMoistAir_massFractionSaturationRetType /* undefined */ tmp120; ^ 6 errors generated. : recipe for target 'OMCppModelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.MoistAirCalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.MoistAirCalcHelperMain.o] Error 1