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.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.001436/0.001436, allocations: 118.9 kB / 17.17 MB, free: 5.977 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.001587/0.001587, allocations: 211.3 kB / 20.13 MB, free: 3.035 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.475/1.475, allocations: 230.6 MB / 253.5 MB, free: 15.09 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.01199/0.01199, allocations: 2.795 MB / 312.3 MB, free: 2.34 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.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.TestMedium.TestBasePropertiesDynamic,fileNamePrefix="ExternalMedia_ExternalMedia_Test_TestMedium_TestBasePropertiesDynamic",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic,fileNamePrefix="ExternalMedia_ExternalMedia_Test_TestMedium_TestBasePropertiesDynamic",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.001927/0.001927, allocations: 65.73 kB / 434.2 MB, free: 39.04 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1079/0.1099, allocations: 54.13 MB / 488.3 MB, free: 14.38 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic): time 0.008024/0.1179, allocations: 8.454 MB / 496.8 MB, free: 7.492 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006132/0.124, allocations: 9.481 MB / 0.4944 GB, free: 14.43 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001423/0.1242, allocations: 4 kB / 0.4944 GB, free: 14.43 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005529/0.1247, allocations: 159 kB / 0.4946 GB, free: 14.27 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003165/0.125, allocations: 99.34 kB / 0.4947 GB, free: 14.17 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.004767/0.1298, allocations: 1.452 MB / 0.4961 GB, free: 12.71 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004567/0.1303, allocations: 266.8 kB / 0.4963 GB, free: 12.45 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.02e-05/0.1303, allocations: 13.67 kB / 0.4963 GB, free: 12.43 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004571/0.1349, allocations: 124.5 kB / 0.4965 GB, free: 12.32 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000239/0.1351, allocations: 87.61 kB / 0.4966 GB, free: 12.23 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.258e-05/0.1352, allocations: 8 kB / 0.4966 GB, free: 12.22 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002232/0.1374, allocations: 471.9 kB / 0.497 GB, free: 11.76 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 8.942e-05/0.1375, allocations: 35.84 kB / 0.497 GB, free: 11.73 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001362/0.1376, allocations: 87.59 kB / 0.4971 GB, free: 11.64 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001285/0.1389, allocations: 0.4946 MB / 0.4976 GB, free: 11.14 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.1389, allocations: 0 / 0.4976 GB, free: 11.14 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.1389, allocations: 0 / 0.4976 GB, free: 11.14 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.358e-06/0.1389, allocations: 3.984 kB / 0.4976 GB, free: 11.14 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.0009966/0.1399, allocations: 0.5604 MB / 0.4982 GB, free: 10.53 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.779e-05/0.14, allocations: 11.98 kB / 0.4982 GB, free: 10.52 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.216e-05/0.14, allocations: 8.188 kB / 0.4982 GB, free: 10.51 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.063e-05/0.1401, allocations: 54.72 kB / 0.4982 GB, free: 10.45 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003469/0.1404, allocations: 48.8 kB / 0.4983 GB, free: 10.4 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003075/0.1407, allocations: 204.1 kB / 0.4985 GB, free: 10.16 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.274e-05/0.1407, allocations: 16.3 kB / 0.4985 GB, free: 10.15 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.616e-05/0.1408, allocations: 16.12 kB / 0.4985 GB, free: 10.13 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005513/0.1413, allocations: 251.1 kB / 0.4987 GB, free: 9.871 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.778e-06/0.1413, allocations: 0 / 0.4987 GB, free: 9.871 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.863e-05/0.1414, allocations: 8 kB / 0.4988 GB, free: 9.863 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.449e-05/0.1414, allocations: 8 kB / 0.4988 GB, free: 9.855 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005143/0.1419, allocations: 200.3 kB / 0.4989 GB, free: 9.66 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009346/0.1428, allocations: 0.6861 MB / 0.4996 GB, free: 8.914 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006486/0.1435, allocations: 214.6 kB / 0.4998 GB, free: 8.695 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002656/0.1437, allocations: 144.9 kB / 0.5 GB, free: 8.551 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003385/0.1441, allocations: 331.2 kB / 0.5003 GB, free: 8.172 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.206e-05/0.1441, allocations: 34.56 kB / 0.5003 GB, free: 8.129 MB / 366.1 MB Notification: Performance of pre-optimization done (n=44): time 1.563e-06/0.1441, allocations: 0 / 0.5003 GB, free: 8.129 MB / 366.1 MB Notification: Performance of matching and sorting (n=48): time 0.003083/0.1472, allocations: 1.229 MB / 0.5015 GB, free: 6.852 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.389e-05/0.1472, allocations: 59.41 kB / 0.5016 GB, free: 6.781 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001123/0.1474, allocations: 125.8 kB / 0.5017 GB, free: 6.648 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.805e-05/0.1474, allocations: 29.7 kB / 0.5017 GB, free: 6.613 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.991e-05/0.1475, allocations: 108.9 kB / 0.5018 GB, free: 6.504 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001354/0.1476, allocations: 162.5 kB / 0.502 GB, free: 6.344 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.416e-05/0.1477, allocations: 61.69 kB / 0.502 GB, free: 6.277 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001583/0.1478, allocations: 334.8 kB / 0.5024 GB, free: 5.941 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002683/0.1481, allocations: 128.5 kB / 0.5025 GB, free: 5.812 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003174/0.1484, allocations: 188.4 kB / 0.5027 GB, free: 5.613 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006048/0.149, allocations: 336 kB / 0.503 GB, free: 5.266 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.252e-06/0.149, allocations: 0 / 0.503 GB, free: 5.266 MB / 366.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.001237/0.1503, allocations: 489.7 kB / 0.5034 GB, free: 4.777 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.685e-05/0.1503, allocations: 4 kB / 0.5034 GB, free: 4.773 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.648e-06/0.1503, allocations: 4 kB / 0.5035 GB, free: 4.77 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007993/0.1511, allocations: 160.8 kB / 0.5036 GB, free: 4.609 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001461/0.1512, allocations: 31.97 kB / 0.5036 GB, free: 4.578 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007668/0.152, allocations: 0.6693 MB / 0.5043 GB, free: 3.883 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00016/0.1522, allocations: 12 kB / 0.5043 GB, free: 3.871 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.521e-05/0.1522, allocations: 16 kB / 0.5043 GB, free: 3.855 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.0001503/0.1524, allocations: 129.9 kB / 0.5044 GB, free: 3.719 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.091e-05/0.1524, allocations: 19.84 kB / 0.5045 GB, free: 3.699 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.35e-05/0.1525, allocations: 18.28 kB / 0.5045 GB, free: 3.676 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.393e-05/0.1525, allocations: 11.98 kB / 0.5045 GB, free: 3.664 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.544e-06/0.1525, allocations: 0 / 0.5045 GB, free: 3.664 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.457e-06/0.1525, allocations: 0 / 0.5045 GB, free: 3.664 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003873/0.1529, allocations: 306.3 kB / 0.5048 GB, free: 3.312 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.1529, allocations: 0 / 0.5048 GB, free: 3.312 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000281/0.1532, allocations: 55.91 kB / 0.5048 GB, free: 3.258 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000368/0.1535, allocations: 72.66 kB / 0.5049 GB, free: 3.184 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.924e-05/0.1536, allocations: 4.094 kB / 0.5049 GB, free: 3.18 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002633/0.1562, allocations: 2.923 MB / 0.5078 GB, free: 15.96 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.1562, allocations: 3.938 kB / 0.5078 GB, free: 15.96 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00127/0.1575, allocations: 0.7013 MB / 0.5084 GB, free: 15.24 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.897e-05/0.1575, allocations: 93.05 kB / 0.5085 GB, free: 15.13 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.377e-05/0.1576, allocations: 4 kB / 0.5085 GB, free: 15.12 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001733/0.1577, allocations: 11.98 kB / 0.5086 GB, free: 15.11 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.535e-05/0.1578, allocations: 27.91 kB / 0.5086 GB, free: 15.09 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.792e-05/0.1578, allocations: 15.94 kB / 0.5086 GB, free: 15.07 MB / 382.1 MB Notification: Performance of sorting global known variables: time 6.663e-05/0.1579, allocations: 91.27 kB / 0.5087 GB, free: 14.98 MB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1579, allocations: 0 / 0.5087 GB, free: 14.98 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003795/0.1583, allocations: 67.94 kB / 0.5087 GB, free: 14.91 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.00189/0.1602, allocations: 1.259 MB / 0.51 GB, free: 13.64 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0009084/0.1611, allocations: 339.2 kB / 0.5103 GB, free: 13.31 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.1611, allocations: 0 / 0.5103 GB, free: 13.31 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006288/0.1617, allocations: 301.5 kB / 0.5106 GB, free: 13 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006608/0.1624, allocations: 99.67 kB / 0.5107 GB, free: 12.91 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005338/0.1677, allocations: 2.966 MB / 0.5136 GB, free: 9.816 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004794/0.1682, allocations: 0.7409 MB / 0.5143 GB, free: 9.047 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.000261/0.1684, allocations: 104.8 kB / 0.5144 GB, free: 8.945 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001101/0.1685, allocations: 55.42 kB / 0.5145 GB, free: 8.891 MB / 382.1 MB Notification: Performance of SimCode: time 7.32e-07/0.1685, allocations: 3.938 kB / 0.5145 GB, free: 8.887 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03449/0.203, allocations: 7.977 MB / 0.5222 GB, free: 1.137 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.95/13.15, allocations: 10.58 kB / 0.5223 GB, free: 1.129 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 os._exit(0), Time elapsed: 16.108080592006445] Failed to read output from testmodel.py, exit status != 0: 13.523587161034811 13.540309515 13.398233626 Calling exit ...