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.002612/0.002611, allocations: 181.7 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.054/2.054, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001083/0.001083, allocations: 86.7 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.136e-05/3.142e-05, allocations: 4 kB / 321.5 MB, free: 17.84 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1061/0.1062, allocations: 47.58 MB / 369.1 MB, free: 2.203 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 19.7/19.81, allocations: 6.679 GB / 7.04 GB, free: 96.62 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002843/19.81, allocations: 74.58 kB / 7.04 GB, free: 96.62 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.092/20.9, allocations: 192.6 MB / 7.228 GB, free: 67.91 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.106e-06/20.9, allocations: 0 / 7.228 GB, free: 67.91 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.537e-05/20.9, allocations: 6.75 kB / 7.228 GB, free: 67.91 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.008326/20.91, allocations: 1.44 MB / 7.229 GB, free: 67.12 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.096e-05/20.91, allocations: 9.094 kB / 7.229 GB, free: 67.12 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002076/20.91, allocations: 27.36 kB / 7.229 GB, free: 67.11 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000311/20.91, allocations: 216.9 kB / 7.23 GB, free: 66.91 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.724e-05/20.91, allocations: 14.27 kB / 7.23 GB, free: 66.91 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.369e-05/20.91, allocations: 17.72 kB / 7.23 GB, free: 66.91 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008258/20.91, allocations: 263.1 kB / 7.23 GB, free: 66.85 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.199e-05/20.91, allocations: 7.594 kB / 7.23 GB, free: 66.85 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.34e-05/20.91, allocations: 7.531 kB / 7.23 GB, free: 66.85 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.888e-05/20.91, allocations: 11.77 kB / 7.23 GB, free: 66.84 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007782/20.91, allocations: 280.2 kB / 7.23 GB, free: 66.84 MB / 426.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.001903/20.91, allocations: 0.7148 MB / 7.231 GB, free: 66.45 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008485/20.92, allocations: 224 kB / 7.231 GB, free: 66.4 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000263/20.92, allocations: 117.2 kB / 7.231 GB, free: 66.38 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01861/20.93, allocations: 12.47 MB / 7.243 GB, free: 53.62 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.553e-05/20.93, allocations: 34.06 kB / 7.243 GB, free: 53.58 MB / 426.7 MB Notification: Performance of pre-optimization done (n=29): time 2.545e-06/20.93, allocations: 0 / 7.243 GB, free: 53.58 MB / 426.7 MB Notification: Performance of matching and sorting (n=36): time 0.003005/20.94, allocations: 0.521 MB / 7.244 GB, free: 53.5 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.344e-05/20.94, allocations: 81.11 kB / 7.244 GB, free: 53.41 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001109/20.94, allocations: 115.1 kB / 7.244 GB, free: 53.32 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 4.313e-05/20.94, allocations: 29.33 kB / 7.244 GB, free: 53.29 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.906e-05/20.94, allocations: 178.3 kB / 7.244 GB, free: 53.12 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001172/20.94, allocations: 133.9 kB / 7.244 GB, free: 53.04 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.515e-05/20.94, allocations: 9.094 kB / 7.244 GB, free: 53.04 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 7.333e-05/20.94, allocations: 326.8 kB / 7.245 GB, free: 52.72 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003273/20.94, allocations: 112.8 kB / 7.245 GB, free: 52.72 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004337/20.94, allocations: 177.8 kB / 7.245 GB, free: 52.65 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004201/20.94, allocations: 136.8 kB / 7.245 GB, free: 52.64 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.975e-06/20.94, allocations: 0 / 7.245 GB, free: 52.64 MB / 426.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.001148/20.94, allocations: 375.1 kB / 7.245 GB, free: 52.58 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.269e-05/20.94, allocations: 6.812 kB / 7.245 GB, free: 52.58 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.999e-06/20.94, allocations: 0 / 7.245 GB, free: 52.58 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.789e-05/20.94, allocations: 7.703 kB / 7.245 GB, free: 52.58 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008425/20.94, allocations: 96.7 kB / 7.246 GB, free: 52.57 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.482e-05/20.94, allocations: 7.406 kB / 7.246 GB, free: 52.57 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005491/20.94, allocations: 29.19 kB / 7.246 GB, free: 52.57 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.536e-05/20.94, allocations: 14.72 kB / 7.246 GB, free: 52.57 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 () * 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.0001425/20.94, allocations: 123.3 kB / 7.246 GB, free: 52.46 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001843/20.94, allocations: 19.42 kB / 7.246 GB, free: 52.45 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007615/20.94, allocations: 193.5 kB / 7.246 GB, free: 52.41 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.215e-06/20.94, allocations: 11.31 kB / 7.246 GB, free: 52.41 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.677e-06/20.94, allocations: 11.34 kB / 7.246 GB, free: 52.41 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.805e-06/20.94, allocations: 0 / 7.246 GB, free: 52.41 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001793/20.94, allocations: 0.7251 MB / 7.247 GB, free: 52.04 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.31e-06/20.94, allocations: 0 / 7.247 GB, free: 52.04 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000763/20.95, allocations: 79.62 kB / 7.247 GB, free: 52.04 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.021e-05/20.95, allocations: 4.75 kB / 7.247 GB, free: 52.04 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.655e-05/20.95, allocations: 15.53 kB / 7.247 GB, free: 52.04 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.903e-06/20.95, allocations: 3.219 kB / 7.247 GB, free: 52.04 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.938e-06/20.95, allocations: 3.969 kB / 7.247 GB, free: 52.04 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001565/20.95, allocations: 0.7121 MB / 7.247 GB, free: 51.67 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001951/20.95, allocations: 127.7 kB / 7.248 GB, free: 51.57 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.37e-05/20.95, allocations: 6.906 kB / 7.248 GB, free: 51.57 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005787/20.95, allocations: 20.16 kB / 7.248 GB, free: 51.57 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.851e-05/20.95, allocations: 32.48 kB / 7.248 GB, free: 51.56 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.636e-05/20.95, allocations: 20.62 kB / 7.248 GB, free: 51.56 MB / 426.7 MB Notification: Performance of sorting global known variables: time 7.872e-05/20.95, allocations: 99.19 kB / 7.248 GB, free: 51.48 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.51e-07/20.95, allocations: 0 / 7.248 GB, free: 51.48 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.005629/20.95, allocations: 1.099 MB / 7.249 GB, free: 51.29 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 () * 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.01049/20.96, allocations: 1.634 MB / 7.25 GB, free: 50.97 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001013/20.97, allocations: 309.5 kB / 7.251 GB, free: 50.95 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.4e-06/20.97, allocations: 3.719 kB / 7.251 GB, free: 50.95 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004919/20.97, allocations: 159.6 kB / 7.251 GB, free: 50.93 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009764/20.97, allocations: 91.97 kB / 7.251 GB, free: 50.93 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03736/21, allocations: 12.05 MB / 7.263 GB, free: 49.46 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002178/21, allocations: 0.7419 MB / 7.263 GB, free: 48.76 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000351/21.01, allocations: 48.33 kB / 7.263 GB, free: 48.75 MB / 426.7 MB Notification: Performance of SimCode: time 1.273e-06/21.01, allocations: 0 / 7.263 GB, free: 48.75 MB / 426.7 MB Notification: Performance of Templates: time 0.0569/21.06, allocations: 26.72 MB / 7.29 GB, free: 45.39 MB / 426.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'