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.002402/0.002402, allocations: 185.9 kB / 16.4 MB, free: 5.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.99/1.99, allocations: 205.4 MB / 222.5 MB, free: 9.125 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001182/0.001182, allocations: 88.17 kB / 270.9 MB, free: 8.379 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004619/0.0004619, allocations: 12 kB / 327.1 MB, free: 116 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3378/0.3383, allocations: 47.57 MB / 374.6 MB, free: 45.31 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 19.55/19.89, allocations: 6.679 GB / 7.045 GB, free: 94.55 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002464/19.89, allocations: 77.59 kB / 7.045 GB, free: 94.54 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.112/21, allocations: 192.9 MB / 7.234 GB, free: 77.06 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.425e-06/21, allocations: 0 / 7.234 GB, free: 77.06 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.572e-05/21, allocations: 8 kB / 7.234 GB, free: 77.05 MB / 426.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.007964/21.01, allocations: 1.457 MB / 7.235 GB, free: 75.54 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.163e-05/21.01, allocations: 12.03 kB / 7.235 GB, free: 75.53 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.902e-05/21.01, allocations: 54.5 kB / 7.235 GB, free: 75.47 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001839/21.01, allocations: 23.81 kB / 7.235 GB, free: 75.45 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002968/21.01, allocations: 210.8 kB / 7.235 GB, free: 75.2 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.375e-05/21.01, allocations: 20.33 kB / 7.235 GB, free: 75.18 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.395e-05/21.01, allocations: 19.94 kB / 7.235 GB, free: 75.16 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001071/21.01, allocations: 281.4 kB / 7.236 GB, free: 74.88 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.334e-05/21.01, allocations: 0 / 7.236 GB, free: 74.88 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.581e-05/21.01, allocations: 8 kB / 7.236 GB, free: 74.87 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.699e-05/21.01, allocations: 11.95 kB / 7.236 GB, free: 74.86 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001304/21.01, allocations: 304.6 kB / 7.236 GB, free: 74.56 MB / 426.7 MB Warning: The model contains alias variables with redundant start and/or conflicting 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.001993/21.01, allocations: 0.7153 MB / 7.237 GB, free: 73.78 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001148/21.02, allocations: 253.1 kB / 7.237 GB, free: 73.52 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01904/21.03, allocations: 12.45 MB / 7.249 GB, free: 58.57 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.73e-05/21.04, allocations: 34.56 kB / 7.249 GB, free: 58.53 MB / 426.7 MB Notification: Performance of pre-optimization done (n=29): time 3.536e-06/21.04, allocations: 0 / 7.249 GB, free: 58.53 MB / 426.7 MB Notification: Performance of matching and sorting (n=36): time 0.004712/21.04, allocations: 0.6956 MB / 7.25 GB, free: 57.83 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.398e-05/21.04, allocations: 85.3 kB / 7.25 GB, free: 57.73 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001252/21.04, allocations: 113 kB / 7.25 GB, free: 57.61 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 4.785e-05/21.04, allocations: 29.7 kB / 7.25 GB, free: 57.58 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.171e-05/21.04, allocations: 179.2 kB / 7.25 GB, free: 57.4 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001213/21.04, allocations: 129.3 kB / 7.25 GB, free: 57.28 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.483e-05/21.04, allocations: 8 kB / 7.25 GB, free: 57.27 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 6.811e-05/21.04, allocations: 322.8 kB / 7.251 GB, free: 56.95 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000632/21.04, allocations: 135.9 kB / 7.251 GB, free: 56.81 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007869/21.04, allocations: 215.7 kB / 7.251 GB, free: 56.57 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000764/21.04, allocations: 148.9 kB / 7.251 GB, free: 56.43 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.656e-06/21.04, allocations: 7.938 kB / 7.251 GB, free: 56.42 MB / 426.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.00188/21.04, allocations: 416.1 kB / 7.252 GB, free: 56.01 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.582e-05/21.04, allocations: 8.031 kB / 7.252 GB, free: 56 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.174e-05/21.04, allocations: 4 kB / 7.252 GB, free: 56 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.614e-05/21.04, allocations: 7.953 kB / 7.252 GB, free: 55.99 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000855/21.05, allocations: 91.8 kB / 7.252 GB, free: 55.9 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.353e-05/21.05, allocations: 4 kB / 7.252 GB, free: 55.9 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000555/21.05, allocations: 27.89 kB / 7.252 GB, free: 55.87 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.411e-05/21.05, allocations: 19.98 kB / 7.252 GB, free: 55.85 MB / 426.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 () * Number of clocked 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.0002071/21.05, allocations: 141.7 kB / 7.252 GB, free: 55.7 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002037/21.05, allocations: 19.89 kB / 7.252 GB, free: 55.68 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007965/21.05, allocations: 203.6 kB / 7.252 GB, free: 55.48 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.178e-06/21.05, allocations: 4 kB / 7.252 GB, free: 55.48 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.405e-06/21.05, allocations: 3.953 kB / 7.252 GB, free: 55.48 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.688e-06/21.05, allocations: 7.969 kB / 7.252 GB, free: 55.47 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002576/21.05, allocations: 0.7675 MB / 7.253 GB, free: 54.64 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.019e-05/21.05, allocations: 4 kB / 7.253 GB, free: 54.64 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007952/21.05, allocations: 79.88 kB / 7.253 GB, free: 54.56 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.199e-05/21.05, allocations: 7.938 kB / 7.253 GB, free: 54.55 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.652e-05/21.05, allocations: 15.98 kB / 7.253 GB, free: 54.54 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.935e-06/21.05, allocations: 3.938 kB / 7.253 GB, free: 54.53 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.847e-06/21.05, allocations: 4 kB / 7.253 GB, free: 54.53 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002575/21.05, allocations: 0.7946 MB / 7.254 GB, free: 53.66 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002354/21.05, allocations: 124.9 kB / 7.254 GB, free: 53.52 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.685e-05/21.05, allocations: 8 kB / 7.254 GB, free: 53.52 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005853/21.05, allocations: 23.97 kB / 7.254 GB, free: 53.49 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.223e-05/21.05, allocations: 27.92 kB / 7.254 GB, free: 53.46 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.983e-05/21.05, allocations: 15.98 kB / 7.254 GB, free: 53.45 MB / 426.7 MB Notification: Performance of sorting global known variables: time 9.42e-05/21.05, allocations: 103.3 kB / 7.254 GB, free: 53.35 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.91e-07/21.05, allocations: 0 / 7.254 GB, free: 53.35 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005804/21.06, allocations: 1.1 MB / 7.255 GB, free: 52.25 MB / 426.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 () * Number of clocked 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.01354/21.07, allocations: 3.268 MB / 7.258 GB, free: 49.05 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001781/21.08, allocations: 348.2 kB / 7.259 GB, free: 48.71 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 7.595e-06/21.08, allocations: 0 / 7.259 GB, free: 48.71 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008/21.08, allocations: 184.5 kB / 7.259 GB, free: 48.53 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001022/21.08, allocations: 91.86 kB / 7.259 GB, free: 48.44 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04408/21.12, allocations: 14.85 MB / 7.273 GB, free: 33.82 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000244/21.12, allocations: 0.7457 MB / 7.274 GB, free: 33.05 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003791/21.12, allocations: 75.39 kB / 7.274 GB, free: 32.98 MB / 426.7 MB Notification: Performance of SimCode: time 1.252e-06/21.12, allocations: 0 / 7.274 GB, free: 32.98 MB / 426.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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp" -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/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 */; ^ ./OMCppModelica_3_2_3_cpp_Modelica_Media_Examples_ReferenceAir_MoistAirTypes.h:200: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_3_2_3_cpp_Modelica_Media_Examples_ReferenceAir_MoistAirCalcHelperMain.cpp:8: In file included from /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/Core/Modelica.h:205: /var/lib/jenkins1/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/jenkins1/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_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/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/jenkins1/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/jenkins1/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_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/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_3_2_3_cpp_Modelica_Media_Examples_ReferenceAir_MoistAirCalcHelperMain.cpp:8: In file included from /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/Core/Modelica.h:205: /var/lib/jenkins1/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_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 6 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