Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Media.Examples.ReferenceAir.MoistAir,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Media_Examples_ReferenceAir_MoistAir",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Media.Examples.ReferenceAir.MoistAir,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Media_Examples_ReferenceAir_MoistAir",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002285/0.002285, allocations: 177.8 kB / 8.36 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.177/2.177, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001131/0.001131, allocations: 99.34 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 3.452e-05/3.48e-05, allocations: 4 kB / 314.9 MB, free: 9.059 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3776/0.3777, allocations: 47.57 MB / 362.4 MB, free: 45.73 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 20.78/21.16, allocations: 6.679 GB / 7.033 GB, free: 95.74 MB / 427.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002852/21.16, allocations: 75.05 kB / 7.033 GB, free: 95.74 MB / 427.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.172/22.33, allocations: 190 MB / 7.218 GB, free: 66.26 MB / 427.1 MB Notification: Performance of FrontEnd: time 2.154e-06/22.33, allocations: 2.812 kB / 7.218 GB, free: 66.26 MB / 427.1 MB Notification: Performance of Transformations before backend: time 1.72e-05/22.33, allocations: 2.812 kB / 7.218 GB, free: 66.26 MB / 427.1 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.008638/22.34, allocations: 1.455 MB / 7.22 GB, free: 65.54 MB / 427.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.504e-05/22.34, allocations: 9.281 kB / 7.22 GB, free: 65.54 MB / 427.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002316/22.34, allocations: 27.98 kB / 7.22 GB, free: 65.53 MB / 427.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003389/22.34, allocations: 212.8 kB / 7.22 GB, free: 65.34 MB / 427.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.605e-05/22.34, allocations: 7.844 kB / 7.22 GB, free: 65.33 MB / 427.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.264e-05/22.34, allocations: 14.28 kB / 7.22 GB, free: 65.33 MB / 427.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006407/22.34, allocations: 239.1 kB / 7.22 GB, free: 65.33 MB / 427.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005439/22.34, allocations: 230.8 kB / 7.22 GB, free: 65.29 MB / 427.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.049e-05/22.34, allocations: 0 / 7.22 GB, free: 65.29 MB / 427.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.502e-05/22.34, allocations: 3.953 kB / 7.22 GB, free: 65.28 MB / 427.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.418e-05/22.34, allocations: 12.56 kB / 7.22 GB, free: 65.28 MB / 427.1 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.002002/22.34, allocations: 0.6817 MB / 7.221 GB, free: 64.93 MB / 427.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006618/22.34, allocations: 205.9 kB / 7.221 GB, free: 64.88 MB / 427.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002365/22.34, allocations: 112.3 kB / 7.221 GB, free: 64.87 MB / 427.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01943/22.36, allocations: 12.47 MB / 7.234 GB, free: 52.1 MB / 427.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.067e-05/22.36, allocations: 37.31 kB / 7.234 GB, free: 52.06 MB / 427.1 MB Notification: Performance of pre-optimization done (n=29): time 4.689e-06/22.36, allocations: 0 / 7.234 GB, free: 52.06 MB / 427.1 MB Notification: Performance of matching and sorting (n=36): time 0.002941/22.37, allocations: 0.4999 MB / 7.234 GB, free: 52 MB / 427.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.586e-05/22.37, allocations: 81.17 kB / 7.234 GB, free: 51.91 MB / 427.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001238/22.37, allocations: 113 kB / 7.234 GB, free: 51.82 MB / 427.1 MB Notification: Performance of collectPreVariables (initialization): time 4.114e-05/22.37, allocations: 25.7 kB / 7.234 GB, free: 51.79 MB / 427.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.514e-05/22.37, allocations: 184.6 kB / 7.234 GB, free: 51.62 MB / 427.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001177/22.37, allocations: 117.1 kB / 7.235 GB, free: 51.56 MB / 427.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.125e-05/22.37, allocations: 0 / 7.235 GB, free: 51.56 MB / 427.1 MB Notification: Performance of setup shared object (initialization): time 7.642e-05/22.37, allocations: 324.9 kB / 7.235 GB, free: 51.25 MB / 427.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002575/22.37, allocations: 108.3 kB / 7.235 GB, free: 51.25 MB / 427.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003437/22.37, allocations: 167.7 kB / 7.235 GB, free: 51.18 MB / 427.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005979/22.37, allocations: 149.7 kB / 7.235 GB, free: 51.18 MB / 427.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.311e-06/22.37, allocations: 3.375 kB / 7.235 GB, free: 51.18 MB / 427.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001167/22.37, allocations: 362.4 kB / 7.236 GB, free: 51.13 MB / 427.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.28e-05/22.37, allocations: 3.75 kB / 7.236 GB, free: 51.13 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.114e-05/22.37, allocations: 6.969 kB / 7.236 GB, free: 51.13 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.686e-05/22.37, allocations: 3.562 kB / 7.236 GB, free: 51.13 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008373/22.37, allocations: 88.25 kB / 7.236 GB, free: 51.13 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.403e-05/22.37, allocations: 11.81 kB / 7.236 GB, free: 51.13 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005429/22.37, allocations: 17.72 kB / 7.236 GB, free: 51.13 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.627e-05/22.37, allocations: 22.78 kB / 7.236 GB, free: 51.13 MB / 427.1 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.0001464/22.37, allocations: 111.3 kB / 7.236 GB, free: 51.02 MB / 427.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001192/22.37, allocations: 320.7 kB / 7.236 GB, free: 50.98 MB / 427.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001509/22.37, allocations: 23.41 kB / 7.236 GB, free: 50.96 MB / 427.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007808/22.37, allocations: 208.8 kB / 7.236 GB, free: 50.93 MB / 427.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.328e-06/22.37, allocations: 7.359 kB / 7.236 GB, free: 50.93 MB / 427.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.404e-06/22.37, allocations: 0 / 7.236 GB, free: 50.93 MB / 427.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.007e-06/22.37, allocations: 0 / 7.236 GB, free: 50.93 MB / 427.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001757/22.38, allocations: 0.6671 MB / 7.237 GB, free: 50.61 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.843e-06/22.38, allocations: 6.875 kB / 7.237 GB, free: 50.61 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007903/22.38, allocations: 84.7 kB / 7.237 GB, free: 50.61 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.135e-05/22.38, allocations: 3.812 kB / 7.237 GB, free: 50.61 MB / 427.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.207e-05/22.38, allocations: 8.234 kB / 7.237 GB, free: 50.61 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.512e-06/22.38, allocations: 3.938 kB / 7.237 GB, free: 50.61 MB / 427.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.47e-06/22.38, allocations: 3.906 kB / 7.237 GB, free: 50.61 MB / 427.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001533/22.38, allocations: 0.7043 MB / 7.238 GB, free: 50.25 MB / 427.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000209/22.38, allocations: 127.9 kB / 7.238 GB, free: 50.15 MB / 427.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.029e-05/22.38, allocations: 10.53 kB / 7.238 GB, free: 50.15 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005834/22.38, allocations: 12.62 kB / 7.238 GB, free: 50.15 MB / 427.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.603e-05/22.38, allocations: 30.36 kB / 7.238 GB, free: 50.14 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.699e-05/22.38, allocations: 18.62 kB / 7.238 GB, free: 50.14 MB / 427.1 MB Notification: Performance of sorting global known variables: time 7.429e-05/22.38, allocations: 102.3 kB / 7.238 GB, free: 50.07 MB / 427.1 MB Notification: Performance of sort global known variables: time 4.01e-07/22.38, allocations: 0 / 7.238 GB, free: 50.07 MB / 427.1 MB Notification: Performance of remove unused functions: time 0.006157/22.39, allocations: 1.086 MB / 7.239 GB, free: 49.9 MB / 427.1 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.01323/22.4, allocations: 3.227 MB / 7.242 GB, free: 48.4 MB / 427.1 MB Notification: Performance of simCode: created initialization part: time 0.0008366/22.4, allocations: 284.9 kB / 7.243 GB, free: 48.39 MB / 427.1 MB Notification: Performance of simCode: created event and clocks part: time 5.651e-06/22.4, allocations: 0 / 7.243 GB, free: 48.39 MB / 427.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003442/22.4, allocations: 150.8 kB / 7.243 GB, free: 48.38 MB / 427.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001018/22.4, allocations: 88.81 kB / 7.243 GB, free: 48.37 MB / 427.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0417/22.44, allocations: 12.36 MB / 7.255 GB, free: 46.79 MB / 427.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001357/22.44, allocations: 0.7444 MB / 7.256 GB, free: 62.08 MB / 443.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004268/22.44, allocations: 79.94 kB / 7.256 GB, free: 62.07 MB / 443.1 MB Notification: Performance of SimCode: time 1.503e-06/22.44, allocations: 0 / 7.256 GB, free: 62.07 MB / 443.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/include/omc/cpp" -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/include/omc/c/sundials" -I"." -DUSE_LOGGER -c -o OMCppModelica_3_2_3_cpp_Modelica_Media_Examples_ReferenceAir_MoistAirCalcHelperMain.o OMCppModelica_3_2_3_cpp_Modelica_Media_Examples_ReferenceAir_MoistAirCalcHelperMain.cpp In file included from OMCppModelica_3_2_3_cpp_Modelica_Media_Examples_ReferenceAir_MoistAirCalcHelperMain.cpp:16: ./OMCppModelica_3_2_3_cpp_Modelica_Media_Examples_ReferenceAir_MoistAirTypes.h:199: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 */; ^ In file included from OMCppModelica_3_2_3_cpp_Modelica_Media_Examples_ReferenceAir_MoistAirCalcHelperMain.cpp:8: In file included from /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/include/omc/cpp/Core/Modelica.h:205: /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/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/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/include/omc/cpp/Core/Math/Array.h:833:30: note: in instantiation of template class 'StatArray' requested here class StatArrayDim1 : public StatArray ^ ./OMCppModelica_3_2_3_cpp_Modelica_Media_Examples_ReferenceAir_MoistAirFunctions.h:336: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_3_2_3_cpp_Modelica_Media_Examples_ReferenceAir_MoistAirCalcHelperMain.cpp:28: ./OMCppModelica_3_2_3_cpp_Modelica_Media_Examples_ReferenceAir_MoistAirFunctions.cpp:1158:8: error: no matching member function for call to 'assign' X_.assign(tmp109); ~~~^~~~~~ /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/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/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/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/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/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_3_2_3_cpp_Modelica_Media_Examples_ReferenceAir_MoistAirCalcHelperMain.cpp:28: ./OMCppModelica_3_2_3_cpp_Modelica_Media_Examples_ReferenceAir_MoistAirFunctions.cpp:1199:10: error: no member named 'assign' in 'StatArrayDim1' output.assign(Xsat_); ~~~~~~ ^ In file included from OMCppModelica_3_2_3_cpp_Modelica_Media_Examples_ReferenceAir_MoistAirCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_3_cpp_Modelica_Media_Examples_ReferenceAir_MoistAirFMU.cpp:11: /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/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_3_2_3_cpp_Modelica_Media_Examples_ReferenceAir_MoistAirCalcHelperMain.cpp:8: In file included from /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/include/omc/cpp/Core/Modelica.h:205: /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/include/omc/cpp/Core/Math/Array.h:878:6: error: type 'StatArray' is not a direct or virtual base of 'StatArrayDim1' :StatArray() {} ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./OMCppModelica_3_2_3_cpp_Modelica_Media_Examples_ReferenceAir_MoistAirFunctions.cpp:1152:86: note: in instantiation of member function 'StatArrayDim1::StatArrayDim1' requested here Modelica_Media_Air_ReferenceMoistAir_massFractionSaturationRetType /* undefined */ tmp109; ^ 1 warning and 5 errors generated. : recipe for target 'OMCppModelica_3_2_3_cpp_Modelica_Media_Examples_ReferenceAir_MoistAirCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_3_cpp_Modelica_Media_Examples_ReferenceAir_MoistAirCalcHelperMain.o] Error 1