Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Utilities.Examples.readRealParameterModel.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Utilities.Examples.readRealParameterModel,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Utilities_Examples_readRealParameterModel",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.863/1.863, allocations: 171.2 MB / 186.7 MB, free: 1.137 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000356/0.000356, allocations: 8 kB / 233.2 MB, free: 2.988 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0803/0.0807, allocations: 38.78 MB / 272 MB, free: 12.13 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Utilities.Examples.readRealParameterModel): time 0.001486/0.08223, allocations: 0.8908 MB / 272.9 MB, free: 11.22 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.003683/0.08594, allocations: 1.738 MB / 274.6 MB, free: 9.477 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.605e-05/0.08603, allocations: 0 / 274.6 MB, free: 9.477 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 1.755e-05/0.08606, allocations: 0 / 274.6 MB, free: 9.477 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0014/0.08747, allocations: 295.2 kB / 274.9 MB, free: 9.188 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 3.166e-06/0.0875, allocations: 3.938 kB / 274.9 MB, free: 9.184 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 3.812e-05/0.08754, allocations: 7.984 kB / 274.9 MB, free: 9.176 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.555e-05/0.0876, allocations: 3.984 kB / 275 MB, free: 9.172 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 1.832e-05/0.08763, allocations: 4 kB / 275 MB, free: 9.168 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001448/0.08778, allocations: 7.984 kB / 275 MB, free: 9.16 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 1.052e-05/0.08781, allocations: 0 / 275 MB, free: 9.16 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008503/0.08867, allocations: 343.6 kB / 275.3 MB, free: 8.824 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 8.987e-06/0.08869, allocations: 4 kB / 275.3 MB, free: 8.82 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 2.653e-05/0.08873, allocations: 29.7 kB / 275.3 MB, free: 8.785 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005273/0.08927, allocations: 211.6 kB / 275.5 MB, free: 8.578 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.735e-06/0.08928, allocations: 0 / 275.5 MB, free: 8.578 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.854e-06/0.0893, allocations: 4 kB / 275.5 MB, free: 8.574 MB / 234.7 MB Notification: Performance of Transformations before backend: time 4.779e-06/0.08931, allocations: 0 / 275.5 MB, free: 8.574 MB / 234.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.0005504/0.08987, allocations: 399.2 kB / 275.9 MB, free: 8.137 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.218e-05/0.08993, allocations: 8.031 kB / 275.9 MB, free: 8.129 MB / 234.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.582e-05/0.09002, allocations: 113.8 kB / 276.1 MB, free: 8.008 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.789e-05/0.09009, allocations: 75.28 kB / 276.1 MB, free: 7.934 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002048/0.09031, allocations: 246.3 kB / 276.4 MB, free: 7.652 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.941e-05/0.09039, allocations: 154.5 kB / 276.5 MB, free: 7.5 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.003e-05/0.09046, allocations: 150.6 kB / 276.7 MB, free: 7.352 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.809e-05/0.09055, allocations: 101 kB / 276.8 MB, free: 7.246 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.952e-05/0.0906, allocations: 87.22 kB / 276.8 MB, free: 7.16 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.154e-05/0.09067, allocations: 150.6 kB / 277 MB, free: 7.012 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.709e-05/0.09074, allocations: 150.6 kB / 277.1 MB, free: 6.863 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.334e-05/0.09081, allocations: 154.5 kB / 277.3 MB, free: 6.711 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003273/0.09115, allocations: 445.9 kB / 277.7 MB, free: 6.227 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.555e-05/0.09126, allocations: 177.1 kB / 277.9 MB, free: 6.043 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.499e-05/0.0913, allocations: 79.28 kB / 278 MB, free: 5.965 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.806e-05/0.09137, allocations: 109.9 kB / 278.1 MB, free: 5.848 MB / 234.7 MB Notification: Performance of pre-optimization done (n=0): time 1.503e-06/0.09138, allocations: 0 / 278.1 MB, free: 5.848 MB / 234.7 MB Notification: Performance of matching and sorting (n=0): time 8.467e-05/0.09147, allocations: 29.64 kB / 278.1 MB, free: 5.812 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.236e-05/0.09156, allocations: 134.7 kB / 278.2 MB, free: 5.668 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001183/0.09169, allocations: 105.8 kB / 278.3 MB, free: 5.555 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 1.56e-05/0.09171, allocations: 25.7 kB / 278.4 MB, free: 5.523 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.395e-05/0.0918, allocations: 150.6 kB / 278.5 MB, free: 5.375 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.763e-06/0.09181, allocations: 0 / 278.5 MB, free: 5.375 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.41e-07/0.09182, allocations: 0 / 278.5 MB, free: 5.375 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001327/0.09196, allocations: 314.8 kB / 278.8 MB, free: 5.059 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.068e-06/0.09197, allocations: 0 / 278.8 MB, free: 5.059 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.417e-06/0.09198, allocations: 0 / 278.8 MB, free: 5.059 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.561e-05/0.09203, allocations: 79.28 kB / 278.9 MB, free: 4.98 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.346e-05/0.09207, allocations: 75.28 kB / 279 MB, free: 4.906 MB / 234.7 MB Notification: Performance of matching and sorting (n=0) (initialization): time 6.624e-05/0.09215, allocations: 41.61 kB / 279 MB, free: 4.859 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.875e-05/0.09221, allocations: 83.27 kB / 279.1 MB, free: 4.777 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.424e-05/0.09225, allocations: 79.3 kB / 279.2 MB, free: 4.699 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.637e-05/0.09234, allocations: 158.5 kB / 279.3 MB, free: 4.543 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.164e-05/0.09238, allocations: 79.28 kB / 279.4 MB, free: 4.465 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.424e-05/0.09245, allocations: 154.6 kB / 279.6 MB, free: 4.312 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.262e-05/0.09256, allocations: 79.22 kB / 279.6 MB, free: 4.234 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.235e-05/0.0926, allocations: 75.28 kB / 279.7 MB, free: 4.16 MB / 234.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (0): * Single equations (assignments): 0 * 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/0.09274, allocations: 260.4 kB / 280 MB, free: 3.895 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.331e-05/0.09283, allocations: 120.8 kB / 280.1 MB, free: 3.77 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.994e-05/0.0929, allocations: 108.1 kB / 280.2 MB, free: 3.656 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.511e-05/0.09299, allocations: 180.3 kB / 280.4 MB, free: 3.473 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.371e-05/0.09307, allocations: 180.2 kB / 280.5 MB, free: 3.289 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.605e-05/0.09316, allocations: 176.3 kB / 280.7 MB, free: 3.109 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003173/0.09348, allocations: 409.2 kB / 281.1 MB, free: 2.652 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.27e-05/0.09354, allocations: 104.9 kB / 281.2 MB, free: 2.543 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.514e-05/0.0936, allocations: 113 kB / 281.3 MB, free: 2.426 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.358e-05/0.09369, allocations: 180.2 kB / 281.5 MB, free: 2.242 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.344e-05/0.09378, allocations: 184.2 kB / 281.7 MB, free: 2.055 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.855e-05/0.09387, allocations: 184.2 kB / 281.9 MB, free: 1.867 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.446e-05/0.09395, allocations: 176.3 kB / 282 MB, free: 1.688 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001646/0.09412, allocations: 307.8 kB / 282.3 MB, free: 1.363 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001032/0.09424, allocations: 182.1 kB / 282.5 MB, free: 1.16 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.686e-05/0.09435, allocations: 192.2 kB / 282.7 MB, free: 0.9648 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001037/0.09446, allocations: 104.9 kB / 282.8 MB, free: 0.8555 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.812e-05/0.09455, allocations: 180.2 kB / 283 MB, free: 0.6719 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.528e-05/0.09461, allocations: 109 kB / 283.1 MB, free: 0.5586 MB / 234.7 MB Notification: Performance of sorting global known variables: time 7.572e-05/0.0947, allocations: 87.27 kB / 283.2 MB, free: 484 kB / 234.7 MB Notification: Performance of sort global known variables: time 3.9e-07/0.09471, allocations: 0 / 283.2 MB, free: 484 kB / 234.7 MB Notification: Performance of remove unused functions: time 0.0006583/0.09538, allocations: 116 kB / 283.3 MB, free: 368 kB / 234.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (0): * Single equations (assignments): 0 * 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.001711/0.0971, allocations: 1.178 MB / 284.5 MB, free: 15.21 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 4.52e-05/0.09717, allocations: 4 kB / 284.5 MB, free: 15.2 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.09719, allocations: 0 / 284.5 MB, free: 15.2 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 2.254e-06/0.0972, allocations: 0 / 284.5 MB, free: 15.2 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003609/0.09757, allocations: 0.5224 MB / 285 MB, free: 14.68 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009656/0.09855, allocations: 0.63 MB / 285.6 MB, free: 13.99 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002775/0.09884, allocations: 0.6731 MB / 286.3 MB, free: 13.29 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.444e-05/0.0989, allocations: 15.42 kB / 286.3 MB, free: 13.28 MB / 250.7 MB Notification: Performance of SimCode: time 1.062e-06/0.09891, allocations: 0 / 286.3 MB, free: 13.28 MB / 250.7 MB Error: Error building simulator. Build log: clang++ -Winvalid-pch -O0 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DSUNDIALS_MAJOR_VERSION=5 -DSUNDIALS_MINOR_VERSION=4 -DPMC_USE_SUNDIALS -DFMU_BUILD -DRUNTIME_STATIC_LINKING -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp" -I"." -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" -I"." -DUSE_LOGGER -c -o OMCppModelica_3_2_1_cpp_Modelica_Utilities_Examples_readRealParameterModelCalcHelperMain.o OMCppModelica_3_2_1_cpp_Modelica_Utilities_Examples_readRealParameterModelCalcHelperMain.cpp In file included from OMCppModelica_3_2_1_cpp_Modelica_Utilities_Examples_readRealParameterModelCalcHelperMain.cpp:29: ./OMCppModelica_3_2_1_cpp_Modelica_Utilities_Examples_readRealParameterModelInitializeParameter.cpp:22:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp68; ^ ./OMCppModelica_3_2_1_cpp_Modelica_Utilities_Examples_readRealParameterModelInitializeParameter.cpp:23:16: error: no member named 'OpenModelica__fmuLoadResource' in 'Functions' _functions->OpenModelica__fmuLoadResource("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Resources/Data/Utilities/Examples_readRealParameters.txt", tmp68); ~~~~~~~~~~ ^ In file included from OMCppModelica_3_2_1_cpp_Modelica_Utilities_Examples_readRealParameterModelCalcHelperMain.cpp:31: ./OMCppModelica_3_2_1_cpp_Modelica_Utilities_Examples_readRealParameterModelInitialize.cpp:96:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp62; ^ ./OMCppModelica_3_2_1_cpp_Modelica_Utilities_Examples_readRealParameterModelInitialize.cpp:97:16: error: no member named 'OpenModelica__fmuLoadResource' in 'Functions' _functions->OpenModelica__fmuLoadResource("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/Resources/Data/Utilities/Examples_readRealParameters.txt", tmp62); ~~~~~~~~~~ ^ ./OMCppModelica_3_2_1_cpp_Modelica_Utilities_Examples_readRealParameterModelInitialize.cpp:155:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp64; ^ ./OMCppModelica_3_2_1_cpp_Modelica_Utilities_Examples_readRealParameterModelInitialize.cpp:156:15: error: no member named 'OpenModelica__fmuLoadResource' in 'Functions' _functions->OpenModelica__fmuLoadResource(_functions->_OMC_LIT50, tmp64); ~~~~~~~~~~ ^ In file included from OMCppModelica_3_2_1_cpp_Modelica_Utilities_Examples_readRealParameterModelCalcHelperMain.cpp:34: ./OMCppModelica_3_2_1_cpp_Modelica_Utilities_Examples_readRealParameterModel.cpp:594:12: error: use of undeclared identifier 'tmp0' _file_ = tmp0; ^ In file included from OMCppModelica_3_2_1_cpp_Modelica_Utilities_Examples_readRealParameterModelCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_1_cpp_Modelica_Utilities_Examples_readRealParameterModelFMU.cpp:11: /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/FMU2/FMU2Wrapper.cpp:93:11: warning: 6 enumeration values not handled in switch: 'LC_INIT', 'LC_LS', 'LC_SOLVER'... [-Wswitch] switch (cat) { ^ 1 warning and 7 errors generated. : recipe for target 'OMCppModelica_3_2_1_cpp_Modelica_Utilities_Examples_readRealParameterModelCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_1_cpp_Modelica_Utilities_Examples_readRealParameterModelCalcHelperMain.o] Error 1