Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestStatesTranscritical.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo", uses=false) Using package ExternalMedia with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ExternalMedia.Test.CoolProp.CO2_Tabular.TestStatesTranscritical,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestStatesTranscritical") translateModel(ExternalMedia.Test.CoolProp.CO2_Tabular.TestStatesTranscritical,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestStatesTranscritical") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001154/0.001154, allocations: 100.1 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001071/0.001071, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.569/1.569, allocations: 223.2 MB / 239.9 MB, free: 5.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.1397/0.1397, allocations: 2.784 MB / 293.8 MB, free: 4.363 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004088/0.0004089, allocations: 8 kB / 355.5 MB, free: 4.355 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1435/0.144, allocations: 51.24 MB / 406.8 MB, free: 1.059 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2_Tabular.TestStatesTranscritical): time 0.01426/0.1583, allocations: 11.99 MB / 418.8 MB, free: 5.031 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.312/0.4704, allocations: 5.904 MB / 424.7 MB, free: 34.75 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002215/0.4707, allocations: 1.25 kB / 424.7 MB, free: 34.75 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007845/0.4715, allocations: 240.2 kB / 424.9 MB, free: 34.75 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0039/0.4754, allocations: 1.184 MB / 426.1 MB, free: 34.74 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003397/0.4757, allocations: 91.61 kB / 426.2 MB, free: 34.73 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004486/0.4762, allocations: 247.4 kB / 426.4 MB, free: 34.73 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.475e-05/0.4763, allocations: 23.88 kB / 426.4 MB, free: 34.73 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.574e-05/0.4764, allocations: 90.34 kB / 426.5 MB, free: 34.73 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001443/0.4765, allocations: 110.6 kB / 426.6 MB, free: 34.73 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.775e-05/0.4766, allocations: 9.234 kB / 426.6 MB, free: 34.73 MB / 350.1 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/NFFrontEnd/NFEvalFunction.mo:181:7-183:92:writable] Error: Internal error NFEvalFunction.evaluateExternal failed on ExternalMedia.Test.CoolProp.CO2_Tabular.TestStatesTranscritical.completeState1.Medium.getCriticalMolarVolume, evaluation of userdefined external functions not yet implemented [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/NFFrontEnd/NFEvalFunction.mo:181:7-183:92:writable] Error: Internal error NFEvalFunction.evaluateExternal failed on ExternalMedia.Test.CoolProp.CO2_Tabular.TestStatesTranscritical.completeState2.Medium.getCriticalMolarVolume, evaluation of userdefined external functions not yet implemented [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/Common/CheckCoolPropOptions.mo:2:1-104:25:writable] Warning: Pure function ‘ExternalMedia.Common.CheckCoolPropOptions‘ contains a call to impure function ‘Modelica.Utilities.Streams.print‘. Notification: Performance of NFFlatten.collectFunctions: time 0.006796/0.4834, allocations: 4.083 MB / 430.7 MB, free: 34.59 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.92e-05/0.4834, allocations: 30.19 kB / 430.7 MB, free: 34.59 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001286/0.4836, allocations: 76.3 kB / 430.8 MB, free: 34.56 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006017/0.4842, allocations: 353.2 kB / 431.2 MB, free: 34.54 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.435e-06/0.4842, allocations: 0 / 431.2 MB, free: 34.54 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.4842, allocations: 0 / 431.2 MB, free: 34.54 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.739e-06/0.4842, allocations: 0 / 431.2 MB, free: 34.54 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.0004074/0.4846, allocations: 0.5319 MB / 431.7 MB, free: 34.1 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.252e-05/0.4847, allocations: 9.312 kB / 431.7 MB, free: 34.1 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007334/0.4854, allocations: 200.6 kB / 431.9 MB, free: 34.09 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.492e-05/0.4855, allocations: 189.1 kB / 432.1 MB, free: 33.88 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.296e-05/0.4855, allocations: 17.89 kB / 432.1 MB, free: 33.88 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.482e-05/0.4856, allocations: 25.78 kB / 432.1 MB, free: 33.88 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003877/0.486, allocations: 333.7 kB / 432.5 MB, free: 33.83 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.284e-05/0.486, allocations: 0 / 432.5 MB, free: 33.83 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.959e-05/0.486, allocations: 10.31 kB / 432.5 MB, free: 33.82 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.457e-05/0.486, allocations: 12.58 kB / 432.5 MB, free: 33.82 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003321/0.4864, allocations: 267.1 kB / 432.7 MB, free: 33.82 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001247/0.4876, allocations: 2.127 MB / 434.9 MB, free: 31.89 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001192/0.4877, allocations: 133 kB / 435 MB, free: 31.85 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001628/0.4879, allocations: 191.8 kB / 435.2 MB, free: 31.66 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.635e-05/0.4879, allocations: 40.34 kB / 435.2 MB, free: 31.62 MB / 350.1 MB Notification: Performance of pre-optimization done (n=34): time 1.333e-06/0.488, allocations: 0 / 435.2 MB, free: 31.62 MB / 350.1 MB Notification: Performance of matching and sorting (n=34): time 0.000509/0.4885, allocations: 483.9 kB / 435.7 MB, free: 31.36 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.685e-05/0.4885, allocations: 86.75 kB / 435.8 MB, free: 31.26 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.933e-05/0.4886, allocations: 95.06 kB / 435.9 MB, free: 31.16 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.651e-05/0.4886, allocations: 27.02 kB / 435.9 MB, free: 31.13 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.69e-05/0.4887, allocations: 153 kB / 436.1 MB, free: 31 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.338e-05/0.4887, allocations: 106.3 kB / 436.2 MB, free: 30.93 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.753e-06/0.4887, allocations: 7.812 kB / 436.2 MB, free: 30.93 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.267e-05/0.4888, allocations: 321.1 kB / 436.5 MB, free: 30.62 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.75e-05/0.4889, allocations: 64.14 kB / 436.5 MB, free: 30.62 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.627e-05/0.489, allocations: 96.64 kB / 436.6 MB, free: 30.58 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.995e-05/0.4891, allocations: 82.11 kB / 436.7 MB, free: 30.57 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.4891, allocations: 0 / 436.7 MB, free: 30.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0003029/0.4894, allocations: 212.2 kB / 436.9 MB, free: 30.53 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.984e-05/0.4894, allocations: 6.312 kB / 436.9 MB, free: 30.53 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.233e-06/0.4894, allocations: 4.359 kB / 436.9 MB, free: 30.53 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.45e-05/0.4894, allocations: 0 / 436.9 MB, free: 30.53 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.603e-05/0.4895, allocations: 15.56 kB / 436.9 MB, free: 30.53 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.607e-06/0.4895, allocations: 9.906 kB / 437 MB, free: 30.53 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001358/0.4897, allocations: 28.22 kB / 437 MB, free: 30.51 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.716e-05/0.4897, allocations: 10.92 kB / 437 MB, free: 30.51 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 2 (state1.phase,state2.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.0001046/0.4898, allocations: 125.1 kB / 437.1 MB, free: 30.39 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.587e-05/0.4899, allocations: 10.75 kB / 437.1 MB, free: 30.39 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006262/0.4905, allocations: 0.4944 MB / 437.6 MB, free: 30.31 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003726/0.4909, allocations: 400.9 kB / 438 MB, free: 30.25 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.224e-06/0.4909, allocations: 3.5 kB / 438 MB, free: 30.25 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.613e-06/0.4909, allocations: 7.422 kB / 438 MB, free: 30.24 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001109/0.492, allocations: 1.145 MB / 439.2 MB, free: 29.78 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/0.4921, allocations: 0 / 439.2 MB, free: 29.78 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001559/0.4922, allocations: 63.27 kB / 439.2 MB, free: 29.78 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.077e-06/0.4922, allocations: 3.156 kB / 439.2 MB, free: 29.78 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.584e-05/0.4922, allocations: 6.406 kB / 439.2 MB, free: 29.78 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.474e-06/0.4923, allocations: 0 / 439.2 MB, free: 29.78 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.788e-06/0.4923, allocations: 7.969 kB / 439.2 MB, free: 29.77 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004807/0.4927, allocations: 0.5678 MB / 439.8 MB, free: 29.53 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.572e-05/0.4928, allocations: 105.7 kB / 439.9 MB, free: 29.42 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.669e-05/0.4928, allocations: 12.5 kB / 439.9 MB, free: 29.42 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000228/0.4931, allocations: 48.58 kB / 440 MB, free: 29.4 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.879e-05/0.4931, allocations: 26.94 kB / 440 MB, free: 29.39 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.256e-05/0.4931, allocations: 6.562 kB / 440 MB, free: 29.39 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.411e-05/0.4932, allocations: 82 kB / 440.1 MB, free: 29.32 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4932, allocations: 0 / 440.1 MB, free: 29.32 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000455/0.4936, allocations: 112.4 kB / 440.2 MB, free: 29.3 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 4 (state2.phase,$cse2.phase,state1.phase,$cse1.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (36): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.0004468/0.4941, allocations: 212.6 kB / 440.4 MB, free: 29.2 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004393/0.4945, allocations: 380.5 kB / 440.8 MB, free: 29.12 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.4946, allocations: 0 / 440.8 MB, free: 29.12 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001997/0.4948, allocations: 218.1 kB / 441 MB, free: 29.11 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008861/0.4957, allocations: 169.8 kB / 441.2 MB, free: 29.09 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009085/0.4966, allocations: 0.8269 MB / 442 MB, free: 28.64 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002224/0.4968, allocations: 0.8181 MB / 442.8 MB, free: 27.93 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001537/0.497, allocations: 41.09 kB / 442.8 MB, free: 27.93 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.867e-05/0.497, allocations: 29.84 kB / 442.9 MB, free: 27.92 MB / 350.1 MB Notification: Performance of SimCode: time 5.71e-07/0.497, allocations: 0 / 442.9 MB, free: 27.92 MB / 350.1 MB Notification: Performance of Templates: time 0.01099/0.508, allocations: 6.285 MB / 449.2 MB, free: 27.45 MB / 350.1 MB make -j1 -f ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestStatesTranscritical.makefile Environment - environmentSimulation: make -j1 -f ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestStatesTranscritical.makefile clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/Resources/Include" -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=ExternalMedia_ExternalMedia_Test_CoolProp_CO2_Tabular_TestStatesTranscritical -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestStatesTranscritical.o ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestStatesTranscritical.c clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/Resources/Include" -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=ExternalMedia_ExternalMedia_Test_CoolProp_CO2_Tabular_TestStatesTranscritical -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestStatesTranscritical_functions.o ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestStatesTranscritical_functions.c ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestStatesTranscritical_functions.c:167:9: error: use of undeclared identifier '_completeState1' _MM = _completeState1._Medium._externalFluidConstants._molarMass; ^ ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestStatesTranscritical_functions.c:274:9: error: use of undeclared identifier '_completeState2' _MM = _completeState2._Medium._externalFluidConstants._molarMass; ^ 2 errors generated. make: *** [: ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestStatesTranscritical_functions.o] Error 1