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.001561/0.00156, allocations: 177.8 kB / 8.36 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.307/2.307, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001146/0.001146, allocations: 91.25 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.243e-05/2.267e-05, allocations: 0 / 314.8 MB, free: 9.148 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.36/0.3601, allocations: 47.56 MB / 362.3 MB, free: 45.83 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 20.2/20.56, allocations: 6.679 GB / 7.033 GB, free: 95.62 MB / 427.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002654/20.56, allocations: 78.3 kB / 7.033 GB, free: 95.62 MB / 427.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.101/21.67, allocations: 190 MB / 7.218 GB, free: 65.21 MB / 427.1 MB Notification: Performance of FrontEnd: time 1.422e-06/21.67, allocations: 0 / 7.218 GB, free: 65.21 MB / 427.1 MB Notification: Performance of Transformations before backend: time 1.675e-05/21.67, allocations: 2.844 kB / 7.218 GB, free: 65.21 MB / 427.1 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.008525/21.67, allocations: 1.455 MB / 7.22 GB, free: 64.49 MB / 427.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.577e-05/21.67, allocations: 9.625 kB / 7.22 GB, free: 64.49 MB / 427.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002071/21.67, allocations: 22.61 kB / 7.22 GB, free: 64.48 MB / 427.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003567/21.67, allocations: 216.1 kB / 7.22 GB, free: 64.29 MB / 427.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.052e-05/21.67, allocations: 9.156 kB / 7.22 GB, free: 64.29 MB / 427.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.209e-05/21.68, allocations: 12.36 kB / 7.22 GB, free: 64.29 MB / 427.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006827/21.68, allocations: 236.4 kB / 7.22 GB, free: 64.29 MB / 427.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005523/21.68, allocations: 231.2 kB / 7.22 GB, free: 64.24 MB / 427.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.923e-05/21.68, allocations: 1.094 kB / 7.22 GB, free: 64.24 MB / 427.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.337e-05/21.68, allocations: 5.578 kB / 7.22 GB, free: 64.23 MB / 427.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.816e-05/21.68, allocations: 6.156 kB / 7.22 GB, free: 64.23 MB / 427.1 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.001991/21.68, allocations: 0.6754 MB / 7.221 GB, free: 63.88 MB / 427.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007247/21.68, allocations: 215 kB / 7.221 GB, free: 63.84 MB / 427.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002628/21.68, allocations: 102.9 kB / 7.221 GB, free: 63.82 MB / 427.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01923/21.7, allocations: 12.48 MB / 7.233 GB, free: 51.06 MB / 427.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.917e-05/21.7, allocations: 34.06 kB / 7.233 GB, free: 51.02 MB / 427.1 MB Notification: Performance of pre-optimization done (n=29): time 3.868e-06/21.7, allocations: 3.812 kB / 7.233 GB, free: 51.02 MB / 427.1 MB Notification: Performance of matching and sorting (n=36): time 0.002971/21.7, allocations: 0.4987 MB / 7.234 GB, free: 50.95 MB / 427.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.408e-05/21.7, allocations: 85.08 kB / 7.234 GB, free: 50.86 MB / 427.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001218/21.7, allocations: 116.6 kB / 7.234 GB, free: 50.77 MB / 427.1 MB Notification: Performance of collectPreVariables (initialization): time 3.934e-05/21.7, allocations: 29.53 kB / 7.234 GB, free: 50.73 MB / 427.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.084e-05/21.7, allocations: 172.5 kB / 7.234 GB, free: 50.57 MB / 427.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000116/21.7, allocations: 121.5 kB / 7.234 GB, free: 50.51 MB / 427.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.196e-05/21.7, allocations: 0 / 7.234 GB, free: 50.51 MB / 427.1 MB Notification: Performance of setup shared object (initialization): time 7.449e-05/21.7, allocations: 328.2 kB / 7.235 GB, free: 50.2 MB / 427.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002643/21.7, allocations: 104.7 kB / 7.235 GB, free: 50.2 MB / 427.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003137/21.7, allocations: 170.2 kB / 7.235 GB, free: 50.13 MB / 427.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006125/21.7, allocations: 147.8 kB / 7.235 GB, free: 50.13 MB / 427.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/21.7, allocations: 0 / 7.235 GB, free: 50.13 MB / 427.1 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.00116/21.7, allocations: 362 kB / 7.236 GB, free: 50.08 MB / 427.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.343e-05/21.7, allocations: 7.375 kB / 7.236 GB, free: 50.08 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.548e-06/21.7, allocations: 3.844 kB / 7.236 GB, free: 50.08 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.517e-05/21.7, allocations: 3.531 kB / 7.236 GB, free: 50.08 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008463/21.71, allocations: 89.53 kB / 7.236 GB, free: 50.08 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.46e-05/21.71, allocations: 13.27 kB / 7.236 GB, free: 50.08 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005485/21.71, allocations: 16.14 kB / 7.236 GB, free: 50.08 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.38e-05/21.71, allocations: 24.02 kB / 7.236 GB, free: 50.08 MB / 427.1 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.0001452/21.71, allocations: 113.3 kB / 7.236 GB, free: 49.97 MB / 427.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001889/21.71, allocations: 17.72 kB / 7.236 GB, free: 49.96 MB / 427.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008388/21.71, allocations: 210.5 kB / 7.236 GB, free: 49.93 MB / 427.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.274e-06/21.71, allocations: 3.938 kB / 7.236 GB, free: 49.93 MB / 427.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.885e-06/21.71, allocations: 0 / 7.236 GB, free: 49.93 MB / 427.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.106e-05/21.71, allocations: 7.797 kB / 7.236 GB, free: 49.92 MB / 427.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00175/21.71, allocations: 0.6624 MB / 7.237 GB, free: 49.6 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.641e-06/21.71, allocations: 3.875 kB / 7.237 GB, free: 49.6 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007566/21.71, allocations: 77.81 kB / 7.237 GB, free: 49.6 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.09e-05/21.71, allocations: 7.719 kB / 7.237 GB, free: 49.6 MB / 427.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.141e-05/21.71, allocations: 10.77 kB / 7.237 GB, free: 49.6 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.997e-06/21.71, allocations: 3.781 kB / 7.237 GB, free: 49.6 MB / 427.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.442e-06/21.71, allocations: 6.375 kB / 7.237 GB, free: 49.6 MB / 427.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001499/21.71, allocations: 0.7035 MB / 7.237 GB, free: 49.24 MB / 427.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002083/21.71, allocations: 129 kB / 7.238 GB, free: 49.14 MB / 427.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.709e-05/21.71, allocations: 0 / 7.238 GB, free: 49.14 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005952/21.71, allocations: 19.34 kB / 7.238 GB, free: 49.14 MB / 427.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.064e-05/21.71, allocations: 25.94 kB / 7.238 GB, free: 49.14 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.693e-05/21.71, allocations: 20.31 kB / 7.238 GB, free: 49.14 MB / 427.1 MB Notification: Performance of sorting global known variables: time 7.482e-05/21.71, allocations: 94.03 kB / 7.238 GB, free: 49.06 MB / 427.1 MB Notification: Performance of sort global known variables: time 4.11e-07/21.71, allocations: 3.719 kB / 7.238 GB, free: 49.06 MB / 427.1 MB Notification: Performance of remove unused functions: time 0.006089/21.72, allocations: 1.089 MB / 7.239 GB, free: 48.89 MB / 427.1 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.01541/21.73, allocations: 1.663 MB / 7.24 GB, free: 48.59 MB / 427.1 MB Notification: Performance of simCode: created initialization part: time 0.001171/21.74, allocations: 288.8 kB / 7.241 GB, free: 48.57 MB / 427.1 MB Notification: Performance of simCode: created event and clocks part: time 9.328e-06/21.74, allocations: 0 / 7.241 GB, free: 48.57 MB / 427.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004617/21.74, allocations: 144.4 kB / 7.241 GB, free: 48.56 MB / 427.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001493/21.74, allocations: 85.02 kB / 7.241 GB, free: 48.55 MB / 427.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05025/21.79, allocations: 11.87 MB / 7.253 GB, free: 47.21 MB / 427.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001472/21.79, allocations: 0.7448 MB / 7.253 GB, free: 62.51 MB / 443.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004484/21.79, allocations: 48.17 kB / 7.253 GB, free: 62.5 MB / 443.1 MB Notification: Performance of SimCode: time 1.533e-06/21.79, allocations: 0 / 7.253 GB, free: 62.5 MB / 443.1 MB Notification: Performance of Templates: time 0.07958/21.87, allocations: 27.47 MB / 7.28 GB, free: 59.28 MB / 443.1 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:205:\n/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/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/OMCompiler/build/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/OMCompiler/build/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/OMCompiler/build/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/OMCompiler/build/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/OMCompiler/build/include/omc/cpp/Core/Modelica.h:205:\n/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/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 ^\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'