Running command: "" <> buildModelFMU(Modelica.Media.Examples.ReferenceAir.MoistAir2,fileNamePrefix="Modelica_trunk_cpp_Modelica_Media_Examples_ReferenceAir_MoistAir2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.066/2.066, allocations: 225.8 MB / 239.3 MB, free: 11.19 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.502e-05/3.51e-05, allocations: 4 kB / 292.2 MB, free: 8.742 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1139/0.114, allocations: 50.41 MB / 342.6 MB, free: 6.312 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 18.87/18.98, allocations: 6.123 GB / 6.458 GB, free: 114.7 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002862/18.98, allocations: 72.97 kB / 6.458 GB, free: 114.7 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.6/22.58, allocations: 0.6443 GB / 7.102 GB, free: 4.93 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.384e-06/22.58, allocations: 4 kB / 7.102 GB, free: 4.926 MB / 474.7 MB Notification: Performance of Transformations before backend: time 5.529e-05/22.58, allocations: 15.47 kB / 7.102 GB, free: 4.914 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: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.01479/22.6, allocations: 2.329 MB / 7.104 GB, free: 2.539 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.607e-05/22.6, allocations: 8.031 kB / 7.104 GB, free: 2.531 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004036/22.6, allocations: 110.5 kB / 7.105 GB, free: 2.414 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001095/22.6, allocations: 87.11 kB / 7.105 GB, free: 2.328 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001584/22.6, allocations: 436.4 kB / 7.105 GB, free: 1.867 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.323e-05/22.6, allocations: 45.31 kB / 7.105 GB, free: 1.824 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002531/22.6, allocations: 67.91 kB / 7.105 GB, free: 1.758 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004187/22.61, allocations: 0.7724 MB / 7.106 GB, free: 0.9844 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.732e-05/22.61, allocations: 3.984 kB / 7.106 GB, free: 0.9805 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001915/22.61, allocations: 28 kB / 7.106 GB, free: 0.9531 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.351e-05/22.61, allocations: 16 kB / 7.106 GB, free: 0.9375 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.4034/23.01, allocations: 0.9621 MB / 7.107 GB, free: 31.98 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02465/23.04, allocations: 12.47 MB / 7.119 GB, free: 21.06 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003026/23.04, allocations: 0.7598 MB / 7.12 GB, free: 21.03 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001051/23.04, allocations: 394.6 kB / 7.12 GB, free: 21.02 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0612/23.1, allocations: 30.73 MB / 7.15 GB, free: 22.16 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.246e-05/23.1, allocations: 43.81 kB / 7.15 GB, free: 22.12 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=78): time 4.699e-06/23.1, allocations: 4.047 kB / 7.15 GB, free: 22.12 MB / 0.4948 GB Notification: Performance of matching and sorting (n=88): time 0.01825/23.12, allocations: 3.024 MB / 7.153 GB, free: 21.7 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.422e-05/23.12, allocations: 62.19 kB / 7.153 GB, free: 21.64 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005792/23.12, allocations: 321.8 kB / 7.154 GB, free: 21.53 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0002825/23.12, allocations: 43.39 kB / 7.154 GB, free: 21.5 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002066/23.12, allocations: 291 kB / 7.154 GB, free: 21.31 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003429/23.12, allocations: 304 kB / 7.154 GB, free: 21.16 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.025e-05/23.12, allocations: 21.12 kB / 7.154 GB, free: 21.16 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001555/23.12, allocations: 345.2 kB / 7.155 GB, free: 20.84 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008943/23.12, allocations: 348 kB / 7.155 GB, free: 20.84 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001434/23.12, allocations: 458.7 kB / 7.155 GB, free: 20.75 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001515/23.12, allocations: 421 kB / 7.156 GB, free: 20.74 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.446e-06/23.12, allocations: 0.875 kB / 7.156 GB, free: 20.74 MB / 0.4948 GB Notification: Performance of matching and sorting (n=106) (initialization): time 0.004276/23.13, allocations: 1.034 MB / 7.157 GB, free: 20.64 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 3.608e-05/23.13, allocations: 13.95 kB / 7.157 GB, free: 20.64 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.673e-05/23.13, allocations: 2.5 kB / 7.157 GB, free: 20.64 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001325/23.13, allocations: 170.9 kB / 7.157 GB, free: 20.61 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001679/23.13, allocations: 191.7 kB / 7.157 GB, free: 20.61 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004428/23.14, allocations: 3.91 MB / 7.161 GB, free: 32.93 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001224/23.14, allocations: 61.17 kB / 7.161 GB, free: 32.93 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001803/23.14, allocations: 51.17 kB / 7.161 GB, free: 32.93 MB / 0.5105 GB 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 (102): * Single equations (assignments): 98 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {2,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.0003719/23.14, allocations: 153.7 kB / 7.161 GB, free: 32.82 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006171/23.14, allocations: 64.31 kB / 7.161 GB, free: 32.8 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004042/23.14, allocations: 1.296 MB / 7.162 GB, free: 32.65 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.731e-05/23.14, allocations: 14.17 kB / 7.162 GB, free: 32.64 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/23.14, allocations: 3.875 kB / 7.162 GB, free: 32.64 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003092/23.15, allocations: 1.313 MB / 7.164 GB, free: 31.98 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00548/23.15, allocations: 1.968 MB / 7.166 GB, free: 31.62 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-05/23.15, allocations: 0 / 7.166 GB, free: 31.62 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001508/23.15, allocations: 182 kB / 7.166 GB, free: 31.62 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002955/23.16, allocations: 303.8 kB / 7.166 GB, free: 31.6 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.00024/23.16, allocations: 30.03 kB / 7.166 GB, free: 31.6 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001143/23.16, allocations: 1.297 MB / 7.167 GB, free: 30.43 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.876e-06/23.16, allocations: 0 / 7.167 GB, free: 30.43 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004163/23.16, allocations: 1.424 MB / 7.169 GB, free: 30.17 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003673/23.16, allocations: 145.5 kB / 7.169 GB, free: 30.05 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001715/23.16, allocations: 20.53 kB / 7.169 GB, free: 30.05 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001091/23.16, allocations: 55 kB / 7.169 GB, free: 30.05 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001313/23.16, allocations: 54.22 kB / 7.169 GB, free: 30.04 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001544/23.16, allocations: 55.98 kB / 7.169 GB, free: 30.04 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0004655/23.16, allocations: 278.1 kB / 7.169 GB, free: 29.96 MB / 0.5105 GB Notification: Performance of sort global known variables: time 4.61e-07/23.16, allocations: 0 / 7.169 GB, free: 29.96 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.01095/23.18, allocations: 2.275 MB / 7.172 GB, free: 29.96 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 6 (volume.medium.p,volume.medium.Xi[1],volume.medium.T,volume1.medium.p,volume1.medium.Xi[1],volume1.medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (87): * Single equations (assignments): 85 * 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 {2,2} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0234/23.2, allocations: 5.24 MB / 7.177 GB, free: 29 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.003221/23.2, allocations: 1.127 MB / 7.178 GB, free: 28.77 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 7.424e-06/23.2, allocations: 5.531 kB / 7.178 GB, free: 28.77 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.001468/23.2, allocations: 492.1 kB / 7.178 GB, free: 28.75 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003428/23.21, allocations: 362.2 kB / 7.179 GB, free: 28.74 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01082/23.22, allocations: 2.501 MB / 7.181 GB, free: 28.05 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006587/23.22, allocations: 0.929 MB / 7.182 GB, free: 27.36 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007757/23.22, allocations: 240.8 kB / 7.182 GB, free: 27.35 MB / 0.5105 GB Notification: Performance of SimCode: time 1.573e-06/23.22, allocations: 0 / 7.182 GB, free: 27.35 MB / 0.5105 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 OMCppModelica_trunk_cpp_Modelica_Media_Examples_ReferenceAir_MoistAir2CalcHelperMain.o OMCppModelica_trunk_cpp_Modelica_Media_Examples_ReferenceAir_MoistAir2CalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica_Media_Examples_ReferenceAir_MoistAir2CalcHelperMain.cpp:16: ./OMCppModelica_trunk_cpp_Modelica_Media_Examples_ReferenceAir_MoistAir2Types.h:254: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_MoistAir2Types.h:255: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_MoistAir2CalcHelperMain.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_MoistAir2Functions.h:584: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_MoistAir2CalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica_Media_Examples_ReferenceAir_MoistAir2Functions.cpp:1402:8: error: no matching member function for call to 'assign' X_.assign(tmp167); ~~~^~~~~~ /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_MoistAir2CalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica_Media_Examples_ReferenceAir_MoistAir2Functions.cpp:1443:10: error: no member named 'assign' in 'StatArrayDim1' output.assign(Xsat_); ~~~~~~ ^ In file included from OMCppModelica_trunk_cpp_Modelica_Media_Examples_ReferenceAir_MoistAir2CalcHelperMain.cpp:35: In file included from ./OMCppModelica_trunk_cpp_Modelica_Media_Examples_ReferenceAir_MoistAir2FMU.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_MoistAir2CalcHelperMain.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_MoistAir2Functions.cpp:1396:86: note: in instantiation of member function 'StatArrayDim1::StatArrayDim1' requested here Modelica_Media_Air_ReferenceMoistAir_massFractionSaturationRetType /* undefined */ tmp167; ^ 1 warning and 6 errors generated. : recipe for target 'OMCppModelica_trunk_cpp_Modelica_Media_Examples_ReferenceAir_MoistAir2CalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica_Media_Examples_ReferenceAir_MoistAir2CalcHelperMain.o] Error 1