Running command: translateModel(Modelica.Media.Examples.ReferenceAir.MoistAir1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir1") Notification: Performance of loadModel(Modelica): time 1.979/1.979, allocations: 225.8 MB / 239.3 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.086e-05/3.101e-05, allocations: 4 kB / 292.1 MB, free: 8.84 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1009/0.101, allocations: 50.41 MB / 342.5 MB, free: 6.402 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 15.07/15.17, allocations: 6.123 GB / 6.458 GB, free: 132.2 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000256/15.17, allocations: 75.81 kB / 6.458 GB, free: 132.2 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.586/18.75, allocations: 0.8123 GB / 7.27 GB, free: 37.5 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.164e-06/18.75, allocations: 0 / 7.27 GB, free: 37.5 MB / 474.7 MB Notification: Performance of Transformations before backend: time 2.66e-05/18.75, allocations: 8 kB / 7.27 GB, free: 37.49 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: 107 * Number of variables: 107 Notification: Performance of Generate backend data structure: time 0.01093/18.76, allocations: 2.735 MB / 7.273 GB, free: 34.71 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.262e-05/18.76, allocations: 8.031 kB / 7.273 GB, free: 34.7 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004999/18.76, allocations: 59.39 kB / 7.273 GB, free: 34.64 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006253/18.77, allocations: 362.3 kB / 7.273 GB, free: 34.25 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.488e-05/18.77, allocations: 29 kB / 7.273 GB, free: 34.22 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.147e-05/18.77, allocations: 51.94 kB / 7.273 GB, free: 34.17 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001784/18.77, allocations: 0.5473 MB / 7.274 GB, free: 33.62 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.02e-05/18.77, allocations: 0 / 7.274 GB, free: 33.62 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.117e-05/18.77, allocations: 24 kB / 7.274 GB, free: 33.59 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.281e-05/18.77, allocations: 15.41 kB / 7.274 GB, free: 33.58 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00182/18.77, allocations: 0.7008 MB / 7.275 GB, free: 32.88 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01492/18.78, allocations: 11.65 MB / 7.286 GB, free: 19.15 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001595/18.79, allocations: 0.5202 MB / 7.286 GB, free: 18.63 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000466/18.79, allocations: 250.5 kB / 7.287 GB, free: 18.38 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02602/18.81, allocations: 20.96 MB / 7.307 GB, free: 9.266 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.735e-05/18.81, allocations: 46.94 kB / 7.307 GB, free: 9.211 MB / 490.7 MB Notification: Performance of pre-optimization done (n=50): time 5.117e-06/18.81, allocations: 0 / 7.307 GB, free: 9.211 MB / 490.7 MB Notification: Performance of matching and sorting (n=55): time 0.00855/18.82, allocations: 1.797 MB / 7.309 GB, free: 7.359 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.654e-05/18.82, allocations: 67.91 kB / 7.309 GB, free: 7.281 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005135/18.82, allocations: 287.4 kB / 7.309 GB, free: 6.996 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001247/18.82, allocations: 37.7 kB / 7.309 GB, free: 6.953 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001986/18.82, allocations: 250.8 kB / 7.31 GB, free: 6.707 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000232/18.82, allocations: 193.2 kB / 7.31 GB, free: 6.516 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.61e-05/18.82, allocations: 8 kB / 7.31 GB, free: 6.508 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001973/18.82, allocations: 334.8 kB / 7.31 GB, free: 6.172 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005668/18.82, allocations: 229.1 kB / 7.31 GB, free: 5.949 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009609/18.82, allocations: 322.3 kB / 7.311 GB, free: 5.602 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009455/18.83, allocations: 281.5 kB / 7.311 GB, free: 5.332 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.38e-06/18.83, allocations: 0 / 7.311 GB, free: 5.332 MB / 490.7 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002764/18.83, allocations: 0.7015 MB / 7.312 GB, free: 4.613 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.714e-05/18.83, allocations: 4 kB / 7.312 GB, free: 4.609 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.343e-05/18.83, allocations: 4 kB / 7.312 GB, free: 4.605 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00069/18.83, allocations: 106.5 kB / 7.312 GB, free: 4.492 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007407/18.83, allocations: 123.8 kB / 7.312 GB, free: 4.371 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003572/18.83, allocations: 3.275 MB / 7.315 GB, free: 0.8125 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006565/18.83, allocations: 40.14 kB / 7.315 GB, free: 0.7734 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001151/18.83, allocations: 35.98 kB / 7.315 GB, free: 0.7383 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 (67): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * 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: 1 {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.0002608/18.83, allocations: 140.8 kB / 7.315 GB, free: 0.5938 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004539/18.83, allocations: 43.53 kB / 7.315 GB, free: 0.5508 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.3233/19.16, allocations: 0.8206 MB / 7.316 GB, free: 62.3 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.437e-05/19.16, allocations: 5.656 kB / 7.316 GB, free: 62.3 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.291e-06/19.16, allocations: 0.5938 kB / 7.316 GB, free: 62.3 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001769/19.16, allocations: 0.7634 MB / 7.317 GB, free: 61.95 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003387/19.16, allocations: 1.314 MB / 7.318 GB, free: 61.62 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.185e-06/19.16, allocations: 3.5 kB / 7.318 GB, free: 61.62 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006807/19.16, allocations: 105.9 kB / 7.318 GB, free: 61.62 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001341/19.17, allocations: 151.5 kB / 7.318 GB, free: 61.61 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001064/19.17, allocations: 18.78 kB / 7.318 GB, free: 61.61 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004346/19.17, allocations: 0.6477 MB / 7.319 GB, free: 61.03 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.926e-06/19.17, allocations: 4.531 kB / 7.319 GB, free: 61.03 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002658/19.17, allocations: 0.927 MB / 7.32 GB, free: 60.83 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002584/19.17, allocations: 129.3 kB / 7.32 GB, free: 60.74 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001212/19.17, allocations: 20.8 kB / 7.32 GB, free: 60.74 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006465/19.17, allocations: 35.92 kB / 7.32 GB, free: 60.74 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.73e-05/19.17, allocations: 34.5 kB / 7.32 GB, free: 60.74 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001214/19.17, allocations: 36.7 kB / 7.32 GB, free: 60.74 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0004218/19.17, allocations: 251.5 kB / 7.32 GB, free: 60.66 MB / 490.7 MB Notification: Performance of sort global known variables: time 8.1e-07/19.17, allocations: 0 / 7.32 GB, free: 60.66 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.008498/19.18, allocations: 1.952 MB / 7.322 GB, free: 60.66 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (volume.medium.p,volume.medium.Xi[1],volume.medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * 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: 1 {2} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01477/19.19, allocations: 2.94 MB / 7.325 GB, free: 60.52 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.002099/19.2, allocations: 0.7839 MB / 7.326 GB, free: 60.31 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 7.462e-06/19.2, allocations: 1.062 kB / 7.326 GB, free: 60.31 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008927/19.2, allocations: 298.4 kB / 7.326 GB, free: 60.3 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00171/19.2, allocations: 254.9 kB / 7.326 GB, free: 60.29 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002214/19.2, allocations: 0.8896 MB / 7.327 GB, free: 60.09 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003861/19.2, allocations: 0.8429 MB / 7.328 GB, free: 59.39 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003296/19.2, allocations: 68.05 kB / 7.328 GB, free: 59.38 MB / 490.7 MB Notification: Performance of SimCode: time 1.631e-06/19.2, allocations: 2.062 kB / 7.328 GB, free: 59.38 MB / 490.7 MB Notification: Performance of Templates: time 0.08918/19.29, allocations: 50.35 MB / 7.377 GB, free: 55.74 MB / 490.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir1.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.MoistAir1CalcHelperMain.o OMCppModelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir1CalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir1CalcHelperMain.cpp:15: ./OMCppModelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir1Types.h:267: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.MoistAir1Types.h:268: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.MoistAir1CalcHelperMain.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.MoistAir1Functions.h:543: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.MoistAir1CalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir1Functions.cpp:1402:8: error: no matching member function for call to 'assign' X_.assign(tmp143); ~~~^~~~~~ /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.MoistAir1CalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir1Functions.cpp:1443:10: error: no member named 'assign' in 'StatArrayDim1' output.assign(Xsat_); ~~~~~~ ^ In file included from OMCppModelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir1CalcHelperMain.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.MoistAir1Functions.cpp:1396:86: note: in instantiation of member function 'StatArrayDim1::StatArrayDim1' requested here Modelica_Media_Air_ReferenceMoistAir_massFractionSaturationRetType /* undefined */ tmp143; ^ 6 errors generated. : recipe for target 'OMCppModelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir1CalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir1CalcHelperMain.o] Error 1