Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit.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.001373/0.001373, allocations: 101.3 kB / 19.73 MB, free: 2.133 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.001625/0.001625, allocations: 223 kB / 23.03 MB, free: 4.945 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.479/1.479, allocations: 230.6 MB / 256.8 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.02514/0.02514, allocations: 2.806 MB / 316 MB, free: 112 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.TestBasePropertiesImplicit,fileNamePrefix="ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestBasePropertiesImplicit",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit,fileNamePrefix="ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestBasePropertiesImplicit",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.001985/0.001985, allocations: 63.91 kB / 439.4 MB, free: 13.33 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1059/0.1079, allocations: 54.17 MB / 493.6 MB, free: 7.066 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit): time 0.2512/0.3591, allocations: 45.38 MB / 0.5264 GB, free: 14.43 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02749/0.3866, allocations: 25.15 MB / 0.5509 GB, free: 12.94 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001024/0.3876, allocations: 6.844 kB / 0.5509 GB, free: 12.93 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002086/0.3897, allocations: 0.4961 MB / 0.5514 GB, free: 12.55 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00858/0.3983, allocations: 2.187 MB / 0.5535 GB, free: 10.81 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.TestBasePropertiesImplicit.medium1.Medium.setSat_p_state' contains a call to impure function 'ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit.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.TestBasePropertiesImplicit.medium2.Medium.setSat_p_state' contains a call to impure function 'ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit.medium2.Medium.setSat_p'. Notification: Performance of NFTyping.typeClassSections: time 0.01058/0.4089, allocations: 2.894 MB / 0.5564 GB, free: 8.484 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001476/0.4103, allocations: 0.9445 MB / 0.5573 GB, free: 7.918 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.652e-05/0.4104, allocations: 26.69 kB / 0.5573 GB, free: 7.906 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.4537/0.8641, allocations: 51.35 MB / 0.6075 GB, free: 6.309 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008436/0.8649, allocations: 310.6 kB / 0.6078 GB, free: 6.004 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 9.969e-05/0.865, allocations: 40 kB / 0.6078 GB, free: 5.965 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2283/1.093, allocations: 27.09 MB / 0.6342 GB, free: 10.7 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002893/1.094, allocations: 103.5 kB / 0.6343 GB, free: 10.6 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006764/1.094, allocations: 282.7 kB / 0.6346 GB, free: 10.32 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007005/1.101, allocations: 1.858 MB / 0.6364 GB, free: 8.457 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.781e-06/1.101, allocations: 0 / 0.6364 GB, free: 8.457 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.964e-06/1.101, allocations: 0 / 0.6364 GB, free: 8.457 MB / 478.1 MB Notification: Performance of Transformations before backend: time 9.788e-06/1.101, allocations: 0 / 0.6364 GB, free: 8.457 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.001681/1.103, allocations: 1.049 MB / 0.6375 GB, free: 7.375 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.437e-05/1.103, allocations: 12.03 kB / 0.6375 GB, free: 7.363 MB / 478.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.797e-05/1.103, allocations: 17.5 kB / 0.6375 GB, free: 7.348 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001364/1.103, allocations: 123 kB / 0.6376 GB, free: 7.219 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002102/1.105, allocations: 0.4961 MB / 0.6381 GB, free: 6.723 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002124/1.107, allocations: 282.1 kB / 0.6384 GB, free: 6.422 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.376e-05/1.107, allocations: 49.31 kB / 0.6384 GB, free: 6.371 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.449e-05/1.108, allocations: 55.94 kB / 0.6385 GB, free: 6.316 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001777/1.109, allocations: 0.9809 MB / 0.6394 GB, free: 5.258 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.91e-05/1.109, allocations: 4 kB / 0.6394 GB, free: 5.254 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.658e-05/1.109, allocations: 27.94 kB / 0.6394 GB, free: 5.227 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.268e-05/1.109, allocations: 31.98 kB / 0.6395 GB, free: 5.195 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001408/1.111, allocations: 0.7162 MB / 0.6402 GB, free: 4.484 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003637/1.115, allocations: 2.795 MB / 0.6429 GB, free: 1.59 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007472/1.115, allocations: 273.1 kB / 0.6432 GB, free: 1.305 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002819/1.116, allocations: 153.7 kB / 0.6433 GB, free: 1.148 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001334/1.117, allocations: 0.8961 MB / 0.6442 GB, free: 236 kB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.87e-05/1.117, allocations: 38.5 kB / 0.6442 GB, free: 188 kB / 478.1 MB Notification: Performance of pre-optimization done (n=71): time 2.555e-06/1.117, allocations: 0 / 0.6442 GB, free: 188 kB / 478.1 MB Notification: Performance of matching and sorting (n=71): time 0.001784/1.119, allocations: 0.6012 MB / 0.6448 GB, free: 15.58 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.649e-05/1.119, allocations: 81.11 kB / 0.6449 GB, free: 15.48 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000265/1.119, allocations: 194.5 kB / 0.6451 GB, free: 15.28 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 4.587e-05/1.119, allocations: 29.7 kB / 0.6451 GB, free: 15.25 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002673/1.119, allocations: 296.4 kB / 0.6454 GB, free: 14.95 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002135/1.12, allocations: 237.8 kB / 0.6456 GB, free: 14.71 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001578/1.12, allocations: 93.97 kB / 0.6457 GB, free: 14.61 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001869/1.12, allocations: 342.8 kB / 0.646 GB, free: 14.27 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002286/1.12, allocations: 129.2 kB / 0.6462 GB, free: 14.14 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003805/1.121, allocations: 300 kB / 0.6464 GB, free: 13.78 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006853/1.121, allocations: 480.9 kB / 0.6469 GB, free: 13.23 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.38e-06/1.121, allocations: 0 / 0.6469 GB, free: 13.23 MB / 494.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.0008614/1.122, allocations: 488.3 kB / 0.6474 GB, free: 12.75 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.959e-05/1.122, allocations: 11.94 kB / 0.6474 GB, free: 12.73 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.534e-05/1.122, allocations: 4 kB / 0.6474 GB, free: 12.73 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.935e-05/1.122, allocations: 8 kB / 0.6474 GB, free: 12.72 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004121/1.123, allocations: 96.42 kB / 0.6475 GB, free: 12.63 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008081/1.123, allocations: 1.18 MB / 0.6486 GB, free: 11.4 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002677/1.124, allocations: 63.5 kB / 0.6487 GB, free: 11.34 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.051e-05/1.124, allocations: 20 kB / 0.6487 GB, free: 11.32 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): 34 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003084/1.124, allocations: 201.6 kB / 0.6489 GB, free: 11.11 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.927e-05/1.124, allocations: 27.81 kB / 0.6489 GB, free: 11.09 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.135e-05/1.124, allocations: 30.64 kB / 0.649 GB, free: 11.05 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.103e-05/1.124, allocations: 3.938 kB / 0.649 GB, free: 11.05 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.673e-06/1.124, allocations: 4.188 kB / 0.649 GB, free: 11.05 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.156e-06/1.124, allocations: 4 kB / 0.649 GB, free: 11.04 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006661/1.125, allocations: 440 kB / 0.6494 GB, free: 10.57 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.456e-06/1.125, allocations: 0 / 0.6494 GB, free: 10.57 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001967/1.125, allocations: 39.97 kB / 0.6494 GB, free: 10.53 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.123e-06/1.125, allocations: 4.188 kB / 0.6494 GB, free: 10.53 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.261e-05/1.125, allocations: 8 kB / 0.6494 GB, free: 10.52 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007204/1.126, allocations: 1.172 MB / 0.6506 GB, free: 9.301 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/1.126, allocations: 4.188 kB / 0.6506 GB, free: 9.297 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007233/1.127, allocations: 0.5178 MB / 0.6511 GB, free: 8.762 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.606e-05/1.127, allocations: 31.69 kB / 0.6511 GB, free: 8.73 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.573e-05/1.127, allocations: 8 kB / 0.6511 GB, free: 8.723 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000167/1.127, allocations: 7.984 kB / 0.6511 GB, free: 8.715 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.591e-05/1.127, allocations: 19.92 kB / 0.6512 GB, free: 8.695 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.101e-05/1.127, allocations: 7.938 kB / 0.6512 GB, free: 8.688 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001098/1.127, allocations: 127.2 kB / 0.6513 GB, free: 8.562 MB / 494.1 MB Notification: Performance of sort global known variables: time 1e-07/1.127, allocations: 0 / 0.6513 GB, free: 8.562 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0007483/1.128, allocations: 199.5 kB / 0.6515 GB, free: 8.367 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): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 2 systems {1, 1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001584/1.129, allocations: 1.252 MB / 0.6527 GB, free: 7.086 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.001452/1.131, allocations: 0.5684 MB / 0.6533 GB, free: 6.5 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/1.131, allocations: 3.938 kB / 0.6533 GB, free: 6.496 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006482/1.131, allocations: 479.7 kB / 0.6537 GB, free: 5.953 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001148/1.133, allocations: 192.5 kB / 0.6539 GB, free: 5.766 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004993/1.138, allocations: 3.666 MB / 0.6575 GB, free: 1.871 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004835/1.138, allocations: 360.7 kB / 0.6578 GB, free: 1.488 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0004865/1.139, allocations: 215.8 kB / 0.658 GB, free: 1.277 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000356/1.139, allocations: 271.3 kB / 0.6583 GB, free: 1.012 MB / 494.1 MB Notification: Performance of SimCode: time 6.31e-07/1.139, allocations: 3.938 kB / 0.6583 GB, free: 1.008 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04784/1.187, allocations: 19.63 MB / 0.6775 GB, free: 13.44 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.09/15.28, allocations: 11.8 kB / 0.6775 GB, free: 13.43 MB / 0.5137 GB " [Timeout remaining time 644] (rm -f ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit.pipe ; mkfifo ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit.pipe ; head -c 1048576 < ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit.pipe >> ../files/ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestBasePropertiesImplicit_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestBasePropertiesImplicit.fmu > ExternalMedia_ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 25.725691091967747] Failed to read output from testmodel.py, exit status != 0: 15.695731380954385 15.722564564 14.616187585 Calling exit ...