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.001454/0.001454, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.002349/0.002349, allocations: 212.4 kB / 22.25 MB, free: 4.859 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.419/1.419, allocations: 230.6 MB / 256 MB, free: 7.789 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.01253/0.01253, allocations: 2.813 MB / 315.2 MB, free: 108 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.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: 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.002223/0.002223, allocations: 71.89 kB / 438.6 MB, free: 13.3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09951/0.1017, allocations: 54.17 MB / 492.8 MB, free: 7.027 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesExplicit): time 0.2517/0.3534, allocations: 45.38 MB / 0.5256 GB, free: 14.39 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02648/0.3799, allocations: 25.15 MB / 0.5501 GB, free: 12.92 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006045/0.3805, allocations: 8.844 kB / 0.5502 GB, free: 12.92 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001885/0.3824, allocations: 0.4994 MB / 0.5506 GB, free: 12.53 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007128/0.3895, allocations: 2.179 MB / 0.5528 GB, free: 10.8 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.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.008755/0.3983, allocations: 2.895 MB / 0.5556 GB, free: 8.473 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001289/0.3996, allocations: 0.9349 MB / 0.5565 GB, free: 7.914 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001041/0.3997, allocations: 24.19 kB / 0.5565 GB, free: 7.898 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.4557/0.8554, allocations: 51.34 MB / 0.6067 GB, free: 6.293 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006979/0.8561, allocations: 294.5 kB / 0.607 GB, free: 6.004 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001275/0.8562, allocations: 40 kB / 0.607 GB, free: 5.965 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2275/1.084, allocations: 27.05 MB / 0.6334 GB, free: 10.73 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002415/1.084, allocations: 111.5 kB / 0.6335 GB, free: 10.62 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006245/1.085, allocations: 274.8 kB / 0.6338 GB, free: 10.36 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006291/1.091, allocations: 1.866 MB / 0.6356 GB, free: 8.484 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.47e-06/1.091, allocations: 0 / 0.6356 GB, free: 8.484 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.483e-06/1.091, allocations: 0 / 0.6356 GB, free: 8.484 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.876e-05/1.091, allocations: 0 / 0.6356 GB, free: 8.484 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.002193/1.093, allocations: 1.041 MB / 0.6366 GB, free: 7.41 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.373e-05/1.093, allocations: 12.03 kB / 0.6366 GB, free: 7.398 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001533/1.093, allocations: 127 kB / 0.6368 GB, free: 7.266 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002125/1.095, allocations: 0.5 MB / 0.6372 GB, free: 6.766 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001856/1.097, allocations: 277.7 kB / 0.6375 GB, free: 6.469 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.27e-05/1.097, allocations: 45.88 kB / 0.6375 GB, free: 6.426 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.916e-05/1.097, allocations: 55.94 kB / 0.6376 GB, free: 6.371 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001722/1.099, allocations: 0.977 MB / 0.6386 GB, free: 5.316 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.772e-05/1.099, allocations: 7.938 kB / 0.6386 GB, free: 5.309 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009485/1.1, allocations: 28 kB / 0.6386 GB, free: 5.281 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.518e-05/1.1, allocations: 31.98 kB / 0.6386 GB, free: 5.25 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001479/1.102, allocations: 0.7123 MB / 0.6393 GB, free: 4.543 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003669/1.105, allocations: 2.779 MB / 0.642 GB, free: 1.668 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006681/1.106, allocations: 265.1 kB / 0.6423 GB, free: 1.391 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002761/1.106, allocations: 153.7 kB / 0.6424 GB, free: 1.234 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001259/1.107, allocations: 0.8766 MB / 0.6433 GB, free: 344 kB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.542e-05/1.107, allocations: 42.5 kB / 0.6433 GB, free: 292 kB / 478.1 MB Notification: Performance of pre-optimization done (n=71): time 2.245e-06/1.107, allocations: 0 / 0.6433 GB, free: 292 kB / 478.1 MB Notification: Performance of matching and sorting (n=71): time 0.001654/1.109, allocations: 0.5973 MB / 0.6439 GB, free: 15.68 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.183e-05/1.109, allocations: 81.11 kB / 0.644 GB, free: 15.58 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002123/1.109, allocations: 194.5 kB / 0.6442 GB, free: 15.38 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 2.677e-05/1.109, allocations: 29.7 kB / 0.6442 GB, free: 15.35 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002068/1.11, allocations: 296.4 kB / 0.6445 GB, free: 15.05 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002006/1.11, allocations: 241.7 kB / 0.6447 GB, free: 14.82 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001536/1.11, allocations: 97.95 kB / 0.6448 GB, free: 14.71 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001799/1.11, allocations: 342.8 kB / 0.6451 GB, free: 14.37 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002485/1.11, allocations: 121.3 kB / 0.6452 GB, free: 14.25 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003902/1.111, allocations: 299.9 kB / 0.6455 GB, free: 13.88 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007179/1.112, allocations: 473 kB / 0.646 GB, free: 13.34 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.051e-06/1.112, allocations: 8 kB / 0.646 GB, free: 13.34 MB / 494.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.0008806/1.112, allocations: 492.7 kB / 0.6465 GB, free: 12.85 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.774e-05/1.112, allocations: 11.94 kB / 0.6465 GB, free: 12.84 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.488e-05/1.112, allocations: 8 kB / 0.6465 GB, free: 12.83 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.517e-05/1.112, allocations: 4 kB / 0.6465 GB, free: 12.82 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002472/1.113, allocations: 71.91 kB / 0.6466 GB, free: 12.75 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.667e-05/1.113, allocations: 11.94 kB / 0.6466 GB, free: 12.74 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002531/1.113, allocations: 59.5 kB / 0.6466 GB, free: 12.68 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.884e-05/1.113, allocations: 20 kB / 0.6466 GB, free: 12.66 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): 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.0002564/1.113, allocations: 193.8 kB / 0.6468 GB, free: 12.46 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.369e-05/1.113, allocations: 31.75 kB / 0.6469 GB, free: 12.43 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.404e-05/1.113, allocations: 34.64 kB / 0.6469 GB, free: 12.4 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.622e-06/1.113, allocations: 0 / 0.6469 GB, free: 12.4 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.464e-06/1.113, allocations: 7.922 kB / 0.6469 GB, free: 12.39 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.606e-06/1.113, allocations: 0 / 0.6469 GB, free: 12.39 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006711/1.114, allocations: 432 kB / 0.6473 GB, free: 11.93 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/1.114, allocations: 0 / 0.6473 GB, free: 11.93 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000121/1.114, allocations: 28.17 kB / 0.6473 GB, free: 11.9 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.604e-06/1.114, allocations: 7.938 kB / 0.6473 GB, free: 11.89 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.88e-05/1.114, allocations: 7.938 kB / 0.6474 GB, free: 11.88 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.615e-06/1.114, allocations: 4 kB / 0.6474 GB, free: 11.88 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/1.114, allocations: 0 / 0.6474 GB, free: 11.88 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007039/1.115, allocations: 0.51 MB / 0.6479 GB, free: 11.35 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.636e-05/1.115, allocations: 39.62 kB / 0.6479 GB, free: 11.31 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.429e-05/1.115, allocations: 3.938 kB / 0.6479 GB, free: 11.31 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000174/1.115, allocations: 11.98 kB / 0.6479 GB, free: 11.3 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.065e-05/1.115, allocations: 11.98 kB / 0.6479 GB, free: 11.29 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.277e-05/1.115, allocations: 16 kB / 0.6479 GB, free: 11.27 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001097/1.115, allocations: 119.2 kB / 0.648 GB, free: 11.15 MB / 494.1 MB Notification: Performance of sort global known variables: time 1e-07/1.115, allocations: 4 kB / 0.6481 GB, free: 11.15 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.000733/1.116, allocations: 195.5 kB / 0.6482 GB, free: 10.96 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): 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.001589/1.118, allocations: 1.248 MB / 0.6495 GB, free: 9.676 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0008963/1.119, allocations: 0.5566 MB / 0.65 GB, free: 9.102 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/1.119, allocations: 3.938 kB / 0.65 GB, free: 9.098 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005258/1.119, allocations: 467.8 kB / 0.6504 GB, free: 8.566 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001163/1.12, allocations: 188.6 kB / 0.6506 GB, free: 8.383 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005097/1.125, allocations: 3.628 MB / 0.6542 GB, free: 4.52 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004639/1.126, allocations: 356.7 kB / 0.6545 GB, free: 4.141 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0005669/1.126, allocations: 253.8 kB / 0.6548 GB, free: 3.895 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004879/1.127, allocations: 275.3 kB / 0.655 GB, free: 3.625 MB / 494.1 MB Notification: Performance of SimCode: time 8.31e-07/1.127, allocations: 0 / 0.655 GB, free: 3.625 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05277/1.18, allocations: 19 MB / 0.6736 GB, free: 0.6836 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.61/12.79, allocations: 8.062 kB / 0.6736 GB, free: 0.6758 MB / 0.4981 GB " [Timeout remaining time 647] (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 sys.exit(0), Time elapsed: 18.60502372775227] Failed to read output from testmodel.py, exit status != 0: 13.12761749420315 13.147955892 12.053654234 Calling exit ...