Running command: "" <> buildModelFMU(Modelica.Media.Examples.ReferenceAir.MoistAir1,fileNamePrefix="Modelica_trunk_cpp_Modelica_Media_Examples_ReferenceAir_MoistAir1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.943/1.943, allocations: 225.8 MB / 239.3 MB, free: 11.17 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 4.129e-05/4.157e-05, allocations: 6.031 kB / 292.2 MB, free: 8.738 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1117/0.1118, allocations: 50.42 MB / 342.6 MB, free: 6.297 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 19.87/19.98, allocations: 6.123 GB / 6.458 GB, free: 109.6 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002728/19.98, allocations: 79.22 kB / 6.458 GB, free: 109.6 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.278/24.26, allocations: 0.8123 GB / 7.27 GB, free: 16.08 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.785e-06/24.26, allocations: 0 / 7.27 GB, free: 16.08 MB / 474.7 MB Notification: Performance of Transformations before backend: time 3.636e-05/24.26, allocations: 12 kB / 7.27 GB, free: 16.07 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.01327/24.27, allocations: 2.735 MB / 7.273 GB, free: 13.29 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.855e-05/24.27, allocations: 8.031 kB / 7.273 GB, free: 13.28 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001739/24.27, allocations: 86.52 kB / 7.273 GB, free: 13.18 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004609/24.27, allocations: 55.48 kB / 7.273 GB, free: 13.13 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006815/24.27, allocations: 362.2 kB / 7.273 GB, free: 12.73 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.514e-05/24.27, allocations: 37 kB / 7.273 GB, free: 12.7 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000109/24.27, allocations: 44 kB / 7.273 GB, free: 12.66 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001964/24.28, allocations: 0.5434 MB / 7.274 GB, free: 12.11 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.344e-05/24.28, allocations: 7.891 kB / 7.274 GB, free: 12.1 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.279e-05/24.28, allocations: 24 kB / 7.274 GB, free: 12.07 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.452e-05/24.28, allocations: 11.95 kB / 7.274 GB, free: 12.06 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0021/24.28, allocations: 0.7047 MB / 7.275 GB, free: 11.36 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02101/24.3, allocations: 11.66 MB / 7.286 GB, free: 13.62 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002239/24.3, allocations: 0.5099 MB / 7.287 GB, free: 13.11 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007364/24.3, allocations: 250.5 kB / 7.287 GB, free: 12.86 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4189/24.72, allocations: 20.96 MB / 7.307 GB, free: 41.95 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.514e-05/24.72, allocations: 41.56 kB / 7.307 GB, free: 41.91 MB / 490.7 MB Notification: Performance of pre-optimization done (n=50): time 3.367e-06/24.72, allocations: 1.312 kB / 7.307 GB, free: 41.91 MB / 490.7 MB Notification: Performance of matching and sorting (n=55): time 0.009791/24.73, allocations: 1.803 MB / 7.309 GB, free: 41.59 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.368e-05/24.73, allocations: 58.03 kB / 7.309 GB, free: 41.52 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005452/24.73, allocations: 290.2 kB / 7.309 GB, free: 41.42 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001122/24.73, allocations: 36.05 kB / 7.309 GB, free: 41.39 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000127/24.73, allocations: 253 kB / 7.31 GB, free: 41.2 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001973/24.73, allocations: 191.2 kB / 7.31 GB, free: 41.11 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.37e-05/24.73, allocations: 12.66 kB / 7.31 GB, free: 41.11 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 8.12e-05/24.73, allocations: 333.9 kB / 7.31 GB, free: 40.8 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006283/24.73, allocations: 224.5 kB / 7.31 GB, free: 40.8 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009902/24.73, allocations: 323.1 kB / 7.311 GB, free: 40.71 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00102/24.74, allocations: 276.1 kB / 7.311 GB, free: 40.71 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.991e-06/24.74, allocations: 1.219 kB / 7.311 GB, free: 40.71 MB / 490.7 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.002927/24.74, allocations: 0.7085 MB / 7.312 GB, free: 40.62 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.723e-05/24.74, allocations: 8.75 kB / 7.312 GB, free: 40.62 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.314e-05/24.74, allocations: 2.094 kB / 7.312 GB, free: 40.62 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007837/24.74, allocations: 103.8 kB / 7.312 GB, free: 40.6 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001046/24.74, allocations: 124.7 kB / 7.312 GB, free: 40.6 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0026/24.74, allocations: 3.262 MB / 7.315 GB, free: 37.51 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008801/24.74, allocations: 44.31 kB / 7.315 GB, free: 37.5 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001286/24.74, allocations: 33.67 kB / 7.315 GB, free: 37.5 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.0002578/24.74, allocations: 140.1 kB / 7.315 GB, free: 37.4 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004443/24.74, allocations: 49.44 kB / 7.315 GB, free: 37.38 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002734/24.75, allocations: 0.8299 MB / 7.316 GB, free: 37.26 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.267e-05/24.75, allocations: 5.766 kB / 7.316 GB, free: 37.26 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.008e-06/24.75, allocations: 0 / 7.316 GB, free: 37.26 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001787/24.75, allocations: 0.7666 MB / 7.317 GB, free: 36.89 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003602/24.75, allocations: 1.318 MB / 7.318 GB, free: 36.56 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.113e-06/24.75, allocations: 0 / 7.318 GB, free: 36.56 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008866/24.75, allocations: 111.5 kB / 7.318 GB, free: 36.56 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001503/24.76, allocations: 148 kB / 7.318 GB, free: 36.55 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.961e-05/24.76, allocations: 23.81 kB / 7.318 GB, free: 36.54 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000592/24.76, allocations: 0.6504 MB / 7.319 GB, free: 35.96 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.128e-06/24.76, allocations: 1.156 kB / 7.319 GB, free: 35.96 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002901/24.76, allocations: 0.9287 MB / 7.32 GB, free: 35.74 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002708/24.76, allocations: 130.9 kB / 7.32 GB, free: 35.62 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001223/24.76, allocations: 11.25 kB / 7.32 GB, free: 35.62 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008443/24.76, allocations: 36.22 kB / 7.32 GB, free: 35.62 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001086/24.76, allocations: 41.02 kB / 7.32 GB, free: 35.62 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001116/24.76, allocations: 31.56 kB / 7.32 GB, free: 35.62 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0004463/24.76, allocations: 255.7 kB / 7.321 GB, free: 35.54 MB / 490.7 MB Notification: Performance of sort global known variables: time 3.9e-07/24.76, allocations: 0 / 7.321 GB, free: 35.54 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.009997/24.77, allocations: 1.953 MB / 7.322 GB, free: 35.54 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.02129/24.79, allocations: 4.466 MB / 7.327 GB, free: 34.55 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.002535/24.8, allocations: 0.7772 MB / 7.328 GB, free: 34.34 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 7.043e-06/24.8, allocations: 5.562 kB / 7.328 GB, free: 34.34 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009983/24.8, allocations: 291.9 kB / 7.328 GB, free: 34.33 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002539/24.8, allocations: 253.5 kB / 7.328 GB, free: 34.32 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009677/24.81, allocations: 1.796 MB / 7.33 GB, free: 33.96 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003994/24.81, allocations: 0.8444 MB / 7.331 GB, free: 33.25 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005298/24.81, allocations: 166 kB / 7.331 GB, free: 33.24 MB / 490.7 MB Notification: Performance of SimCode: time 2.364e-06/24.81, allocations: 3.812 kB / 7.331 GB, free: 33.24 MB / 490.7 MB 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 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:16: ./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:35: In file included from ./OMCppModelica_trunk_cpp_Modelica_Media_Examples_ReferenceAir_MoistAir1FMU.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 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; ^ 1 warning and 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