Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0007234/0.0007234, allocations: 80.44 kB / 19.17 MB, free: 0.7461 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0007519/0.0007519, allocations: 165.9 kB / 22.45 MB, free: 2.109 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8799/0.8799, allocations: 177.2 MB / 202.8 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.1.1/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.1.1/package.mo): time 0.008716/0.008716, allocations: 1.987 MB / 261.2 MB, free: 11.27 MB / 250.7 MB " [Timeout remaining time 180] Using package ExternalMedia with version 4.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.1.1/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical,fileNamePrefix="ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestBasePropertiesTranscritical",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical,fileNamePrefix="ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestBasePropertiesTranscritical",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.423e-06/1.423e-06, allocations: 0 / 384.7 MB, free: 11.9 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.59e-05/1.732e-05, allocations: 2.281 kB / 384.7 MB, free: 11.89 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical): time 0.177/0.177, allocations: 45.16 MB / 429.8 MB, free: 13.36 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.01421/0.1912, allocations: 25.14 MB / 455 MB, free: 12.65 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006206/0.1918, allocations: 7.281 kB / 455 MB, free: 12.65 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001351/0.1932, allocations: 0.5085 MB / 455.5 MB, free: 12.25 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006536/0.1997, allocations: 2.271 MB / 457.7 MB, free: 10.43 MB / 346.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.1.1/Media/BaseClasses/ExternalTwoPhaseMedium.mo:1092:15-1106:21:writable] Warning: Pure function 'ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical.medium1.Medium.setSat_p_state' contains a call to impure function 'ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical.medium1.Medium.setSat_p'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.1.1/Media/BaseClasses/ExternalTwoPhaseMedium.mo:1092:15-1106:21:writable] Warning: Pure function 'ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical.medium2.Medium.setSat_p_state' contains a call to impure function 'ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical.medium2.Medium.setSat_p'. Notification: Performance of NFTyping.typeClassSections: time 0.007706/0.2074, allocations: 2.989 MB / 460.7 MB, free: 8.008 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.001507/0.2089, allocations: 0.9736 MB / 461.7 MB, free: 7.406 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001059/0.209, allocations: 23.41 kB / 461.7 MB, free: 7.395 MB / 346.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.1.1/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 NFEvalConstants.evaluate: time 0.6119/0.8209, allocations: 51.49 MB / 0.5012 GB, free: 5.973 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006421/0.8216, allocations: 235.4 kB / 0.5014 GB, free: 5.742 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 6.797e-05/0.8216, allocations: 43.94 kB / 0.5015 GB, free: 5.699 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.07642/0.8981, allocations: 27.06 MB / 0.5279 GB, free: 10.47 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001889/0.8983, allocations: 119.5 kB / 0.528 GB, free: 10.35 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004364/0.8987, allocations: 227.5 kB / 0.5282 GB, free: 10.13 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.005637/0.9043, allocations: 1.905 MB / 0.5301 GB, free: 8.219 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.164e-06/0.9043, allocations: 0 / 0.5301 GB, free: 8.219 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.883e-06/0.9043, allocations: 3.938 kB / 0.5301 GB, free: 8.215 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.696e-05/0.9044, allocations: 0 / 0.5301 GB, free: 8.215 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 198 * Number of variables: 198 Notification: Performance of Generate backend data structure: time 0.001358/0.9057, allocations: 1.036 MB / 0.5311 GB, free: 7.148 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.115e-05/0.9058, allocations: 8.031 kB / 0.5311 GB, free: 7.141 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.945e-05/0.9058, allocations: 119 kB / 0.5312 GB, free: 7.016 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00107/0.9069, allocations: 0.5039 MB / 0.5317 GB, free: 6.512 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003819/0.9073, allocations: 280.9 kB / 0.532 GB, free: 6.211 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.195e-05/0.9073, allocations: 41.69 kB / 0.532 GB, free: 6.172 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.238e-05/0.9074, allocations: 56.38 kB / 0.5321 GB, free: 6.117 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001005/0.9084, allocations: 0.9892 MB / 0.533 GB, free: 5.047 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.521e-05/0.9084, allocations: 3.938 kB / 0.533 GB, free: 5.043 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.558e-05/0.9084, allocations: 28 kB / 0.5331 GB, free: 5.016 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.682e-05/0.9085, allocations: 31.98 kB / 0.5331 GB, free: 4.984 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008238/0.9093, allocations: 0.7162 MB / 0.5338 GB, free: 4.27 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002214/0.9115, allocations: 2.714 MB / 0.5364 GB, free: 1.461 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006517/0.9121, allocations: 289 kB / 0.5367 GB, free: 1.16 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001779/0.9123, allocations: 162.3 kB / 0.5369 GB, free: 0.9961 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008323/0.9132, allocations: 0.8832 MB / 0.5377 GB, free: 96 kB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.984e-05/0.9132, allocations: 34.56 kB / 0.5378 GB, free: 52 kB / 426.7 MB Notification: Performance of pre-optimization done (n=74): time 2.505e-06/0.9132, allocations: 0 / 0.5378 GB, free: 52 kB / 426.7 MB Notification: Performance of matching and sorting (n=74): time 0.001001/0.9142, allocations: 0.6313 MB / 0.5384 GB, free: 15.41 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.784e-05/0.9142, allocations: 81.11 kB / 0.5385 GB, free: 15.32 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001246/0.9144, allocations: 178.8 kB / 0.5386 GB, free: 15.13 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 1.629e-05/0.9144, allocations: 25.7 kB / 0.5387 GB, free: 15.1 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001165/0.9145, allocations: 288.5 kB / 0.5389 GB, free: 14.81 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000104/0.9146, allocations: 249.7 kB / 0.5392 GB, free: 14.57 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.762e-05/0.9147, allocations: 97.95 kB / 0.5393 GB, free: 14.46 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 8.58e-05/0.9148, allocations: 334.8 kB / 0.5396 GB, free: 14.12 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001493/0.9149, allocations: 129.3 kB / 0.5397 GB, free: 14 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002127/0.9151, allocations: 293.3 kB / 0.54 GB, free: 13.65 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005548/0.9157, allocations: 473.5 kB / 0.5404 GB, free: 13.12 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.949e-06/0.9157, allocations: 4 kB / 0.5404 GB, free: 13.11 MB / 442.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.0004974/0.9162, allocations: 476.2 kB / 0.5409 GB, free: 12.64 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.854e-05/0.9162, allocations: 4 kB / 0.5409 GB, free: 12.64 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.081e-05/0.9162, allocations: 8 kB / 0.5409 GB, free: 12.63 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.696e-05/0.9162, allocations: 4 kB / 0.5409 GB, free: 12.62 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001523/0.9164, allocations: 80.34 kB / 0.541 GB, free: 12.55 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.688e-06/0.9164, allocations: 7.984 kB / 0.541 GB, free: 12.54 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001441/0.9165, allocations: 63.89 kB / 0.5411 GB, free: 12.48 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.185e-05/0.9166, allocations: 20 kB / 0.5411 GB, free: 12.46 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 6 (medium2.completeState.state.phase,medium2.baseProperties.phaseOutput,medium1.completeState.state.phase,medium1.baseProperties.phaseOutput,medium2.baseProperties.phaseInput,medium1.baseProperties.phaseInput) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001636/0.9167, allocations: 190.5 kB / 0.5413 GB, free: 12.26 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.315e-05/0.9168, allocations: 27.81 kB / 0.5413 GB, free: 12.23 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.491e-05/0.9168, allocations: 37.91 kB / 0.5413 GB, free: 12.2 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.749e-06/0.9168, allocations: 3.938 kB / 0.5413 GB, free: 12.19 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.304e-06/0.9168, allocations: 7.938 kB / 0.5413 GB, free: 12.18 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.138e-06/0.9168, allocations: 3.984 kB / 0.5413 GB, free: 12.18 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003643/0.9172, allocations: 447.6 kB / 0.5418 GB, free: 11.7 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.9172, allocations: 4 kB / 0.5418 GB, free: 11.7 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.052e-05/0.9173, allocations: 27.98 kB / 0.5418 GB, free: 11.67 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.887e-06/0.9173, allocations: 0 / 0.5418 GB, free: 11.67 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.386e-05/0.9173, allocations: 12 kB / 0.5418 GB, free: 11.66 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.9173, allocations: 3.938 kB / 0.5418 GB, free: 11.65 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.9173, allocations: 3.938 kB / 0.5418 GB, free: 11.65 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004284/0.9177, allocations: 0.5255 MB / 0.5423 GB, free: 11.11 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.33e-05/0.9177, allocations: 43.62 kB / 0.5424 GB, free: 11.06 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.149e-05/0.9178, allocations: 12 kB / 0.5424 GB, free: 11.05 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001069/0.9179, allocations: 7.984 kB / 0.5424 GB, free: 11.04 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.928e-05/0.9179, allocations: 23.91 kB / 0.5424 GB, free: 11.02 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.882e-05/0.918, allocations: 15.98 kB / 0.5424 GB, free: 11 MB / 442.7 MB Notification: Performance of sorting global known variables: time 6.297e-05/0.918, allocations: 127.1 kB / 0.5425 GB, free: 10.88 MB / 442.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.918, allocations: 0 / 0.5425 GB, free: 10.88 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0005075/0.9185, allocations: 191.5 kB / 0.5427 GB, free: 10.69 MB / 442.7 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 (medium2.baseProperties.phaseOutput,medium2.completeState.state.phase,medium1.baseProperties.phaseOutput,medium1.completeState.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001021/0.9195, allocations: 1.263 MB / 0.544 GB, free: 9.402 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0005593/0.9201, allocations: 0.5608 MB / 0.5445 GB, free: 8.816 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.9201, allocations: 4 kB / 0.5445 GB, free: 8.812 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002845/0.9204, allocations: 465.1 kB / 0.545 GB, free: 8.285 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006205/0.921, allocations: 201.3 kB / 0.5451 GB, free: 8.09 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003303/0.9243, allocations: 3.6 MB / 0.5487 GB, free: 4.273 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002817/0.9246, allocations: 357.7 kB / 0.549 GB, free: 3.895 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0003972/0.925, allocations: 261.9 kB / 0.5493 GB, free: 3.641 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002089/0.9252, allocations: 276.4 kB / 0.5495 GB, free: 3.367 MB / 442.7 MB Notification: Performance of SimCode: time 1.333e-06/0.9252, allocations: 0 / 0.5495 GB, free: 3.367 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03044/0.9556, allocations: 19.61 MB / 0.5687 GB, free: 15.78 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.351/8.307, allocations: 7.766 kB / 0.5687 GB, free: 15.77 MB / 474.7 MB " [Timeout remaining time 651] (rm -f ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical.pipe ; mkfifo ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical.pipe ; head -c 1048576 < ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical.pipe >> ../files/ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical.sim & python3 -m fmpy simulate --output-file ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestBasePropertiesTranscritical.fmu > ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 12.408491307869554] Failed to read output from testmodel.py, exit status != 0: 8.64408491551876 8.653271145 7.746761914 Calling exit ...