Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir1.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.MoistAir1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.Xi.1.|volume.medium.p",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir1") translateModel(Modelica.Media.Examples.ReferenceAir.MoistAir1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.Xi.1.|volume.medium.p",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir1") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002785/0.002791, allocations: 181.6 kB / 8.154 MB, free: 2.18 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.801/1.801, allocations: 205.2 MB / 213.8 MB, free: 13.87 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.001349/0.001348, allocations: 90.12 kB / 261.8 MB, free: 13.63 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.138e-05/1.19e-05, allocations: 0 / 314.3 MB, free: 9.059 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.295/0.295, allocations: 47.54 MB / 361.8 MB, free: 45.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 14.9/15.2, allocations: 6.597 GB / 6.95 GB, free: 61.68 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002558/15.2, allocations: 70.41 kB / 6.95 GB, free: 61.65 MB / 426.7 MB Notification: Performance of FrontEnd: time 4.073/19.27, allocations: 0.8272 GB / 7.777 GB, free: 21.36 MB / 442.8 MB Notification: Performance of Transformations before backend: time 4.07e-05/19.27, allocations: 12.5 kB / 7.777 GB, free: 21.36 MB / 442.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 107 * Number of variables: 107 Notification: Performance of Generate backend data structure: time 0.01452/19.29, allocations: 2.888 MB / 7.78 GB, free: 19.59 MB / 442.8 MB Notification: Performance of prepare preOptimizeDAE: time 4.719e-05/19.29, allocations: 10.06 kB / 7.78 GB, free: 19.59 MB / 442.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006882/19.29, allocations: 58.83 kB / 7.78 GB, free: 19.57 MB / 442.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009327/19.29, allocations: 372 kB / 7.78 GB, free: 19.33 MB / 442.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.658e-05/19.29, allocations: 14.59 kB / 7.78 GB, free: 19.33 MB / 442.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001116/19.29, allocations: 25.53 kB / 7.78 GB, free: 19.33 MB / 442.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0018/19.29, allocations: 0.6668 MB / 7.781 GB, free: 19.33 MB / 442.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001553/19.29, allocations: 482.3 kB / 7.782 GB, free: 19.29 MB / 442.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.857e-05/19.29, allocations: 4.969 kB / 7.782 GB, free: 19.29 MB / 442.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.693e-05/19.29, allocations: 5.125 kB / 7.782 GB, free: 19.28 MB / 442.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.781e-05/19.29, allocations: 9.969 kB / 7.782 GB, free: 19.28 MB / 442.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02321/19.32, allocations: 11.58 MB / 7.793 GB, free: 24.6 MB / 458.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001216/19.32, allocations: 378.2 kB / 7.793 GB, free: 24.57 MB / 458.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006124/19.32, allocations: 239.8 kB / 7.794 GB, free: 24.56 MB / 458.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04318/19.36, allocations: 21.01 MB / 7.814 GB, free: 19.24 MB / 474.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.652e-05/19.36, allocations: 44.72 kB / 7.814 GB, free: 19.2 MB / 474.8 MB Notification: Performance of pre-optimization done (n=50): time 3.377e-06/19.36, allocations: 7.938 kB / 7.814 GB, free: 19.19 MB / 474.8 MB Notification: Performance of matching and sorting (n=55): time 0.008568/19.37, allocations: 1.622 MB / 7.816 GB, free: 18.81 MB / 474.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.779e-05/19.37, allocations: 55.16 kB / 7.816 GB, free: 18.75 MB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000389/19.37, allocations: 234.8 kB / 7.816 GB, free: 18.65 MB / 474.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0001615/19.37, allocations: 25.7 kB / 7.816 GB, free: 18.62 MB / 474.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001385/19.37, allocations: 249.2 kB / 7.816 GB, free: 18.4 MB / 474.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001837/19.37, allocations: 185.5 kB / 7.816 GB, free: 18.28 MB / 474.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.885e-05/19.37, allocations: 0 / 7.816 GB, free: 18.28 MB / 474.8 MB Notification: Performance of setup shared object (initialization): time 0.0001493/19.37, allocations: 328.2 kB / 7.817 GB, free: 17.97 MB / 474.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006149/19.37, allocations: 224.6 kB / 7.817 GB, free: 17.97 MB / 474.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006248/19.37, allocations: 314.9 kB / 7.817 GB, free: 17.87 MB / 474.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001801/19.37, allocations: 365.9 kB / 7.818 GB, free: 17.86 MB / 474.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.418e-06/19.37, allocations: 0 / 7.818 GB, free: 17.86 MB / 474.8 MB Notification: Performance of matching and sorting (n=70) (initialization): time 0.003602/19.38, allocations: 0.7737 MB / 7.818 GB, free: 17.77 MB / 474.8 MB Notification: Performance of prepare postOptimizeDAE: time 2.186e-05/19.38, allocations: 7.938 kB / 7.818 GB, free: 17.77 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.556e-05/19.38, allocations: 4 kB / 7.818 GB, free: 17.77 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003573/19.38, allocations: 79.12 kB / 7.818 GB, free: 17.74 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001087/19.38, allocations: 130.1 kB / 7.819 GB, free: 17.73 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003777/19.38, allocations: 3.18 MB / 7.822 GB, free: 14.65 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006943/19.38, allocations: 32.83 kB / 7.822 GB, free: 14.64 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001194/19.38, allocations: 34.67 kB / 7.822 GB, free: 14.64 MB / 474.8 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: ambient.port.h:VARIABLE(flow=false min = -10000000000.0 max = 10000000000.0 unit = "J/kg" nominal = 1000000.0 ) "Specific mixture enthalpy in the connection point" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: ambient.port.Xi[1]:VARIABLE(flow=false min = 0.0 max = 1.0 unit = "kg/kg" nominal = 0.1 ) "Independent mixture mass fractions m_i/m in the connection point" type: Real [1] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 64 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {2} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 1,1 1} Notification: Performance of prepare postOptimizeDAE: time 0.0003451/19.38, allocations: 50 kB / 7.822 GB, free: 14.59 MB / 474.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005106/19.38, allocations: 38.25 kB / 7.822 GB, free: 14.57 MB / 474.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003322/19.39, allocations: 0.9029 MB / 7.823 GB, free: 14.2 MB / 474.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.257e-05/19.39, allocations: 3.938 kB / 7.823 GB, free: 14.2 MB / 474.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/19.39, allocations: 0 / 7.823 GB, free: 14.2 MB / 474.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002289/19.39, allocations: 0.7977 MB / 7.823 GB, free: 13.7 MB / 474.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003894/19.39, allocations: 1.296 MB / 7.825 GB, free: 13.05 MB / 474.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.019e-05/19.39, allocations: 7.406 kB / 7.825 GB, free: 13.05 MB / 474.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009379/19.4, allocations: 96.95 kB / 7.825 GB, free: 13.05 MB / 474.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002611/19.4, allocations: 68.66 kB / 7.825 GB, free: 13.02 MB / 474.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.167e-05/19.4, allocations: 14.95 kB / 7.825 GB, free: 13.02 MB / 474.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009258/19.4, allocations: 0.6862 MB / 7.826 GB, free: 12.39 MB / 474.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.244e-06/19.4, allocations: 11.55 kB / 7.826 GB, free: 12.38 MB / 474.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003203/19.4, allocations: 0.9573 MB / 7.827 GB, free: 11.91 MB / 474.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002702/19.4, allocations: 126 kB / 7.827 GB, free: 11.79 MB / 474.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001287/19.4, allocations: 3.797 kB / 7.827 GB, free: 11.79 MB / 474.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008427/19.4, allocations: 30.41 kB / 7.827 GB, free: 11.78 MB / 474.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.724e-05/19.4, allocations: 31.64 kB / 7.827 GB, free: 11.78 MB / 474.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001149/19.4, allocations: 36.11 kB / 7.827 GB, free: 11.77 MB / 474.8 MB Notification: Performance of sort global known variables: time 0.0003299/19.4, allocations: 203.7 kB / 7.827 GB, free: 11.65 MB / 474.8 MB Notification: Performance of remove unused functions: time 0.01009/19.41, allocations: 1.961 MB / 7.829 GB, free: 11.11 MB / 474.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (volume.medium.p,volume.medium.Xi[1],volume.medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {2} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01856/19.43, allocations: 3.313 MB / 7.832 GB, free: 10.2 MB / 474.8 MB Notification: Performance of simCode: created initialization part: time 0.00197/19.43, allocations: 0.7671 MB / 7.833 GB, free: 9.801 MB / 474.8 MB Notification: Performance of simCode: created event and clocks part: time 7.464e-06/19.43, allocations: 3.406 kB / 7.833 GB, free: 9.801 MB / 474.8 MB Notification: Performance of simCode: created simulation system equations: time 0.0007199/19.43, allocations: 292.9 kB / 7.833 GB, free: 9.695 MB / 474.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00209/19.44, allocations: 182.1 kB / 7.833 GB, free: 9.652 MB / 474.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002733/19.44, allocations: 0.8701 MB / 7.834 GB, free: 9.207 MB / 474.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009674/19.44, allocations: 0.9222 MB / 7.835 GB, free: 8.48 MB / 474.8 MB Notification: Performance of SimCode: time 1.753e-06/19.44, allocations: 0 / 7.835 GB, free: 8.48 MB / 474.8 MB Notification: Performance of Templates: time 0.3169/19.76, allocations: 52.91 MB / 7.887 GB, free: 83.09 MB / 474.8 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir1.makefile make -j1 -f Modelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir1.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/OMCompiler/build/include/omc/cpp/" -I. -I"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/include/omc/c/sundials" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppModelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir1CalcHelperMain.o OMCppModelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir1CalcHelperMain.cpp\nIn file included from OMCppModelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir1CalcHelperMain.cpp:15:\n./OMCppModelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir1Types.h:249: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 ^\nIn file included from OMCppModelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir1CalcHelperMain.cpp:8:\nIn file included from /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/include/omc/cpp/Core/Modelica.h:204:\n/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/include/omc/cpp/Core/Math/Array.h:835: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/OMCompiler/build/include/omc/cpp/Core/Math/Array.h:846: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.MoistAir1Functions.h:540: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.MoistAir1CalcHelperMain.cpp:28:\n./OMCppModelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir1Functions.cpp:1180:8: error: no matching member function for call to \'assign\'\n X_.assign(tmp127);\n ~~~^~~~~~\n/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/include/omc/cpp/Core/Math/Array.h:1427: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/OMCompiler/build/include/omc/cpp/Core/Math/Array.h:1433: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 ^\nIn file included from OMCppModelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir1CalcHelperMain.cpp:28:\n./OMCppModelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir1Functions.cpp:1221: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.MoistAir1CalcHelperMain.cpp:8:\nIn file included from /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/include/omc/cpp/Core/Modelica.h:204:\n/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/include/omc/cpp/Core/Math/Array.h:891: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.MoistAir1Functions.cpp:1174:86: note: in instantiation of member function \'StatArrayDim1::StatArrayDim1\' requested here\n Modelica_Media_Air_ReferenceMoistAir_massFractionSaturationRetType /* undefined */ tmp127;\n ^\n5 errors generated.\n: recipe for target \'OMCppModelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir1CalcHelperMain.o\' failed\nmake: *** [OMCppModelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir1CalcHelperMain.o] Error 1\n'