Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit.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.0008833/0.0008833, allocations: 80.44 kB / 19.17 MB, free: 0.7422 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.001367/0.001367, allocations: 169.9 kB / 22.46 MB, free: 2.105 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.8892/0.8892, allocations: 177.1 MB / 202.8 MB, free: 5.742 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.01014/0.01014, allocations: 1.985 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.TestBasePropertiesExplicit,fileNamePrefix="ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestBasePropertiesExplicit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit,fileNamePrefix="ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestBasePropertiesExplicit",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.785e-06/2.785e-06, allocations: 4 kB / 384.7 MB, free: 11.9 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.465e-05/1.743e-05, allocations: 2.281 kB / 384.7 MB, free: 11.9 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit): time 0.1736/0.1736, allocations: 45.15 MB / 429.8 MB, free: 13.34 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.01369/0.1873, allocations: 25.14 MB / 455 MB, free: 12.65 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003147/0.1876, allocations: 2.906 kB / 455 MB, free: 12.65 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001002/0.1886, allocations: 0.5151 MB / 455.5 MB, free: 12.25 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004323/0.1929, allocations: 2.267 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.TestBasePropertiesExplicit.medium1.Medium.setSat_p_state' contains a call to impure function 'ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit.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.TestBasePropertiesExplicit.medium2.Medium.setSat_p_state' contains a call to impure function 'ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit.medium2.Medium.setSat_p'. Notification: Performance of NFTyping.typeClassSections: time 0.005662/0.1986, allocations: 2.99 MB / 460.7 MB, free: 8 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007823/0.1994, allocations: 0.9736 MB / 461.7 MB, free: 7.398 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.728e-05/0.1994, allocations: 29.64 kB / 461.7 MB, free: 7.383 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.6105/0.8099, allocations: 51.49 MB / 0.5012 GB, free: 5.977 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005545/0.8105, allocations: 243.4 kB / 0.5014 GB, free: 5.738 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 6.506e-05/0.8106, allocations: 40 kB / 0.5015 GB, free: 5.699 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.07243/0.883, allocations: 27.05 MB / 0.5279 GB, free: 10.47 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001513/0.8831, allocations: 115.5 kB / 0.528 GB, free: 10.36 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003578/0.8835, allocations: 227.5 kB / 0.5282 GB, free: 10.14 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003626/0.8871, allocations: 1.909 MB / 0.5301 GB, free: 8.223 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 5e-06/0.8871, allocations: 0 / 0.5301 GB, free: 8.223 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.392e-06/0.8871, allocations: 0 / 0.5301 GB, free: 8.223 MB / 426.7 MB Notification: Performance of Transformations before backend: time 8.265e-06/0.8871, allocations: 0 / 0.5301 GB, free: 8.223 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.001201/0.8883, allocations: 1.037 MB / 0.5311 GB, free: 7.152 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.926e-05/0.8884, allocations: 12.03 kB / 0.5311 GB, free: 7.141 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.646e-05/0.8885, allocations: 115.1 kB / 0.5312 GB, free: 7.02 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001041/0.8895, allocations: 0.5 MB / 0.5317 GB, free: 6.52 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000322/0.8898, allocations: 280.9 kB / 0.532 GB, free: 6.219 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.957e-05/0.8899, allocations: 45.69 kB / 0.532 GB, free: 6.176 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.133e-05/0.8899, allocations: 60.38 kB / 0.5321 GB, free: 6.117 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000985/0.8909, allocations: 0.9931 MB / 0.533 GB, free: 5.043 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.638e-05/0.8909, allocations: 3.938 kB / 0.533 GB, free: 5.039 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.499e-05/0.891, allocations: 24 kB / 0.5331 GB, free: 5.016 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.655e-05/0.891, allocations: 35.97 kB / 0.5331 GB, free: 4.98 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008698/0.8918, allocations: 0.7162 MB / 0.5338 GB, free: 4.266 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002727/0.8946, allocations: 2.757 MB / 0.5365 GB, free: 1.414 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004738/0.8951, allocations: 266.9 kB / 0.5367 GB, free: 1.137 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001565/0.8952, allocations: 154.3 kB / 0.5369 GB, free: 0.9805 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007889/0.896, allocations: 0.8776 MB / 0.5377 GB, free: 84 kB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.57e-05/0.896, allocations: 38.56 kB / 0.5378 GB, free: 36 kB / 426.7 MB Notification: Performance of pre-optimization done (n=71): time 2.114e-06/0.896, allocations: 4 kB / 0.5378 GB, free: 32 kB / 426.7 MB Notification: Performance of matching and sorting (n=71): time 0.0008924/0.8969, allocations: 0.5975 MB / 0.5384 GB, free: 15.43 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.345e-05/0.897, allocations: 81.05 kB / 0.5384 GB, free: 15.33 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001468/0.8971, allocations: 190.6 kB / 0.5386 GB, free: 15.14 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 1.948e-05/0.8971, allocations: 29.7 kB / 0.5387 GB, free: 15.1 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001505/0.8973, allocations: 292.4 kB / 0.5389 GB, free: 14.81 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001203/0.8974, allocations: 245.7 kB / 0.5392 GB, free: 14.57 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.871e-05/0.8975, allocations: 97.95 kB / 0.5393 GB, free: 14.46 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.00012/0.8976, allocations: 342.8 kB / 0.5396 GB, free: 14.12 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001361/0.8978, allocations: 117.3 kB / 0.5397 GB, free: 14 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002366/0.898, allocations: 307.9 kB / 0.54 GB, free: 13.63 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004769/0.8985, allocations: 484.8 kB / 0.5405 GB, free: 13.08 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.072e-06/0.8985, allocations: 4 kB / 0.5405 GB, free: 13.07 MB / 442.7 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.0005276/0.899, allocations: 480.2 kB / 0.5409 GB, free: 12.6 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.13e-05/0.899, allocations: 8 kB / 0.5409 GB, free: 12.59 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.077e-06/0.899, allocations: 4.156 kB / 0.5409 GB, free: 12.59 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.829e-05/0.899, allocations: 8.719 kB / 0.5409 GB, free: 12.58 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001461/0.8992, allocations: 83.97 kB / 0.541 GB, free: 12.5 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.241e-05/0.8992, allocations: 15.97 kB / 0.541 GB, free: 12.48 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001294/0.8993, allocations: 59.45 kB / 0.5411 GB, free: 12.42 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.159e-05/0.8994, allocations: 20 kB / 0.5411 GB, free: 12.4 MB / 442.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 6 (medium2.completeState.state.phase,medium2.baseProperties.phaseOutput,medium1.completeState.state.phase,medium2.baseProperties.phaseInput,medium1.baseProperties.phaseInput,medium1.baseProperties.phaseOutput) * 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.0001576/0.8995, allocations: 193.7 kB / 0.5413 GB, free: 12.2 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.493e-05/0.8996, allocations: 27.81 kB / 0.5413 GB, free: 12.18 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.196e-05/0.8996, allocations: 22.66 kB / 0.5413 GB, free: 12.15 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.597e-06/0.8996, allocations: 4 kB / 0.5413 GB, free: 12.15 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/0.8996, allocations: 3.938 kB / 0.5414 GB, free: 12.14 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.9e-06/0.8996, allocations: 3.984 kB / 0.5414 GB, free: 12.14 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003572/0.9, allocations: 440.1 kB / 0.5418 GB, free: 11.67 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.053e-06/0.9, allocations: 0 / 0.5418 GB, free: 11.67 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.294e-05/0.9, allocations: 27.92 kB / 0.5418 GB, free: 11.64 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.317e-06/0.9, allocations: 3.984 kB / 0.5418 GB, free: 11.64 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.152e-05/0.9, allocations: 8 kB / 0.5418 GB, free: 11.63 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.585e-06/0.9, allocations: 7.938 kB / 0.5418 GB, free: 11.62 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.194e-06/0.9, allocations: 3.938 kB / 0.5418 GB, free: 11.62 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003686/0.9004, allocations: 0.5061 MB / 0.5423 GB, free: 11.09 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.1e-05/0.9004, allocations: 39.67 kB / 0.5424 GB, free: 11.05 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.805e-05/0.9005, allocations: 4 kB / 0.5424 GB, free: 11.05 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.845e-05/0.9006, allocations: 8 kB / 0.5424 GB, free: 11.04 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.364e-05/0.9006, allocations: 23.91 kB / 0.5424 GB, free: 11.02 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.01e-05/0.9006, allocations: 8 kB / 0.5424 GB, free: 11.01 MB / 442.7 MB Notification: Performance of sorting global known variables: time 6.423e-05/0.9007, allocations: 119.2 kB / 0.5425 GB, free: 10.89 MB / 442.7 MB Notification: Performance of sort global known variables: time 5e-08/0.9007, allocations: 0 / 0.5425 GB, free: 10.89 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0004181/0.9011, allocations: 195.5 kB / 0.5427 GB, free: 10.7 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: 3 (medium2.baseProperties.phaseOutput,medium2.completeState.state.phase,medium1.completeState.state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 13 * 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.0008503/0.9019, allocations: 1.248 MB / 0.5439 GB, free: 9.426 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0004685/0.9024, allocations: 0.5609 MB / 0.5445 GB, free: 8.84 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.9024, allocations: 0 / 0.5445 GB, free: 8.84 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000256/0.9027, allocations: 460.2 kB / 0.5449 GB, free: 8.316 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006252/0.9033, allocations: 193.6 kB / 0.5451 GB, free: 8.129 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002829/0.9061, allocations: 3.594 MB / 0.5486 GB, free: 4.305 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000248/0.9064, allocations: 352.7 kB / 0.5489 GB, free: 3.934 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0003414/0.9067, allocations: 257.9 kB / 0.5492 GB, free: 3.672 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001963/0.9069, allocations: 276.4 kB / 0.5494 GB, free: 3.402 MB / 442.7 MB Notification: Performance of SimCode: time 6.31e-07/0.9069, allocations: 0 / 0.5494 GB, free: 3.402 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0285/0.9354, allocations: 19.07 MB / 0.5681 GB, free: 360 kB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.336/8.272, allocations: 0 / 0.5681 GB, free: 360 kB / 458.7 MB " [Timeout remaining time 651] (rm -f ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit.pipe ; mkfifo ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit.pipe ; head -c 1048576 < ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit.pipe >> ../files/ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit.sim & python3 -m fmpy simulate --output-file ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit_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_TestBasePropertiesExplicit.fmu > ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 12.392399750649929] Failed to read output from testmodel.py, exit status != 0: 8.616799226030707 8.629468167 7.740390185 Calling exit ...