Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Media.TestAllProperties.MoistAir.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.MoistAir,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Media_TestAllProperties_MoistAir",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Media.TestAllProperties.MoistAir,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Media_TestAllProperties_MoistAir",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000983/0.0009829, allocations: 199.7 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.309/1.309, 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.0007378/0.0007378, allocations: 92.5 kB / 295.5 MB, free: 6.902 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3043/0.3043, allocations: 44.82 MB / 392.3 MB, free: 35.75 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002941/0.0002943, allocations: 11.98 kB / 465.4 MB, free: 12.59 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3354/0.3357, allocations: 62.95 MB / 0.5159 GB, free: 37.02 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Media.TestAllProperties.MoistAir): time 0.1456/0.4814, allocations: 138.1 MB / 0.6508 GB, free: 14.96 MB / 474.7 MB Notification: Performance of NFInst.instExpressions: time 0.01072/0.4922, allocations: 9.674 MB / 0.6603 GB, free: 5.273 MB / 474.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002081/0.4924, allocations: 4 kB / 0.6603 GB, free: 5.27 MB / 474.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003534/0.4928, allocations: 63.62 kB / 0.6604 GB, free: 5.207 MB / 474.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006765/0.4996, allocations: 2.571 MB / 0.6629 GB, free: 2.633 MB / 474.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004049/0.5, allocations: 143 kB / 0.663 GB, free: 2.496 MB / 474.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008256/0.5008, allocations: 0.6426 MB / 0.6636 GB, free: 1.852 MB / 474.7 MB Notification: Performance of NFFlatten.resolveConnections: time 6.941e-05/0.5009, allocations: 16.41 kB / 0.6636 GB, free: 1.832 MB / 474.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003849/0.5013, allocations: 219.2 kB / 0.6639 GB, free: 1.617 MB / 474.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008092/0.5021, allocations: 411 kB / 0.6642 GB, free: 1.215 MB / 474.7 MB Notification: Performance of NFPackage.collectConstants: time 5.618e-05/0.5022, allocations: 12 kB / 0.6643 GB, free: 1.203 MB / 474.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008358/0.5105, allocations: 5.131 MB / 0.6693 GB, free: 12.06 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 0.00016/0.5107, allocations: 91.67 kB / 0.6694 GB, free: 11.97 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002818/0.511, allocations: 181.1 kB / 0.6695 GB, free: 11.79 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003319/0.5144, allocations: 1.659 MB / 0.6712 GB, free: 10.13 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.282e-06/0.5144, allocations: 3.984 kB / 0.6712 GB, free: 10.12 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.603e-06/0.5144, allocations: 0 / 0.6712 GB, free: 10.12 MB / 490.7 MB Notification: Performance of Transformations before backend: time 1.052e-05/0.5144, allocations: 0 / 0.6712 GB, free: 10.12 MB / 490.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 81 * Number of variables: 81 Notification: Performance of Generate backend data structure: time 0.002282/0.5167, allocations: 0.9905 MB / 0.6721 GB, free: 9.086 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.194e-05/0.5167, allocations: 8.031 kB / 0.6721 GB, free: 9.078 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.582e-05/0.5169, allocations: 70.72 kB / 0.6722 GB, free: 9 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001614/0.517, allocations: 39.83 kB / 0.6722 GB, free: 8.961 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000285/0.5173, allocations: 254.6 kB / 0.6725 GB, free: 8.672 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000116/0.5174, allocations: 131.4 kB / 0.6726 GB, free: 8.52 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.352e-05/0.5175, allocations: 32 kB / 0.6726 GB, free: 8.488 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007622/0.5183, allocations: 0.5564 MB / 0.6732 GB, free: 7.898 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.179e-05/0.5183, allocations: 4 kB / 0.6732 GB, free: 7.895 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.982e-05/0.5183, allocations: 15.94 kB / 0.6732 GB, free: 7.879 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.815e-05/0.5184, allocations: 32.53 kB / 0.6732 GB, free: 7.848 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001283/0.5197, allocations: 1.255 MB / 0.6745 GB, free: 6.59 MB / 490.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.002452/0.5222, allocations: 1.965 MB / 0.6764 GB, free: 4.477 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007281/0.5229, allocations: 252 kB / 0.6766 GB, free: 4.223 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000188/0.5231, allocations: 118 kB / 0.6767 GB, free: 4.105 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003169/0.5263, allocations: 3.11 MB / 0.6798 GB, free: 476 kB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.667e-05/0.5263, allocations: 42.5 kB / 0.6798 GB, free: 424 kB / 490.7 MB Notification: Performance of pre-optimization done (n=42): time 2.956e-06/0.5264, allocations: 0 / 0.6798 GB, free: 424 kB / 490.7 MB Notification: Performance of matching and sorting (n=44): time 0.2027/0.7291, allocations: 0.6961 MB / 0.6805 GB, free: 143.9 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.764e-05/0.7291, allocations: 56.5 kB / 0.6805 GB, free: 143.8 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000206/0.7293, allocations: 201.7 kB / 0.6807 GB, free: 143.7 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 3.548e-05/0.7294, allocations: 34.23 kB / 0.6808 GB, free: 143.7 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.686e-05/0.7295, allocations: 190.7 kB / 0.6809 GB, free: 143.5 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001089/0.7296, allocations: 150.7 kB / 0.6811 GB, free: 143.4 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.612e-05/0.7296, allocations: 13.22 kB / 0.6811 GB, free: 143.4 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 7.208e-05/0.7297, allocations: 341.7 kB / 0.6814 GB, free: 143.1 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002137/0.7299, allocations: 101.4 kB / 0.6815 GB, free: 143.1 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000347/0.7303, allocations: 414.2 kB / 0.6819 GB, free: 142.7 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005931/0.7309, allocations: 0.5653 MB / 0.6825 GB, free: 142.3 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.061e-06/0.7309, allocations: 5.125 kB / 0.6825 GB, free: 142.3 MB / 490.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.00087/0.7318, allocations: 0.5478 MB / 0.683 GB, free: 142.1 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.44e-05/0.7318, allocations: 9.656 kB / 0.683 GB, free: 142.1 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.2e-05/0.7318, allocations: 19.66 kB / 0.683 GB, free: 142.1 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.805e-05/0.7319, allocations: 14.34 kB / 0.6831 GB, free: 142.1 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007483/0.7326, allocations: 194.7 kB / 0.6832 GB, free: 142.1 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004006/0.733, allocations: 1.198 MB / 0.6844 GB, free: 140.9 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003256/0.7334, allocations: 36.7 kB / 0.6844 GB, free: 140.9 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.584e-05/0.7335, allocations: 52.08 kB / 0.6845 GB, free: 140.9 MB / 490.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 48 * 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 (73): * Single equations (assignments): 70 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * 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: 2 {1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001544/0.7336, allocations: 173.6 kB / 0.6847 GB, free: 140.7 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.012e-05/0.7337, allocations: 28.09 kB / 0.6847 GB, free: 140.7 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001016/0.7347, allocations: 0.6437 MB / 0.6853 GB, free: 140.4 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.233e-05/0.7348, allocations: 2.969 kB / 0.6853 GB, free: 140.4 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.229e-06/0.7348, allocations: 3.328 kB / 0.6853 GB, free: 140.4 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.1e-06/0.7348, allocations: 3.031 kB / 0.6853 GB, free: 140.4 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008303/0.7356, allocations: 0.8164 MB / 0.6861 GB, free: 139.7 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.995e-06/0.7356, allocations: 2.781 kB / 0.6861 GB, free: 139.7 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004003/0.736, allocations: 95.23 kB / 0.6862 GB, free: 139.7 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.029e-06/0.736, allocations: 3.359 kB / 0.6862 GB, free: 139.7 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.967e-05/0.7361, allocations: 10.19 kB / 0.6862 GB, free: 139.7 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002973/0.7364, allocations: 1.171 MB / 0.6874 GB, free: 138.5 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.7364, allocations: 2.688 kB / 0.6874 GB, free: 138.5 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003229/0.7367, allocations: 362.7 kB / 0.6877 GB, free: 138.3 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00011/0.7368, allocations: 141.9 kB / 0.6879 GB, free: 138.2 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.767e-05/0.7369, allocations: 12.59 kB / 0.6879 GB, free: 138.2 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002512/0.7371, allocations: 13.22 kB / 0.6879 GB, free: 138.2 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.956e-05/0.7372, allocations: 27.52 kB / 0.6879 GB, free: 138.2 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.818e-05/0.7372, allocations: 10.88 kB / 0.6879 GB, free: 138.2 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.0001171/0.7374, allocations: 171.5 kB / 0.6881 GB, free: 138.1 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.7374, allocations: 0 / 0.6881 GB, free: 138.1 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.001357/0.7387, allocations: 0.501 MB / 0.6886 GB, free: 138 MB / 490.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (35): * Single equations (assignments): 32 * Array equations: 1 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * 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: 2 {1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002059/0.7408, allocations: 1.543 MB / 0.6901 GB, free: 137.2 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.0007492/0.7416, allocations: 368.1 kB / 0.6904 GB, free: 137.1 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.7416, allocations: 1.812 kB / 0.6904 GB, free: 137.1 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003099/0.7419, allocations: 139.1 kB / 0.6906 GB, free: 137 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006787/0.7426, allocations: 107 kB / 0.6907 GB, free: 137 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009894/0.7525, allocations: 7.197 MB / 0.6977 GB, free: 133.8 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001733/0.7527, allocations: 0.7774 MB / 0.6984 GB, free: 133.1 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003023/0.753, allocations: 137.6 kB / 0.6986 GB, free: 133 MB / 490.7 MB Notification: Performance of SimCode: time 5.61e-07/0.753, allocations: 0 / 0.6986 GB, free: 133 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_MoistAirCalcHelperMain.o OMCppModelicaTest_trunk_cpp_ModelicaTest_Media_TestAllProperties_MoistAirCalcHelperMain.cpp In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Media_TestAllProperties_MoistAirCalcHelperMain.cpp:17: ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Media_TestAllProperties_MoistAir.h:370:19: error: member access into incomplete type 'Functions' _functions->ModelicaTest_Media_TestAllProperties_MoistAir_Medium_T__phX_f__nonlinear(u, p, h, X, output); ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Media_TestAllProperties_MoistAir.h:11:7: note: forward declaration of 'Functions' class Functions; ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Media_TestAllProperties_MoistAir.h:388:19: error: member access into incomplete type 'Functions' _functions->ModelicaTest_Media_TestAllProperties_MoistAir_Medium_T__psX_f__nonlinear(u, p, s, X, output); ^ ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Media_TestAllProperties_MoistAir.h:11:7: note: forward declaration of 'Functions' class Functions; ^ In file included from OMCppModelicaTest_trunk_cpp_ModelicaTest_Media_TestAllProperties_MoistAirCalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Media_TestAllProperties_MoistAirFMU.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_MoistAirCalcHelperMain.cpp:35: In file included from ./OMCppModelicaTest_trunk_cpp_ModelicaTest_Media_TestAllProperties_MoistAirFMU.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 2 errors generated. make: *** [: OMCppModelicaTest_trunk_cpp_ModelicaTest_Media_TestAllProperties_MoistAirCalcHelperMain.o] Error 1