Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Media.TestAllProperties.CO2.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.CO2,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Media_TestAllProperties_CO2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestAllProperties.CO2,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Media_TestAllProperties_CO2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001705/0.001705, allocations: 200.3 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.272/1.272, allocations: 226.5 MB / 243.4 MB, free: 8.215 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009356/0.0009355, allocations: 94.47 kB / 295.5 MB, free: 6.891 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3099/0.3099, allocations: 44.82 MB / 392.3 MB, free: 35.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000306/0.0003062, allocations: 4 kB / 465.4 MB, free: 12.58 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3035/0.3039, allocations: 62.96 MB / 0.516 GB, free: 37.02 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestAllProperties.CO2): time 0.1413/0.4452, allocations: 136.2 MB / 0.649 GB, free: 0.8438 MB / 458.7 MB Notification: Performance of NFInst.instExpressions: time 0.005129/0.4504, allocations: 4.914 MB / 0.6538 GB, free: 11.92 MB / 474.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001308/0.4506, allocations: 0 / 0.6538 GB, free: 11.92 MB / 474.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002481/0.4508, allocations: 39.73 kB / 0.6538 GB, free: 11.88 MB / 474.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003172/0.454, allocations: 1.112 MB / 0.6549 GB, free: 10.77 MB / 474.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003717/0.4544, allocations: 133.3 kB / 0.655 GB, free: 10.64 MB / 474.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005507/0.4549, allocations: 418 kB / 0.6554 GB, free: 10.23 MB / 474.7 MB Notification: Performance of NFFlatten.resolveConnections: time 6.122e-05/0.455, allocations: 9.688 kB / 0.6555 GB, free: 10.23 MB / 474.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002879/0.4553, allocations: 167.4 kB / 0.6556 GB, free: 10.06 MB / 474.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003357/0.4557, allocations: 175.5 kB / 0.6558 GB, free: 9.891 MB / 474.7 MB Notification: Performance of NFPackage.collectConstants: time 2.968e-05/0.4557, allocations: 8 kB / 0.6558 GB, free: 9.883 MB / 474.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002174/0.4579, allocations: 1.024 MB / 0.6568 GB, free: 8.859 MB / 474.7 MB Notification: Performance of NFScalarize.scalarize: time 7.78e-05/0.458, allocations: 43.81 kB / 0.6568 GB, free: 8.816 MB / 474.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001399/0.4581, allocations: 137.2 kB / 0.657 GB, free: 8.676 MB / 474.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009036/0.459, allocations: 0.6022 MB / 0.6576 GB, free: 8.074 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.621e-06/0.459, allocations: 0 / 0.6576 GB, free: 8.074 MB / 474.7 MB Notification: Performance of FrontEnd: time 2.585e-06/0.4591, allocations: 0 / 0.6576 GB, free: 8.074 MB / 474.7 MB Notification: Performance of Transformations before backend: time 4.178e-06/0.4591, allocations: 3.938 kB / 0.6576 GB, free: 8.07 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.001179/0.4602, allocations: 0.6165 MB / 0.6582 GB, free: 7.402 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.605e-05/0.4603, allocations: 12.03 kB / 0.6582 GB, free: 7.391 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.334e-05/0.4604, allocations: 58.73 kB / 0.6582 GB, free: 7.324 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007405/0.4678, allocations: 0.613 MB / 0.6588 GB, free: 6.711 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005234/0.4684, allocations: 255.3 kB / 0.6591 GB, free: 6.422 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001453/0.4685, allocations: 123.4 kB / 0.6592 GB, free: 6.277 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.051e-05/0.4686, allocations: 24 kB / 0.6592 GB, free: 6.254 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001167/0.4698, allocations: 0.5595 MB / 0.6598 GB, free: 5.656 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.396e-05/0.4698, allocations: 11.94 kB / 0.6598 GB, free: 5.645 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.515e-05/0.4699, allocations: 12 kB / 0.6598 GB, free: 5.633 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.131e-05/0.4699, allocations: 7.984 kB / 0.6598 GB, free: 5.625 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001383/0.4713, allocations: 0.626 MB / 0.6604 GB, free: 5 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.002152/0.4735, allocations: 1.725 MB / 0.6621 GB, free: 3.129 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003365/0.4738, allocations: 154.4 kB / 0.6622 GB, free: 2.969 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001309/0.474, allocations: 72.88 kB / 0.6623 GB, free: 2.895 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001538/0.4755, allocations: 1.491 MB / 0.6638 GB, free: 1.141 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.644e-05/0.4756, allocations: 34.56 kB / 0.6638 GB, free: 1.098 MB / 474.7 MB Notification: Performance of pre-optimization done (n=19): time 2.174e-06/0.4756, allocations: 0 / 0.6638 GB, free: 1.098 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=19): time 0.000938/0.4765, allocations: 323.5 kB / 0.6641 GB, free: 0.7773 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.857e-05/0.4766, allocations: 55.41 kB / 0.6641 GB, free: 0.7109 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001692/0.4767, allocations: 191 kB / 0.6643 GB, free: 0.5156 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 2.886e-05/0.4768, allocations: 29.7 kB / 0.6644 GB, free: 492 kB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001052/0.4769, allocations: 183.3 kB / 0.6645 GB, free: 304 kB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.205e-05/0.477, allocations: 67.09 kB / 0.6646 GB, free: 236 kB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.269e-05/0.477, allocations: 12 kB / 0.6646 GB, free: 224 kB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001266/0.4771, allocations: 322.8 kB / 0.6649 GB, free: 15.89 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001334/0.4773, allocations: 68.7 kB / 0.665 GB, free: 15.83 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000261/0.4775, allocations: 256 kB / 0.6652 GB, free: 15.48 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004326/0.478, allocations: 371.6 kB / 0.6656 GB, free: 15.03 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.35e-06/0.478, allocations: 4 kB / 0.6656 GB, free: 15.02 MB / 490.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0005798/0.4786, allocations: 371.2 kB / 0.6659 GB, free: 14.66 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.072e-05/0.4786, allocations: 8 kB / 0.6659 GB, free: 14.65 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.999e-06/0.4786, allocations: 8 kB / 0.666 GB, free: 14.64 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.907e-05/0.4786, allocations: 8 kB / 0.666 GB, free: 14.63 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003917/0.479, allocations: 127.8 kB / 0.6661 GB, free: 14.51 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004105/0.4795, allocations: 0.6058 MB / 0.6667 GB, free: 13.88 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002255/0.4797, allocations: 47.53 kB / 0.6667 GB, free: 13.83 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.832e-05/0.4798, allocations: 43.98 kB / 0.6668 GB, free: 13.79 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.0001404/0.4799, allocations: 141.7 kB / 0.6669 GB, free: 13.64 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.326e-05/0.48, allocations: 19.75 kB / 0.6669 GB, free: 13.62 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009232/0.4809, allocations: 467.9 kB / 0.6674 GB, free: 13.14 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.198e-06/0.4809, allocations: 0 / 0.6674 GB, free: 13.14 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.157e-06/0.4809, allocations: 4 kB / 0.6674 GB, free: 13.14 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.4809, allocations: 3.938 kB / 0.6674 GB, free: 13.13 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008671/0.4818, allocations: 0.6391 MB / 0.668 GB, free: 12.39 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.4818, allocations: 0 / 0.668 GB, free: 12.39 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002094/0.482, allocations: 60.2 kB / 0.668 GB, free: 12.34 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.439e-06/0.4821, allocations: 8 kB / 0.6681 GB, free: 12.33 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.117e-05/0.4821, allocations: 8 kB / 0.6681 GB, free: 12.32 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003598/0.4825, allocations: 0.5976 MB / 0.6686 GB, free: 11.7 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/0.4825, allocations: 0 / 0.6686 GB, free: 11.7 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003706/0.4828, allocations: 292.6 kB / 0.6689 GB, free: 11.38 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001278/0.483, allocations: 120.8 kB / 0.669 GB, free: 11.24 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.042e-05/0.483, allocations: 8 kB / 0.669 GB, free: 11.23 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002396/0.4833, allocations: 15.98 kB / 0.6691 GB, free: 11.21 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.003e-05/0.4833, allocations: 19.92 kB / 0.6691 GB, free: 11.2 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.888e-05/0.4834, allocations: 19.98 kB / 0.6691 GB, free: 11.18 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0001315/0.4835, allocations: 140 kB / 0.6692 GB, free: 11.04 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4836, allocations: 0 / 0.6692 GB, free: 11.04 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0006434/0.4842, allocations: 159.9 kB / 0.6694 GB, free: 10.88 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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.001217/0.4854, allocations: 1.001 MB / 0.6704 GB, free: 9.84 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0004677/0.4859, allocations: 218.9 kB / 0.6706 GB, free: 9.629 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 4.459e-06/0.4859, allocations: 8.188 kB / 0.6706 GB, free: 9.621 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000185/0.4861, allocations: 83.83 kB / 0.6707 GB, free: 9.539 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004992/0.4866, allocations: 48.45 kB / 0.6707 GB, free: 9.492 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002719/0.4894, allocations: 1.786 MB / 0.6725 GB, free: 7.543 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003039/0.4897, allocations: 0.7208 MB / 0.6732 GB, free: 6.797 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003336/0.49, allocations: 119.3 kB / 0.6733 GB, free: 6.68 MB / 490.7 MB Notification: Performance of SimCode: time 3.1e-07/0.49, allocations: 3.938 kB / 0.6733 GB, free: 6.676 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_CO2CalcHelperMain.o OMCppModelicaTest_trunk_cpp_ModelicaTest_Media_TestAllProperties_CO2CalcHelperMain.cpp In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Media_TestAllProperties_CO2CalcHelperMain.cpp:17: ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Media_TestAllProperties_CO2.h:302:19: error: member access into incomplete type 'Functions' _functions->ModelicaTest_Media_TestAllProperties_CO2_Medium_T__h_f__nonlinear(u, data, h, output); ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Media_TestAllProperties_CO2.h:11:7: note: forward declaration of 'Functions' class Functions; ^ In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Media_TestAllProperties_CO2CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Media_TestAllProperties_CO2FMU.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_CO2CalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Media_TestAllProperties_CO2FMU.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_CO2CalcHelperMain.o] Error 1