Running command: "" <> buildModelFMU(ModelicaTest.Media.TestAllProperties.IncompleteMedia.ReferenceMoistAir,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Media_TestAllProperties_IncompleteMedia_ReferenceMoistAir",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(ModelicaTest): time 2.396/2.396, allocations: 270 MB / 282.7 MB, free: 1.918 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 4.293e-05/4.315e-05, allocations: 4 kB / 347.1 MB, free: 3.203 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4511/0.4512, allocations: 61.86 MB / 408.9 MB, free: 10.71 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 19.1/19.56, allocations: 6.131 GB / 6.531 GB, free: 13.54 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002557/19.56, allocations: 80.86 kB / 6.531 GB, free: 13.5 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 2.009/21.56, allocations: 260.5 MB / 6.785 GB, free: 89.68 MB / 0.5261 GB Notification: Performance of FrontEnd: time 4.218e-06/21.56, allocations: 0 / 6.785 GB, free: 89.68 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 1.637e-05/21.56, allocations: 5.625 kB / 6.785 GB, free: 89.68 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.009575/21.57, allocations: 1.92 MB / 6.787 GB, free: 88.78 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.167e-05/21.57, allocations: 7.844 kB / 6.787 GB, free: 88.78 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001052/21.57, allocations: 65.58 kB / 6.787 GB, free: 88.74 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002182/21.57, allocations: 33.47 kB / 6.787 GB, free: 88.73 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003499/21.58, allocations: 246.8 kB / 6.787 GB, free: 88.53 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.603e-05/21.58, allocations: 25.81 kB / 6.787 GB, free: 88.53 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.089e-05/21.58, allocations: 30.06 kB / 6.787 GB, free: 88.53 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001114/21.58, allocations: 0.4931 MB / 6.788 GB, free: 88.43 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.865e-05/21.58, allocations: 6.562 kB / 6.788 GB, free: 88.43 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.611e-05/21.58, allocations: 17.23 kB / 6.788 GB, free: 88.43 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.683e-05/21.58, allocations: 21.47 kB / 6.788 GB, free: 88.43 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001577/21.58, allocations: 0.8996 MB / 6.789 GB, free: 88.43 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002833/21.58, allocations: 1.829 MB / 6.791 GB, free: 87.37 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001027/21.58, allocations: 257.3 kB / 6.791 GB, free: 87.34 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002303/21.58, allocations: 99.53 kB / 6.791 GB, free: 87.33 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02257/21.6, allocations: 15.34 MB / 6.806 GB, free: 71.98 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006203/21.61, allocations: 252 kB / 6.806 GB, free: 71.86 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=34): time 3.527e-06/21.61, allocations: 0 / 6.806 GB, free: 71.86 MB / 0.5261 GB Notification: Performance of matching and sorting (n=36): time 0.003159/21.61, allocations: 0.7032 MB / 6.807 GB, free: 71.57 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.027e-05/21.61, allocations: 273.6 kB / 6.807 GB, free: 71.26 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002349/21.61, allocations: 180.7 kB / 6.807 GB, free: 71.15 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 4.09e-05/21.61, allocations: 32.33 kB / 6.807 GB, free: 71.12 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001189/21.61, allocations: 264.6 kB / 6.808 GB, free: 70.9 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001441/21.61, allocations: 129.4 kB / 6.808 GB, free: 70.82 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.472e-05/21.61, allocations: 14.62 kB / 6.808 GB, free: 70.82 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 7.895e-05/21.61, allocations: 329 kB / 6.808 GB, free: 70.51 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002418/21.61, allocations: 85.92 kB / 6.808 GB, free: 70.51 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005713/21.61, allocations: 356.5 kB / 6.808 GB, free: 70.18 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000519/21.61, allocations: 150.6 kB / 6.809 GB, free: 70.18 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.663e-06/21.61, allocations: 3.438 kB / 6.809 GB, free: 70.18 MB / 0.5261 GB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001768/21.61, allocations: 476.7 kB / 6.809 GB, free: 70.12 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 2.811e-05/21.61, allocations: 11.41 kB / 6.809 GB, free: 70.12 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.738e-05/21.61, allocations: 11.06 kB / 6.809 GB, free: 70.12 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.7e-05/21.61, allocations: 18.72 kB / 6.809 GB, free: 70.12 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001173/21.61, allocations: 184.9 kB / 6.809 GB, free: 70.12 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000559/21.61, allocations: 1.187 MB / 6.81 GB, free: 68.96 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005401/21.62, allocations: 37.8 kB / 6.81 GB, free: 68.95 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000109/21.62, allocations: 45.48 kB / 6.81 GB, free: 68.95 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.0001764/21.62, allocations: 141.5 kB / 6.811 GB, free: 68.84 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002725/21.62, allocations: 31.31 kB / 6.811 GB, free: 68.82 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001742/21.62, allocations: 0.5215 MB / 6.811 GB, free: 68.6 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.151e-06/21.62, allocations: 3.812 kB / 6.811 GB, free: 68.6 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.592e-06/21.62, allocations: 0 / 6.811 GB, free: 68.6 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.825e-06/21.62, allocations: 7.75 kB / 6.811 GB, free: 68.6 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00125/21.62, allocations: 0.5632 MB / 6.812 GB, free: 68.28 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.851e-06/21.62, allocations: 3.906 kB / 6.812 GB, free: 68.28 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006898/21.62, allocations: 90.27 kB / 6.812 GB, free: 68.27 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.095e-05/21.62, allocations: 0 / 6.812 GB, free: 68.27 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.396e-05/21.62, allocations: 7.25 kB / 6.812 GB, free: 68.27 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004726/21.62, allocations: 1.177 MB / 6.813 GB, free: 67.1 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.366e-06/21.62, allocations: 0 / 6.813 GB, free: 67.1 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008729/21.62, allocations: 323.6 kB / 6.813 GB, free: 66.88 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001614/21.62, allocations: 133 kB / 6.813 GB, free: 66.78 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.345e-05/21.62, allocations: 16.41 kB / 6.813 GB, free: 66.77 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003815/21.62, allocations: 10.59 kB / 6.813 GB, free: 66.77 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.246e-05/21.62, allocations: 15.67 kB / 6.813 GB, free: 66.77 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.686e-05/21.62, allocations: 11.12 kB / 6.813 GB, free: 66.77 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0002414/21.62, allocations: 177 kB / 6.814 GB, free: 66.69 MB / 0.5261 GB Notification: Performance of sort global known variables: time 4.3e-07/21.62, allocations: 3.281 kB / 6.814 GB, free: 66.69 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.01051/21.63, allocations: 2.007 MB / 6.816 GB, free: 66.25 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.01951/21.65, allocations: 3.699 MB / 6.819 GB, free: 64.86 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.001599/21.65, allocations: 300.3 kB / 6.819 GB, free: 64.85 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 6.262e-06/21.65, allocations: 0 / 6.819 GB, free: 64.85 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0006031/21.65, allocations: 109.8 kB / 6.82 GB, free: 64.85 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006386/21.66, allocations: 50.59 kB / 6.82 GB, free: 64.84 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 1.255/22.91, allocations: 287.4 MB / 7.1 GB, free: 34.59 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002423/22.91, allocations: 0.754 MB / 7.101 GB, free: 33.85 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004109/22.91, allocations: 112.3 kB / 7.101 GB, free: 33.76 MB / 0.5261 GB Notification: Performance of SimCode: time 1.332e-06/22.91, allocations: 3.156 kB / 7.101 GB, free: 33.76 MB / 0.5261 GB Error: Error building simulator. Build log: clang++ -Winvalid-pch -O0 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DSUNDIALS_MAJOR_VERSION=2 -DSUNDIALS_MINOR_VERSION=6 -DPMC_USE_SUNDIALS -DFMU_BUILD -DRUNTIME_STATIC_LINKING -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp" -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" -I"." "-I/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica trunk/Resources/C-Sources" -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:16: ./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:35: In file included from ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Media_TestAllProperties_IncompleteMedia_ReferenceMoistAirFMU.cpp:11: /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/FMU2/FMU2Wrapper.cpp:93:11: warning: 6 enumeration values not handled in switch: 'LC_INIT', 'LC_LS', 'LC_SOLVER'... [-Wswitch] switch (cat) { ^ 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; ^ 1 warning and 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