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.001429/0.001429, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.001543/0.001543, allocations: 210.2 kB / 22.24 MB, free: 5.258 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.459/1.459, allocations: 230.6 MB / 256 MB, free: 7.773 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.02398/0.02398, allocations: 2.809 MB / 315.2 MB, free: 96 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.002033/0.002033, allocations: 67.89 kB / 438.6 MB, free: 13.29 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09862/0.1007, allocations: 54.19 MB / 492.8 MB, free: 7.004 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical): time 0.2492/0.3499, allocations: 45.37 MB / 0.5256 GB, free: 14.38 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02667/0.3766, allocations: 25.15 MB / 0.5502 GB, free: 12.91 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006447/0.3772, allocations: 2.75 kB / 0.5502 GB, free: 12.91 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001666/0.3789, allocations: 0.5046 MB / 0.5506 GB, free: 12.52 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006449/0.3853, allocations: 2.176 MB / 0.5528 GB, free: 10.8 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.008506/0.3938, allocations: 2.891 MB / 0.5556 GB, free: 8.469 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.00128/0.3951, allocations: 0.9334 MB / 0.5565 GB, free: 7.914 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.925e-05/0.3952, allocations: 28.2 kB / 0.5565 GB, free: 7.895 MB / 398.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.5107/0.9059, allocations: 51.34 MB / 0.6067 GB, free: 6.301 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007018/0.9066, allocations: 290.5 kB / 0.6069 GB, free: 6.016 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001075/0.9067, allocations: 40 kB / 0.607 GB, free: 5.977 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2277/1.134, allocations: 27.06 MB / 0.6334 GB, free: 10.74 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002506/1.135, allocations: 115.5 kB / 0.6335 GB, free: 10.62 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006103/1.135, allocations: 274.8 kB / 0.6338 GB, free: 10.36 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00709/1.142, allocations: 1.866 MB / 0.6356 GB, free: 8.484 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.793e-06/1.142, allocations: 3.938 kB / 0.6356 GB, free: 8.48 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.834e-06/1.142, allocations: 0 / 0.6356 GB, free: 8.48 MB / 478.1 MB Notification: Performance of Transformations before backend: time 2.316e-05/1.142, allocations: 0 / 0.6356 GB, free: 8.48 MB / 478.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.002665/1.145, allocations: 1.041 MB / 0.6366 GB, free: 7.406 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.282e-05/1.145, allocations: 8.031 kB / 0.6366 GB, free: 7.398 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001516/1.145, allocations: 119 kB / 0.6367 GB, free: 7.273 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002134/1.147, allocations: 0.5 MB / 0.6372 GB, free: 6.773 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002883/1.15, allocations: 281.7 kB / 0.6375 GB, free: 6.473 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.647e-05/1.15, allocations: 41.88 kB / 0.6375 GB, free: 6.434 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001245/1.15, allocations: 63.92 kB / 0.6376 GB, free: 6.371 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00196/1.152, allocations: 0.977 MB / 0.6386 GB, free: 5.316 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.24e-05/1.152, allocations: 0 / 0.6386 GB, free: 5.316 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.118e-05/1.153, allocations: 28 kB / 0.6386 GB, free: 5.289 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.285e-05/1.153, allocations: 39.97 kB / 0.6386 GB, free: 5.25 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001409/1.154, allocations: 0.7123 MB / 0.6393 GB, free: 4.543 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003608/1.158, allocations: 2.725 MB / 0.642 GB, free: 1.723 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007524/1.158, allocations: 281.1 kB / 0.6422 GB, free: 1.43 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003298/1.159, allocations: 165.4 kB / 0.6424 GB, free: 1.262 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001321/1.16, allocations: 0.8769 MB / 0.6433 GB, free: 372 kB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.591e-05/1.16, allocations: 42.5 kB / 0.6433 GB, free: 320 kB / 478.1 MB Notification: Performance of pre-optimization done (n=74): time 0.0003679/1.16, allocations: 0 / 0.6433 GB, free: 320 kB / 478.1 MB Notification: Performance of matching and sorting (n=74): time 0.001849/1.162, allocations: 0.632 MB / 0.6439 GB, free: 15.67 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.948e-05/1.162, allocations: 81.11 kB / 0.644 GB, free: 15.57 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002104/1.163, allocations: 178 kB / 0.6442 GB, free: 15.39 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.283e-05/1.163, allocations: 33.7 kB / 0.6442 GB, free: 15.35 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002064/1.163, allocations: 276.5 kB / 0.6445 GB, free: 15.07 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002217/1.163, allocations: 257.6 kB / 0.6447 GB, free: 14.82 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001451/1.163, allocations: 97.95 kB / 0.6448 GB, free: 14.72 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001702/1.163, allocations: 342.8 kB / 0.6451 GB, free: 14.38 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002906/1.164, allocations: 125.3 kB / 0.6453 GB, free: 14.25 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004264/1.164, allocations: 292.3 kB / 0.6455 GB, free: 13.91 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007478/1.165, allocations: 477.5 kB / 0.646 GB, free: 13.37 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.426e-06/1.165, allocations: 0 / 0.646 GB, free: 13.37 MB / 494.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.0009139/1.166, allocations: 480.2 kB / 0.6464 GB, free: 12.89 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.42e-05/1.166, allocations: 11.94 kB / 0.6465 GB, free: 12.88 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.191e-05/1.166, allocations: 4 kB / 0.6465 GB, free: 12.88 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.136e-05/1.166, allocations: 8 kB / 0.6465 GB, free: 12.87 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000275/1.166, allocations: 71.89 kB / 0.6465 GB, free: 12.8 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.701e-05/1.166, allocations: 12.88 kB / 0.6465 GB, free: 12.79 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000273/1.166, allocations: 67.44 kB / 0.6466 GB, free: 12.72 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.025e-05/1.166, allocations: 24 kB / 0.6466 GB, free: 12.7 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.0002656/1.167, allocations: 185.8 kB / 0.6468 GB, free: 12.51 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.305e-05/1.167, allocations: 35.69 kB / 0.6468 GB, free: 12.47 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.066e-05/1.167, allocations: 29.95 kB / 0.6469 GB, free: 12.44 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.255e-06/1.167, allocations: 4 kB / 0.6469 GB, free: 12.43 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.131e-06/1.167, allocations: 0 / 0.6469 GB, free: 12.43 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.978e-06/1.167, allocations: 0 / 0.6469 GB, free: 12.43 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006869/1.167, allocations: 436.1 kB / 0.6473 GB, free: 11.96 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.4e-06/1.167, allocations: 8 kB / 0.6473 GB, free: 11.96 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001602/1.168, allocations: 31.92 kB / 0.6473 GB, free: 11.93 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.905e-06/1.168, allocations: 7.922 kB / 0.6473 GB, free: 11.92 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.194e-05/1.168, allocations: 8 kB / 0.6473 GB, free: 11.91 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.504e-06/1.168, allocations: 0 / 0.6473 GB, free: 11.91 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.541e-06/1.168, allocations: 3.984 kB / 0.6473 GB, free: 11.91 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000805/1.168, allocations: 0.5254 MB / 0.6479 GB, free: 11.36 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.861e-05/1.169, allocations: 39.64 kB / 0.6479 GB, free: 11.32 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.622e-05/1.169, allocations: 11.94 kB / 0.6479 GB, free: 11.31 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000214/1.169, allocations: 7.984 kB / 0.6479 GB, free: 11.3 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.136e-05/1.169, allocations: 27.95 kB / 0.6479 GB, free: 11.28 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.532e-05/1.169, allocations: 12 kB / 0.648 GB, free: 11.27 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001049/1.169, allocations: 120.1 kB / 0.6481 GB, free: 11.15 MB / 494.1 MB Notification: Performance of sort global known variables: time 7e-08/1.169, allocations: 0 / 0.6481 GB, free: 11.15 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0007016/1.17, allocations: 199.4 kB / 0.6483 GB, free: 10.95 MB / 494.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 (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.001673/1.171, allocations: 1.275 MB / 0.6495 GB, free: 9.648 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.000997/1.172, allocations: 0.5606 MB / 0.6501 GB, free: 9.07 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/1.172, allocations: 192 / 0.6501 GB, free: 9.07 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006203/1.173, allocations: 476.1 kB / 0.6505 GB, free: 8.531 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001143/1.174, allocations: 188.5 kB / 0.6507 GB, free: 8.348 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005061/1.179, allocations: 3.634 MB / 0.6542 GB, free: 4.5 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000455/1.18, allocations: 353.7 kB / 0.6546 GB, free: 4.125 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0005672/1.18, allocations: 261.9 kB / 0.6548 GB, free: 3.867 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000362/1.181, allocations: 275.3 kB / 0.6551 GB, free: 3.598 MB / 494.1 MB Notification: Performance of SimCode: time 8.92e-07/1.181, allocations: 4 kB / 0.6551 GB, free: 3.594 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05369/1.234, allocations: 19.52 MB / 0.6742 GB, free: 132 kB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.69/12.93, allocations: 7.938 kB / 0.6742 GB, free: 124 kB / 0.4981 GB " [Timeout remaining time 647] (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: 16.671103202272207] Failed to read output from testmodel.py, exit status != 0: 13.263001278974116 13.287839076 12.141625722 Calling exit ...