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.001337/0.001337, allocations: 110.4 kB / 18.94 MB, free: 2.793 MB / 14.72 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.001546/0.001546, allocations: 219.4 kB / 22.25 MB, free: 5.215 MB / 14.72 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 1.503/1.503, allocations: 230.6 MB / 256 MB, free: 8.02 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.01308/0.01308, allocations: 2.804 MB / 315.2 MB, free: 312 kB / 238.1 MB " [Timeout remaining time 180] 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.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: ExternalMedia requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001972/0.001972, allocations: 63.91 kB / 438.7 MB, free: 13.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1195/0.1215, allocations: 54.17 MB / 492.9 MB, free: 7.355 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical): time 0.311/0.4325, allocations: 51.32 MB / 0.5314 GB, free: 11.57 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03025/0.4627, allocations: 29.21 MB / 0.56 GB, free: 4.871 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007663/0.4635, allocations: 2.625 kB / 0.56 GB, free: 4.871 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00178/0.4653, allocations: 0.6082 MB / 0.5606 GB, free: 4.375 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007933/0.4732, allocations: 2.256 MB / 0.5628 GB, free: 2.566 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/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.0.0/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.009141/0.4823, allocations: 2.932 MB / 0.5656 GB, free: 204 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001495/0.4838, allocations: 0.9333 MB / 0.5665 GB, free: 15.64 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001008/0.4839, allocations: 24.94 kB / 0.5666 GB, free: 15.62 MB / 414.1 MB [/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 NFEvalConstants.evaluate: time 0.4617/0.9456, allocations: 51.34 MB / 0.6167 GB, free: 13.39 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007459/0.9464, allocations: 302.6 kB / 0.617 GB, free: 13.1 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001001/0.9465, allocations: 44 kB / 0.617 GB, free: 13.05 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2259/1.172, allocations: 27.08 MB / 0.6435 GB, free: 1.805 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002125/1.173, allocations: 111.5 kB / 0.6436 GB, free: 1.695 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005407/1.173, allocations: 342.5 kB / 0.6439 GB, free: 1.359 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007071/1.18, allocations: 1.862 MB / 0.6457 GB, free: 15.49 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/1.18, allocations: 0 / 0.6457 GB, free: 15.49 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.562e-06/1.18, allocations: 4 kB / 0.6457 GB, free: 15.49 MB / 494.1 MB Notification: Performance of Transformations before backend: time 9.237e-06/1.18, allocations: 0 / 0.6457 GB, free: 15.49 MB / 494.1 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.001652/1.182, allocations: 1.049 MB / 0.6468 GB, free: 14.41 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.088e-05/1.182, allocations: 8.031 kB / 0.6468 GB, free: 14.4 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00014/1.182, allocations: 123 kB / 0.6469 GB, free: 14.27 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001988/1.184, allocations: 0.4961 MB / 0.6474 GB, free: 13.77 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001979/1.186, allocations: 277.6 kB / 0.6476 GB, free: 13.48 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.656e-05/1.186, allocations: 45.88 kB / 0.6477 GB, free: 13.43 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.094e-05/1.186, allocations: 59.94 kB / 0.6477 GB, free: 13.37 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001604/1.188, allocations: 0.8805 MB / 0.6486 GB, free: 12.44 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.766e-05/1.188, allocations: 4 kB / 0.6486 GB, free: 12.44 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.39e-05/1.188, allocations: 24 kB / 0.6486 GB, free: 12.41 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.049e-05/1.188, allocations: 35.97 kB / 0.6487 GB, free: 12.38 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001388/1.189, allocations: 0.7123 MB / 0.6494 GB, free: 11.67 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004697/1.194, allocations: 4.927 MB / 0.6542 GB, free: 6.141 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008224/1.195, allocations: 289.1 kB / 0.6544 GB, free: 5.84 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003296/1.195, allocations: 161.4 kB / 0.6546 GB, free: 5.676 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001349/1.196, allocations: 0.9237 MB / 0.6555 GB, free: 4.73 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.761e-05/1.197, allocations: 34.5 kB / 0.6555 GB, free: 4.688 MB / 494.1 MB Notification: Performance of pre-optimization done (n=74): time 2.234e-06/1.197, allocations: 0 / 0.6555 GB, free: 4.688 MB / 494.1 MB Notification: Performance of matching and sorting (n=74): time 0.001773/1.198, allocations: 0.6319 MB / 0.6561 GB, free: 4.051 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.956e-05/1.198, allocations: 85.11 kB / 0.6562 GB, free: 3.949 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002093/1.199, allocations: 174.1 kB / 0.6564 GB, free: 3.77 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.655e-05/1.199, allocations: 29.7 kB / 0.6564 GB, free: 3.734 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000234/1.199, allocations: 284.5 kB / 0.6567 GB, free: 3.449 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002165/1.199, allocations: 253.7 kB / 0.6569 GB, free: 3.199 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001491/1.199, allocations: 97.91 kB / 0.657 GB, free: 3.094 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001791/1.199, allocations: 338.8 kB / 0.6574 GB, free: 2.754 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002946/1.2, allocations: 125.3 kB / 0.6575 GB, free: 2.633 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004171/1.2, allocations: 297.3 kB / 0.6578 GB, free: 2.273 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007689/1.201, allocations: 473.5 kB / 0.6582 GB, free: 1.742 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.396e-06/1.201, allocations: 0 / 0.6582 GB, free: 1.742 MB / 494.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.0009097/1.202, allocations: 476.2 kB / 0.6587 GB, free: 1.27 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.31e-05/1.202, allocations: 11.94 kB / 0.6587 GB, free: 1.258 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.257e-05/1.202, allocations: 4 kB / 0.6587 GB, free: 1.254 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.094e-05/1.202, allocations: 8 kB / 0.6587 GB, free: 1.246 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000285/1.202, allocations: 68.47 kB / 0.6587 GB, free: 1.18 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.225e-05/1.202, allocations: 12 kB / 0.6588 GB, free: 1.168 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002553/1.202, allocations: 63.5 kB / 0.6588 GB, free: 1.105 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.905e-05/1.202, allocations: 20 kB / 0.6588 GB, free: 1.086 MB / 494.1 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.0002928/1.203, allocations: 189.7 kB / 0.659 GB, free: 0.8906 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.919e-05/1.203, allocations: 35.7 kB / 0.6591 GB, free: 0.8555 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.112e-05/1.203, allocations: 29.95 kB / 0.6591 GB, free: 0.8281 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.055e-06/1.203, allocations: 4 kB / 0.6591 GB, free: 0.8242 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.155e-06/1.203, allocations: 8 kB / 0.6591 GB, free: 0.8164 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/1.203, allocations: 0 / 0.6591 GB, free: 0.8164 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006946/1.204, allocations: 464.1 kB / 0.6595 GB, free: 328 kB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.885e-06/1.204, allocations: 0 / 0.6595 GB, free: 328 kB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001659/1.204, allocations: 35.92 kB / 0.6596 GB, free: 292 kB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.692e-06/1.204, allocations: 7.938 kB / 0.6596 GB, free: 284 kB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.062e-05/1.204, allocations: 11.94 kB / 0.6596 GB, free: 272 kB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.964e-06/1.204, allocations: 0 / 0.6596 GB, free: 272 kB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/1.204, allocations: 0 / 0.6596 GB, free: 272 kB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001409/1.205, allocations: 0.5333 MB / 0.6601 GB, free: 15.71 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.032e-05/1.205, allocations: 35.62 kB / 0.6601 GB, free: 15.67 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.795e-05/1.205, allocations: 11.94 kB / 0.6602 GB, free: 15.66 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002141/1.206, allocations: 7.984 kB / 0.6602 GB, free: 15.65 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.411e-05/1.206, allocations: 27.89 kB / 0.6602 GB, free: 15.62 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.608e-05/1.206, allocations: 16.38 kB / 0.6602 GB, free: 15.61 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001017/1.206, allocations: 116.1 kB / 0.6603 GB, free: 15.5 MB / 0.4981 GB Notification: Performance of sort global known variables: time 9e-08/1.206, allocations: 0 / 0.6603 GB, free: 15.5 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0007136/1.206, allocations: 195.5 kB / 0.6605 GB, free: 15.3 MB / 0.4981 GB 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.001639/1.208, allocations: 1.267 MB / 0.6617 GB, free: 14.02 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.001003/1.209, allocations: 0.5604 MB / 0.6623 GB, free: 13.43 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/1.209, allocations: 0 / 0.6623 GB, free: 13.43 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0005906/1.21, allocations: 472.1 kB / 0.6627 GB, free: 12.9 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00119/1.211, allocations: 198.6 kB / 0.6629 GB, free: 12.71 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005396/1.216, allocations: 3.638 MB / 0.6665 GB, free: 8.859 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006889/1.217, allocations: 0.9513 MB / 0.6674 GB, free: 7.879 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0006205/1.218, allocations: 253.9 kB / 0.6677 GB, free: 7.633 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003874/1.218, allocations: 271.3 kB / 0.6679 GB, free: 7.367 MB / 0.4981 GB Notification: Performance of SimCode: time 1.092e-06/1.218, allocations: 0 / 0.6679 GB, free: 7.367 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0556/1.274, allocations: 19.82 MB / 0.6873 GB, free: 3.582 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.55/13.83, allocations: 4 kB / 0.6873 GB, free: 3.578 MB / 0.5137 GB " [Timeout remaining time 646] (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 os._exit(0), Time elapsed: 17.566899521996675] Failed to read output from testmodel.py, exit status != 0: 14.166049487001146 14.195217567 13.009830273 Calling exit ...