Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir2.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.MoistAir2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.Xi.1.|volume.medium.p|volume1.medium.T|volume1.medium.Xi.1.|volume1.medium.p",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir2") translateModel(Modelica.Media.Examples.ReferenceAir.MoistAir2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|volume.medium.T|volume.medium.Xi.1.|volume.medium.p|volume1.medium.T|volume1.medium.Xi.1.|volume1.medium.p",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir2") [: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.002686/0.002692, allocations: 179.6 kB / 8.154 MB, free: 2.188 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.786/1.786, allocations: 205.2 MB / 213.8 MB, free: 13.85 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.00138/0.00138, allocations: 100.2 kB / 261.8 MB, free: 13.61 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.179e-05/1.198e-05, allocations: 4 kB / 314.3 MB, free: 9.055 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2747/0.2747, allocations: 47.55 MB / 361.8 MB, free: 45.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 14.36/14.64, allocations: 6.597 GB / 6.95 GB, free: 92.39 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002861/14.64, allocations: 77.92 kB / 6.95 GB, free: 92.39 MB / 426.7 MB Notification: Performance of FrontEnd: time 3.285/17.92, allocations: 0.6621 GB / 7.612 GB, free: 27.61 MB / 442.7 MB Notification: Performance of Transformations before backend: time 4.062e-05/17.92, allocations: 16.14 kB / 7.612 GB, free: 27.61 MB / 442.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.01176/17.94, allocations: 2.39 MB / 7.614 GB, free: 26.24 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.49e-05/17.94, allocations: 9.75 kB / 7.614 GB, free: 26.24 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007365/17.94, allocations: 80.81 kB / 7.615 GB, free: 26.21 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001019/17.94, allocations: 446.9 kB / 7.615 GB, free: 25.96 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.13e-05/17.94, allocations: 24.47 kB / 7.615 GB, free: 25.96 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001591/17.94, allocations: 38.28 kB / 7.615 GB, free: 25.95 MB / 442.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002173/17.94, allocations: 0.9265 MB / 7.616 GB, free: 25.95 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001714/17.94, allocations: 0.6534 MB / 7.617 GB, free: 25.91 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.489e-05/17.94, allocations: 0 / 7.617 GB, free: 25.91 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001181/17.94, allocations: 0 / 7.617 GB, free: 25.91 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.873e-05/17.94, allocations: 18.58 kB / 7.617 GB, free: 25.91 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02279/17.96, allocations: 12.38 MB / 7.629 GB, free: 14.95 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001444/17.97, allocations: 0.5018 MB / 7.629 GB, free: 14.92 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008278/17.97, allocations: 373.2 kB / 7.629 GB, free: 14.91 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0576/18.02, allocations: 30.81 MB / 7.66 GB, free: 16.04 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.07e-05/18.02, allocations: 45.72 kB / 7.66 GB, free: 16 MB / 474.7 MB Notification: Performance of pre-optimization done (n=78): time 3.827e-06/18.02, allocations: 0 / 7.66 GB, free: 16 MB / 474.7 MB Notification: Performance of matching and sorting (n=88): time 0.01387/18.04, allocations: 2.502 MB / 7.662 GB, free: 15.54 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.134e-05/18.04, allocations: 62.94 kB / 7.662 GB, free: 15.48 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00048/18.04, allocations: 256.6 kB / 7.662 GB, free: 15.38 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002586/18.04, allocations: 25.7 kB / 7.662 GB, free: 15.35 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001445/18.04, allocations: 271 kB / 7.663 GB, free: 15.12 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002942/18.04, allocations: 293.5 kB / 7.663 GB, free: 14.93 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.259e-05/18.04, allocations: 2.656 kB / 7.663 GB, free: 14.93 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001706/18.04, allocations: 347.1 kB / 7.663 GB, free: 14.62 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008791/18.04, allocations: 337.3 kB / 7.664 GB, free: 14.61 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009739/18.04, allocations: 450.4 kB / 7.664 GB, free: 14.52 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002551/18.04, allocations: 0.5379 MB / 7.665 GB, free: 14.51 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.254e-06/18.04, allocations: 3.562 kB / 7.665 GB, free: 14.51 MB / 474.7 MB Notification: Performance of matching and sorting (n=106) (initialization): time 0.004841/18.05, allocations: 1.143 MB / 7.666 GB, free: 14.41 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.467e-05/18.05, allocations: 6.688 kB / 7.666 GB, free: 14.41 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.49e-05/18.05, allocations: 2.25 kB / 7.666 GB, free: 14.41 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00045/18.05, allocations: 112.9 kB / 7.666 GB, free: 14.38 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001598/18.05, allocations: 199.9 kB / 7.666 GB, free: 14.36 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004464/18.06, allocations: 3.866 MB / 7.67 GB, free: 10.8 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009673/18.06, allocations: 41.38 kB / 7.67 GB, free: 10.79 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00016/18.06, allocations: 48.77 kB / 7.67 GB, free: 10.79 MB / 474.7 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 (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * 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: 2 {2,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.0004285/18.06, allocations: 56.75 kB / 7.67 GB, free: 10.75 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006506/18.06, allocations: 56.16 kB / 7.67 GB, free: 10.72 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005082/18.06, allocations: 1.394 MB / 7.671 GB, free: 10.55 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.235e-05/18.06, allocations: 8.688 kB / 7.671 GB, free: 10.55 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.78e-06/18.06, allocations: 3.375 kB / 7.671 GB, free: 10.55 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.004057/18.07, allocations: 1.372 MB / 7.673 GB, free: 9.898 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006367/18.07, allocations: 1.954 MB / 7.675 GB, free: 9.562 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.06e-05/18.07, allocations: 0 / 7.675 GB, free: 9.562 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001551/18.08, allocations: 177.6 kB / 7.675 GB, free: 9.555 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004866/18.08, allocations: 131.8 kB / 7.675 GB, free: 9.531 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001292/18.08, allocations: 20.5 kB / 7.675 GB, free: 9.531 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001812/18.08, allocations: 1.374 MB / 7.676 GB, free: 24.35 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.026e-06/18.08, allocations: 3.781 kB / 7.676 GB, free: 24.35 MB / 490.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005058/18.08, allocations: 1.484 MB / 7.678 GB, free: 24.1 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003472/18.08, allocations: 134.1 kB / 7.678 GB, free: 23.98 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000201/18.08, allocations: 7.562 kB / 7.678 GB, free: 23.98 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001167/18.09, allocations: 41.03 kB / 7.678 GB, free: 23.97 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001454/18.09, allocations: 52.39 kB / 7.678 GB, free: 23.97 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002084/18.09, allocations: 53.73 kB / 7.678 GB, free: 23.97 MB / 490.7 MB Notification: Performance of sort global known variables: time 0.0004356/18.09, allocations: 229.1 kB / 7.678 GB, free: 23.89 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.01234/18.1, allocations: 2.264 MB / 7.68 GB, free: 23.42 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 6 (volume.medium.p,volume.medium.Xi[1],volume.medium.T,volume1.medium.p,volume1.medium.Xi[1],volume1.medium.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (87): * Single equations (assignments): 85 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * 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: 2 {2,2} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.02162/18.12, allocations: 3.623 MB / 7.684 GB, free: 22.75 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.002938/18.12, allocations: 1.103 MB / 7.685 GB, free: 22.51 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 7.704e-06/18.12, allocations: 3.25 kB / 7.685 GB, free: 22.51 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00122/18.12, allocations: 497.3 kB / 7.685 GB, free: 22.46 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003142/18.13, allocations: 278.8 kB / 7.686 GB, free: 22.45 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004384/18.13, allocations: 1.391 MB / 7.687 GB, free: 22.15 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001217/18.13, allocations: 1.03 MB / 7.688 GB, free: 21.45 MB / 490.7 MB Notification: Performance of SimCode: time 1.803e-06/18.13, allocations: 0 / 7.688 GB, free: 21.45 MB / 490.7 MB Notification: Performance of Templates: time 0.3481/18.48, allocations: 65.67 MB / 7.752 GB, free: 97.49 MB / 490.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir2.makefile make -j1 -f Modelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir2.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.MoistAir2CalcHelperMain.o OMCppModelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir2CalcHelperMain.cpp\nIn file included from OMCppModelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir2CalcHelperMain.cpp:15:\n./OMCppModelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir2Types.h:230: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.MoistAir2CalcHelperMain.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.MoistAir2Functions.h:587: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.MoistAir2CalcHelperMain.cpp:28:\n./OMCppModelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir2Functions.cpp:1180:8: error: no matching member function for call to \'assign\'\n X_.assign(tmp146);\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.MoistAir2CalcHelperMain.cpp:28:\n./OMCppModelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir2Functions.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.MoistAir2CalcHelperMain.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.MoistAir2Functions.cpp:1174:86: note: in instantiation of member function \'StatArrayDim1::StatArrayDim1\' requested here\n Modelica_Media_Air_ReferenceMoistAir_massFractionSaturationRetType /* undefined */ tmp146;\n ^\n5 errors generated.\n: recipe for target \'OMCppModelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir2CalcHelperMain.o\' failed\nmake: *** [OMCppModelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.MoistAir2CalcHelperMain.o] Error 1\n'