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.001671/0.001671, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.002195/0.002195, allocations: 214.6 kB / 22.25 MB, free: 5.262 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.484/1.484, allocations: 230.6 MB / 256 MB, free: 7.781 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.01403/0.01403, allocations: 2.804 MB / 315.2 MB, free: 96 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.002049/0.002049, allocations: 67.89 kB / 438.6 MB, free: 13.32 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09152/0.09357, allocations: 54.18 MB / 492.8 MB, free: 7.039 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic): time 0.01171/0.1053, allocations: 7.687 MB / 0.4888 GB, free: 15.32 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00928/0.1146, allocations: 8.159 MB / 0.4967 GB, free: 7.129 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000185/0.1147, allocations: 4 kB / 0.4967 GB, free: 7.125 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000611/0.1153, allocations: 127.2 kB / 0.4969 GB, free: 7 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004646/0.1158, allocations: 103.3 kB / 0.497 GB, free: 6.898 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.004347/0.1202, allocations: 1.44 MB / 0.4984 GB, free: 5.453 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004533/0.1206, allocations: 270.7 kB / 0.4986 GB, free: 5.188 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.753e-05/0.1207, allocations: 13.73 kB / 0.4986 GB, free: 5.176 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00454/0.1252, allocations: 133.3 kB / 0.4988 GB, free: 5.051 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002293/0.1254, allocations: 79.62 kB / 0.4988 GB, free: 4.973 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 5.193e-05/0.1255, allocations: 12 kB / 0.4988 GB, free: 4.961 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001555/0.127, allocations: 463.9 kB / 0.4993 GB, free: 4.508 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 8.695e-05/0.1271, allocations: 39.83 kB / 0.4993 GB, free: 4.469 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001105/0.1272, allocations: 67.67 kB / 0.4994 GB, free: 4.402 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001479/0.1287, allocations: 0.5024 MB / 0.4999 GB, free: 3.898 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.99e-06/0.1287, allocations: 4 kB / 0.4999 GB, free: 3.895 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.963e-06/0.1287, allocations: 0 / 0.4999 GB, free: 3.895 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.117e-06/0.1287, allocations: 0 / 0.4999 GB, free: 3.895 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.0009291/0.1297, allocations: 488.8 kB / 0.5004 GB, free: 3.387 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.001e-05/0.1297, allocations: 12.03 kB / 0.5004 GB, free: 3.375 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.094e-05/0.1298, allocations: 50.73 kB / 0.5004 GB, free: 3.316 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000359/0.1301, allocations: 60.75 kB / 0.5005 GB, free: 3.258 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002574/0.1304, allocations: 158.2 kB / 0.5006 GB, free: 3.078 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.87e-05/0.1304, allocations: 8.375 kB / 0.5006 GB, free: 3.07 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.909e-05/0.1305, allocations: 8.375 kB / 0.5006 GB, free: 3.062 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006065/0.1311, allocations: 294.5 kB / 0.5009 GB, free: 2.746 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.081e-05/0.1311, allocations: 4 kB / 0.5009 GB, free: 2.742 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.165e-05/0.1311, allocations: 4 kB / 0.5009 GB, free: 2.738 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.528e-05/0.1311, allocations: 11.98 kB / 0.5009 GB, free: 2.727 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005183/0.1316, allocations: 204.2 kB / 0.5011 GB, free: 2.527 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009419/0.1326, allocations: 0.6463 MB / 0.5018 GB, free: 1.828 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006463/0.1332, allocations: 226.5 kB / 0.502 GB, free: 1.598 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002659/0.1335, allocations: 133 kB / 0.5021 GB, free: 1.465 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001938/0.1337, allocations: 99.83 kB / 0.5022 GB, free: 1.367 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.703e-05/0.1337, allocations: 38.56 kB / 0.5022 GB, free: 1.32 MB / 366.1 MB Notification: Performance of pre-optimization done (n=44): time 3.566e-06/0.1337, allocations: 3.984 kB / 0.5022 GB, free: 1.316 MB / 366.1 MB Notification: Performance of matching and sorting (n=48): time 0.003081/0.1368, allocations: 1.174 MB / 0.5034 GB, free: 112 kB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.759e-05/0.1368, allocations: 59.41 kB / 0.5034 GB, free: 40 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1949/0.3317, allocations: 119.2 kB / 0.5036 GB, free: 24.91 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.908e-05/0.3318, allocations: 31.7 kB / 0.5036 GB, free: 24.88 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.165e-05/0.3319, allocations: 108 kB / 0.5037 GB, free: 24.8 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001101/0.332, allocations: 164.4 kB / 0.5038 GB, free: 24.72 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.677e-05/0.3321, allocations: 60.78 kB / 0.5039 GB, free: 24.7 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 6.177e-05/0.3321, allocations: 331.5 kB / 0.5042 GB, free: 24.39 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002929/0.3324, allocations: 129.8 kB / 0.5043 GB, free: 24.39 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002758/0.3327, allocations: 192.9 kB / 0.5045 GB, free: 24.34 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005735/0.3333, allocations: 341.9 kB / 0.5049 GB, free: 24.29 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.826e-06/0.3333, allocations: 0.9688 kB / 0.5049 GB, free: 24.29 MB / 366.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.001217/0.3345, allocations: 0.4911 MB / 0.5053 GB, free: 24.23 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.871e-05/0.3345, allocations: 5.5 kB / 0.5053 GB, free: 24.23 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.032e-05/0.3345, allocations: 2.609 kB / 0.5053 GB, free: 24.23 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007772/0.3353, allocations: 154.9 kB / 0.5055 GB, free: 24.22 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001477/0.3354, allocations: 32.56 kB / 0.5055 GB, free: 24.22 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005695/0.336, allocations: 0.6686 MB / 0.5062 GB, free: 23.7 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001554/0.3362, allocations: 12.56 kB / 0.5062 GB, free: 23.7 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.309e-05/0.3362, allocations: 11.22 kB / 0.5062 GB, free: 23.7 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.0001063/0.3363, allocations: 140.2 kB / 0.5063 GB, free: 23.57 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.634e-05/0.3363, allocations: 15.86 kB / 0.5063 GB, free: 23.57 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.938e-05/0.3364, allocations: 21.97 kB / 0.5064 GB, free: 23.55 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.356e-05/0.3364, allocations: 13.66 kB / 0.5064 GB, free: 23.55 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.803e-06/0.3364, allocations: 0 / 0.5064 GB, free: 23.55 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.21e-06/0.3364, allocations: 2.562 kB / 0.5064 GB, free: 23.55 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002786/0.3367, allocations: 254.4 kB / 0.5066 GB, free: 23.4 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.815e-06/0.3367, allocations: 0.875 kB / 0.5066 GB, free: 23.4 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000267/0.337, allocations: 48.05 kB / 0.5067 GB, free: 23.4 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003454/0.3373, allocations: 69.75 kB / 0.5067 GB, free: 23.39 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.836e-05/0.3373, allocations: 12.09 kB / 0.5068 GB, free: 23.39 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001442/0.3388, allocations: 2.706 MB / 0.5094 GB, free: 20.78 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.3388, allocations: 4.656 kB / 0.5094 GB, free: 20.78 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001067/0.3398, allocations: 0.7205 MB / 0.5101 GB, free: 20.5 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.569e-05/0.3399, allocations: 18.19 kB / 0.5101 GB, free: 20.48 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.348e-05/0.3399, allocations: 5.984 kB / 0.5101 GB, free: 20.48 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001653/0.3401, allocations: 11.89 kB / 0.5101 GB, free: 20.48 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.558e-05/0.3401, allocations: 19.34 kB / 0.5102 GB, free: 20.48 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.755e-05/0.3401, allocations: 10.05 kB / 0.5102 GB, free: 20.47 MB / 366.1 MB Notification: Performance of sorting global known variables: time 4.437e-05/0.3402, allocations: 97.19 kB / 0.5103 GB, free: 20.39 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3402, allocations: 4.547 kB / 0.5103 GB, free: 20.39 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003583/0.3405, allocations: 64.83 kB / 0.5103 GB, free: 20.38 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.001395/0.3419, allocations: 1.273 MB / 0.5116 GB, free: 19.49 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008364/0.3428, allocations: 351.6 kB / 0.5119 GB, free: 19.38 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.3428, allocations: 0.6562 kB / 0.5119 GB, free: 19.38 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005633/0.3433, allocations: 295.7 kB / 0.5122 GB, free: 19.2 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006499/0.344, allocations: 94.89 kB / 0.5123 GB, free: 19.18 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004072/0.3481, allocations: 2.995 MB / 0.5152 GB, free: 17.25 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001052/0.3482, allocations: 122.8 kB / 0.5153 GB, free: 17.18 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002501/0.3484, allocations: 115.4 kB / 0.5154 GB, free: 17.17 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.503e-05/0.3485, allocations: 60.17 kB / 0.5155 GB, free: 17.12 MB / 366.1 MB Notification: Performance of SimCode: time 7.02e-07/0.3485, allocations: 0 / 0.5155 GB, free: 17.12 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.041/0.3895, allocations: 8.626 MB / 0.5239 GB, free: 14.56 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.22/13.61, allocations: 15.84 kB / 0.5239 GB, free: 14.55 MB / 366.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.52364675188437] Failed to read output from testmodel.py, exit status != 0: 13.949959327001125 13.970089588 13.837643209 Calling exit ...