Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Media.TestAllProperties.DryAirNasa.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Media.TestAllProperties.DryAirNasa,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Media_TestAllProperties_DryAirNasa",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestAllProperties.DryAirNasa,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Media_TestAllProperties_DryAirNasa",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009813/0.0009814, allocations: 200.2 kB / 16.1 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.246/1.246, allocations: 226.5 MB / 243.4 MB, free: 8.117 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007681/0.0007681, allocations: 98.78 kB / 295.5 MB, free: 6.883 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2786/0.2786, allocations: 44.82 MB / 392.3 MB, free: 35.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002406/0.0002407, allocations: 12.22 kB / 465.4 MB, free: 12.57 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2736/0.2738, allocations: 62.95 MB / 0.5159 GB, free: 36.98 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestAllProperties.DryAirNasa): time 0.1312/0.4051, allocations: 136.2 MB / 0.649 GB, free: 0.8711 MB / 458.7 MB Notification: Performance of NFInst.instExpressions: time 0.007087/0.4122, allocations: 4.758 MB / 0.6536 GB, free: 12.1 MB / 474.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001852/0.4124, allocations: 0 / 0.6536 GB, free: 12.1 MB / 474.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003024/0.4128, allocations: 43.73 kB / 0.6537 GB, free: 12.06 MB / 474.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003849/0.4166, allocations: 1 MB / 0.6547 GB, free: 11.06 MB / 474.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005011/0.4171, allocations: 141.7 kB / 0.6548 GB, free: 10.93 MB / 474.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007692/0.4179, allocations: 406.1 kB / 0.6552 GB, free: 10.53 MB / 474.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.35e-05/0.418, allocations: 13.67 kB / 0.6552 GB, free: 10.52 MB / 474.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004731/0.4185, allocations: 163.3 kB / 0.6553 GB, free: 10.36 MB / 474.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004193/0.419, allocations: 183.5 kB / 0.6555 GB, free: 10.18 MB / 474.7 MB Notification: Performance of NFPackage.collectConstants: time 4.301e-05/0.419, allocations: 4 kB / 0.6555 GB, free: 10.18 MB / 474.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00248/0.4215, allocations: 0.9595 MB / 0.6565 GB, free: 9.215 MB / 474.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001047/0.4216, allocations: 43.81 kB / 0.6565 GB, free: 9.172 MB / 474.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001969/0.4218, allocations: 133.3 kB / 0.6566 GB, free: 9.035 MB / 474.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001303/0.4232, allocations: 0.5982 MB / 0.6572 GB, free: 8.438 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.4232, allocations: 0 / 0.6572 GB, free: 8.438 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.4232, allocations: 0 / 0.6572 GB, free: 8.438 MB / 474.7 MB Notification: Performance of Transformations before backend: time 6.062e-06/0.4232, allocations: 0 / 0.6572 GB, free: 8.438 MB / 474.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.00159/0.4248, allocations: 0.6087 MB / 0.6578 GB, free: 7.777 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.557e-05/0.4249, allocations: 8.031 kB / 0.6578 GB, free: 7.77 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001007/0.425, allocations: 66.67 kB / 0.6579 GB, free: 7.695 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01092/0.4359, allocations: 0.613 MB / 0.6585 GB, free: 7.082 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005696/0.4365, allocations: 259.3 kB / 0.6587 GB, free: 6.789 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001629/0.4367, allocations: 123.4 kB / 0.6588 GB, free: 6.645 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001578/0.4369, allocations: 20 kB / 0.6589 GB, free: 6.625 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001737/0.4386, allocations: 0.5633 MB / 0.6594 GB, free: 6.023 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.513e-05/0.4387, allocations: 0 / 0.6594 GB, free: 6.023 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001175/0.4388, allocations: 8 kB / 0.6594 GB, free: 6.016 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.871e-05/0.4388, allocations: 11.94 kB / 0.6594 GB, free: 6.004 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002101/0.4409, allocations: 0.626 MB / 0.66 GB, free: 5.379 MB / 474.7 MB Warning: The model contains alias variables with redundant start and/or conflicting 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.002851/0.4438, allocations: 1.733 MB / 0.6617 GB, free: 3.5 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004712/0.4443, allocations: 158.5 kB / 0.6619 GB, free: 3.336 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001906/0.4445, allocations: 72.88 kB / 0.662 GB, free: 3.262 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008681/0.4454, allocations: 0.6966 MB / 0.6626 GB, free: 2.465 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.461e-05/0.4454, allocations: 38.56 kB / 0.6627 GB, free: 2.418 MB / 474.7 MB Notification: Performance of pre-optimization done (n=17): time 2.264e-06/0.4454, allocations: 0 / 0.6627 GB, free: 2.418 MB / 474.7 MB Warning: Some equations could not be differentiated for following variables having attribute stateSelect=StateSelect.prefer. They will be treated as if they had stateSelect=StateSelect.default ======================================== 1: medium.T Please use -d=bltdump for more information. Notification: Performance of matching and sorting (n=17): time 0.001402/0.4468, allocations: 326.1 kB / 0.663 GB, free: 2.098 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.855e-05/0.4469, allocations: 55.34 kB / 0.663 GB, free: 2.031 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002241/0.4471, allocations: 191.8 kB / 0.6632 GB, free: 1.836 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 3.957e-05/0.4472, allocations: 33.7 kB / 0.6633 GB, free: 1.797 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001314/0.4473, allocations: 191.1 kB / 0.6634 GB, free: 1.605 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.193e-05/0.4474, allocations: 67.09 kB / 0.6635 GB, free: 1.539 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.628e-05/0.4475, allocations: 8 kB / 0.6635 GB, free: 1.531 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001261/0.4476, allocations: 326.8 kB / 0.6638 GB, free: 1.203 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002/0.4478, allocations: 64.7 kB / 0.6639 GB, free: 1.141 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003389/0.4481, allocations: 260 kB / 0.6641 GB, free: 0.793 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006073/0.4488, allocations: 363.8 kB / 0.6645 GB, free: 352 kB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.184e-06/0.4488, allocations: 4 kB / 0.6645 GB, free: 348 kB / 474.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0009066/0.4497, allocations: 370.6 kB / 0.6648 GB, free: 15.97 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.734e-05/0.4497, allocations: 11.94 kB / 0.6648 GB, free: 15.96 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.452e-05/0.4498, allocations: 8 kB / 0.6648 GB, free: 15.95 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.388e-05/0.4498, allocations: 8.75 kB / 0.6649 GB, free: 15.95 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005731/0.4504, allocations: 127.8 kB / 0.665 GB, free: 15.82 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004131/0.4508, allocations: 0.6016 MB / 0.6656 GB, free: 15.2 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000387/0.4512, allocations: 43.53 kB / 0.6656 GB, free: 15.15 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.417e-05/0.4513, allocations: 43.98 kB / 0.6657 GB, free: 15.11 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (46): * Single equations (assignments): 45 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * 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: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001874/0.4515, allocations: 145.6 kB / 0.6658 GB, free: 14.96 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.388e-05/0.4516, allocations: 23.91 kB / 0.6658 GB, free: 14.93 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001241/0.4528, allocations: 425.1 kB / 0.6662 GB, free: 14.5 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.352e-06/0.4529, allocations: 3.984 kB / 0.6662 GB, free: 14.5 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.344e-06/0.4529, allocations: 4 kB / 0.6662 GB, free: 14.5 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.4529, allocations: 0 / 0.6662 GB, free: 14.5 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001119/0.454, allocations: 0.6344 MB / 0.6668 GB, free: 13.77 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.681e-06/0.454, allocations: 4 kB / 0.6668 GB, free: 13.76 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002984/0.4544, allocations: 59.89 kB / 0.6669 GB, free: 13.7 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.524e-06/0.4544, allocations: 4 kB / 0.6669 GB, free: 13.7 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.761e-05/0.4544, allocations: 11.94 kB / 0.6669 GB, free: 13.69 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003761/0.4548, allocations: 0.5979 MB / 0.6675 GB, free: 13.07 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.581e-06/0.4548, allocations: 4 kB / 0.6675 GB, free: 13.06 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004798/0.4553, allocations: 291.2 kB / 0.6678 GB, free: 12.74 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000149/0.4555, allocations: 112.9 kB / 0.6679 GB, free: 12.61 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.403e-05/0.4555, allocations: 11.98 kB / 0.6679 GB, free: 12.6 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003521/0.4559, allocations: 11.91 kB / 0.6679 GB, free: 12.59 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.658e-05/0.456, allocations: 27.91 kB / 0.6679 GB, free: 12.56 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.565e-05/0.456, allocations: 16 kB / 0.668 GB, free: 12.55 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0001586/0.4562, allocations: 135.6 kB / 0.6681 GB, free: 12.41 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.91e-07/0.4562, allocations: 0 / 0.6681 GB, free: 12.41 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.000927/0.4572, allocations: 147.9 kB / 0.6682 GB, free: 12.27 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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 (15): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * 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: 1 {1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.00142/0.4586, allocations: 0.9679 MB / 0.6692 GB, free: 11.26 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0006684/0.4593, allocations: 214.6 kB / 0.6694 GB, free: 11.05 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 3.397e-06/0.4593, allocations: 0.5625 kB / 0.6694 GB, free: 11.05 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002649/0.4596, allocations: 83.83 kB / 0.6695 GB, free: 10.97 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007441/0.4603, allocations: 55.89 kB / 0.6695 GB, free: 10.92 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003237/0.4636, allocations: 1.603 MB / 0.6711 GB, free: 9.152 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003144/0.4639, allocations: 0.7245 MB / 0.6718 GB, free: 8.402 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004961/0.4644, allocations: 127.3 kB / 0.6719 GB, free: 8.277 MB / 490.7 MB Notification: Performance of SimCode: time 4.91e-07/0.4644, allocations: 0 / 0.6719 GB, free: 8.277 MB / 490.7 MB Error: Error building simulator. Build log: clang++ -std=c++14 -Winvalid-pch -O2 -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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp" -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/sundials" -I"." -DUSE_LOGGER -c -o OMCppModelicaTest_trunk_cpp_ModelicaTest_Media_TestAllProperties_DryAirNasaCalcHelperMain.o OMCppModelicaTest_trunk_cpp_ModelicaTest_Media_TestAllProperties_DryAirNasaCalcHelperMain.cpp In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Media_TestAllProperties_DryAirNasaCalcHelperMain.cpp:17: ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Media_TestAllProperties_DryAirNasa.h:304:19: error: member access into incomplete type 'Functions' _functions->ModelicaTest_Media_TestAllProperties_DryAirNasa_Medium_T__h_f__nonlinear(u, data, h, output); ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Media_TestAllProperties_DryAirNasa.h:11:7: note: forward declaration of 'Functions' class Functions; ^ In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Media_TestAllProperties_DryAirNasaCalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Media_TestAllProperties_DryAirNasaFMU.cpp:11: In file included from /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/FMU2/FMU2Wrapper.cpp:37: In file included from /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/FMU2/FMU2Wrapper.h:44: /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/FMU2/FMU2GlobalSettings.h:65:56: warning: returning reference to local temporary object [-Wreturn-stack-address] virtual const string& getVariableFilter() { return "";} ^~ In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Media_TestAllProperties_DryAirNasaCalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Media_TestAllProperties_DryAirNasaFMU.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) { ^ 2 warnings and 1 error generated. make: *** [: OMCppModelicaTest_trunk_cpp_ModelicaTest_Media_TestAllProperties_DryAirNasaCalcHelperMain.o] Error 1