Running command: "" <> buildModelFMU(Modelica.Media.Examples.ReferenceAir.MoistAir,fileNamePrefix="Modelica_trunk_cpp_Modelica_Media_Examples_ReferenceAir_MoistAir",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.052/2.052, allocations: 225.8 MB / 239.3 MB, free: 11.18 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 3.715e-05/3.724e-05, allocations: 4 kB / 292.2 MB, free: 8.727 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1298/0.1298, allocations: 50.41 MB / 342.6 MB, free: 6.293 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 19.09/19.22, allocations: 6.205 GB / 6.54 GB, free: 22.86 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002694/19.22, allocations: 76.83 kB / 6.54 GB, free: 22.82 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.273/20.49, allocations: 202 MB / 6.737 GB, free: 13.86 MB / 458.7 MB Notification: Performance of FrontEnd: time 1.683e-06/20.49, allocations: 0 / 6.737 GB, free: 13.86 MB / 458.7 MB Notification: Performance of Transformations before backend: time 1.549e-05/20.49, allocations: 4 kB / 6.737 GB, free: 13.86 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.007677/20.5, allocations: 1.445 MB / 6.739 GB, free: 12.36 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.009e-05/20.5, allocations: 8.031 kB / 6.739 GB, free: 12.36 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.979e-05/20.5, allocations: 54.55 kB / 6.739 GB, free: 12.29 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001838/20.5, allocations: 19.81 kB / 6.739 GB, free: 12.27 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002847/20.5, allocations: 222.8 kB / 6.739 GB, free: 12.02 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.813e-05/20.5, allocations: 8.328 kB / 6.739 GB, free: 12.01 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.754e-05/20.5, allocations: 16 kB / 6.739 GB, free: 11.99 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007864/20.5, allocations: 269.1 kB / 6.739 GB, free: 11.72 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.886e-05/20.5, allocations: 0 / 6.739 GB, free: 11.72 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.346e-05/20.5, allocations: 7.938 kB / 6.739 GB, free: 11.71 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.441e-05/20.5, allocations: 12 kB / 6.739 GB, free: 11.7 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007916/20.5, allocations: 263.9 kB / 6.739 GB, free: 11.44 MB / 458.7 MB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001927/20.51, allocations: 0.7374 MB / 6.74 GB, free: 10.63 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008431/20.51, allocations: 217.3 kB / 6.74 GB, free: 10.4 MB / 458.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002688/20.51, allocations: 130 kB / 6.74 GB, free: 10.27 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3558/20.86, allocations: 12.45 MB / 6.753 GB, free: 64.78 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.389e-05/20.86, allocations: 37.06 kB / 6.753 GB, free: 64.74 MB / 458.7 MB Notification: Performance of pre-optimization done (n=29): time 3.617e-06/20.86, allocations: 0 / 6.753 GB, free: 64.74 MB / 458.7 MB Notification: Performance of matching and sorting (n=36): time 0.003417/20.87, allocations: 0.508 MB / 6.753 GB, free: 64.7 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.478e-05/20.87, allocations: 84.55 kB / 6.753 GB, free: 64.6 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001437/20.87, allocations: 123.7 kB / 6.753 GB, free: 64.51 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 4.462e-05/20.87, allocations: 30.38 kB / 6.753 GB, free: 64.48 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.695e-05/20.87, allocations: 172.4 kB / 6.754 GB, free: 64.32 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000147/20.87, allocations: 133.7 kB / 6.754 GB, free: 64.25 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.829e-05/20.87, allocations: 6.688 kB / 6.754 GB, free: 64.25 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 8.086e-05/20.87, allocations: 329.3 kB / 6.754 GB, free: 63.94 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003573/20.87, allocations: 110 kB / 6.754 GB, free: 63.94 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000495/20.87, allocations: 183.1 kB / 6.754 GB, free: 63.87 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004918/20.87, allocations: 130.8 kB / 6.754 GB, free: 63.87 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.849e-06/20.87, allocations: 1.188 kB / 6.754 GB, free: 63.87 MB / 458.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001367/20.87, allocations: 360.3 kB / 6.755 GB, free: 63.83 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.831e-05/20.87, allocations: 12.27 kB / 6.755 GB, free: 63.82 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.248e-05/20.87, allocations: 3.047 kB / 6.755 GB, free: 63.82 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.87e-05/20.87, allocations: 4.531 kB / 6.755 GB, free: 63.82 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000946/20.87, allocations: 88.83 kB / 6.755 GB, free: 63.82 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.949e-05/20.87, allocations: 11.33 kB / 6.755 GB, free: 63.82 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005788/20.87, allocations: 27.48 kB / 6.755 GB, free: 63.82 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.82e-05/20.87, allocations: 20.67 kB / 6.755 GB, free: 63.82 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (43): * Single equations (assignments): 43 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001644/20.87, allocations: 122.5 kB / 6.755 GB, free: 63.71 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002119/20.87, allocations: 19.28 kB / 6.755 GB, free: 63.71 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009301/20.87, allocations: 206.2 kB / 6.755 GB, free: 63.66 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.137e-05/20.87, allocations: 13.45 kB / 6.755 GB, free: 63.66 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.939e-06/20.87, allocations: 0 / 6.755 GB, free: 63.66 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.026e-05/20.87, allocations: 3.641 kB / 6.755 GB, free: 63.66 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002034/20.87, allocations: 0.7076 MB / 6.756 GB, free: 63.32 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.274e-06/20.87, allocations: 1.797 kB / 6.756 GB, free: 63.32 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008209/20.88, allocations: 80.08 kB / 6.756 GB, free: 63.32 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.236e-05/20.88, allocations: 3.156 kB / 6.756 GB, free: 63.32 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.913e-05/20.88, allocations: 12.03 kB / 6.756 GB, free: 63.32 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.063e-05/20.88, allocations: 6.047 kB / 6.756 GB, free: 63.32 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.069e-06/20.88, allocations: 5.656 kB / 6.756 GB, free: 63.32 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001709/20.88, allocations: 0.7181 MB / 6.757 GB, free: 62.95 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002196/20.88, allocations: 126 kB / 6.757 GB, free: 62.85 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.427e-05/20.88, allocations: 11.28 kB / 6.757 GB, free: 62.85 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006136/20.88, allocations: 21.92 kB / 6.757 GB, free: 62.85 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.681e-05/20.88, allocations: 31.14 kB / 6.757 GB, free: 62.84 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.189e-05/20.88, allocations: 18.12 kB / 6.757 GB, free: 62.84 MB / 458.7 MB Notification: Performance of sorting global known variables: time 8.511e-05/20.88, allocations: 98.16 kB / 6.757 GB, free: 62.77 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.302e-06/20.88, allocations: 0 / 6.757 GB, free: 62.77 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.006225/20.89, allocations: 1.122 MB / 6.758 GB, free: 62.77 MB / 458.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 2 (medium.p,medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (38): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01376/20.9, allocations: 3.166 MB / 6.761 GB, free: 61.48 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.001127/20.9, allocations: 291 kB / 6.762 GB, free: 61.48 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 6.101e-06/20.9, allocations: 3.969 kB / 6.762 GB, free: 61.48 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004593/20.9, allocations: 148 kB / 6.762 GB, free: 61.48 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001087/20.9, allocations: 106.1 kB / 6.762 GB, free: 61.47 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04665/20.95, allocations: 12.82 MB / 6.774 GB, free: 60.45 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002672/20.95, allocations: 0.7415 MB / 6.775 GB, free: 59.75 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003869/20.95, allocations: 73.41 kB / 6.775 GB, free: 59.74 MB / 458.7 MB Notification: Performance of SimCode: time 1.363e-06/20.95, allocations: 2.062 kB / 6.775 GB, free: 59.74 MB / 458.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_MoistAirCalcHelperMain.o OMCppModelica_trunk_cpp_Modelica_Media_Examples_ReferenceAir_MoistAirCalcHelperMain.cpp In file included from OMCppModelica_trunk_cpp_Modelica_Media_Examples_ReferenceAir_MoistAirCalcHelperMain.cpp:16: ./OMCppModelica_trunk_cpp_Modelica_Media_Examples_ReferenceAir_MoistAirTypes.h:226: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_MoistAirTypes.h:227: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_MoistAirCalcHelperMain.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_MoistAirFunctions.h:360: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_MoistAirCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica_Media_Examples_ReferenceAir_MoistAirFunctions.cpp:1370:8: error: no matching member function for call to 'assign' X_.assign(tmp120); ~~~^~~~~~ /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_MoistAirCalcHelperMain.cpp:28: ./OMCppModelica_trunk_cpp_Modelica_Media_Examples_ReferenceAir_MoistAirFunctions.cpp:1411:10: error: no member named 'assign' in 'StatArrayDim1' output.assign(Xsat_); ~~~~~~ ^ In file included from OMCppModelica_trunk_cpp_Modelica_Media_Examples_ReferenceAir_MoistAirCalcHelperMain.cpp:35: In file included from ./OMCppModelica_trunk_cpp_Modelica_Media_Examples_ReferenceAir_MoistAirFMU.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_MoistAirCalcHelperMain.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_MoistAirFunctions.cpp:1364:86: note: in instantiation of member function 'StatArrayDim1::StatArrayDim1' requested here Modelica_Media_Air_ReferenceMoistAir_massFractionSaturationRetType /* undefined */ tmp120; ^ 1 warning and 6 errors generated. : recipe for target 'OMCppModelica_trunk_cpp_Modelica_Media_Examples_ReferenceAir_MoistAirCalcHelperMain.o' failed make: *** [OMCppModelica_trunk_cpp_Modelica_Media_Examples_ReferenceAir_MoistAirCalcHelperMain.o] Error 1