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.001601/0.001601, allocations: 116.1 kB / 17.17 MB, free: 6 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.001984/0.001984, allocations: 209.5 kB / 20.13 MB, free: 3.055 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.51/1.51, allocations: 230.6 MB / 253.5 MB, free: 15.12 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.01215/0.01215, allocations: 2.803 MB / 312.4 MB, free: 2.312 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.TestBasePropertiesExplicit,fileNamePrefix="ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestBasePropertiesExplicit",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit,fileNamePrefix="ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestBasePropertiesExplicit",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.002032/0.002032, allocations: 69.58 kB / 434.2 MB, free: 39.09 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09445/0.09649, allocations: 54.12 MB / 488.4 MB, free: 14.44 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit): time 0.05355/0.15, allocations: 51.05 MB / 0.5268 GB, free: 13.23 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02959/0.1796, allocations: 29.16 MB / 0.5552 GB, free: 15.97 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006716/0.1803, allocations: 8 kB / 0.5553 GB, free: 15.96 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001847/0.1821, allocations: 0.6136 MB / 0.5559 GB, free: 15.35 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006733/0.1889, allocations: 2.246 MB / 0.558 GB, free: 13.09 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.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.0.0/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.00932/0.1982, allocations: 2.925 MB / 0.5609 GB, free: 10.14 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.001882/0.2001, allocations: 0.9286 MB / 0.5618 GB, free: 9.211 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001671/0.2002, allocations: 21.78 kB / 0.5618 GB, free: 9.18 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.6801/0.8804, allocations: 51.19 MB / 0.6118 GB, free: 23.92 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001151/0.8815, allocations: 304.6 kB / 0.6121 GB, free: 23.92 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001069/0.8816, allocations: 46.66 kB / 0.6122 GB, free: 23.92 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.207/1.089, allocations: 27.01 MB / 0.6385 GB, free: 9.133 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002322/1.089, allocations: 108.4 kB / 0.6386 GB, free: 9.098 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004994/1.089, allocations: 336.9 kB / 0.639 GB, free: 8.949 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00608/1.095, allocations: 1.867 MB / 0.6408 GB, free: 7.633 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.139e-06/1.095, allocations: 0 / 0.6408 GB, free: 7.633 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.453e-06/1.095, allocations: 0 / 0.6408 GB, free: 7.633 MB / 446.1 MB Notification: Performance of Transformations before backend: time 2.389e-05/1.095, allocations: 4 kB / 0.6408 GB, free: 7.629 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.001826/1.097, allocations: 1.123 MB / 0.6419 GB, free: 6.594 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.073e-05/1.097, allocations: 15.92 kB / 0.6419 GB, free: 6.578 MB / 446.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.119e-05/1.097, allocations: 21.5 kB / 0.6419 GB, free: 6.559 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001185/1.098, allocations: 120.2 kB / 0.642 GB, free: 6.477 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001951/1.099, allocations: 0.4962 MB / 0.6425 GB, free: 6.148 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001758/1.101, allocations: 338 kB / 0.6428 GB, free: 5.859 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.435e-05/1.101, allocations: 45.12 kB / 0.6429 GB, free: 5.836 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.194e-05/1.101, allocations: 57.25 kB / 0.6429 GB, free: 5.797 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001287/1.103, allocations: 0.8734 MB / 0.6438 GB, free: 5.172 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.852e-05/1.103, allocations: 4 kB / 0.6438 GB, free: 5.168 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.848e-05/1.103, allocations: 19.38 kB / 0.6438 GB, free: 5.164 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.763e-05/1.103, allocations: 35.97 kB / 0.6438 GB, free: 5.141 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001129/1.104, allocations: 0.7046 MB / 0.6445 GB, free: 4.699 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003617/1.107, allocations: 5.021 MB / 0.6494 GB, free: 15.72 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006875/1.108, allocations: 263.9 kB / 0.6497 GB, free: 15.53 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002735/1.108, allocations: 152.9 kB / 0.6498 GB, free: 15.45 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001636/1.11, allocations: 1.528 MB / 0.6513 GB, free: 13.93 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.269e-05/1.11, allocations: 40 kB / 0.6514 GB, free: 13.89 MB / 462.1 MB Notification: Performance of pre-optimization done (n=71): time 2.254e-06/1.11, allocations: 0 / 0.6514 GB, free: 13.89 MB / 462.1 MB Notification: Performance of matching and sorting (n=71): time 0.001624/1.112, allocations: 0.5972 MB / 0.6519 GB, free: 13.45 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.555e-05/1.112, allocations: 77.11 kB / 0.652 GB, free: 13.36 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001961/1.112, allocations: 194.5 kB / 0.6522 GB, free: 13.18 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 2.399e-05/1.112, allocations: 25.7 kB / 0.6522 GB, free: 13.15 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002118/1.112, allocations: 295.6 kB / 0.6525 GB, free: 12.88 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001891/1.112, allocations: 247.8 kB / 0.6528 GB, free: 12.67 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001358/1.113, allocations: 95.02 kB / 0.6528 GB, free: 12.59 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001614/1.113, allocations: 342.7 kB / 0.6532 GB, free: 12.27 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002363/1.113, allocations: 112.9 kB / 0.6533 GB, free: 12.2 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003739/1.113, allocations: 311.9 kB / 0.6536 GB, free: 11.89 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006541/1.114, allocations: 477.5 kB / 0.654 GB, free: 11.51 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.768e-06/1.114, allocations: 4 kB / 0.654 GB, free: 11.51 MB / 462.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.0007963/1.115, allocations: 480.9 kB / 0.6545 GB, free: 11.19 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.352e-05/1.115, allocations: 11.94 kB / 0.6545 GB, free: 11.18 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.268e-05/1.115, allocations: 8.719 kB / 0.6545 GB, free: 11.17 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.319e-05/1.115, allocations: 8 kB / 0.6545 GB, free: 11.16 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002527/1.115, allocations: 77.28 kB / 0.6546 GB, free: 11.1 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.778e-05/1.115, allocations: 11.98 kB / 0.6546 GB, free: 11.09 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002307/1.115, allocations: 53.95 kB / 0.6547 GB, free: 11.04 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.174e-05/1.115, allocations: 18.94 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: 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.0002308/1.116, allocations: 204.3 kB / 0.6549 GB, free: 10.86 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.091e-05/1.116, allocations: 35.7 kB / 0.6549 GB, free: 10.83 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.691e-05/1.116, allocations: 32.84 kB / 0.6549 GB, free: 10.81 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.342e-06/1.116, allocations: 0 / 0.6549 GB, free: 10.81 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/1.116, allocations: 4 kB / 0.6549 GB, free: 10.81 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.477e-06/1.116, allocations: 0 / 0.6549 GB, free: 10.81 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006409/1.116, allocations: 494.8 kB / 0.6554 GB, free: 10.39 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.495e-06/1.116, allocations: 0 / 0.6554 GB, free: 10.39 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000122/1.117, allocations: 34.95 kB / 0.6554 GB, free: 10.37 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.853e-06/1.117, allocations: 7.922 kB / 0.6554 GB, free: 10.36 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.067e-05/1.117, allocations: 7.375 kB / 0.6555 GB, free: 10.36 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.874e-06/1.117, allocations: 0 / 0.6555 GB, free: 10.36 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/1.117, allocations: 3.938 kB / 0.6555 GB, free: 10.35 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006442/1.117, allocations: 0.5052 MB / 0.656 GB, free: 9.953 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.437e-05/1.117, allocations: 124.7 kB / 0.6561 GB, free: 9.812 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.151e-05/1.117, allocations: 0 / 0.6561 GB, free: 9.812 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001659/1.118, allocations: 7.75 kB / 0.6561 GB, free: 9.809 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.1e-05/1.118, allocations: 15.61 kB / 0.6561 GB, free: 9.797 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.151e-05/1.118, allocations: 11.98 kB / 0.6561 GB, free: 9.785 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0001003/1.118, allocations: 126.4 kB / 0.6562 GB, free: 9.676 MB / 462.1 MB Notification: Performance of sort global known variables: time 9e-08/1.118, allocations: 0 / 0.6562 GB, free: 9.676 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0006973/1.118, allocations: 188.9 kB / 0.6564 GB, free: 9.5 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: 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.001505/1.12, allocations: 1.249 MB / 0.6576 GB, free: 8.371 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0008151/1.121, allocations: 0.5534 MB / 0.6582 GB, free: 7.945 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/1.121, allocations: 0 / 0.6582 GB, free: 7.945 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004934/1.121, allocations: 460.4 kB / 0.6586 GB, free: 7.496 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00117/1.122, allocations: 204 kB / 0.6588 GB, free: 7.32 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005074/1.127, allocations: 3.614 MB / 0.6623 GB, free: 3.996 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006651/1.128, allocations: 0.9465 MB / 0.6633 GB, free: 3.02 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0005406/1.129, allocations: 257.3 kB / 0.6635 GB, free: 2.773 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002814/1.129, allocations: 276.1 kB / 0.6638 GB, free: 2.703 MB / 462.1 MB Notification: Performance of SimCode: time 7.82e-07/1.129, allocations: 0 / 0.6638 GB, free: 2.703 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04339/1.172, allocations: 18.1 MB / 0.6814 GB, free: 0.7148 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.608/10.78, allocations: 8 kB / 0.6814 GB, free: 0.707 MB / 478.1 MB " [Timeout remaining time 649] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestBasePropertiesExplicit_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestBasePropertiesExplicit.fmu > ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.85589433502173] Failed to read output from testmodel.py, exit status != 0: 11.136479372973554 11.150947792 10.052326035 Calling exit ...