Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001806/0.001806, allocations: 110.5 kB / 16.46 MB, free: 6.453 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002068/0.002068, allocations: 195.8 kB / 19.41 MB, free: 3.645 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.042/2.042, allocations: 225.6 MB / 247.8 MB, free: 13.94 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.01625/0.01625, allocations: 2.798 MB / 305.5 MB, free: 7 MB / 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic,fileNamePrefix="ExternalMedia_ExternalMedia_Test_TestMedium_TestBasePropertiesDynamic",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic,fileNamePrefix="ExternalMedia_ExternalMedia_Test_TestMedium_TestBasePropertiesDynamic",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001947/0.001947, allocations: 68.08 kB / 425 MB, free: 22.3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1265/0.1285, allocations: 52.96 MB / 477.9 MB, free: 1.238 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic): time 0.01219/0.1407, allocations: 8.387 MB / 486.3 MB, free: 8.809 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01045/0.1511, allocations: 9.478 MB / 495.8 MB, free: 15.3 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002106/0.1513, allocations: 0 / 495.8 MB, free: 15.3 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006337/0.152, allocations: 167 kB / 496 MB, free: 15.13 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004099/0.1524, allocations: 95.34 kB / 496.1 MB, free: 15.04 MB / 366.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.TestMedium.TestBasePropertiesDynamic.Medium.setSat_p_state' contains a call to impure function 'ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic.Medium.setSat_p'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/Media/BaseClasses/ExternalTwoPhaseMedium.mo:1132:25-1146:21:writable] Warning: Pure function 'ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic.Medium.setBubbleState' contains a call to impure function 'ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic.Medium.setState_ph'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/Media/BaseClasses/ExternalTwoPhaseMedium.mo:1148:25-1162:18:writable] Warning: Pure function 'ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic.Medium.setDewState' contains a call to impure function 'ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic.Medium.setState_ph'. Notification: Performance of NFTyping.typeClassSections: time 0.004955/0.1573, allocations: 1.46 MB / 497.5 MB, free: 13.57 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005104/0.1578, allocations: 262.8 kB / 497.8 MB, free: 13.32 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.728e-05/0.1579, allocations: 9.688 kB / 497.8 MB, free: 13.31 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005036/0.1629, allocations: 138.1 kB / 497.9 MB, free: 13.18 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002458/0.1632, allocations: 87.61 kB / 498 MB, free: 13.09 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.936e-05/0.1632, allocations: 8 kB / 498 MB, free: 13.09 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002249/0.1654, allocations: 471.8 kB / 498.5 MB, free: 12.62 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001065/0.1656, allocations: 39.89 kB / 498.5 MB, free: 12.59 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001294/0.1657, allocations: 87.53 kB / 498.6 MB, free: 12.5 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001394/0.1671, allocations: 0.4985 MB / 499.1 MB, free: 12 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.1671, allocations: 0 / 499.1 MB, free: 12 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1671, allocations: 0 / 499.1 MB, free: 12 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.382e-05/0.1671, allocations: 0 / 499.1 MB, free: 12 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.001052/0.1681, allocations: 0.5604 MB / 499.7 MB, free: 11.39 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.527e-05/0.1682, allocations: 8.031 kB / 499.7 MB, free: 11.38 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.74e-05/0.1683, allocations: 50.73 kB / 499.7 MB, free: 11.32 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003753/0.1686, allocations: 56.75 kB / 499.8 MB, free: 11.27 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002962/0.1689, allocations: 208.1 kB / 500 MB, free: 11.03 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.356e-05/0.169, allocations: 12.38 kB / 500 MB, free: 11.02 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.912e-05/0.169, allocations: 12.38 kB / 0.4883 GB, free: 11 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006026/0.1696, allocations: 239.1 kB / 0.4885 GB, free: 10.76 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.56e-05/0.1696, allocations: 4 kB / 0.4885 GB, free: 10.75 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.207e-05/0.1696, allocations: 4 kB / 0.4885 GB, free: 10.75 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.722e-05/0.1697, allocations: 8 kB / 0.4885 GB, free: 10.74 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005338/0.1702, allocations: 212.2 kB / 0.4887 GB, free: 10.54 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00101/0.1712, allocations: 0.6748 MB / 0.4894 GB, free: 9.801 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006712/0.1719, allocations: 218.5 kB / 0.4896 GB, free: 9.578 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002673/0.1721, allocations: 141.1 kB / 0.4897 GB, free: 9.438 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003556/0.1725, allocations: 331.2 kB / 0.4901 GB, free: 9.059 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.186e-05/0.1725, allocations: 34.56 kB / 0.4901 GB, free: 9.016 MB / 366.1 MB Notification: Performance of pre-optimization done (n=44): time 1.343e-06/0.1725, allocations: 0 / 0.4901 GB, free: 9.016 MB / 366.1 MB Notification: Performance of matching and sorting (n=48): time 0.003124/0.1757, allocations: 1.241 MB / 0.4913 GB, free: 7.719 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.713e-05/0.1757, allocations: 59.39 kB / 0.4914 GB, free: 7.648 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001417/0.1759, allocations: 117.8 kB / 0.4915 GB, free: 7.523 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.113e-05/0.1759, allocations: 29.7 kB / 0.4915 GB, free: 7.488 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.029e-05/0.176, allocations: 108.9 kB / 0.4916 GB, free: 7.379 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001366/0.1761, allocations: 158.5 kB / 0.4917 GB, free: 7.223 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001078/0.1762, allocations: 69.64 kB / 0.4918 GB, free: 7.148 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002/0.1764, allocations: 334.8 kB / 0.4921 GB, free: 6.812 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002608/0.1767, allocations: 124.5 kB / 0.4923 GB, free: 6.691 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003186/0.177, allocations: 188.4 kB / 0.4924 GB, free: 6.492 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006217/0.1776, allocations: 336 kB / 0.4928 GB, free: 6.145 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.362e-06/0.1776, allocations: 0 / 0.4928 GB, free: 6.145 MB / 366.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.001224/0.1788, allocations: 489.5 kB / 0.4932 GB, free: 5.66 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.061e-05/0.1789, allocations: 8 kB / 0.4932 GB, free: 5.652 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.344e-06/0.1789, allocations: 0 / 0.4932 GB, free: 5.652 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008062/0.1797, allocations: 156.8 kB / 0.4934 GB, free: 5.496 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001464/0.1798, allocations: 35.91 kB / 0.4934 GB, free: 5.461 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009832/0.1808, allocations: 0.666 MB / 0.4941 GB, free: 4.77 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001486/0.181, allocations: 12 kB / 0.4941 GB, free: 4.758 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.942e-05/0.181, allocations: 19.97 kB / 0.4941 GB, free: 4.738 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 3 (medium.phaseOutput,medium.state.phase,medium.phaseInput) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(3,8)} Notification: Performance of prepare postOptimizeDAE: time 0.0001816/0.1812, allocations: 129.8 kB / 0.4942 GB, free: 4.602 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.224e-05/0.1812, allocations: 19.86 kB / 0.4942 GB, free: 4.582 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.963e-05/0.1813, allocations: 22.22 kB / 0.4943 GB, free: 4.555 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.561e-05/0.1813, allocations: 11.98 kB / 0.4943 GB, free: 4.543 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.223e-06/0.1813, allocations: 4 kB / 0.4943 GB, free: 4.539 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.088e-06/0.1813, allocations: 3.938 kB / 0.4943 GB, free: 4.535 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004253/0.1818, allocations: 302.2 kB / 0.4946 GB, free: 4.188 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.1818, allocations: 0 / 0.4946 GB, free: 4.188 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002786/0.182, allocations: 51.91 kB / 0.4946 GB, free: 4.137 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003671/0.1824, allocations: 72.77 kB / 0.4947 GB, free: 4.062 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.83e-05/0.1824, allocations: 7.938 kB / 0.4947 GB, free: 4.055 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002804/0.1852, allocations: 2.933 MB / 0.4976 GB, free: 0.8203 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.1852, allocations: 4.094 kB / 0.4976 GB, free: 0.8164 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001267/0.1865, allocations: 0.6976 MB / 0.4982 GB, free: 104 kB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001124/0.1866, allocations: 93.16 kB / 0.4983 GB, free: 15.99 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.369e-05/0.1866, allocations: 4 kB / 0.4983 GB, free: 15.98 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001675/0.1868, allocations: 16.05 kB / 0.4983 GB, free: 15.97 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001012/0.1869, allocations: 31.66 kB / 0.4984 GB, free: 15.94 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.712e-05/0.1869, allocations: 4 kB / 0.4984 GB, free: 15.94 MB / 382.1 MB Notification: Performance of sorting global known variables: time 7.734e-05/0.187, allocations: 91.27 kB / 0.4985 GB, free: 15.85 MB / 382.1 MB Notification: Performance of sort global known variables: time 6e-08/0.187, allocations: 0 / 0.4985 GB, free: 15.85 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004249/0.1874, allocations: 67.94 kB / 0.4985 GB, free: 15.78 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (medium.p,medium.h) * Number of discrete variables: 2 (medium.state.phase,medium.phaseOutput) * 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: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 1 * 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): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001919/0.1893, allocations: 1.255 MB / 0.4998 GB, free: 14.51 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0009208/0.1903, allocations: 339.1 kB / 0.5001 GB, free: 14.18 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.1903, allocations: 320 / 0.5001 GB, free: 14.18 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006266/0.1909, allocations: 298.9 kB / 0.5004 GB, free: 13.87 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006545/0.1916, allocations: 95.7 kB / 0.5005 GB, free: 13.78 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005281/0.1968, allocations: 2.963 MB / 0.5034 GB, free: 10.69 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004873/0.1973, allocations: 0.737 MB / 0.5041 GB, free: 9.922 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003024/0.1976, allocations: 109.3 kB / 0.5042 GB, free: 9.816 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001169/0.1977, allocations: 55.42 kB / 0.5042 GB, free: 9.762 MB / 382.1 MB Notification: Performance of SimCode: time 9.91e-07/0.1977, allocations: 0 / 0.5042 GB, free: 9.762 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04386/0.2416, allocations: 7.938 MB / 0.512 GB, free: 2.031 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.69/13.93, allocations: 3.938 kB / 0.512 GB, free: 2.027 MB / 382.1 MB " [Timeout remaining time 646] (rm -f ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic.pipe ; mkfifo ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic.pipe ; head -c 1048576 < ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic.pipe >> ../files/ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ExternalMedia_ExternalMedia_Test_TestMedium_TestBasePropertiesDynamic_fmu --startTime=0 --stopTime=80 --stepSize=0.1 --timeout=50 --tolerance=1e-07 ExternalMedia_ExternalMedia_Test_TestMedium_TestBasePropertiesDynamic.fmu > ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 17.701320255640894] Failed to read output from testmodel.py, exit status != 0: 14.24246095912531 14.438330948 14.268540435 Calling exit ...