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.0013/0.0013, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.001447/0.001447, allocations: 216.2 kB / 22.25 MB, free: 5.129 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.473/1.473, allocations: 230.6 MB / 256 MB, free: 7.953 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.01326/0.01326, allocations: 2.796 MB / 315.2 MB, free: 288 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit,fileNamePrefix="ExternalMedia_ExternalMedia_Test_CoolProp_CO2_TestBasePropertiesImplicit",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.002055/0.002055, allocations: 75.88 kB / 438.7 MB, free: 13.57 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09431/0.09637, allocations: 54.17 MB / 492.9 MB, free: 7.305 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.CoolProp.CO2.TestBasePropertiesImplicit): time 0.2666/0.363, allocations: 51.35 MB / 0.5315 GB, free: 11.51 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.03024/0.3932, allocations: 29.21 MB / 0.56 GB, free: 4.797 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007774/0.394, allocations: 6.875 kB / 0.56 GB, free: 4.793 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002039/0.396, allocations: 0.6084 MB / 0.5606 GB, free: 4.297 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007283/0.4033, allocations: 2.254 MB / 0.5628 GB, free: 2.488 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.01225/0.4156, allocations: 2.925 MB / 0.5657 GB, free: 132 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001764/0.4173, allocations: 0.9456 MB / 0.5666 GB, free: 15.56 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000169/0.4175, allocations: 22.97 kB / 0.5666 GB, free: 15.55 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.471/0.8885, allocations: 51.34 MB / 0.6168 GB, free: 13.31 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007844/0.8893, allocations: 306.6 kB / 0.6171 GB, free: 13.01 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007395/0.89, allocations: 40 kB / 0.6171 GB, free: 12.97 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.2293/1.119, allocations: 27.08 MB / 0.6435 GB, free: 1.719 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002475/1.12, allocations: 119.5 kB / 0.6437 GB, free: 1.602 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007595/1.12, allocations: 334.4 kB / 0.644 GB, free: 1.273 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008362/1.129, allocations: 1.873 MB / 0.6458 GB, free: 15.39 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/1.129, allocations: 0 / 0.6458 GB, free: 15.39 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.493e-06/1.129, allocations: 0 / 0.6458 GB, free: 15.39 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.964e-05/1.129, allocations: 0 / 0.6458 GB, free: 15.39 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.002058/1.131, allocations: 1.049 MB / 0.6468 GB, free: 14.31 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.843e-05/1.131, allocations: 12.03 kB / 0.6468 GB, free: 14.3 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001538/1.131, allocations: 115.1 kB / 0.6469 GB, free: 14.18 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002131/1.133, allocations: 0.5 MB / 0.6474 GB, free: 13.68 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002359/1.135, allocations: 293.5 kB / 0.6477 GB, free: 13.37 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.768e-05/1.136, allocations: 41.88 kB / 0.6478 GB, free: 13.32 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.934e-05/1.136, allocations: 59.94 kB / 0.6478 GB, free: 13.27 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001687/1.137, allocations: 0.8766 MB / 0.6487 GB, free: 12.34 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.935e-05/1.137, allocations: 0 / 0.6487 GB, free: 12.34 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.085e-05/1.137, allocations: 32 kB / 0.6487 GB, free: 12.3 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.919e-05/1.137, allocations: 31.97 kB / 0.6487 GB, free: 12.27 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001475/1.139, allocations: 0.7162 MB / 0.6494 GB, free: 11.56 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00598/1.145, allocations: 5.094 MB / 0.6544 GB, free: 5.84 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007432/1.146, allocations: 273.1 kB / 0.6547 GB, free: 5.555 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002898/1.146, allocations: 157.7 kB / 0.6548 GB, free: 5.395 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001347/1.147, allocations: 0.9195 MB / 0.6557 GB, free: 4.453 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.329e-05/1.147, allocations: 38.56 kB / 0.6557 GB, free: 4.406 MB / 494.1 MB Notification: Performance of pre-optimization done (n=71): time 2.134e-06/1.147, allocations: 0 / 0.6557 GB, free: 4.406 MB / 494.1 MB Notification: Performance of matching and sorting (n=71): time 0.00162/1.149, allocations: 0.609 MB / 0.6563 GB, free: 3.793 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.675e-05/1.149, allocations: 77.11 kB / 0.6564 GB, free: 3.699 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002291/1.149, allocations: 190.5 kB / 0.6566 GB, free: 3.504 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.09e-05/1.149, allocations: 29.7 kB / 0.6566 GB, free: 3.469 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002213/1.149, allocations: 300.4 kB / 0.6569 GB, free: 3.168 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002009/1.15, allocations: 245.7 kB / 0.6571 GB, free: 2.926 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001406/1.15, allocations: 94.06 kB / 0.6572 GB, free: 2.824 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001768/1.15, allocations: 350.7 kB / 0.6576 GB, free: 2.473 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002448/1.15, allocations: 117.3 kB / 0.6577 GB, free: 2.359 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003917/1.151, allocations: 307.9 kB / 0.658 GB, free: 1.98 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006882/1.151, allocations: 477 kB / 0.6584 GB, free: 1.438 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.394e-06/1.151, allocations: 4 kB / 0.6584 GB, free: 1.434 MB / 494.1 MB Notification: Performance of matching and sorting (n=94) (initialization): time 0.0008897/1.152, allocations: 488.3 kB / 0.6589 GB, free: 0.9492 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.643e-05/1.152, allocations: 11.94 kB / 0.6589 GB, free: 0.9375 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.498e-05/1.152, allocations: 8 kB / 0.6589 GB, free: 0.9297 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.481e-05/1.152, allocations: 8 kB / 0.6589 GB, free: 0.9219 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003606/1.153, allocations: 79.89 kB / 0.659 GB, free: 0.8438 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008609/1.153, allocations: 1.184 MB / 0.6602 GB, free: 15.61 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002684/1.154, allocations: 63.5 kB / 0.6602 GB, free: 15.55 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.559e-05/1.154, allocations: 16 kB / 0.6602 GB, free: 15.54 MB / 0.4981 GB 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.0002758/1.154, allocations: 197.9 kB / 0.6604 GB, free: 15.33 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.755e-05/1.154, allocations: 27.81 kB / 0.6605 GB, free: 15.3 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.081e-05/1.154, allocations: 34.58 kB / 0.6605 GB, free: 15.27 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.522e-06/1.154, allocations: 4 kB / 0.6605 GB, free: 15.27 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.538e-06/1.154, allocations: 3.938 kB / 0.6605 GB, free: 15.27 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.679e-06/1.154, allocations: 0 / 0.6605 GB, free: 15.27 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007329/1.155, allocations: 479.9 kB / 0.6609 GB, free: 14.75 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.418e-06/1.155, allocations: 0 / 0.6609 GB, free: 14.75 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000188/1.155, allocations: 31.98 kB / 0.661 GB, free: 14.72 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.819e-06/1.155, allocations: 0 / 0.661 GB, free: 14.72 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.154e-05/1.155, allocations: 12 kB / 0.661 GB, free: 14.71 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007754/1.156, allocations: 1.176 MB / 0.6621 GB, free: 13.49 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.654e-06/1.156, allocations: 0 / 0.6621 GB, free: 13.49 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007789/1.157, allocations: 0.5141 MB / 0.6626 GB, free: 12.95 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 8.82e-05/1.157, allocations: 39.62 kB / 0.6627 GB, free: 12.91 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.854e-05/1.157, allocations: 8 kB / 0.6627 GB, free: 12.91 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001742/1.157, allocations: 4 kB / 0.6627 GB, free: 12.9 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.143e-05/1.157, allocations: 23.95 kB / 0.6627 GB, free: 12.88 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.941e-05/1.157, allocations: 4 kB / 0.6627 GB, free: 12.88 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001155/1.157, allocations: 131.2 kB / 0.6628 GB, free: 12.75 MB / 0.4981 GB Notification: Performance of sort global known variables: time 8.1e-08/1.157, allocations: 0 / 0.6628 GB, free: 12.75 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0007541/1.158, allocations: 191.5 kB / 0.663 GB, free: 12.56 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: 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.001634/1.16, allocations: 1.26 MB / 0.6643 GB, free: 11.27 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.001313/1.161, allocations: 0.5684 MB / 0.6648 GB, free: 10.69 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.125e-06/1.161, allocations: 0 / 0.6648 GB, free: 10.69 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0006576/1.162, allocations: 491.6 kB / 0.6653 GB, free: 10.13 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001119/1.163, allocations: 184.5 kB / 0.6655 GB, free: 9.957 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005336/1.168, allocations: 3.66 MB / 0.669 GB, free: 6.066 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007561/1.169, allocations: 0.9504 MB / 0.67 GB, free: 5.086 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0004953/1.169, allocations: 207.9 kB / 0.6702 GB, free: 4.883 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003616/1.17, allocations: 271.3 kB / 0.6704 GB, free: 4.617 MB / 0.4981 GB Notification: Performance of SimCode: time 8.11e-07/1.17, allocations: 4 kB / 0.6704 GB, free: 4.613 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0608/1.23, allocations: 19.61 MB / 0.6896 GB, free: 1.055 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.13/15.36, allocations: 3.938 kB / 0.6896 GB, free: 1.051 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: 24.130794729106128] Failed to read output from testmodel.py, exit status != 0: 15.717770316870883 15.73948313 14.606956364 Calling exit ...