Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.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.001279/0.001279, 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.001497/0.001497, allocations: 212.3 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.411/1.411, 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.01228/0.01228, allocations: 2.804 MB / 315.2 MB, free: 100 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_Tabular.TestBasePropertiesExplicit,fileNamePrefix="ExternalMedia_ExternalMedia_Test_CoolProp_CO2_Tabular_TestBasePropertiesExplicit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesExplicit,fileNamePrefix="ExternalMedia_ExternalMedia_Test_CoolProp_CO2_Tabular_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.002052/0.002052, allocations: 59.91 kB / 438.6 MB, free: 13.3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09794/0.1, allocations: 54.18 MB / 492.8 MB, free: 7.027 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesExplicit): time 0.2657/0.3657, allocations: 45.38 MB / 0.5256 GB, free: 14.37 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02591/0.3916, allocations: 25.15 MB / 0.5501 GB, free: 12.92 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005951/0.3922, allocations: 2.625 kB / 0.5502 GB, free: 12.92 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001527/0.3938, allocations: 0.5059 MB / 0.5506 GB, free: 12.53 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006603/0.4004, allocations: 2.181 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_Tabular.TestBasePropertiesExplicit.medium1.Medium.setSat_p_state' contains a call to impure function 'ExternalMedia.Test.CoolProp.CO2_Tabular.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_Tabular.TestBasePropertiesExplicit.medium2.Medium.setSat_p_state' contains a call to impure function 'ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesExplicit.medium2.Medium.setSat_p'. Notification: Performance of NFTyping.typeClassSections: time 0.009447/0.4098, allocations: 2.888 MB / 0.5556 GB, free: 8.473 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001488/0.4113, allocations: 0.9335 MB / 0.5565 GB, free: 7.914 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001219/0.4114, allocations: 24.25 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.7199/1.131, allocations: 52.01 MB / 0.6073 GB, free: 5.625 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006755/1.132, allocations: 290.6 kB / 0.6076 GB, free: 5.34 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001022/1.132, allocations: 40 kB / 0.6076 GB, free: 5.301 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2355/1.368, allocations: 27.39 MB / 0.6344 GB, free: 9.734 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002228/1.368, allocations: 111.5 kB / 0.6345 GB, free: 9.625 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005605/1.368, allocations: 270.8 kB / 0.6347 GB, free: 9.359 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008187/1.377, allocations: 1.866 MB / 0.6366 GB, free: 7.488 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.718e-06/1.377, allocations: 0 / 0.6366 GB, free: 7.488 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.826e-06/1.377, allocations: 0 / 0.6366 GB, free: 7.488 MB / 478.1 MB Notification: Performance of Transformations before backend: time 2.837e-05/1.377, allocations: 0 / 0.6366 GB, free: 7.488 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.002377/1.379, allocations: 1.045 MB / 0.6376 GB, free: 6.41 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.087e-05/1.379, allocations: 8.031 kB / 0.6376 GB, free: 6.402 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001677/1.379, allocations: 119 kB / 0.6377 GB, free: 6.277 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002271/1.381, allocations: 0.4961 MB / 0.6382 GB, free: 5.781 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004647/1.386, allocations: 277.7 kB / 0.6385 GB, free: 5.484 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.611e-05/1.386, allocations: 49.81 kB / 0.6385 GB, free: 5.438 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001066/1.386, allocations: 59.94 kB / 0.6386 GB, free: 5.379 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001875/1.388, allocations: 0.9848 MB / 0.6395 GB, free: 4.316 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.934e-05/1.388, allocations: 0 / 0.6395 GB, free: 4.316 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.585e-05/1.388, allocations: 28 kB / 0.6396 GB, free: 4.289 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.941e-05/1.388, allocations: 31.92 kB / 0.6396 GB, free: 4.258 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001485/1.39, allocations: 0.7123 MB / 0.6403 GB, free: 3.551 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0038/1.394, allocations: 2.776 MB / 0.643 GB, free: 0.6797 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006927/1.394, allocations: 265.1 kB / 0.6432 GB, free: 412 kB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006025/1.395, allocations: 157.7 kB / 0.6434 GB, free: 248 kB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001307/1.396, allocations: 0.8726 MB / 0.6442 GB, free: 15.35 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.131e-05/1.396, allocations: 38.56 kB / 0.6443 GB, free: 15.3 MB / 494.1 MB Notification: Performance of pre-optimization done (n=71): time 1.963e-06/1.396, allocations: 0 / 0.6443 GB, free: 15.3 MB / 494.1 MB Notification: Performance of matching and sorting (n=71): time 0.00174/1.398, allocations: 0.6012 MB / 0.6449 GB, free: 14.7 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.397e-05/1.398, allocations: 81.11 kB / 0.6449 GB, free: 14.6 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002123/1.398, allocations: 190.5 kB / 0.6451 GB, free: 14.4 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.264e-05/1.398, allocations: 29.7 kB / 0.6452 GB, free: 14.37 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000241/1.399, allocations: 292.4 kB / 0.6454 GB, free: 14.07 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002148/1.399, allocations: 249.7 kB / 0.6457 GB, free: 13.83 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001456/1.399, allocations: 93.97 kB / 0.6458 GB, free: 13.73 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.000252/1.399, allocations: 346.8 kB / 0.6461 GB, free: 13.38 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002511/1.399, allocations: 117.3 kB / 0.6462 GB, free: 13.27 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004402/1.4, allocations: 307.9 kB / 0.6465 GB, free: 12.89 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007429/1.401, allocations: 477 kB / 0.647 GB, free: 12.35 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.829e-06/1.401, allocations: 0 / 0.647 GB, free: 12.35 MB / 494.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.0009283/1.402, allocations: 492.3 kB / 0.6474 GB, free: 11.86 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.737e-05/1.402, allocations: 11.94 kB / 0.6474 GB, free: 11.85 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.392e-05/1.402, allocations: 4 kB / 0.6474 GB, free: 11.84 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.489e-05/1.402, allocations: 8 kB / 0.6474 GB, free: 11.84 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002464/1.402, allocations: 67.91 kB / 0.6475 GB, free: 11.77 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.962e-05/1.402, allocations: 16.45 kB / 0.6475 GB, free: 11.75 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002588/1.402, allocations: 63.52 kB / 0.6476 GB, free: 11.69 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.169e-05/1.402, allocations: 20 kB / 0.6476 GB, free: 11.67 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.0002807/1.402, allocations: 193.7 kB / 0.6478 GB, free: 11.47 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.425e-05/1.403, allocations: 31.75 kB / 0.6478 GB, free: 11.44 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.873e-05/1.403, allocations: 26.64 kB / 0.6478 GB, free: 11.41 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.466e-06/1.403, allocations: 4 kB / 0.6478 GB, free: 11.41 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.783e-06/1.403, allocations: 0 / 0.6478 GB, free: 11.41 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.867e-06/1.403, allocations: 0 / 0.6478 GB, free: 11.41 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007094/1.403, allocations: 440 kB / 0.6483 GB, free: 10.94 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.13e-06/1.403, allocations: 4 kB / 0.6483 GB, free: 10.93 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001224/1.403, allocations: 31.98 kB / 0.6483 GB, free: 10.9 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.392e-06/1.404, allocations: 3.938 kB / 0.6483 GB, free: 10.9 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.068e-05/1.404, allocations: 8.188 kB / 0.6483 GB, free: 10.89 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.605e-06/1.404, allocations: 0 / 0.6483 GB, free: 10.89 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/1.404, allocations: 7.922 kB / 0.6483 GB, free: 10.88 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007214/1.404, allocations: 0.5061 MB / 0.6488 GB, free: 10.36 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.416e-05/1.404, allocations: 35.62 kB / 0.6489 GB, free: 10.32 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.011e-05/1.404, allocations: 11.94 kB / 0.6489 GB, free: 10.31 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001813/1.405, allocations: 7.984 kB / 0.6489 GB, free: 10.3 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.435e-05/1.405, allocations: 23.97 kB / 0.6489 GB, free: 10.28 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.695e-05/1.405, allocations: 4 kB / 0.6489 GB, free: 10.28 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001216/1.405, allocations: 124.2 kB / 0.649 GB, free: 10.16 MB / 494.1 MB Notification: Performance of sort global known variables: time 7e-08/1.405, allocations: 0 / 0.649 GB, free: 10.16 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.000733/1.405, allocations: 191.5 kB / 0.6492 GB, free: 9.969 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.001623/1.407, allocations: 1.248 MB / 0.6504 GB, free: 8.688 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001032/1.408, allocations: 0.5566 MB / 0.651 GB, free: 8.113 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/1.408, allocations: 0 / 0.651 GB, free: 8.113 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005712/1.409, allocations: 467.8 kB / 0.6514 GB, free: 7.582 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001197/1.41, allocations: 192.9 kB / 0.6516 GB, free: 7.395 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005743/1.416, allocations: 3.628 MB / 0.6551 GB, free: 3.531 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000558/1.416, allocations: 352.7 kB / 0.6555 GB, free: 3.156 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.000689/1.417, allocations: 257.9 kB / 0.6557 GB, free: 2.906 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004201/1.417, allocations: 279.3 kB / 0.656 GB, free: 2.633 MB / 494.1 MB Notification: Performance of SimCode: time 8.72e-07/1.417, allocations: 7.938 kB / 0.656 GB, free: 2.625 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05651/1.474, allocations: 19.06 MB / 0.6746 GB, free: 15.64 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.62/13.09, allocations: 3.984 kB / 0.6746 GB, free: 15.64 MB / 0.5137 GB " [Timeout remaining time 647] (rm -f ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesExplicit.pipe ; mkfifo ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesExplicit.pipe ; head -c 1048576 < ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesExplicit.pipe >> ../files/ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesExplicit.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ExternalMedia_ExternalMedia_Test_CoolProp_CO2_Tabular_TestBasePropertiesExplicit_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 ExternalMedia_ExternalMedia_Test_CoolProp_CO2_Tabular_TestBasePropertiesExplicit.fmu > ExternalMedia_ExternalMedia.Test.CoolProp.CO2_Tabular.TestBasePropertiesExplicit.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 16.154046868905425] Failed to read output from testmodel.py, exit status != 0: 13.42743405373767 13.446362374 12.066227221 Calling exit ...