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.001302/0.001302, allocations: 109.4 kB / 16.46 MB, free: 6.5 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.001365/0.001365, allocations: 216 kB / 19.43 MB, free: 3.656 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.48/1.48, allocations: 230.6 MB / 252.8 MB, free: 8.977 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.01242/0.01242, allocations: 2.796 MB / 311.7 MB, free: 1.461 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="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: 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.001956/0.001956, allocations: 63.89 kB / 433.5 MB, free: 15.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.108/0.11, allocations: 54.15 MB / 487.6 MB, free: 9.141 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic): time 0.01051/0.1205, allocations: 8.442 MB / 496.1 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009106/0.1296, allocations: 9.478 MB / 0.4937 GB, free: 7.148 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000227/0.1298, allocations: 7.938 kB / 0.4937 GB, free: 7.141 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006577/0.1305, allocations: 167 kB / 0.4939 GB, free: 6.977 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004403/0.1309, allocations: 95.3 kB / 0.494 GB, free: 6.883 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.004647/0.1355, allocations: 1.455 MB / 0.4954 GB, free: 5.422 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004341/0.136, allocations: 270.7 kB / 0.4957 GB, free: 5.156 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.384e-05/0.136, allocations: 5.688 kB / 0.4957 GB, free: 5.148 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004896/0.1409, allocations: 141.7 kB / 0.4958 GB, free: 5.016 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002604/0.1412, allocations: 87.62 kB / 0.4959 GB, free: 4.93 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.171e-05/0.1412, allocations: 8 kB / 0.4959 GB, free: 4.922 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002214/0.1434, allocations: 471.9 kB / 0.4963 GB, free: 4.461 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 8.42e-05/0.1435, allocations: 31.83 kB / 0.4964 GB, free: 4.43 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001291/0.1437, allocations: 83.61 kB / 0.4964 GB, free: 4.348 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00151/0.1452, allocations: 0.5023 MB / 0.4969 GB, free: 3.844 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.1452, allocations: 4 kB / 0.4969 GB, free: 3.84 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.1452, allocations: 0 / 0.4969 GB, free: 3.84 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.241e-06/0.1452, allocations: 0 / 0.4969 GB, free: 3.84 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.00095/0.1461, allocations: 0.5527 MB / 0.4975 GB, free: 3.238 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.344e-05/0.1462, allocations: 11.98 kB / 0.4975 GB, free: 3.227 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.909e-05/0.1462, allocations: 50.73 kB / 0.4975 GB, free: 3.168 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003418/0.1466, allocations: 60.75 kB / 0.4976 GB, free: 3.109 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002688/0.1468, allocations: 212.1 kB / 0.4978 GB, free: 2.863 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.219e-05/0.1469, allocations: 8.375 kB / 0.4978 GB, free: 2.855 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.977e-05/0.1469, allocations: 8.375 kB / 0.4978 GB, free: 2.848 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005613/0.1475, allocations: 244.7 kB / 0.498 GB, free: 2.594 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.025e-05/0.1475, allocations: 0 / 0.498 GB, free: 2.594 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.205e-05/0.1475, allocations: 12 kB / 0.4981 GB, free: 2.582 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.573e-05/0.1475, allocations: 11.98 kB / 0.4981 GB, free: 2.57 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005317/0.148, allocations: 200.2 kB / 0.4983 GB, free: 2.375 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009323/0.149, allocations: 0.6939 MB / 0.4989 GB, free: 1.621 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006398/0.1496, allocations: 218.5 kB / 0.4991 GB, free: 1.398 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002558/0.1499, allocations: 129 kB / 0.4993 GB, free: 1.27 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003094/0.1502, allocations: 335.2 kB / 0.4996 GB, free: 0.8867 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.639e-05/0.1502, allocations: 34.56 kB / 0.4996 GB, free: 0.8438 MB / 366.1 MB Notification: Performance of pre-optimization done (n=44): time 1.693e-06/0.1502, allocations: 0 / 0.4996 GB, free: 0.8438 MB / 366.1 MB Notification: Performance of matching and sorting (n=48): time 0.00305/0.1533, allocations: 1.226 MB / 0.5008 GB, free: 15.57 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.018e-05/0.1533, allocations: 55.34 kB / 0.5009 GB, free: 15.5 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001153/0.1534, allocations: 133.7 kB / 0.501 GB, free: 15.36 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.972e-05/0.1535, allocations: 33.7 kB / 0.501 GB, free: 15.32 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.155e-05/0.1535, allocations: 105 kB / 0.5011 GB, free: 15.22 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001364/0.1537, allocations: 170.5 kB / 0.5013 GB, free: 15.05 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.93e-05/0.1538, allocations: 57.69 kB / 0.5014 GB, free: 14.99 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001548/0.1539, allocations: 334.8 kB / 0.5017 GB, free: 14.65 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002645/0.1542, allocations: 124.5 kB / 0.5018 GB, free: 14.53 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000333/0.1545, allocations: 192.4 kB / 0.502 GB, free: 14.32 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005927/0.1551, allocations: 340 kB / 0.5023 GB, free: 13.97 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.1551, allocations: 0 / 0.5023 GB, free: 13.97 MB / 382.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.001222/0.1563, allocations: 489.6 kB / 0.5028 GB, free: 13.48 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.21e-05/0.1563, allocations: 7.984 kB / 0.5028 GB, free: 13.48 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.007e-05/0.1564, allocations: 4 kB / 0.5028 GB, free: 13.47 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008115/0.1572, allocations: 156.9 kB / 0.5029 GB, free: 13.32 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001419/0.1573, allocations: 27.98 kB / 0.503 GB, free: 13.29 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007526/0.1581, allocations: 0.6736 MB / 0.5036 GB, free: 12.59 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001541/0.1582, allocations: 16.03 kB / 0.5036 GB, free: 12.57 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.258e-05/0.1582, allocations: 8 kB / 0.5036 GB, free: 12.57 MB / 382.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.0001518/0.1584, allocations: 125.8 kB / 0.5038 GB, free: 12.43 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.871e-05/0.1585, allocations: 23.89 kB / 0.5038 GB, free: 12.41 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.662e-05/0.1585, allocations: 30.25 kB / 0.5038 GB, free: 12.38 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.709e-05/0.1585, allocations: 15.97 kB / 0.5038 GB, free: 12.36 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.322e-06/0.1586, allocations: 0 / 0.5038 GB, free: 12.36 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.1586, allocations: 0 / 0.5038 GB, free: 12.36 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003705/0.1589, allocations: 294.4 kB / 0.5041 GB, free: 12.02 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.1589, allocations: 0 / 0.5041 GB, free: 12.02 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002845/0.1592, allocations: 43.97 kB / 0.5041 GB, free: 11.98 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003758/0.1596, allocations: 72.72 kB / 0.5042 GB, free: 11.9 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.248e-05/0.1596, allocations: 11.94 kB / 0.5042 GB, free: 11.89 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002443/0.1621, allocations: 2.919 MB / 0.5071 GB, free: 8.676 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.1621, allocations: 0 / 0.5071 GB, free: 8.676 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001279/0.1633, allocations: 0.7092 MB / 0.5078 GB, free: 7.949 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.906e-05/0.1634, allocations: 101 kB / 0.5079 GB, free: 7.832 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.11e-05/0.1634, allocations: 0 / 0.5079 GB, free: 7.832 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001711/0.1636, allocations: 8 kB / 0.5079 GB, free: 7.824 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.682e-05/0.1637, allocations: 31.89 kB / 0.5079 GB, free: 7.793 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.809e-05/0.1637, allocations: 7.938 kB / 0.5079 GB, free: 7.785 MB / 382.1 MB Notification: Performance of sorting global known variables: time 6.803e-05/0.1638, allocations: 95.27 kB / 0.508 GB, free: 7.691 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1638, allocations: 0 / 0.508 GB, free: 7.691 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0003781/0.1641, allocations: 64 kB / 0.5081 GB, free: 7.629 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.001829/0.166, allocations: 1.26 MB / 0.5093 GB, free: 6.352 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000911/0.1669, allocations: 343.5 kB / 0.5096 GB, free: 6.016 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.806e-06/0.1669, allocations: 0 / 0.5096 GB, free: 6.016 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000613/0.1675, allocations: 289.2 kB / 0.5099 GB, free: 5.723 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006673/0.1682, allocations: 99.7 kB / 0.51 GB, free: 5.625 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004965/0.1731, allocations: 2.97 MB / 0.5129 GB, free: 2.531 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003784/0.1735, allocations: 0.7371 MB / 0.5136 GB, free: 1.766 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002364/0.1737, allocations: 105.4 kB / 0.5137 GB, free: 1.66 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001042/0.1738, allocations: 51.42 kB / 0.5138 GB, free: 1.609 MB / 382.1 MB Notification: Performance of SimCode: time 3.8e-07/0.1738, allocations: 3.938 kB / 0.5138 GB, free: 1.605 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2555/0.4294, allocations: 7.935 MB / 0.5215 GB, free: 39.57 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.85/13.28, allocations: 2.938 kB / 0.5215 GB, free: 39.57 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 & python3 -m fmpy simulate --output-file ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic_res.csv --start-time 0 --stop-time 80 --timeout 50 --relative-tolerance 1e-07 --interface-type ModelExchange --solver CVode --output-interval 0.1 ExternalMedia_ExternalMedia_Test_TestMedium_TestBasePropertiesDynamic.fmu > ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 16.19394576922059] Failed to read output from testmodel.py, exit status != 0: 13.613612161949277 13.636372526 13.487080126 Calling exit ...