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.001254/0.001254, allocations: 119.6 kB / 17.16 MB, free: 5.914 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.002061/0.002061, allocations: 211 kB / 20.13 MB, free: 2.969 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.486/1.486, allocations: 230.6 MB / 253.5 MB, free: 15.07 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.0117/0.0117, allocations: 2.79 MB / 312.3 MB, free: 2.363 MB / 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical,fileNamePrefix="ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestBasePropertiesTranscritical",fmuType="cs",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.001962/0.001962, allocations: 69.45 kB / 434.2 MB, free: 39.16 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08086/0.08282, allocations: 54.13 MB / 488.4 MB, free: 14.45 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical): time 0.04812/0.1309, allocations: 51.05 MB / 0.5268 GB, free: 13.14 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02828/0.1592, allocations: 29.16 MB / 0.5552 GB, free: 15.88 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006253/0.1598, allocations: 7.938 kB / 0.5553 GB, free: 15.88 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001802/0.1616, allocations: 0.6137 MB / 0.5559 GB, free: 15.26 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007236/0.1689, allocations: 2.25 MB / 0.558 GB, free: 12.99 MB / 430.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.009431/0.1783, allocations: 2.922 MB / 0.5609 GB, free: 10.05 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001545/0.1799, allocations: 0.9325 MB / 0.5618 GB, free: 9.117 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001116/0.18, allocations: 25.78 kB / 0.5618 GB, free: 9.082 MB / 430.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.6633/0.8433, allocations: 51.19 MB / 0.6118 GB, free: 23.97 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006104/0.8439, allocations: 302.9 kB / 0.6121 GB, free: 23.97 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000132/0.844, allocations: 42.75 kB / 0.6122 GB, free: 23.97 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2594/1.103, allocations: 27.02 MB / 0.6385 GB, free: 9.105 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001909/1.104, allocations: 109.8 kB / 0.6386 GB, free: 9.074 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004083/1.104, allocations: 344 kB / 0.639 GB, free: 8.918 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005825/1.11, allocations: 1.86 MB / 0.6408 GB, free: 7.602 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/1.11, allocations: 4 kB / 0.6408 GB, free: 7.598 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.543e-06/1.11, allocations: 0 / 0.6408 GB, free: 7.598 MB / 446.1 MB Notification: Performance of Transformations before backend: time 2.046e-05/1.11, allocations: 0 / 0.6408 GB, free: 7.598 MB / 446.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.001394/1.111, allocations: 1.121 MB / 0.6419 GB, free: 6.566 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.621e-05/1.111, allocations: 11.98 kB / 0.6419 GB, free: 6.555 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.248e-05/1.111, allocations: 21.5 kB / 0.6419 GB, free: 6.535 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.514e-05/1.111, allocations: 116.7 kB / 0.642 GB, free: 6.453 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001906/1.113, allocations: 0.4971 MB / 0.6425 GB, free: 6.125 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001633/1.115, allocations: 351.7 kB / 0.6428 GB, free: 5.824 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.892e-05/1.115, allocations: 48.5 kB / 0.6429 GB, free: 5.801 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.156e-05/1.115, allocations: 55.25 kB / 0.6429 GB, free: 5.762 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001251/1.116, allocations: 0.8736 MB / 0.6438 GB, free: 5.137 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.809e-05/1.116, allocations: 0 / 0.6438 GB, free: 5.137 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.843e-05/1.116, allocations: 23.44 kB / 0.6438 GB, free: 5.129 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.549e-05/1.116, allocations: 39.58 kB / 0.6439 GB, free: 5.102 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001106/1.117, allocations: 0.7033 MB / 0.6445 GB, free: 4.664 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002634/1.12, allocations: 4.946 MB / 0.6494 GB, free: 15.73 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006942/1.121, allocations: 286.9 kB / 0.6497 GB, free: 15.52 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003066/1.121, allocations: 166.3 kB / 0.6498 GB, free: 15.43 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001519/1.123, allocations: 1.543 MB / 0.6513 GB, free: 13.91 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.687e-05/1.123, allocations: 38.56 kB / 0.6514 GB, free: 13.86 MB / 462.1 MB Notification: Performance of pre-optimization done (n=74): time 1.813e-06/1.123, allocations: 0 / 0.6514 GB, free: 13.86 MB / 462.1 MB Notification: Performance of matching and sorting (n=74): time 0.001818/1.125, allocations: 0.6223 MB / 0.652 GB, free: 13.4 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.27e-05/1.125, allocations: 85.09 kB / 0.652 GB, free: 13.3 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001921/1.125, allocations: 167.2 kB / 0.6522 GB, free: 13.15 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 3.387e-05/1.125, allocations: 33.39 kB / 0.6522 GB, free: 13.12 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001963/1.125, allocations: 292.8 kB / 0.6525 GB, free: 12.85 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000196/1.125, allocations: 244 kB / 0.6527 GB, free: 12.64 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001353/1.125, allocations: 97.64 kB / 0.6528 GB, free: 12.56 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001599/1.125, allocations: 345 kB / 0.6532 GB, free: 12.23 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000279/1.126, allocations: 127.5 kB / 0.6533 GB, free: 12.16 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003998/1.126, allocations: 281.3 kB / 0.6536 GB, free: 11.89 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007011/1.127, allocations: 481.8 kB / 0.654 GB, free: 11.51 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.476e-06/1.127, allocations: 0 / 0.654 GB, free: 11.51 MB / 462.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.00084/1.128, allocations: 482.3 kB / 0.6545 GB, free: 11.19 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.087e-05/1.128, allocations: 12.12 kB / 0.6545 GB, free: 11.18 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.056e-05/1.128, allocations: 4.625 kB / 0.6545 GB, free: 11.17 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.013e-05/1.128, allocations: 15.94 kB / 0.6545 GB, free: 11.16 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002872/1.128, allocations: 69.34 kB / 0.6546 GB, free: 11.1 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.412e-05/1.128, allocations: 11 kB / 0.6546 GB, free: 11.09 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002542/1.128, allocations: 61.25 kB / 0.6546 GB, free: 11.04 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.53e-05/1.128, allocations: 18.62 kB / 0.6547 GB, free: 11.02 MB / 462.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.000239/1.129, allocations: 190.4 kB / 0.6548 GB, free: 10.87 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.042e-05/1.129, allocations: 35.73 kB / 0.6549 GB, free: 10.84 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.47e-05/1.129, allocations: 35.02 kB / 0.6549 GB, free: 10.82 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.438e-06/1.129, allocations: 4 kB / 0.6549 GB, free: 10.82 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.651e-06/1.129, allocations: 0 / 0.6549 GB, free: 10.82 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.108e-06/1.129, allocations: 0 / 0.6549 GB, free: 10.82 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000646/1.129, allocations: 0.4971 MB / 0.6554 GB, free: 10.4 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.384e-06/1.129, allocations: 0 / 0.6554 GB, free: 10.4 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001607/1.13, allocations: 34.11 kB / 0.6554 GB, free: 10.37 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.82e-06/1.13, allocations: 3.938 kB / 0.6554 GB, free: 10.37 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.244e-05/1.13, allocations: 10.05 kB / 0.6554 GB, free: 10.36 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.043e-06/1.13, allocations: 0 / 0.6554 GB, free: 10.36 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/1.13, allocations: 4 kB / 0.6554 GB, free: 10.36 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007402/1.13, allocations: 0.5276 MB / 0.656 GB, free: 9.938 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.901e-05/1.13, allocations: 120.7 kB / 0.6561 GB, free: 9.801 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.163e-05/1.13, allocations: 3.984 kB / 0.6561 GB, free: 9.797 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002141/1.131, allocations: 11.62 kB / 0.6561 GB, free: 9.789 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.596e-05/1.131, allocations: 26.84 kB / 0.6561 GB, free: 9.766 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.481e-05/1.131, allocations: 11.81 kB / 0.6561 GB, free: 9.758 MB / 462.1 MB Notification: Performance of sorting global known variables: time 9.559e-05/1.131, allocations: 119.5 kB / 0.6562 GB, free: 9.652 MB / 462.1 MB Notification: Performance of sort global known variables: time 8.1e-08/1.131, allocations: 0 / 0.6562 GB, free: 9.652 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0006673/1.132, allocations: 198 kB / 0.6564 GB, free: 9.469 MB / 462.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.001756/1.133, allocations: 1.26 MB / 0.6577 GB, free: 8.336 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.000918/1.134, allocations: 0.564 MB / 0.6582 GB, free: 7.883 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/1.134, allocations: 0 / 0.6582 GB, free: 7.883 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005465/1.135, allocations: 477 kB / 0.6587 GB, free: 7.426 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001166/1.136, allocations: 202.2 kB / 0.6589 GB, free: 7.25 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004701/1.141, allocations: 3.621 MB / 0.6624 GB, free: 3.953 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006385/1.141, allocations: 0.9475 MB / 0.6633 GB, free: 2.977 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.000557/1.142, allocations: 264.5 kB / 0.6636 GB, free: 2.727 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002774/1.142, allocations: 275.2 kB / 0.6638 GB, free: 2.66 MB / 462.1 MB Notification: Performance of SimCode: time 7.02e-07/1.142, allocations: 0 / 0.6638 GB, free: 2.66 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04101/1.183, allocations: 18.6 MB / 0.682 GB, free: 160 kB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.551/10.73, allocations: 7.875 kB / 0.682 GB, free: 152 kB / 478.1 MB " [Timeout remaining time 649] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestBasePropertiesTranscritical_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 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: 15.786456680041738] Failed to read output from testmodel.py, exit status != 0: 11.098508686001878 11.121733124 10.007640047 Calling exit ...