Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Utilities.Examples.readRealParameterModel.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: "" <> buildModelFMU(Modelica.Utilities.Examples.readRealParameterModel,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Utilities_Examples_readRealParameterModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Utilities.Examples.readRealParameterModel,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Utilities_Examples_readRealParameterModel",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001523/0.001523, allocations: 185.4 kB / 16.4 MB, free: 5.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.987/1.987, allocations: 205.4 MB / 222.5 MB, free: 9.125 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.001127/0.001127, allocations: 92.02 kB / 270.9 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003972/0.0003971, allocations: 8 kB / 327 MB, free: 124 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3287/0.3291, allocations: 47.57 MB / 374.6 MB, free: 45.34 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.124/0.4531, allocations: 78.04 MB / 452.7 MB, free: 2.613 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003008/0.4535, allocations: 71.97 kB / 452.7 MB, free: 2.543 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02889/0.4824, allocations: 6.297 MB / 459 MB, free: 12.24 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.265e-06/0.4824, allocations: 0 / 459 MB, free: 12.24 MB / 346.7 MB Notification: Performance of Transformations before backend: time 7.645e-06/0.4825, allocations: 4 kB / 459 MB, free: 12.24 MB / 346.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.000819/0.4833, allocations: 447 kB / 459.5 MB, free: 11.75 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.147e-05/0.4834, allocations: 8.031 kB / 459.5 MB, free: 11.75 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.053e-05/0.4835, allocations: 105.8 kB / 459.6 MB, free: 11.63 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.238e-05/0.4836, allocations: 87.28 kB / 459.7 MB, free: 11.55 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00019/0.4838, allocations: 238.3 kB / 459.9 MB, free: 11.27 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.936e-05/0.4838, allocations: 154.6 kB / 460 MB, free: 11.12 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.432e-05/0.4839, allocations: 158.5 kB / 460.2 MB, free: 10.96 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.635e-05/0.484, allocations: 104.9 kB / 460.3 MB, free: 10.86 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.655e-05/0.484, allocations: 75.28 kB / 460.4 MB, free: 10.78 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.747e-05/0.4841, allocations: 150.6 kB / 460.5 MB, free: 10.63 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.206e-05/0.4842, allocations: 150.6 kB / 460.7 MB, free: 10.48 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.231e-05/0.4843, allocations: 158.6 kB / 460.8 MB, free: 10.33 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003506/0.4846, allocations: 445.9 kB / 461.3 MB, free: 9.844 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001008/0.4847, allocations: 173.1 kB / 461.4 MB, free: 9.664 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.512e-05/0.4848, allocations: 75.28 kB / 461.5 MB, free: 9.59 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001553/0.485, allocations: 51.36 kB / 461.5 MB, free: 9.527 MB / 346.7 MB Notification: Performance of pre-optimization done (n=1): time 5.971e-06/0.485, allocations: 0 / 461.5 MB, free: 9.527 MB / 346.7 MB Notification: Performance of matching and sorting (n=1): time 0.0001594/0.4851, allocations: 41.58 kB / 461.6 MB, free: 9.48 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.076e-05/0.4852, allocations: 51.41 kB / 461.6 MB, free: 9.418 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.526e-05/0.4853, allocations: 96.98 kB / 461.7 MB, free: 9.316 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.923e-05/0.4853, allocations: 25.7 kB / 461.8 MB, free: 9.285 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.132e-05/0.4854, allocations: 150.7 kB / 461.9 MB, free: 9.137 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.463e-05/0.4855, allocations: 4 kB / 461.9 MB, free: 9.133 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.565e-06/0.4855, allocations: 4 kB / 461.9 MB, free: 9.129 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001381/0.4856, allocations: 314.9 kB / 462.2 MB, free: 8.812 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.178e-05/0.4856, allocations: 4 kB / 462.2 MB, free: 8.809 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.913e-06/0.4857, allocations: 0 / 462.2 MB, free: 8.809 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.817e-05/0.4857, allocations: 0 / 462.2 MB, free: 8.809 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.474e-06/0.4857, allocations: 4 kB / 462.2 MB, free: 8.805 MB / 346.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.54e-05/0.4858, allocations: 33.69 kB / 462.3 MB, free: 8.766 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.062e-05/0.4858, allocations: 12.97 kB / 462.3 MB, free: 8.754 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.695e-06/0.4858, allocations: 3.953 kB / 462.3 MB, free: 8.75 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.464e-05/0.4859, allocations: 0 / 462.3 MB, free: 8.75 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.247e-05/0.4859, allocations: 0 / 462.3 MB, free: 8.75 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.656e-06/0.4859, allocations: 4 kB / 462.3 MB, free: 8.746 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.152e-05/0.4859, allocations: 192 / 462.3 MB, free: 8.746 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.253e-06/0.486, allocations: 0 / 462.3 MB, free: 8.746 MB / 346.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: 1 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 1 * 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 9.413e-05/0.4861, allocations: 113.8 kB / 462.4 MB, free: 8.625 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.833e-05/0.4861, allocations: 7.906 kB / 462.4 MB, free: 8.617 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.905e-05/0.4861, allocations: 15.08 kB / 462.4 MB, free: 8.605 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.857e-06/0.4862, allocations: 7.938 kB / 462.4 MB, free: 8.598 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/0.4862, allocations: 0 / 462.4 MB, free: 8.598 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.857e-06/0.4862, allocations: 0 / 462.4 MB, free: 8.598 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001638/0.4864, allocations: 145.7 kB / 462.6 MB, free: 8.406 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.913e-06/0.4864, allocations: 0 / 462.6 MB, free: 8.406 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.977e-06/0.4864, allocations: 3.984 kB / 462.6 MB, free: 8.402 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.545e-06/0.4864, allocations: 0 / 462.6 MB, free: 8.402 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.613e-06/0.4864, allocations: 0 / 462.6 MB, free: 8.402 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.565e-06/0.4864, allocations: 0 / 462.6 MB, free: 8.402 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/0.4864, allocations: 3.953 kB / 462.6 MB, free: 8.398 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001057/0.4865, allocations: 65.08 kB / 462.6 MB, free: 8.316 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.158e-05/0.4866, allocations: 81.09 kB / 462.7 MB, free: 8.219 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.197e-05/0.4867, allocations: 4 kB / 462.7 MB, free: 8.215 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.031e-05/0.4867, allocations: 3.938 kB / 462.7 MB, free: 8.211 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.697e-05/0.4867, allocations: 7.953 kB / 462.7 MB, free: 8.203 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.409e-06/0.4867, allocations: 0 / 462.7 MB, free: 8.203 MB / 346.7 MB Notification: Performance of sorting global known variables: time 6.562e-05/0.4868, allocations: 87.27 kB / 462.8 MB, free: 8.117 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.4868, allocations: 4.031 kB / 462.8 MB, free: 8.113 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008084/0.4876, allocations: 151.9 kB / 463 MB, free: 7.965 MB / 346.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: 1 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 1 * 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.001867/0.4895, allocations: 0.9733 MB / 463.9 MB, free: 6.996 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001038/0.4897, allocations: 19.92 kB / 464 MB, free: 6.977 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.138e-06/0.4897, allocations: 3.938 kB / 464 MB, free: 6.973 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.659e-05/0.4897, allocations: 4 kB / 464 MB, free: 6.969 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001345/0.4898, allocations: 0 / 464 MB, free: 6.969 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001082/0.4909, allocations: 464 kB / 464.4 MB, free: 6.465 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003289/0.4913, allocations: 0.6771 MB / 465.1 MB, free: 5.762 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.501e-05/0.4914, allocations: 15.42 kB / 465.1 MB, free: 5.746 MB / 346.7 MB Notification: Performance of SimCode: time 1.683e-06/0.4914, allocations: 0 / 465.1 MB, free: 5.746 MB / 346.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=2 -DSUNDIALS_MINOR_VERSION=6 -DPMC_USE_SUNDIALS -DFMU_BUILD -DRUNTIME_STATIC_LINKING -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp" -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/c/sundials" -I"." -DUSE_LOGGER -c -o OMCppModelica_3_2_3_cpp_Modelica_Utilities_Examples_readRealParameterModelCalcHelperMain.o OMCppModelica_3_2_3_cpp_Modelica_Utilities_Examples_readRealParameterModelCalcHelperMain.cpp In file included from OMCppModelica_3_2_3_cpp_Modelica_Utilities_Examples_readRealParameterModelCalcHelperMain.cpp:29: ./OMCppModelica_3_2_3_cpp_Modelica_Utilities_Examples_readRealParameterModelInitializeParameter.cpp:22:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp69; ^ ./OMCppModelica_3_2_3_cpp_Modelica_Utilities_Examples_readRealParameterModelInitializeParameter.cpp:23:16: error: no member named 'OpenModelica__fmuLoadResource' in 'Functions' _functions->OpenModelica__fmuLoadResource("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Resources/Data/Utilities/Examples_readRealParameters.txt", tmp69); ~~~~~~~~~~ ^ In file included from OMCppModelica_3_2_3_cpp_Modelica_Utilities_Examples_readRealParameterModelCalcHelperMain.cpp:31: ./OMCppModelica_3_2_3_cpp_Modelica_Utilities_Examples_readRealParameterModelInitialize.cpp:96:4: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp63; ^ ./OMCppModelica_3_2_3_cpp_Modelica_Utilities_Examples_readRealParameterModelInitialize.cpp:97:16: error: no member named 'OpenModelica__fmuLoadResource' in 'Functions' _functions->OpenModelica__fmuLoadResource("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Resources/Data/Utilities/Examples_readRealParameters.txt", tmp63); ~~~~~~~~~~ ^ ./OMCppModelica_3_2_3_cpp_Modelica_Utilities_Examples_readRealParameterModelInitialize.cpp:165:3: error: unknown type name 'OpenModelica__fmuLoadResourceRetType' OpenModelica__fmuLoadResourceRetType /* undefined */ tmp65; ^ ./OMCppModelica_3_2_3_cpp_Modelica_Utilities_Examples_readRealParameterModelInitialize.cpp:166:15: error: no member named 'OpenModelica__fmuLoadResource' in 'Functions' _functions->OpenModelica__fmuLoadResource(_functions->_OMC_LIT59, tmp65); ~~~~~~~~~~ ^ In file included from OMCppModelica_3_2_3_cpp_Modelica_Utilities_Examples_readRealParameterModelCalcHelperMain.cpp:34: ./OMCppModelica_3_2_3_cpp_Modelica_Utilities_Examples_readRealParameterModel.cpp:633:12: error: use of undeclared identifier 'tmp0' _file_ = tmp0; ^ In file included from OMCppModelica_3_2_3_cpp_Modelica_Utilities_Examples_readRealParameterModelCalcHelperMain.cpp:35: In file included from ./OMCppModelica_3_2_3_cpp_Modelica_Utilities_Examples_readRealParameterModelFMU.cpp:11: /var/lib/jenkins1/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_3_cpp_Modelica_Utilities_Examples_readRealParameterModelCalcHelperMain.o' failed make: *** [OMCppModelica_3_2_3_cpp_Modelica_Utilities_Examples_readRealParameterModelCalcHelperMain.o] Error 1