Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit.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.001275/0.001275, allocations: 95.64 kB / 18.95 MB, free: 2.691 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.001714/0.001714, allocations: 211.9 kB / 22.24 MB, free: 5.242 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.458/1.458, allocations: 230.6 MB / 256 MB, free: 7.805 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.01224/0.01224, allocations: 2.804 MB / 315.2 MB, free: 120 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.TestBasePropertiesImplicit,fileNamePrefix="ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestBasePropertiesImplicit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit,fileNamePrefix="ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestBasePropertiesImplicit",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.002056/0.002056, allocations: 71.89 kB / 438.7 MB, free: 13.33 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09533/0.09739, allocations: 54.17 MB / 492.8 MB, free: 7.066 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit): time 0.2553/0.3527, allocations: 45.41 MB / 0.5256 GB, free: 14.43 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02738/0.3801, allocations: 25.16 MB / 0.5502 GB, free: 12.92 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007149/0.3808, allocations: 6.688 kB / 0.5502 GB, free: 12.92 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001743/0.3825, allocations: 0.5006 MB / 0.5507 GB, free: 12.53 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006696/0.3892, allocations: 2.191 MB / 0.5528 GB, free: 10.79 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.TestBasePropertiesImplicit.medium1.Medium.setSat_p_state' contains a call to impure function 'ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit.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.TestBasePropertiesImplicit.medium2.Medium.setSat_p_state' contains a call to impure function 'ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit.medium2.Medium.setSat_p'. Notification: Performance of NFTyping.typeClassSections: time 0.008996/0.3982, allocations: 2.888 MB / 0.5556 GB, free: 8.469 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001452/0.3997, allocations: 0.9427 MB / 0.5566 GB, free: 7.906 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001068/0.3998, allocations: 27.94 kB / 0.5566 GB, free: 7.891 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.4848/0.8845, allocations: 51.35 MB / 0.6067 GB, free: 6.316 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007024/0.8853, allocations: 278.6 kB / 0.607 GB, free: 6.043 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001198/0.8854, allocations: 40 kB / 0.607 GB, free: 6.004 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.227/1.112, allocations: 27.08 MB / 0.6335 GB, free: 10.75 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002559/1.113, allocations: 111.5 kB / 0.6336 GB, free: 10.64 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000675/1.113, allocations: 270.8 kB / 0.6338 GB, free: 10.38 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007573/1.121, allocations: 1.869 MB / 0.6357 GB, free: 8.5 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/1.121, allocations: 0 / 0.6357 GB, free: 8.5 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.593e-06/1.121, allocations: 0 / 0.6357 GB, free: 8.5 MB / 478.1 MB Notification: Performance of Transformations before backend: time 2.737e-05/1.121, allocations: 0 / 0.6357 GB, free: 8.5 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.001894/1.123, allocations: 1.053 MB / 0.6367 GB, free: 7.414 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.508e-05/1.123, allocations: 12.03 kB / 0.6367 GB, free: 7.402 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001447/1.123, allocations: 111.1 kB / 0.6368 GB, free: 7.285 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00207/1.125, allocations: 0.5 MB / 0.6373 GB, free: 6.785 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001913/1.127, allocations: 277.6 kB / 0.6376 GB, free: 6.488 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.045e-05/1.127, allocations: 49.86 kB / 0.6376 GB, free: 6.441 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.926e-05/1.127, allocations: 55.94 kB / 0.6377 GB, free: 6.387 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001754/1.129, allocations: 0.9848 MB / 0.6386 GB, free: 5.32 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.162e-05/1.129, allocations: 3.938 kB / 0.6386 GB, free: 5.316 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.127e-05/1.129, allocations: 20 kB / 0.6387 GB, free: 5.297 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.174e-05/1.129, allocations: 39.97 kB / 0.6387 GB, free: 5.258 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00143/1.13, allocations: 0.7084 MB / 0.6394 GB, free: 4.555 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00366/1.134, allocations: 2.799 MB / 0.6421 GB, free: 1.66 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007084/1.135, allocations: 269.1 kB / 0.6424 GB, free: 1.379 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003158/1.135, allocations: 157.7 kB / 0.6425 GB, free: 1.219 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00121/1.136, allocations: 0.8766 MB / 0.6434 GB, free: 328 kB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.99e-05/1.136, allocations: 42.5 kB / 0.6434 GB, free: 276 kB / 478.1 MB Notification: Performance of pre-optimization done (n=71): time 1.973e-06/1.136, allocations: 0 / 0.6434 GB, free: 276 kB / 478.1 MB Notification: Performance of matching and sorting (n=71): time 0.002365/1.139, allocations: 0.609 MB / 0.644 GB, free: 15.66 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.111e-05/1.139, allocations: 81.11 kB / 0.6441 GB, free: 15.56 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002174/1.139, allocations: 202.4 kB / 0.6443 GB, free: 15.35 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.504e-05/1.139, allocations: 25.7 kB / 0.6443 GB, free: 15.32 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002136/1.139, allocations: 296.4 kB / 0.6446 GB, free: 15.02 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002016/1.139, allocations: 237.8 kB / 0.6448 GB, free: 14.79 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001369/1.14, allocations: 97.95 kB / 0.6449 GB, free: 14.68 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001604/1.14, allocations: 342.8 kB / 0.6452 GB, free: 14.34 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002351/1.14, allocations: 125.3 kB / 0.6454 GB, free: 14.22 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003921/1.14, allocations: 303.9 kB / 0.6456 GB, free: 13.85 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006902/1.141, allocations: 481 kB / 0.6461 GB, free: 13.3 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.689e-06/1.141, allocations: 0 / 0.6461 GB, free: 13.3 MB / 494.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.000847/1.142, allocations: 488.3 kB / 0.6466 GB, free: 12.82 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.245e-05/1.142, allocations: 11.94 kB / 0.6466 GB, free: 12.8 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.117e-05/1.142, allocations: 4 kB / 0.6466 GB, free: 12.8 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.989e-05/1.142, allocations: 8 kB / 0.6466 GB, free: 12.79 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003541/1.142, allocations: 84.52 kB / 0.6467 GB, free: 12.71 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007899/1.143, allocations: 1.188 MB / 0.6478 GB, free: 11.48 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002585/1.143, allocations: 67.45 kB / 0.6479 GB, free: 11.41 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.506e-05/1.143, allocations: 16 kB / 0.6479 GB, free: 11.39 MB / 494.1 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): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002632/1.144, allocations: 195.9 kB / 0.6481 GB, free: 11.2 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.731e-05/1.144, allocations: 27.81 kB / 0.6481 GB, free: 11.17 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.445e-05/1.144, allocations: 34.59 kB / 0.6482 GB, free: 11.13 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.121e-06/1.144, allocations: 0 / 0.6482 GB, free: 11.13 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.16e-05/1.144, allocations: 8.125 kB / 0.6482 GB, free: 11.12 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.526e-06/1.144, allocations: 4 kB / 0.6482 GB, free: 11.12 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006966/1.145, allocations: 444 kB / 0.6486 GB, free: 10.64 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.296e-06/1.145, allocations: 0 / 0.6486 GB, free: 10.64 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001927/1.145, allocations: 32.17 kB / 0.6486 GB, free: 10.61 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.077e-06/1.145, allocations: 0 / 0.6486 GB, free: 10.61 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.988e-05/1.145, allocations: 11.94 kB / 0.6486 GB, free: 10.6 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007555/1.145, allocations: 1.18 MB / 0.6498 GB, free: 9.375 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.884e-06/1.145, allocations: 192 / 0.6498 GB, free: 9.375 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006874/1.146, allocations: 0.51 MB / 0.6503 GB, free: 8.848 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.438e-05/1.146, allocations: 35.69 kB / 0.6503 GB, free: 8.812 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.908e-05/1.146, allocations: 11.97 kB / 0.6503 GB, free: 8.801 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001657/1.146, allocations: 4 kB / 0.6503 GB, free: 8.797 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.313e-05/1.147, allocations: 19.97 kB / 0.6504 GB, free: 8.777 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.792e-05/1.147, allocations: 8 kB / 0.6504 GB, free: 8.77 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001212/1.147, allocations: 131.1 kB / 0.6505 GB, free: 8.641 MB / 494.1 MB Notification: Performance of sort global known variables: time 7e-08/1.147, allocations: 0 / 0.6505 GB, free: 8.641 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0007623/1.147, allocations: 195.5 kB / 0.6507 GB, free: 8.449 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: 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): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002005/1.149, allocations: 1.248 MB / 0.6519 GB, free: 7.168 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001029/1.15, allocations: 0.5684 MB / 0.6524 GB, free: 6.582 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/1.15, allocations: 0 / 0.6524 GB, free: 6.582 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006509/1.151, allocations: 487.7 kB / 0.6529 GB, free: 6.031 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00117/1.152, allocations: 185 kB / 0.6531 GB, free: 5.852 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005321/1.158, allocations: 3.68 MB / 0.6567 GB, free: 1.938 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005104/1.158, allocations: 356.7 kB / 0.657 GB, free: 1.559 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0005099/1.159, allocations: 207.9 kB / 0.6572 GB, free: 1.355 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000362/1.159, allocations: 275.3 kB / 0.6575 GB, free: 1.086 MB / 494.1 MB Notification: Performance of SimCode: time 8.51e-07/1.159, allocations: 0 / 0.6575 GB, free: 1.086 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05687/1.216, allocations: 19.33 MB / 0.6764 GB, free: 13.82 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.27/14.48, allocations: 10.58 kB / 0.6764 GB, free: 13.81 MB / 0.5137 GB " [Timeout remaining time 645] (rm -f ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit.pipe ; mkfifo ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit.pipe ; head -c 1048576 < ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit.pipe >> ../files/ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit.sim & python3 -m fmpy simulate --output-file ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit_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_TestBasePropertiesImplicit.fmu > ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 21.13329483382404] Failed to read output from testmodel.py, exit status != 0: 14.850308374036103 14.88165941 13.755222521 Calling exit ...