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.001419/0.001419, allocations: 114.3 kB / 18.94 MB, free: 2.957 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.001795/0.001795, allocations: 216.4 kB / 22.26 MB, free: 5.113 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.498/1.498, allocations: 230.6 MB / 256 MB, free: 8.031 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.01301/0.01301, allocations: 2.79 MB / 315.2 MB, free: 356 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.TestBasePropertiesTranscritical,fileNamePrefix="ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestBasePropertiesTranscritical",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical,fileNamePrefix="ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestBasePropertiesTranscritical",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.002282/0.002282, allocations: 63.91 kB / 438.7 MB, free: 13.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1068/0.1091, allocations: 54.18 MB / 492.9 MB, free: 7.422 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesTranscritical): time 0.2717/0.3808, allocations: 51.3 MB / 0.5314 GB, free: 11.67 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03305/0.4138, allocations: 29.2 MB / 0.56 GB, free: 5 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009369/0.4147, allocations: 6.469 kB / 0.56 GB, free: 4.996 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002281/0.417, allocations: 0.6189 MB / 0.5606 GB, free: 4.492 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007587/0.4246, allocations: 2.257 MB / 0.5628 GB, free: 2.68 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.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.01007/0.4347, allocations: 2.923 MB / 0.5656 GB, free: 332 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.00168/0.4364, allocations: 0.9416 MB / 0.5665 GB, free: 15.76 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001421/0.4365, allocations: 25.75 kB / 0.5666 GB, free: 15.74 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.469/0.9055, allocations: 51.34 MB / 0.6167 GB, free: 13.46 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008543/0.9064, allocations: 302.6 kB / 0.617 GB, free: 13.16 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000138/0.9065, allocations: 40 kB / 0.617 GB, free: 13.12 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2358/1.142, allocations: 27.08 MB / 0.6435 GB, free: 1.867 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002708/1.143, allocations: 111.5 kB / 0.6436 GB, free: 1.758 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000746/1.143, allocations: 330.5 kB / 0.6439 GB, free: 1.434 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008837/1.152, allocations: 1.866 MB / 0.6457 GB, free: 15.56 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.222e-06/1.152, allocations: 0 / 0.6457 GB, free: 15.56 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.363e-06/1.152, allocations: 0 / 0.6457 GB, free: 15.56 MB / 494.1 MB Notification: Performance of Transformations before backend: time 2.812e-05/1.152, allocations: 0 / 0.6457 GB, free: 15.56 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.002198/1.154, allocations: 1.061 MB / 0.6468 GB, free: 14.47 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.057e-05/1.155, allocations: 8.031 kB / 0.6468 GB, free: 14.46 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001799/1.155, allocations: 115 kB / 0.6469 GB, free: 14.34 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002235/1.157, allocations: 0.5 MB / 0.6474 GB, free: 13.84 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002763/1.16, allocations: 281.6 kB / 0.6476 GB, free: 13.54 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.671e-05/1.16, allocations: 49.88 kB / 0.6477 GB, free: 13.49 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000102/1.16, allocations: 59.92 kB / 0.6477 GB, free: 13.43 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001935/1.162, allocations: 0.8844 MB / 0.6486 GB, free: 12.5 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.895e-05/1.162, allocations: 0 / 0.6486 GB, free: 12.5 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.706e-05/1.162, allocations: 24 kB / 0.6486 GB, free: 12.47 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.053e-05/1.162, allocations: 35.97 kB / 0.6487 GB, free: 12.44 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001427/1.163, allocations: 0.7123 MB / 0.6494 GB, free: 11.73 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005026/1.168, allocations: 4.92 MB / 0.6542 GB, free: 6.207 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007839/1.169, allocations: 289.1 kB / 0.6544 GB, free: 5.906 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003364/1.17, allocations: 161.4 kB / 0.6546 GB, free: 5.742 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001293/1.171, allocations: 0.9159 MB / 0.6555 GB, free: 4.805 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.036e-05/1.171, allocations: 42.5 kB / 0.6555 GB, free: 4.754 MB / 494.1 MB Notification: Performance of pre-optimization done (n=74): time 1.653e-06/1.171, allocations: 0 / 0.6555 GB, free: 4.754 MB / 494.1 MB Notification: Performance of matching and sorting (n=74): time 0.002604/1.173, allocations: 0.6358 MB / 0.6561 GB, free: 4.113 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.23e-05/1.174, allocations: 81.11 kB / 0.6562 GB, free: 4.016 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000203/1.174, allocations: 174.1 kB / 0.6564 GB, free: 3.836 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.109e-05/1.174, allocations: 29.7 kB / 0.6564 GB, free: 3.801 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002016/1.174, allocations: 284.5 kB / 0.6567 GB, free: 3.516 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002164/1.174, allocations: 253.7 kB / 0.6569 GB, free: 3.266 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001448/1.174, allocations: 93.97 kB / 0.657 GB, free: 3.164 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001622/1.174, allocations: 342.8 kB / 0.6573 GB, free: 2.82 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002902/1.175, allocations: 125.2 kB / 0.6575 GB, free: 2.699 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004361/1.175, allocations: 297.3 kB / 0.6578 GB, free: 2.34 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007731/1.176, allocations: 473.5 kB / 0.6582 GB, free: 1.809 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.868e-06/1.176, allocations: 0 / 0.6582 GB, free: 1.809 MB / 494.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.0009698/1.177, allocations: 476.8 kB / 0.6587 GB, free: 1.336 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.39e-05/1.177, allocations: 15.97 kB / 0.6587 GB, free: 1.32 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.167e-05/1.177, allocations: 4 kB / 0.6587 GB, free: 1.316 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.25e-05/1.177, allocations: 8 kB / 0.6587 GB, free: 1.309 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002802/1.177, allocations: 67.84 kB / 0.6587 GB, free: 1.242 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.476e-05/1.177, allocations: 8 kB / 0.6588 GB, free: 1.234 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002641/1.178, allocations: 63.5 kB / 0.6588 GB, free: 1.172 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.841e-05/1.178, allocations: 19.98 kB / 0.6588 GB, free: 1.152 MB / 494.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.00028/1.178, allocations: 205.6 kB / 0.659 GB, free: 0.9414 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.17e-05/1.178, allocations: 35.7 kB / 0.6591 GB, free: 0.9062 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.414e-05/1.178, allocations: 29.95 kB / 0.6591 GB, free: 0.8789 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.727e-06/1.178, allocations: 4 kB / 0.6591 GB, free: 0.875 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/1.178, allocations: 0 / 0.6591 GB, free: 0.875 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.588e-06/1.178, allocations: 0 / 0.6591 GB, free: 0.875 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000724/1.179, allocations: 468.1 kB / 0.6595 GB, free: 384 kB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.975e-06/1.179, allocations: 0 / 0.6595 GB, free: 384 kB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001665/1.179, allocations: 31.98 kB / 0.6596 GB, free: 352 kB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.644e-06/1.179, allocations: 3.938 kB / 0.6596 GB, free: 348 kB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.893e-05/1.179, allocations: 8 kB / 0.6596 GB, free: 340 kB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.871e-06/1.179, allocations: 7.938 kB / 0.6596 GB, free: 332 kB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/1.179, allocations: 3.938 kB / 0.6596 GB, free: 328 kB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008416/1.18, allocations: 0.5293 MB / 0.6601 GB, free: 15.77 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 7.35e-05/1.18, allocations: 43.62 kB / 0.6602 GB, free: 15.73 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.591e-05/1.18, allocations: 3.938 kB / 0.6602 GB, free: 15.72 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002226/1.18, allocations: 12.36 kB / 0.6602 GB, free: 15.71 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.695e-05/1.18, allocations: 27.95 kB / 0.6602 GB, free: 15.68 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.024e-05/1.18, allocations: 12 kB / 0.6602 GB, free: 15.67 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001016/1.18, allocations: 112.1 kB / 0.6603 GB, free: 15.56 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.01e-07/1.18, allocations: 7.875 kB / 0.6603 GB, free: 15.55 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0007334/1.181, allocations: 199.5 kB / 0.6605 GB, free: 15.36 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: 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.001671/1.183, allocations: 1.263 MB / 0.6617 GB, free: 14.07 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0009693/1.184, allocations: 0.5519 MB / 0.6623 GB, free: 13.5 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/1.184, allocations: 0.6875 kB / 0.6623 GB, free: 13.5 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0006106/1.184, allocations: 476.2 kB / 0.6627 GB, free: 12.96 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001162/1.186, allocations: 186.8 kB / 0.6629 GB, free: 12.78 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005617/1.191, allocations: 3.626 MB / 0.6665 GB, free: 8.941 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006887/1.192, allocations: 0.9552 MB / 0.6674 GB, free: 7.957 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0005913/1.192, allocations: 265.8 kB / 0.6676 GB, free: 7.699 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003696/1.193, allocations: 275.3 kB / 0.6679 GB, free: 7.43 MB / 0.4981 GB Notification: Performance of SimCode: time 9.62e-07/1.193, allocations: 0 / 0.6679 GB, free: 7.43 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0596/1.252, allocations: 19.82 MB / 0.6873 GB, free: 3.645 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.35/13.6, allocations: 4.062 kB / 0.6873 GB, free: 3.641 MB / 0.5137 GB " [Timeout remaining time 646] (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: 17.938901546876878] Failed to read output from testmodel.py, exit status != 0: 13.951733040856197 13.971466362 12.815573148 Calling exit ...