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.001988/0.001988, allocations: 114.8 kB / 18.89 MB, free: 2.898 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.002201/0.002201, allocations: 199.8 kB / 22.17 MB, free: 5.211 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 1.499/1.499, allocations: 225.6 MB / 250.9 MB, free: 13.27 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.01455/0.01455, allocations: 2.806 MB / 308.9 MB, free: 5.961 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: translateModel(ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic,tolerance=1e-07,outputFormat="empty",numberOfIntervals=800,variableFilter="",fileNamePrefix="ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic") translateModel(ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic,tolerance=1e-07,outputFormat="empty",numberOfIntervals=800,variableFilter="",fileNamePrefix="ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001979/0.001979, allocations: 64.14 kB / 430.4 MB, free: 20.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1032/0.1051, allocations: 52.95 MB / 483.4 MB, free: 15.55 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic): time 0.01134/0.1165, allocations: 8.441 MB / 491.8 MB, free: 7.062 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00926/0.1257, allocations: 9.498 MB / 0.4896 GB, free: 13.53 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001591/0.1259, allocations: 0 / 0.4896 GB, free: 13.53 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005484/0.1265, allocations: 163 kB / 0.4897 GB, free: 13.37 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003406/0.1268, allocations: 99.3 kB / 0.4898 GB, free: 13.27 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.003602/0.1304, allocations: 1.46 MB / 0.4912 GB, free: 11.8 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003903/0.1308, allocations: 262.8 kB / 0.4915 GB, free: 11.55 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.026e-05/0.1308, allocations: 5.688 kB / 0.4915 GB, free: 11.54 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004199/0.135, allocations: 142.3 kB / 0.4916 GB, free: 11.41 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001845/0.1352, allocations: 83.56 kB / 0.4917 GB, free: 11.33 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.694e-05/0.1353, allocations: 12 kB / 0.4917 GB, free: 11.32 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001544/0.1368, allocations: 475.9 kB / 0.4922 GB, free: 10.85 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 7.684e-05/0.1369, allocations: 31.91 kB / 0.4922 GB, free: 10.82 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001139/0.137, allocations: 95.47 kB / 0.4923 GB, free: 10.73 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001092/0.1381, allocations: 0.4946 MB / 0.4928 GB, free: 10.23 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.1381, allocations: 0 / 0.4928 GB, free: 10.23 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.1381, allocations: 0 / 0.4928 GB, free: 10.23 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.898e-06/0.1381, allocations: 0 / 0.4928 GB, free: 10.23 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.001003/0.1391, allocations: 0.5527 MB / 0.4933 GB, free: 9.629 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.252e-05/0.1391, allocations: 12.03 kB / 0.4933 GB, free: 9.617 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003578/0.1395, allocations: 52.75 kB / 0.4934 GB, free: 9.566 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002659/0.1398, allocations: 208.1 kB / 0.4936 GB, free: 9.324 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.829e-05/0.1398, allocations: 12.31 kB / 0.4936 GB, free: 9.312 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.435e-05/0.1398, allocations: 12.38 kB / 0.4936 GB, free: 9.301 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005578/0.1404, allocations: 247.3 kB / 0.4938 GB, free: 9.047 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.014e-05/0.1404, allocations: 0 / 0.4938 GB, free: 9.047 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.046e-05/0.1404, allocations: 8 kB / 0.4938 GB, free: 9.039 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.509e-05/0.1404, allocations: 11.98 kB / 0.4939 GB, free: 9.027 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005228/0.141, allocations: 200.2 kB / 0.494 GB, free: 8.832 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000913/0.1419, allocations: 0.6747 MB / 0.4947 GB, free: 8.098 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006461/0.1425, allocations: 218.5 kB / 0.4949 GB, free: 7.875 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002581/0.1428, allocations: 141.2 kB / 0.495 GB, free: 7.734 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003368/0.1431, allocations: 327.2 kB / 0.4954 GB, free: 7.359 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.162e-05/0.1431, allocations: 34.56 kB / 0.4954 GB, free: 7.316 MB / 366.1 MB Notification: Performance of pre-optimization done (n=44): time 1.703e-06/0.1431, allocations: 0 / 0.4954 GB, free: 7.316 MB / 366.1 MB Notification: Performance of matching and sorting (n=48): time 0.003146/0.1463, allocations: 1.243 MB / 0.4966 GB, free: 6.02 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.263e-05/0.1463, allocations: 59.41 kB / 0.4967 GB, free: 5.949 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001316/0.1465, allocations: 121.8 kB / 0.4968 GB, free: 5.82 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.24e-05/0.1465, allocations: 29.7 kB / 0.4968 GB, free: 5.785 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.085e-05/0.1466, allocations: 104.9 kB / 0.4969 GB, free: 5.68 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001418/0.1467, allocations: 162.5 kB / 0.4971 GB, free: 5.52 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001019/0.1468, allocations: 65.64 kB / 0.4971 GB, free: 5.449 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001827/0.147, allocations: 326.8 kB / 0.4974 GB, free: 5.121 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002661/0.1473, allocations: 128.5 kB / 0.4976 GB, free: 4.996 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003325/0.1476, allocations: 184.5 kB / 0.4977 GB, free: 4.801 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006174/0.1482, allocations: 347.8 kB / 0.4981 GB, free: 4.441 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.1482, allocations: 0 / 0.4981 GB, free: 4.441 MB / 366.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.001189/0.1494, allocations: 477.9 kB / 0.4985 GB, free: 3.965 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.107e-05/0.1495, allocations: 7.938 kB / 0.4985 GB, free: 3.957 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.065e-05/0.1495, allocations: 4.156 kB / 0.4985 GB, free: 3.953 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007762/0.1502, allocations: 160.7 kB / 0.4987 GB, free: 3.793 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001526/0.1504, allocations: 35.92 kB / 0.4987 GB, free: 3.758 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007647/0.1512, allocations: 0.6694 MB / 0.4994 GB, free: 3.062 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001628/0.1513, allocations: 16.03 kB / 0.4994 GB, free: 3.047 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.3e-05/0.1513, allocations: 19.94 kB / 0.4994 GB, free: 3.027 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.0001576/0.1515, allocations: 129.8 kB / 0.4995 GB, free: 2.891 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.128e-05/0.1516, allocations: 19.95 kB / 0.4996 GB, free: 2.871 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.322e-05/0.1516, allocations: 30.19 kB / 0.4996 GB, free: 2.844 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.239e-05/0.1517, allocations: 8 kB / 0.4996 GB, free: 2.836 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.055e-06/0.1517, allocations: 0 / 0.4996 GB, free: 2.836 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.743e-06/0.1517, allocations: 3.984 kB / 0.4996 GB, free: 2.832 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004116/0.1521, allocations: 298.2 kB / 0.4999 GB, free: 2.488 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.913e-06/0.1521, allocations: 0 / 0.4999 GB, free: 2.488 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002735/0.1524, allocations: 47.97 kB / 0.4999 GB, free: 2.441 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003376/0.1527, allocations: 60.78 kB / 0.5 GB, free: 2.379 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.496e-05/0.1527, allocations: 15.92 kB / 0.5 GB, free: 2.363 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0025/0.1552, allocations: 2.922 MB / 0.5029 GB, free: 15.14 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.1552, allocations: 0 / 0.5029 GB, free: 15.14 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001196/0.1564, allocations: 0.7093 MB / 0.5035 GB, free: 14.41 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.023e-05/0.1565, allocations: 101 kB / 0.5036 GB, free: 14.3 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.369e-05/0.1565, allocations: 4 kB / 0.5036 GB, free: 14.29 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001602/0.1567, allocations: 4 kB / 0.5036 GB, free: 14.29 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.111e-05/0.1567, allocations: 27.91 kB / 0.5037 GB, free: 14.26 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.034e-05/0.1568, allocations: 16.05 kB / 0.5037 GB, free: 14.25 MB / 382.1 MB Notification: Performance of sorting global known variables: time 6.244e-05/0.1568, allocations: 91.27 kB / 0.5038 GB, free: 14.16 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1568, allocations: 0 / 0.5038 GB, free: 14.16 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003575/0.1572, allocations: 71.88 kB / 0.5038 GB, free: 14.09 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.000368/0.1575, allocations: 176 kB / 0.504 GB, free: 13.92 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0008319/0.1584, allocations: 342.6 kB / 0.5043 GB, free: 13.59 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.1584, allocations: 0 / 0.5043 GB, free: 13.59 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005833/0.159, allocations: 291.3 kB / 0.5046 GB, free: 13.29 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006499/0.1596, allocations: 94.64 kB / 0.5047 GB, free: 13.2 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001293/0.1609, allocations: 0.7176 MB / 0.5054 GB, free: 12.45 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003634/0.1613, allocations: 0.7332 MB / 0.5061 GB, free: 11.69 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002051/0.1615, allocations: 113 kB / 0.5062 GB, free: 11.58 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.753e-05/0.1615, allocations: 19.44 kB / 0.5063 GB, free: 11.56 MB / 382.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1615, allocations: 0 / 0.5063 GB, free: 11.56 MB / 382.1 MB Notification: Performance of Templates: time 0.01087/0.1724, allocations: 5.474 MB / 0.5116 GB, free: 6.145 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic.makefile [Timeout 660] (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 & ./ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.107706970069557] Failed to read output from testmodel.py, exit status != 0: 0.18013359978795052 0.39546939999999997 0.25423904699999994 Calling exit ...