Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestStatesSupercritical.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.TestStatesSupercritical,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestStatesSupercritical") translateModel(ExternalMedia.Test.CoolProp.CO2.TestStatesSupercritical,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestStatesSupercritical") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001225/0.001225, allocations: 100 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.001629/0.001629, 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.381/1.381, allocations: 223.2 MB / 239.9 MB, free: 5.449 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.1413/0.1413, allocations: 2.779 MB / 293.8 MB, free: 4.262 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003095/0.0003096, allocations: 11.98 kB / 355.5 MB, free: 4.375 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1193/0.1196, allocations: 51.25 MB / 406.8 MB, free: 1.07 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2.TestStatesSupercritical): time 0.01814/0.1378, allocations: 11.98 MB / 418.7 MB, free: 5.055 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.2374/0.3753, allocations: 5.909 MB / 424.7 MB, free: 34.68 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001585/0.3755, allocations: 1.406 kB / 424.7 MB, free: 34.68 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007086/0.3762, allocations: 243.7 kB / 424.9 MB, free: 34.68 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003268/0.3795, allocations: 1.183 MB / 426.1 MB, free: 34.67 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003224/0.3798, allocations: 87 kB / 426.2 MB, free: 34.67 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004062/0.3802, allocations: 252.7 kB / 426.4 MB, free: 34.66 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.104e-05/0.3803, allocations: 21.38 kB / 426.4 MB, free: 34.66 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.368e-05/0.3804, allocations: 90.27 kB / 426.5 MB, free: 34.66 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001457/0.3806, allocations: 105.8 kB / 426.6 MB, free: 34.66 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.61e-05/0.3806, allocations: 6.406 kB / 426.6 MB, free: 34.66 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.TestStatesSupercritical.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.TestStatesSupercritical.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.006602/0.3872, allocations: 4.054 MB / 430.7 MB, free: 34.53 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.572e-05/0.3873, allocations: 25.8 kB / 430.7 MB, free: 34.53 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001429/0.3874, allocations: 79.86 kB / 430.8 MB, free: 34.5 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008067/0.3882, allocations: 351.8 kB / 431.1 MB, free: 34.48 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.3883, allocations: 0 / 431.1 MB, free: 34.48 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.264e-06/0.3883, allocations: 4 kB / 431.1 MB, free: 34.47 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.706e-06/0.3883, allocations: 0 / 431.1 MB, free: 34.47 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.0006274/0.3889, allocations: 0.5285 MB / 431.7 MB, free: 34.03 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.335e-05/0.389, allocations: 9.562 kB / 431.7 MB, free: 34.03 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001063/0.3901, allocations: 202.7 kB / 431.9 MB, free: 34.02 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001227/0.3902, allocations: 187.2 kB / 432.1 MB, free: 33.81 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.726e-05/0.3902, allocations: 19.3 kB / 432.1 MB, free: 33.81 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.907e-05/0.3903, allocations: 28.75 kB / 432.1 MB, free: 33.81 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004326/0.3907, allocations: 330.9 kB / 432.4 MB, free: 33.76 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.236e-05/0.3908, allocations: 0.5625 kB / 432.4 MB, free: 33.76 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.139e-05/0.3908, allocations: 11.16 kB / 432.4 MB, free: 33.76 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.973e-05/0.3908, allocations: 10.09 kB / 432.4 MB, free: 33.76 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002915/0.3911, allocations: 261.5 kB / 432.7 MB, free: 33.76 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001306/0.3924, allocations: 2.138 MB / 434.8 MB, free: 31.83 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001664/0.3926, allocations: 132.7 kB / 435 MB, free: 31.78 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001845/0.3928, allocations: 194.5 kB / 435.2 MB, free: 31.59 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.239e-05/0.3928, allocations: 35.44 kB / 435.2 MB, free: 31.55 MB / 350.1 MB Notification: Performance of pre-optimization done (n=34): time 1.854e-06/0.3928, allocations: 3.312 kB / 435.2 MB, free: 31.55 MB / 350.1 MB Notification: Performance of matching and sorting (n=34): time 0.0005325/0.3934, allocations: 482 kB / 435.7 MB, free: 31.29 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.995e-05/0.3934, allocations: 81.06 kB / 435.7 MB, free: 31.19 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.285e-05/0.3935, allocations: 101.5 kB / 435.8 MB, free: 31.09 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.424e-05/0.3935, allocations: 29.05 kB / 435.9 MB, free: 31.06 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.093e-05/0.3936, allocations: 157 kB / 436 MB, free: 30.93 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.912e-05/0.3937, allocations: 106.3 kB / 436.1 MB, free: 30.86 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.033e-06/0.3937, allocations: 3.375 kB / 436.1 MB, free: 30.86 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.973e-05/0.3937, allocations: 320.6 kB / 436.4 MB, free: 30.55 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.889e-05/0.3938, allocations: 58.3 kB / 436.5 MB, free: 30.55 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.707e-05/0.3939, allocations: 99.88 kB / 436.6 MB, free: 30.52 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.932e-05/0.394, allocations: 93.27 kB / 436.7 MB, free: 30.5 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.394, allocations: 0 / 436.7 MB, free: 30.5 MB / 350.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0002366/0.3942, allocations: 205.1 kB / 436.9 MB, free: 30.46 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.666e-05/0.3943, allocations: 6.344 kB / 436.9 MB, free: 30.46 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.001e-06/0.3943, allocations: 0 / 436.9 MB, free: 30.46 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.632e-05/0.3943, allocations: 3.156 kB / 436.9 MB, free: 30.46 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.24e-05/0.3944, allocations: 9.25 kB / 436.9 MB, free: 30.46 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.822e-06/0.3944, allocations: 3.953 kB / 436.9 MB, free: 30.46 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001243/0.3945, allocations: 33.41 kB / 436.9 MB, free: 30.45 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.452e-05/0.3945, allocations: 6.844 kB / 437 MB, free: 30.45 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 9.677e-05/0.3946, allocations: 140.4 kB / 437.1 MB, free: 30.33 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.538e-05/0.3947, allocations: 7.625 kB / 437.1 MB, free: 30.32 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006198/0.3953, allocations: 0.4932 MB / 437.6 MB, free: 30.24 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0003512/0.3957, allocations: 402.7 kB / 438 MB, free: 30.18 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/0.3957, allocations: 0 / 438 MB, free: 30.18 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.901e-06/0.3957, allocations: 7.953 kB / 438 MB, free: 30.17 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001089/0.3968, allocations: 1.14 MB / 439.1 MB, free: 29.71 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.368e-06/0.3968, allocations: 2.688 kB / 439.1 MB, free: 29.71 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001556/0.397, allocations: 59.52 kB / 439.2 MB, free: 29.71 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.42e-06/0.397, allocations: 7.156 kB / 439.2 MB, free: 29.71 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.676e-05/0.397, allocations: 7.281 kB / 439.2 MB, free: 29.71 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.545e-06/0.397, allocations: 0 / 439.2 MB, free: 29.71 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.397, allocations: 0.625 kB / 439.2 MB, free: 29.71 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00043/0.3975, allocations: 0.5748 MB / 439.8 MB, free: 29.46 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.97e-05/0.3975, allocations: 107.3 kB / 439.9 MB, free: 29.35 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.152e-05/0.3976, allocations: 11.98 kB / 439.9 MB, free: 29.35 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002171/0.3978, allocations: 55.08 kB / 440 MB, free: 29.32 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.169e-05/0.3978, allocations: 22.56 kB / 440 MB, free: 29.32 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.393e-05/0.3978, allocations: 9.969 kB / 440 MB, free: 29.32 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.023e-05/0.3979, allocations: 78.28 kB / 440.1 MB, free: 29.25 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3979, allocations: 0 / 440.1 MB, free: 29.25 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004397/0.3983, allocations: 117.6 kB / 440.2 MB, free: 29.23 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.0004051/0.3987, allocations: 207.3 kB / 440.4 MB, free: 29.12 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004017/0.3991, allocations: 380.5 kB / 440.7 MB, free: 29.05 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.053e-06/0.3992, allocations: 3.156 kB / 440.8 MB, free: 29.05 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001898/0.3994, allocations: 213.2 kB / 441 MB, free: 29.04 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009363/0.4003, allocations: 170.5 kB / 441.1 MB, free: 29.03 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008614/0.4012, allocations: 0.8292 MB / 442 MB, free: 28.58 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002091/0.4014, allocations: 0.8103 MB / 442.8 MB, free: 27.87 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001466/0.4015, allocations: 39.45 kB / 442.8 MB, free: 27.87 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.926e-05/0.4016, allocations: 33.31 kB / 442.8 MB, free: 27.86 MB / 350.1 MB Notification: Performance of SimCode: time 3.4e-07/0.4016, allocations: 4 kB / 442.8 MB, free: 27.86 MB / 350.1 MB Notification: Performance of Templates: time 0.009862/0.4115, allocations: 6.268 MB / 449.1 MB, free: 27.34 MB / 350.1 MB make -j1 -f ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestStatesSupercritical.makefile Environment - environmentSimulation: make -j1 -f ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestStatesSupercritical.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_TestStatesSupercritical -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.TestStatesSupercritical.o ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestStatesSupercritical.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_TestStatesSupercritical -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.TestStatesSupercritical_functions.o ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestStatesSupercritical_functions.c ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestStatesSupercritical_functions.c:167:9: error: use of undeclared identifier '_completeState1' _MM = _completeState1._Medium._externalFluidConstants._molarMass; ^ ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestStatesSupercritical_functions.c:274:9: error: use of undeclared identifier '_completeState2' _MM = _completeState2._Medium._externalFluidConstants._molarMass; ^ 2 errors generated. make: *** [: ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestStatesSupercritical_functions.o] Error 1