Running command: translateModel(ModelicaTest.Media.TestAllProperties.IncompleteMedia.ReferenceMoistAir,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest.Media.TestAllProperties.IncompleteMedia.ReferenceMoistAir") Notification: Performance of loadModel(ModelicaTest): time 2.334/2.334, allocations: 270 MB / 282.7 MB, free: 1.902 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 3.124e-05/3.127e-05, allocations: 7.938 kB / 347 MB, free: 3.258 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3286/0.3287, allocations: 61.87 MB / 408.8 MB, free: 10.79 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 14.21/14.54, allocations: 6.131 GB / 6.531 GB, free: 20.75 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002372/14.54, allocations: 80.98 kB / 6.531 GB, free: 20.67 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 1.462/16, allocations: 260.5 MB / 6.785 GB, free: 88.98 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.875e-06/16, allocations: 0 / 6.785 GB, free: 88.98 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 1.448e-05/16, allocations: 3.719 kB / 6.785 GB, free: 88.98 MB / 0.5261 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.007281/16.01, allocations: 1.919 MB / 6.787 GB, free: 88.09 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.082e-05/16.01, allocations: 15.34 kB / 6.787 GB, free: 88.09 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002124/16.01, allocations: 30.97 kB / 6.787 GB, free: 88.07 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002987/16.01, allocations: 246.2 kB / 6.787 GB, free: 87.88 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.021e-05/16.01, allocations: 20.41 kB / 6.787 GB, free: 87.88 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.317e-05/16.01, allocations: 29.75 kB / 6.787 GB, free: 87.88 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001006/16.01, allocations: 0.4915 MB / 6.788 GB, free: 87.78 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.723e-05/16.01, allocations: 3.531 kB / 6.788 GB, free: 87.78 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.052e-05/16.01, allocations: 13.97 kB / 6.788 GB, free: 87.78 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.027e-05/16.01, allocations: 25.25 kB / 6.788 GB, free: 87.78 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001422/16.01, allocations: 0.9013 MB / 6.789 GB, free: 87.78 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00229/16.01, allocations: 1.831 MB / 6.79 GB, free: 86.71 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008628/16.01, allocations: 257.1 kB / 6.791 GB, free: 86.69 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001965/16.01, allocations: 97.11 kB / 6.791 GB, free: 86.68 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0161/16.03, allocations: 15.33 MB / 6.806 GB, free: 71.34 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005265/16.03, allocations: 238.7 kB / 6.806 GB, free: 71.21 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=34): time 4.883e-06/16.03, allocations: 3.891 kB / 6.806 GB, free: 71.21 MB / 0.5261 GB Notification: Performance of matching and sorting (n=36): time 0.002713/16.03, allocations: 0.7175 MB / 6.807 GB, free: 70.93 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.562e-05/16.03, allocations: 263 kB / 6.807 GB, free: 70.62 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001837/16.03, allocations: 186.1 kB / 6.807 GB, free: 70.52 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 3.884e-05/16.03, allocations: 32.7 kB / 6.807 GB, free: 70.49 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001089/16.03, allocations: 266.7 kB / 6.807 GB, free: 70.28 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 8.752e-05/16.03, allocations: 129.4 kB / 6.808 GB, free: 70.2 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.842e-05/16.03, allocations: 11.09 kB / 6.808 GB, free: 70.2 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 6.503e-05/16.03, allocations: 336.4 kB / 6.808 GB, free: 69.89 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001921/16.03, allocations: 83.86 kB / 6.808 GB, free: 69.89 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005091/16.04, allocations: 355 kB / 6.808 GB, free: 69.55 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005071/16.04, allocations: 159.5 kB / 6.808 GB, free: 69.55 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.696e-06/16.04, allocations: 3.688 kB / 6.808 GB, free: 69.55 MB / 0.5261 GB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001754/16.04, allocations: 477.2 kB / 6.809 GB, free: 69.5 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 2.276e-05/16.04, allocations: 11.11 kB / 6.809 GB, free: 69.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.478e-05/16.04, allocations: 12.22 kB / 6.809 GB, free: 69.5 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.04e-05/16.04, allocations: 13.47 kB / 6.809 GB, free: 69.5 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009596/16.04, allocations: 184.1 kB / 6.809 GB, free: 69.5 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004964/16.04, allocations: 1.184 MB / 6.81 GB, free: 68.33 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004645/16.04, allocations: 33.75 kB / 6.81 GB, free: 68.33 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.72e-05/16.04, allocations: 50.83 kB / 6.81 GB, free: 68.33 MB / 0.5261 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * Number of states: 0 () * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 65 * 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 {1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001456/16.04, allocations: 146.7 kB / 6.81 GB, free: 68.21 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002829/16.04, allocations: 23.03 kB / 6.811 GB, free: 68.21 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00159/16.04, allocations: 0.5175 MB / 6.811 GB, free: 67.98 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.148e-06/16.04, allocations: 3.375 kB / 6.811 GB, free: 67.98 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.221e-06/16.04, allocations: 0 / 6.811 GB, free: 67.98 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.103e-06/16.04, allocations: 0 / 6.811 GB, free: 67.98 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001125/16.04, allocations: 0.5791 MB / 6.812 GB, free: 67.66 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.64e-06/16.04, allocations: 0 / 6.812 GB, free: 67.66 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006071/16.04, allocations: 81.48 kB / 6.812 GB, free: 67.66 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.429e-06/16.04, allocations: 0 / 6.812 GB, free: 67.66 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.185e-05/16.04, allocations: 7.672 kB / 6.812 GB, free: 67.66 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004126/16.04, allocations: 1.173 MB / 6.813 GB, free: 66.49 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.079e-06/16.04, allocations: 0 / 6.813 GB, free: 66.49 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008052/16.05, allocations: 331.6 kB / 6.813 GB, free: 66.27 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000123/16.05, allocations: 133.6 kB / 6.813 GB, free: 66.16 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.288e-05/16.05, allocations: 7.891 kB / 6.813 GB, free: 66.16 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003285/16.05, allocations: 19.28 kB / 6.813 GB, free: 66.16 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.48e-05/16.05, allocations: 9.969 kB / 6.813 GB, free: 66.16 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.671e-05/16.05, allocations: 21.77 kB / 6.813 GB, free: 66.15 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.000193/16.05, allocations: 172.2 kB / 6.813 GB, free: 66.07 MB / 0.5261 GB Notification: Performance of sort global known variables: time 6.58e-07/16.05, allocations: 6.344 kB / 6.813 GB, free: 66.07 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.007586/16.05, allocations: 2.006 MB / 6.815 GB, free: 65.63 MB / 0.5261 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 19 * 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 {1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01417/16.07, allocations: 2.746 MB / 6.818 GB, free: 65.09 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.00128/16.07, allocations: 293.8 kB / 6.818 GB, free: 65.09 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 5.568e-06/16.07, allocations: 0 / 6.818 GB, free: 65.09 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0006313/16.07, allocations: 105.9 kB / 6.819 GB, free: 65.09 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005249/16.07, allocations: 48.45 kB / 6.819 GB, free: 65.08 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 1.023/17.09, allocations: 286.5 MB / 7.098 GB, free: 40.12 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002188/17.09, allocations: 0.7619 MB / 7.099 GB, free: 39.37 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002947/17.09, allocations: 63.02 kB / 7.099 GB, free: 39.32 MB / 0.5261 GB Notification: Performance of SimCode: time 1.724e-06/17.09, allocations: 7.75 kB / 7.099 GB, free: 39.32 MB / 0.5261 GB Notification: Performance of Templates: time 0.06977/17.16, allocations: 44.52 MB / 7.143 GB, free: 3.637 MB / 0.5261 GB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Media.TestAllProperties.IncompleteMedia.ReferenceMoistAir.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 OMCppModelicaTest_trunk_cpp_ModelicaTest.Media.TestAllProperties.IncompleteMedia.ReferenceMoistAirCalcHelperMain.o OMCppModelicaTest_trunk_cpp_ModelicaTest.Media.TestAllProperties.IncompleteMedia.ReferenceMoistAirCalcHelperMain.cpp In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest.Media.TestAllProperties.IncompleteMedia.ReferenceMoistAirCalcHelperMain.cpp:15: ./OMCppModelicaTest_trunk_cpp_ModelicaTest.Media.TestAllProperties.IncompleteMedia.ReferenceMoistAirTypes.h:264: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 */; ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest.Media.TestAllProperties.IncompleteMedia.ReferenceMoistAirTypes.h:265: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 OMCppModelicaTest_trunk_cpp_ModelicaTest.Media.TestAllProperties.IncompleteMedia.ReferenceMoistAirCalcHelperMain.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 ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest.Media.TestAllProperties.IncompleteMedia.ReferenceMoistAirFunctions.h:585:70: note: in instantiation of template class 'StatArrayDim1' requested here Modelica_Media_Air_ReferenceMoistAir_massFractionSaturationRetType _Modelica_Media_Air_ReferenceMoistAir_massFractionSaturation; ^ In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest.Media.TestAllProperties.IncompleteMedia.ReferenceMoistAirCalcHelperMain.cpp:28: ./OMCppModelicaTest_trunk_cpp_ModelicaTest.Media.TestAllProperties.IncompleteMedia.ReferenceMoistAirFunctions.cpp:1890:8: error: no matching member function for call to 'assign' X_.assign(tmp139); ~~~^~~~~~ /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 OMCppModelicaTest_trunk_cpp_ModelicaTest.Media.TestAllProperties.IncompleteMedia.ReferenceMoistAirCalcHelperMain.cpp:28: ./OMCppModelicaTest_trunk_cpp_ModelicaTest.Media.TestAllProperties.IncompleteMedia.ReferenceMoistAirFunctions.cpp:1931:10: error: no member named 'assign' in 'StatArrayDim1' output.assign(Xsat_); ~~~~~~ ^ In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest.Media.TestAllProperties.IncompleteMedia.ReferenceMoistAirCalcHelperMain.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() {} ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./OMCppModelicaTest_trunk_cpp_ModelicaTest.Media.TestAllProperties.IncompleteMedia.ReferenceMoistAirFunctions.cpp:1884:86: note: in instantiation of member function 'StatArrayDim1::StatArrayDim1' requested here Modelica_Media_Air_ReferenceMoistAir_massFractionSaturationRetType /* undefined */ tmp139; ^ 6 errors generated. : recipe for target 'OMCppModelicaTest_trunk_cpp_ModelicaTest.Media.TestAllProperties.IncompleteMedia.ReferenceMoistAirCalcHelperMain.o' failed make: *** [OMCppModelicaTest_trunk_cpp_ModelicaTest.Media.TestAllProperties.IncompleteMedia.ReferenceMoistAirCalcHelperMain.o] Error 1