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.001281/0.001281, allocations: 109.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.001528/0.001528, allocations: 218.9 kB / 22.26 MB, free: 5.125 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.464/1.464, allocations: 230.6 MB / 256 MB, free: 7.973 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.01287/0.01287, allocations: 2.795 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.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.001981/0.001981, allocations: 67.91 kB / 438.7 MB, free: 13.61 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0957/0.09768, allocations: 54.18 MB / 492.9 MB, free: 7.336 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic): time 0.009875/0.1076, allocations: 8.489 MB / 0.4896 GB, free: 14.8 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.009277/0.1168, allocations: 9.505 MB / 0.4989 GB, free: 5.266 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001741/0.117, allocations: 0 / 0.4989 GB, free: 5.266 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005863/0.1176, allocations: 163.1 kB / 0.499 GB, free: 5.105 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004038/0.118, allocations: 99.28 kB / 0.4991 GB, free: 5.008 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.004008/0.122, allocations: 1.464 MB / 0.5006 GB, free: 3.535 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004979/0.1225, allocations: 270.7 kB / 0.5008 GB, free: 3.27 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.068e-05/0.1226, allocations: 5.812 kB / 0.5008 GB, free: 3.266 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004948/0.1275, allocations: 134.5 kB / 0.501 GB, free: 3.137 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002205/0.1277, allocations: 83.62 kB / 0.501 GB, free: 3.055 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.481e-05/0.1278, allocations: 8 kB / 0.501 GB, free: 3.047 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001966/0.1297, allocations: 475.8 kB / 0.5015 GB, free: 2.582 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 8.933e-05/0.1298, allocations: 31.84 kB / 0.5015 GB, free: 2.551 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001284/0.1299, allocations: 83.59 kB / 0.5016 GB, free: 2.469 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001274/0.1312, allocations: 0.4985 MB / 0.5021 GB, free: 1.969 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.199e-06/0.1312, allocations: 0 / 0.5021 GB, free: 1.969 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.1312, allocations: 0 / 0.5021 GB, free: 1.969 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.254e-06/0.1312, allocations: 0 / 0.5021 GB, free: 1.969 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.0009441/0.1322, allocations: 0.489 MB / 0.5026 GB, free: 1.449 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.617e-05/0.1322, allocations: 8.031 kB / 0.5026 GB, free: 1.441 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.984e-05/0.1323, allocations: 50.73 kB / 0.5026 GB, free: 1.383 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003341/0.1326, allocations: 56.75 kB / 0.5027 GB, free: 1.328 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002576/0.1329, allocations: 150.3 kB / 0.5028 GB, free: 1.156 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.508e-05/0.1329, allocations: 12.31 kB / 0.5028 GB, free: 1.145 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.708e-05/0.133, allocations: 12.38 kB / 0.5029 GB, free: 1.133 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005617/0.1335, allocations: 243.1 kB / 0.5031 GB, free: 0.8789 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.096e-05/0.1335, allocations: 0 / 0.5031 GB, free: 0.8789 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.317e-05/0.1336, allocations: 8 kB / 0.5031 GB, free: 0.8711 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.1e-05/0.1336, allocations: 11.98 kB / 0.5031 GB, free: 0.8594 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000523/0.1341, allocations: 212.2 kB / 0.5033 GB, free: 0.6523 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1917/0.3258, allocations: 0.6496 MB / 0.5039 GB, free: 24.88 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007713/0.3265, allocations: 227.2 kB / 0.5042 GB, free: 24.86 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002441/0.3268, allocations: 137.4 kB / 0.5043 GB, free: 24.85 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002267/0.327, allocations: 103.8 kB / 0.5044 GB, free: 24.85 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.251e-05/0.327, allocations: 34.25 kB / 0.5044 GB, free: 24.81 MB / 366.1 MB Notification: Performance of pre-optimization done (n=44): time 2.445e-06/0.327, allocations: 0 / 0.5044 GB, free: 24.81 MB / 366.1 MB Notification: Performance of matching and sorting (n=48): time 0.003246/0.3303, allocations: 1.179 MB / 0.5056 GB, free: 24.61 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.523e-05/0.3303, allocations: 57.69 kB / 0.5056 GB, free: 24.54 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001052/0.3304, allocations: 125.9 kB / 0.5057 GB, free: 24.44 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.004e-05/0.3304, allocations: 31.14 kB / 0.5058 GB, free: 24.41 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.822e-05/0.3305, allocations: 99.98 kB / 0.5059 GB, free: 24.32 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001227/0.3306, allocations: 169.7 kB / 0.506 GB, free: 24.23 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001173/0.3307, allocations: 59.55 kB / 0.5061 GB, free: 24.21 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.883e-05/0.3308, allocations: 337.8 kB / 0.5064 GB, free: 23.9 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003114/0.3312, allocations: 128.8 kB / 0.5065 GB, free: 23.9 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003417/0.3315, allocations: 188.8 kB / 0.5067 GB, free: 23.86 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000587/0.3321, allocations: 344.8 kB / 0.507 GB, free: 23.8 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.3321, allocations: 0 / 0.507 GB, free: 23.8 MB / 366.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.001232/0.3333, allocations: 498.9 kB / 0.5075 GB, free: 23.61 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.107e-05/0.3333, allocations: 9.656 kB / 0.5075 GB, free: 23.61 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.004e-05/0.3333, allocations: 2.953 kB / 0.5075 GB, free: 23.61 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008396/0.3342, allocations: 155.8 kB / 0.5077 GB, free: 23.58 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001499/0.3343, allocations: 28.38 kB / 0.5077 GB, free: 23.58 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005831/0.3349, allocations: 0.6765 MB / 0.5084 GB, free: 23 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001547/0.3351, allocations: 11.88 kB / 0.5084 GB, free: 23 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.173e-05/0.3351, allocations: 8.328 kB / 0.5084 GB, free: 23 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.0001259/0.3352, allocations: 135.3 kB / 0.5085 GB, free: 22.87 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.926e-05/0.3353, allocations: 16.81 kB / 0.5085 GB, free: 22.86 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.107e-05/0.3353, allocations: 24.8 kB / 0.5086 GB, free: 22.84 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.716e-05/0.3354, allocations: 11.77 kB / 0.5086 GB, free: 22.83 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.377e-06/0.3354, allocations: 7.375 kB / 0.5086 GB, free: 22.83 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.971e-06/0.3354, allocations: 5.25 kB / 0.5086 GB, free: 22.83 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003297/0.3357, allocations: 267.5 kB / 0.5088 GB, free: 22.62 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-06/0.3357, allocations: 1.031 kB / 0.5088 GB, free: 22.62 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002841/0.336, allocations: 45.88 kB / 0.5089 GB, free: 22.62 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003535/0.3363, allocations: 72.05 kB / 0.5089 GB, free: 22.6 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.97e-05/0.3364, allocations: 10.39 kB / 0.509 GB, free: 22.59 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001609/0.338, allocations: 2.711 MB / 0.5116 GB, free: 19.88 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.183e-06/0.338, allocations: 1.094 kB / 0.5116 GB, free: 19.88 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001218/0.3392, allocations: 0.7194 MB / 0.5123 GB, free: 19.52 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.209e-05/0.3392, allocations: 17.3 kB / 0.5123 GB, free: 19.51 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.528e-05/0.3393, allocations: 5.25 kB / 0.5123 GB, free: 19.5 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001714/0.3394, allocations: 12.23 kB / 0.5123 GB, free: 19.5 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001036/0.3395, allocations: 22.55 kB / 0.5124 GB, free: 19.5 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.213e-05/0.3396, allocations: 11.67 kB / 0.5124 GB, free: 19.49 MB / 366.1 MB Notification: Performance of sorting global known variables: time 6.591e-05/0.3396, allocations: 97.75 kB / 0.5125 GB, free: 19.41 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3396, allocations: 0 / 0.5125 GB, free: 19.41 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004411/0.3401, allocations: 64.84 kB / 0.5125 GB, free: 19.41 MB / 366.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.001532/0.3416, allocations: 1.274 MB / 0.5138 GB, free: 18.51 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008547/0.3425, allocations: 351.2 kB / 0.5141 GB, free: 18.4 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.13e-06/0.3425, allocations: 3.344 kB / 0.5141 GB, free: 18.4 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005587/0.343, allocations: 296 kB / 0.5144 GB, free: 18.22 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006685/0.3437, allocations: 105 kB / 0.5145 GB, free: 18.2 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004667/0.3483, allocations: 2.998 MB / 0.5174 GB, free: 16.2 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000238/0.3486, allocations: 0.7352 MB / 0.5181 GB, free: 15.5 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003287/0.3489, allocations: 104.1 kB / 0.5182 GB, free: 15.49 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001216/0.349, allocations: 55.22 kB / 0.5183 GB, free: 15.45 MB / 366.1 MB Notification: Performance of SimCode: time 1.332e-06/0.349, allocations: 4 kB / 0.5183 GB, free: 15.45 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04186/0.3909, allocations: 8.302 MB / 0.5264 GB, free: 13.02 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.77/14.16, allocations: 5.125 kB / 0.5264 GB, free: 13.02 MB / 366.1 MB " [Timeout remaining time 645] (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: 17.073337253998034] Failed to read output from testmodel.py, exit status != 0: 14.508055411002715 14.521847697 14.388119164 Calling exit ...