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.001477/0.001477, allocations: 114.6 kB / 18.94 MB, free: 2.789 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.001501/0.001501, allocations: 222.9 kB / 22.26 MB, free: 5.211 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.539/1.539, allocations: 230.6 MB / 256 MB, free: 8 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.01731/0.01731, allocations: 2.795 MB / 315.2 MB, free: 316 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.002127/0.002127, allocations: 76.17 kB / 438.7 MB, free: 13.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1175/0.1196, allocations: 54.17 MB / 492.9 MB, free: 7.344 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit): time 0.3278/0.4474, allocations: 51.35 MB / 0.5315 GB, free: 11.56 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0324/0.4798, allocations: 29.21 MB / 0.56 GB, free: 4.859 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008454/0.4807, allocations: 2.562 kB / 0.56 GB, free: 4.859 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002038/0.4827, allocations: 0.6177 MB / 0.5606 GB, free: 4.355 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007657/0.4903, allocations: 2.261 MB / 0.5628 GB, free: 2.543 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.009687/0.5, allocations: 2.931 MB / 0.5657 GB, free: 184 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001942/0.502, allocations: 0.939 MB / 0.5666 GB, free: 15.62 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001177/0.5021, allocations: 26.75 kB / 0.5666 GB, free: 15.61 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.4875/0.9896, allocations: 51.34 MB / 0.6168 GB, free: 13.34 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007425/0.9904, allocations: 310.6 kB / 0.6171 GB, free: 13.04 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 9.099e-05/0.9905, allocations: 40 kB / 0.6171 GB, free: 13 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2415/1.232, allocations: 27.08 MB / 0.6435 GB, free: 1.746 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002273/1.232, allocations: 115.4 kB / 0.6437 GB, free: 1.633 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005773/1.233, allocations: 342.4 kB / 0.644 GB, free: 1.297 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006967/1.24, allocations: 1.862 MB / 0.6458 GB, free: 15.43 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.185e-06/1.24, allocations: 3.984 kB / 0.6458 GB, free: 15.43 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.014e-06/1.24, allocations: 0 / 0.6458 GB, free: 15.43 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.57e-05/1.24, allocations: 0 / 0.6458 GB, free: 15.43 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.001709/1.241, allocations: 1.053 MB / 0.6468 GB, free: 14.34 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.222e-05/1.242, allocations: 8.031 kB / 0.6468 GB, free: 14.33 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001378/1.242, allocations: 119 kB / 0.6469 GB, free: 14.21 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002006/1.244, allocations: 0.5 MB / 0.6474 GB, free: 13.71 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001735/1.245, allocations: 285.6 kB / 0.6477 GB, free: 13.4 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.381e-05/1.245, allocations: 49.88 kB / 0.6478 GB, free: 13.35 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.052e-05/1.246, allocations: 59.94 kB / 0.6478 GB, free: 13.29 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001622/1.247, allocations: 0.8727 MB / 0.6487 GB, free: 12.37 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.53e-05/1.247, allocations: 7.938 kB / 0.6487 GB, free: 12.36 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.106e-05/1.247, allocations: 20 kB / 0.6487 GB, free: 12.34 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.147e-05/1.247, allocations: 31.98 kB / 0.6487 GB, free: 12.31 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001401/1.249, allocations: 0.7201 MB / 0.6494 GB, free: 11.59 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005244/1.254, allocations: 5.094 MB / 0.6544 GB, free: 5.871 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007171/1.255, allocations: 273.2 kB / 0.6547 GB, free: 5.586 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002743/1.255, allocations: 157.6 kB / 0.6548 GB, free: 5.426 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001252/1.256, allocations: 0.9196 MB / 0.6557 GB, free: 4.484 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.252e-05/1.256, allocations: 34.56 kB / 0.6557 GB, free: 4.441 MB / 494.1 MB Notification: Performance of pre-optimization done (n=71): time 1.523e-06/1.256, allocations: 0 / 0.6557 GB, free: 4.441 MB / 494.1 MB Notification: Performance of matching and sorting (n=71): time 0.001673/1.258, allocations: 0.6089 MB / 0.6563 GB, free: 3.828 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.705e-05/1.258, allocations: 85.05 kB / 0.6564 GB, free: 3.727 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002231/1.258, allocations: 194.5 kB / 0.6566 GB, free: 3.527 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.562e-05/1.258, allocations: 25.7 kB / 0.6566 GB, free: 3.496 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002205/1.258, allocations: 300.3 kB / 0.6569 GB, free: 3.195 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002023/1.259, allocations: 245.8 kB / 0.6571 GB, free: 2.953 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000143/1.259, allocations: 97.95 kB / 0.6572 GB, free: 2.848 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001607/1.259, allocations: 342.8 kB / 0.6576 GB, free: 2.504 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002365/1.259, allocations: 121.3 kB / 0.6577 GB, free: 2.387 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003738/1.26, allocations: 300 kB / 0.658 GB, free: 2.016 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007427/1.26, allocations: 480.9 kB / 0.6584 GB, free: 1.469 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/1.26, allocations: 0 / 0.6584 GB, free: 1.469 MB / 494.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.0008406/1.261, allocations: 484.9 kB / 0.6589 GB, free: 0.9883 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.275e-05/1.261, allocations: 16.06 kB / 0.6589 GB, free: 0.9727 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.088e-05/1.261, allocations: 4.078 kB / 0.6589 GB, free: 0.9688 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.213e-05/1.261, allocations: 11.94 kB / 0.6589 GB, free: 0.957 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003591/1.262, allocations: 87.89 kB / 0.659 GB, free: 0.8711 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007998/1.262, allocations: 1.184 MB / 0.6602 GB, free: 15.64 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002527/1.263, allocations: 55.58 kB / 0.6602 GB, free: 15.59 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.764e-05/1.263, allocations: 20 kB / 0.6602 GB, free: 15.57 MB / 0.4981 GB 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.0002867/1.263, allocations: 201.6 kB / 0.6604 GB, free: 15.36 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.317e-05/1.263, allocations: 31.8 kB / 0.6605 GB, free: 15.33 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.233e-05/1.263, allocations: 22.66 kB / 0.6605 GB, free: 15.31 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.356e-06/1.263, allocations: 4 kB / 0.6605 GB, free: 15.3 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.009e-05/1.263, allocations: 4.031 kB / 0.6605 GB, free: 15.3 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.908e-06/1.263, allocations: 4 kB / 0.6605 GB, free: 15.3 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006929/1.264, allocations: 475.9 kB / 0.6609 GB, free: 14.79 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.003e-06/1.264, allocations: 4 kB / 0.6609 GB, free: 14.79 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001948/1.264, allocations: 43.91 kB / 0.661 GB, free: 14.74 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.667e-06/1.264, allocations: 0 / 0.661 GB, free: 14.74 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.153e-05/1.264, allocations: 8 kB / 0.661 GB, free: 14.73 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007559/1.265, allocations: 1.168 MB / 0.6621 GB, free: 13.52 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/1.265, allocations: 0 / 0.6621 GB, free: 13.52 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007098/1.265, allocations: 0.5178 MB / 0.6626 GB, free: 12.98 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.412e-05/1.266, allocations: 35.73 kB / 0.6627 GB, free: 12.95 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.787e-05/1.266, allocations: 15.98 kB / 0.6627 GB, free: 12.93 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001627/1.266, allocations: 0 / 0.6627 GB, free: 12.93 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.845e-05/1.266, allocations: 19.97 kB / 0.6627 GB, free: 12.91 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.853e-05/1.266, allocations: 8 kB / 0.6627 GB, free: 12.9 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001134/1.266, allocations: 123.2 kB / 0.6628 GB, free: 12.78 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.1e-07/1.266, allocations: 192 / 0.6628 GB, free: 12.78 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0007309/1.267, allocations: 199.5 kB / 0.663 GB, free: 12.59 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: 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.001536/1.268, allocations: 1.244 MB / 0.6642 GB, free: 11.32 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.001093/1.269, allocations: 0.5793 MB / 0.6648 GB, free: 10.72 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/1.269, allocations: 0.625 kB / 0.6648 GB, free: 10.72 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0006525/1.27, allocations: 483.7 kB / 0.6653 GB, free: 10.17 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001216/1.271, allocations: 191 kB / 0.6655 GB, free: 9.988 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005285/1.276, allocations: 3.664 MB / 0.669 GB, free: 6.094 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001099/1.278, allocations: 0.9465 MB / 0.67 GB, free: 5.117 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0005109/1.278, allocations: 211.9 kB / 0.6702 GB, free: 4.91 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003383/1.278, allocations: 275.3 kB / 0.6704 GB, free: 4.641 MB / 0.4981 GB Notification: Performance of SimCode: time 1.052e-06/1.278, allocations: 0 / 0.6704 GB, free: 4.641 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05496/1.333, allocations: 19.6 MB / 0.6896 GB, free: 1.086 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.94/15.27, allocations: 11.23 kB / 0.6896 GB, free: 1.078 MB / 0.5137 GB " [Timeout remaining time 644] (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: 22.005529334004677] Failed to read output from testmodel.py, exit status != 0: 15.6210942339967 15.638446186 14.395159747 Calling exit ...