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: translateModel(Modelica.Media.Examples.ReferenceAir.MoistAir,tolerance=1e-05,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|medium.T|medium.p",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir") translateModel(Modelica.Media.Examples.ReferenceAir.MoistAir,tolerance=1e-05,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|medium.T|medium.p",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001579/0.001579, 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.945/1.945, 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.001147/0.001147, allocations: 89.61 kB / 270.9 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000401/0.000401, allocations: 8 kB / 327 MB, free: 212 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3372/0.3377, allocations: 47.57 MB / 374.5 MB, free: 45.43 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 19.09/19.43, allocations: 6.679 GB / 7.045 GB, free: 95.46 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002812/19.43, allocations: 72.58 kB / 7.045 GB, free: 95.46 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.08/20.51, allocations: 192.9 MB / 7.234 GB, free: 80.07 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.024e-06/20.51, allocations: 0 / 7.234 GB, free: 80.07 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.452e-05/20.51, allocations: 4 kB / 7.234 GB, free: 80.06 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.007317/20.51, allocations: 1.465 MB / 7.235 GB, free: 78.66 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.164e-05/20.51, allocations: 8.031 kB / 7.235 GB, free: 78.65 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001973/20.51, allocations: 27.77 kB / 7.235 GB, free: 78.62 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002695/20.51, allocations: 218 kB / 7.235 GB, free: 78.38 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.468e-05/20.51, allocations: 12.27 kB / 7.235 GB, free: 78.37 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.937e-05/20.51, allocations: 16 kB / 7.235 GB, free: 78.36 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001004/20.52, allocations: 292.3 kB / 7.236 GB, free: 78.12 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.775e-05/20.52, allocations: 0 / 7.236 GB, free: 78.12 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.214e-05/20.52, allocations: 8 kB / 7.236 GB, free: 78.12 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.301e-05/20.52, allocations: 7.953 kB / 7.236 GB, free: 78.11 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001216/20.52, allocations: 306.5 kB / 7.236 GB, free: 77.87 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.001779/20.52, allocations: 0.7039 MB / 7.237 GB, free: 77.21 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001036/20.52, allocations: 250.2 kB / 7.237 GB, free: 76.98 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01793/20.54, allocations: 12.44 MB / 7.249 GB, free: 62.7 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.161e-05/20.54, allocations: 38.5 kB / 7.249 GB, free: 62.65 MB / 426.7 MB Notification: Performance of pre-optimization done (n=29): time 2.905e-06/20.54, allocations: 0 / 7.249 GB, free: 62.65 MB / 426.7 MB Notification: Performance of matching and sorting (n=36): time 0.004485/20.54, allocations: 0.6993 MB / 7.25 GB, free: 62.06 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.54e-05/20.54, allocations: 81.3 kB / 7.25 GB, free: 61.96 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001139/20.54, allocations: 115.5 kB / 7.25 GB, free: 61.85 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 4.366e-05/20.54, allocations: 29.7 kB / 7.25 GB, free: 61.81 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.03e-05/20.54, allocations: 180 kB / 7.25 GB, free: 61.64 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001139/20.54, allocations: 124.3 kB / 7.25 GB, free: 61.52 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.491e-05/20.54, allocations: 11.94 kB / 7.25 GB, free: 61.51 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 6.668e-05/20.54, allocations: 330.4 kB / 7.25 GB, free: 61.19 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006261/20.54, allocations: 134.3 kB / 7.251 GB, free: 61.08 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007626/20.54, allocations: 205.1 kB / 7.251 GB, free: 60.88 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007437/20.54, allocations: 150.3 kB / 7.251 GB, free: 60.75 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/20.54, allocations: 0 / 7.251 GB, free: 60.75 MB / 426.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001796/20.55, allocations: 422.9 kB / 7.251 GB, free: 60.33 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.953e-05/20.55, allocations: 7.938 kB / 7.251 GB, free: 60.32 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.157e-06/20.55, allocations: 4 kB / 7.251 GB, free: 60.32 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.326e-05/20.55, allocations: 4 kB / 7.251 GB, free: 60.32 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008197/20.55, allocations: 91.83 kB / 7.251 GB, free: 60.23 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.215e-05/20.55, allocations: 8.141 kB / 7.251 GB, free: 60.22 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005465/20.55, allocations: 27.97 kB / 7.252 GB, free: 60.19 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.799e-05/20.55, allocations: 16 kB / 7.252 GB, free: 60.18 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.0001789/20.55, allocations: 145.7 kB / 7.252 GB, free: 60.02 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001626/20.55, allocations: 19.81 kB / 7.252 GB, free: 60 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007525/20.55, allocations: 207.5 kB / 7.252 GB, free: 59.8 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.924e-06/20.55, allocations: 7.984 kB / 7.252 GB, free: 59.79 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.474e-06/20.55, allocations: 3.953 kB / 7.252 GB, free: 59.79 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.963e-06/20.55, allocations: 0 / 7.252 GB, free: 59.79 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002363/20.55, allocations: 0.7725 MB / 7.253 GB, free: 58.96 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.053e-06/20.55, allocations: 4 kB / 7.253 GB, free: 58.95 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007554/20.55, allocations: 83.81 kB / 7.253 GB, free: 58.87 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.586e-06/20.55, allocations: 4 kB / 7.253 GB, free: 58.87 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.178e-05/20.55, allocations: 12.16 kB / 7.253 GB, free: 58.86 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.482e-06/20.55, allocations: 7.984 kB / 7.253 GB, free: 58.85 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.747e-06/20.55, allocations: 4 kB / 7.253 GB, free: 58.84 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002422/20.55, allocations: 0.7841 MB / 7.254 GB, free: 57.99 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001674/20.56, allocations: 128.9 kB / 7.254 GB, free: 57.84 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.174e-05/20.56, allocations: 8 kB / 7.254 GB, free: 57.84 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005563/20.56, allocations: 24.05 kB / 7.254 GB, free: 57.81 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.804e-05/20.56, allocations: 23.97 kB / 7.254 GB, free: 57.79 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.752e-05/20.56, allocations: 27.94 kB / 7.254 GB, free: 57.76 MB / 426.7 MB Notification: Performance of sorting global known variables: time 6.755e-05/20.56, allocations: 95.27 kB / 7.254 GB, free: 57.67 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.91e-07/20.56, allocations: 0 / 7.254 GB, free: 57.67 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005281/20.56, allocations: 1.104 MB / 7.255 GB, free: 56.56 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.009761/20.57, allocations: 1.627 MB / 7.256 GB, free: 55.06 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001666/20.57, allocations: 343.6 kB / 7.257 GB, free: 54.73 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.951e-06/20.57, allocations: 0 / 7.257 GB, free: 54.73 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007538/20.57, allocations: 193.9 kB / 7.257 GB, free: 54.54 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009151/20.57, allocations: 92.44 kB / 7.257 GB, free: 54.45 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03567/20.61, allocations: 12.38 MB / 7.269 GB, free: 42.36 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005452/20.61, allocations: 0.7535 MB / 7.27 GB, free: 57.59 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003527/20.61, allocations: 39.41 kB / 7.27 GB, free: 57.55 MB / 442.7 MB Notification: Performance of SimCode: time 1.252e-06/20.61, allocations: 0 / 7.27 GB, free: 57.55 MB / 442.7 MB Notification: Performance of Templates: time 0.05436/20.67, allocations: 26.94 MB / 7.296 GB, free: 30.58 MB / 442.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir.makefile make -j1 -f Modelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir.makefile b'clang++ -fopenmp=libomp -Winvalid-pch -O0 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=2 -DSUNDIALS_MINOR_VERSION=6 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. -I"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" -DMEASURETIME_PROFILEBLOCKS -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\nIn file included from OMCppModelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.MoistAirCalcHelperMain.cpp:15:\n./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]\ntypedef StatArrayDim1< double, -1> /*testarray2*/ Modelica_Media_Air_ReferenceMoistAir_massFractionSaturationRetType /* functionHeaderRegularFunction1 */;\n ^\n./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]\ntypedef StatArrayDim1& Modelica_Media_Air_ReferenceMoistAir_massFractionSaturationRefRetType /* functionHeaderRegularFunction1 */;\n ^\nIn file included from OMCppModelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.MoistAirCalcHelperMain.cpp:8:\nIn file included from /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/Core/Modelica.h:205:\n/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)\n T _array[external || nelems == 0? 1: nelems]; // static array\n ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n/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\nclass StatArrayDim1 : public StatArray\n ^\n./OMCppModelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.MoistAirFunctions.h:336:70: note: in instantiation of template class \'StatArrayDim1\' requested here\n Modelica_Media_Air_ReferenceMoistAir_massFractionSaturationRetType _Modelica_Media_Air_ReferenceMoistAir_massFractionSaturation;\n ^\nIn file included from OMCppModelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.MoistAirCalcHelperMain.cpp:28:\n./OMCppModelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.MoistAirFunctions.cpp:1158:8: error: no matching member function for call to \'assign\'\n X_.assign(tmp109);\n ~~~^~~~~~\n/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\n virtual void assign(const BaseArray& b)\n ^\n/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\n virtual void assign(const T* data)\n ^\n/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\n virtual void assign(const T& value)\n ^\nIn file included from OMCppModelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.MoistAirCalcHelperMain.cpp:28:\n./OMCppModelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.MoistAirFunctions.cpp:1199:10: error: no member named \'assign\' in \'StatArrayDim1\'\n output.assign(Xsat_);\n ~~~~~~ ^\nIn file included from OMCppModelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.MoistAirCalcHelperMain.cpp:8:\nIn file included from /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/Core/Modelica.h:205:\n/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\'\n :StatArray() {}\n ^~~~~~~~~~~~~~~~~~~~~~~~~~~~\n./OMCppModelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.MoistAirFunctions.cpp:1152:86: note: in instantiation of member function \'StatArrayDim1::StatArrayDim1\' requested here\n Modelica_Media_Air_ReferenceMoistAir_massFractionSaturationRetType /* undefined */ tmp109;\n ^\n6 errors generated.\n: recipe for target \'OMCppModelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.MoistAirCalcHelperMain.o\' failed\nmake: *** [OMCppModelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.MoistAirCalcHelperMain.o] Error 1\n'