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") [: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.001633/0.001633, allocations: 177.2 kB / 8.15 MB, free: 2.102 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.726/1.726, allocations: 205.2 MB / 213.7 MB, free: 13.88 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.001306/0.001306, allocations: 93.67 kB / 261.8 MB, free: 13.63 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 8.866e-06/9.047e-06, allocations: 0 / 314.3 MB, free: 9.066 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2683/0.2683, allocations: 47.56 MB / 361.8 MB, free: 45.66 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 15.22/15.49, allocations: 6.679 GB / 7.032 GB, free: 95.54 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003021/15.49, allocations: 73.73 kB / 7.032 GB, free: 95.54 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.048/16.53, allocations: 190.9 MB / 7.218 GB, free: 65.28 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.722e-05/16.53, allocations: 3.969 kB / 7.218 GB, free: 65.28 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.009113/16.54, allocations: 1.455 MB / 7.22 GB, free: 64.55 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.988e-05/16.54, allocations: 7.312 kB / 7.22 GB, free: 64.55 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002456/16.54, allocations: 26.06 kB / 7.22 GB, free: 64.54 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003442/16.54, allocations: 219.4 kB / 7.22 GB, free: 64.34 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.758e-05/16.54, allocations: 6.75 kB / 7.22 GB, free: 64.34 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.279e-05/16.54, allocations: 11.59 kB / 7.22 GB, free: 64.34 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006366/16.55, allocations: 240.5 kB / 7.22 GB, free: 64.34 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005403/16.55, allocations: 236.4 kB / 7.221 GB, free: 64.29 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.053e-05/16.55, allocations: 0 / 7.221 GB, free: 64.29 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.582e-05/16.55, allocations: 6.281 kB / 7.221 GB, free: 64.29 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.76e-05/16.55, allocations: 7.391 kB / 7.221 GB, free: 64.29 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002092/16.55, allocations: 0.687 MB / 7.221 GB, free: 63.94 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006269/16.55, allocations: 197.6 kB / 7.221 GB, free: 63.89 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002643/16.55, allocations: 108.7 kB / 7.222 GB, free: 63.87 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02086/16.57, allocations: 12.5 MB / 7.234 GB, free: 51.11 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.821e-05/16.57, allocations: 37.88 kB / 7.234 GB, free: 51.07 MB / 426.7 MB Notification: Performance of pre-optimization done (n=29): time 3.707e-06/16.57, allocations: 0 / 7.234 GB, free: 51.07 MB / 426.7 MB Notification: Performance of matching and sorting (n=36): time 0.003219/16.57, allocations: 0.5032 MB / 7.234 GB, free: 51.01 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.845e-05/16.57, allocations: 81.17 kB / 7.234 GB, free: 50.92 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001164/16.57, allocations: 116.7 kB / 7.234 GB, free: 50.83 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 4.178e-05/16.57, allocations: 25.7 kB / 7.234 GB, free: 50.8 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.39e-05/16.57, allocations: 176.5 kB / 7.235 GB, free: 50.64 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001183/16.57, allocations: 123.3 kB / 7.235 GB, free: 50.57 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.422e-05/16.57, allocations: 7.438 kB / 7.235 GB, free: 50.57 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 7.652e-05/16.57, allocations: 328 kB / 7.235 GB, free: 50.26 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003022/16.57, allocations: 108.2 kB / 7.235 GB, free: 50.26 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003409/16.57, allocations: 171.3 kB / 7.235 GB, free: 50.19 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006306/16.58, allocations: 148.7 kB / 7.235 GB, free: 50.19 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/16.58, allocations: 1.312 kB / 7.235 GB, free: 50.19 MB / 426.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0013/16.58, allocations: 370 kB / 7.236 GB, free: 50.14 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.801e-05/16.58, allocations: 7.5 kB / 7.236 GB, free: 50.14 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.007e-05/16.58, allocations: 0 / 7.236 GB, free: 50.14 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.976e-05/16.58, allocations: 3.875 kB / 7.236 GB, free: 50.14 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000953/16.58, allocations: 97.14 kB / 7.236 GB, free: 50.14 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.781e-05/16.58, allocations: 7.562 kB / 7.236 GB, free: 50.14 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005786/16.58, allocations: 19.2 kB / 7.236 GB, free: 50.13 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.635e-05/16.58, allocations: 18.48 kB / 7.236 GB, free: 50.13 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.000134/16.58, allocations: 36.92 kB / 7.236 GB, free: 50.1 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002201/16.58, allocations: 18.75 kB / 7.236 GB, free: 50.09 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009883/16.58, allocations: 214 kB / 7.236 GB, free: 50.05 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.062e-05/16.58, allocations: 7.281 kB / 7.236 GB, free: 50.05 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.688e-06/16.58, allocations: 3.906 kB / 7.236 GB, free: 50.05 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.247e-06/16.58, allocations: 2.875 kB / 7.236 GB, free: 50.05 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001939/16.58, allocations: 0.6524 MB / 7.237 GB, free: 49.73 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.314e-06/16.58, allocations: 3.344 kB / 7.237 GB, free: 49.73 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008453/16.58, allocations: 77.36 kB / 7.237 GB, free: 49.73 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.192e-05/16.58, allocations: 3.969 kB / 7.237 GB, free: 49.73 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.951e-05/16.58, allocations: 10.52 kB / 7.237 GB, free: 49.73 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.015e-06/16.58, allocations: 3.594 kB / 7.237 GB, free: 49.73 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.673e-06/16.58, allocations: 13.36 kB / 7.237 GB, free: 49.72 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001672/16.58, allocations: 0.707 MB / 7.238 GB, free: 49.37 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002318/16.58, allocations: 126.6 kB / 7.238 GB, free: 49.26 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.626e-05/16.58, allocations: 3.844 kB / 7.238 GB, free: 49.26 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006853/16.59, allocations: 18.27 kB / 7.238 GB, free: 49.26 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.387e-05/16.59, allocations: 29.86 kB / 7.238 GB, free: 49.26 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.148e-05/16.59, allocations: 21.72 kB / 7.238 GB, free: 49.25 MB / 426.7 MB Notification: Performance of sort global known variables: time 8.046e-05/16.59, allocations: 93.5 kB / 7.238 GB, free: 49.18 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.006689/16.59, allocations: 1.095 MB / 7.239 GB, free: 48.99 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.01237/16.6, allocations: 1.747 MB / 7.241 GB, free: 48.68 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0009068/16.61, allocations: 283.9 kB / 7.241 GB, free: 48.67 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.101e-06/16.61, allocations: 0 / 7.241 GB, free: 48.67 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003416/16.61, allocations: 155.2 kB / 7.241 GB, free: 48.66 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001081/16.61, allocations: 95.64 kB / 7.241 GB, free: 48.64 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04384/16.65, allocations: 12.07 MB / 7.253 GB, free: 47.3 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005894/16.65, allocations: 0.7958 MB / 7.254 GB, free: 46.59 MB / 426.7 MB Notification: Performance of SimCode: time 1.132e-06/16.65, allocations: 0 / 7.254 GB, free: 46.59 MB / 426.7 MB Notification: Performance of Templates: time 0.06486/16.72, allocations: 26.43 MB / 7.28 GB, free: 43.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/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.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 ^\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/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.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:1148:8: error: no matching member function for call to \'assign\'\n X_.assign(tmp109);\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.MoistAirCalcHelperMain.cpp:28:\n./OMCppModelica_3.2.3_cpp_Modelica.Media.Examples.ReferenceAir.MoistAirFunctions.cpp:1189: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/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.MoistAirFunctions.cpp:1142:86: note: in instantiation of member function \'StatArrayDim1::StatArrayDim1\' requested here\n Modelica_Media_Air_ReferenceMoistAir_massFractionSaturationRetType /* undefined */ tmp109;\n ^\n5 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'