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.001277/0.001277, allocations: 110.1 kB / 19.73 MB, free: 2.242 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.001413/0.001413, allocations: 217.1 kB / 23.04 MB, free: 5.074 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.435/1.435, allocations: 230.6 MB / 256.8 MB, free: 7.996 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.01346/0.01346, allocations: 2.81 MB / 316 MB, free: 312 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="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: 67.89 kB / 439.5 MB, free: 13.67 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08706/0.08899, allocations: 54.18 MB / 493.7 MB, free: 7.395 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic): time 0.01011/0.09909, allocations: 8.478 MB / 0.4904 GB, free: 14.88 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.009138/0.1082, allocations: 9.502 MB / 0.4996 GB, free: 5.34 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001648/0.1084, allocations: 3.938 kB / 0.4997 GB, free: 5.336 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005017/0.1089, allocations: 171 kB / 0.4998 GB, free: 5.168 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003087/0.1092, allocations: 95.3 kB / 0.4999 GB, free: 5.074 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.003675/0.1129, allocations: 1.458 MB / 0.5013 GB, free: 3.609 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003878/0.1133, allocations: 274.7 kB / 0.5016 GB, free: 3.34 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.697e-05/0.1133, allocations: 5.812 kB / 0.5016 GB, free: 3.336 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004402/0.1177, allocations: 130.7 kB / 0.5017 GB, free: 3.211 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002063/0.1179, allocations: 83.62 kB / 0.5018 GB, free: 3.129 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.752e-05/0.118, allocations: 8 kB / 0.5018 GB, free: 3.121 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001705/0.1197, allocations: 475.9 kB / 0.5023 GB, free: 2.656 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 7.193e-05/0.1197, allocations: 35.84 kB / 0.5023 GB, free: 2.621 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001092/0.1198, allocations: 79.55 kB / 0.5024 GB, free: 2.543 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001075/0.1209, allocations: 0.5024 MB / 0.5029 GB, free: 2.039 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.037e-06/0.1209, allocations: 0 / 0.5029 GB, free: 2.039 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.173e-06/0.1209, allocations: 0 / 0.5029 GB, free: 2.039 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.452e-06/0.1209, allocations: 0 / 0.5029 GB, free: 2.039 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.0008881/0.1218, allocations: 492.8 kB / 0.5033 GB, free: 1.527 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.134e-05/0.1219, allocations: 8.031 kB / 0.5033 GB, free: 1.52 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.996e-05/0.1219, allocations: 12.19 kB / 0.5034 GB, free: 1.508 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.356e-05/0.1219, allocations: 50.73 kB / 0.5034 GB, free: 1.449 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003345/0.1223, allocations: 52.75 kB / 0.5035 GB, free: 1.398 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002251/0.1225, allocations: 158.2 kB / 0.5036 GB, free: 1.219 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.842e-05/0.1225, allocations: 8.375 kB / 0.5036 GB, free: 1.211 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.512e-05/0.1226, allocations: 16.12 kB / 0.5036 GB, free: 1.195 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005486/0.1231, allocations: 244.8 kB / 0.5039 GB, free: 0.9414 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.326e-06/0.1231, allocations: 3.938 kB / 0.5039 GB, free: 0.9375 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.01e-05/0.1231, allocations: 8 kB / 0.5039 GB, free: 0.9297 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.404e-05/0.1231, allocations: 15.92 kB / 0.5039 GB, free: 0.9141 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005151/0.1237, allocations: 208.2 kB / 0.5041 GB, free: 0.7109 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000892/0.1246, allocations: 0.6502 MB / 0.5047 GB, free: 8 kB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1783/0.3028, allocations: 224.7 kB / 0.5049 GB, free: 25.15 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002483/0.3031, allocations: 141.3 kB / 0.5051 GB, free: 25.14 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002021/0.3033, allocations: 96.17 kB / 0.5052 GB, free: 25.14 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.145e-05/0.3033, allocations: 35.95 kB / 0.5052 GB, free: 25.1 MB / 366.1 MB Notification: Performance of pre-optimization done (n=44): time 2.385e-06/0.3033, allocations: 0 / 0.5052 GB, free: 25.1 MB / 366.1 MB Notification: Performance of matching and sorting (n=48): time 0.002949/0.3063, allocations: 1.177 MB / 0.5063 GB, free: 24.9 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.676e-05/0.3063, allocations: 55.25 kB / 0.5064 GB, free: 24.84 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001005/0.3064, allocations: 127.5 kB / 0.5065 GB, free: 24.73 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.982e-05/0.3064, allocations: 34.02 kB / 0.5065 GB, free: 24.7 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.808e-05/0.3065, allocations: 99.97 kB / 0.5066 GB, free: 24.61 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001479/0.3066, allocations: 167.1 kB / 0.5068 GB, free: 24.52 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001042/0.3067, allocations: 58.39 kB / 0.5069 GB, free: 24.51 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 6.057e-05/0.3068, allocations: 331.9 kB / 0.5072 GB, free: 24.2 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002843/0.307, allocations: 131.9 kB / 0.5073 GB, free: 24.2 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003061/0.3074, allocations: 192 kB / 0.5075 GB, free: 24.14 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005584/0.3079, allocations: 345.3 kB / 0.5078 GB, free: 24.09 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.764e-06/0.3079, allocations: 3.438 kB / 0.5078 GB, free: 24.09 MB / 366.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.001177/0.3091, allocations: 499.5 kB / 0.5083 GB, free: 23.89 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.249e-05/0.3091, allocations: 4.969 kB / 0.5083 GB, free: 23.89 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.151e-05/0.3091, allocations: 2.5 kB / 0.5083 GB, free: 23.89 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008063/0.3099, allocations: 156.2 kB / 0.5085 GB, free: 23.87 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001435/0.3101, allocations: 32.41 kB / 0.5085 GB, free: 23.86 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006145/0.3107, allocations: 0.6666 MB / 0.5091 GB, free: 23.29 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001521/0.3108, allocations: 17.59 kB / 0.5091 GB, free: 23.28 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.276e-05/0.3109, allocations: 11.27 kB / 0.5092 GB, free: 23.28 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.0001212/0.311, allocations: 137 kB / 0.5093 GB, free: 23.15 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.761e-05/0.311, allocations: 14.84 kB / 0.5093 GB, free: 23.14 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.575e-05/0.3111, allocations: 22.11 kB / 0.5093 GB, free: 23.12 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.374e-05/0.3111, allocations: 10.08 kB / 0.5093 GB, free: 23.12 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.014e-05/0.3111, allocations: 0 / 0.5093 GB, free: 23.12 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.362e-06/0.3111, allocations: 6.375 kB / 0.5093 GB, free: 23.11 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002982/0.3114, allocations: 269.6 kB / 0.5096 GB, free: 22.9 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/0.3114, allocations: 0 / 0.5096 GB, free: 22.9 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002744/0.3117, allocations: 55.17 kB / 0.5097 GB, free: 22.89 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003466/0.3121, allocations: 70.78 kB / 0.5097 GB, free: 22.87 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.02e-05/0.3121, allocations: 2.891 kB / 0.5097 GB, free: 22.87 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001616/0.3137, allocations: 2.721 MB / 0.5124 GB, free: 20.16 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.3137, allocations: 5.469 kB / 0.5124 GB, free: 20.15 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001147/0.3148, allocations: 0.7062 MB / 0.5131 GB, free: 19.8 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.128e-05/0.3149, allocations: 18.62 kB / 0.5131 GB, free: 19.79 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.399e-05/0.3149, allocations: 6.078 kB / 0.5131 GB, free: 19.79 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001644/0.3151, allocations: 16.12 kB / 0.5131 GB, free: 19.79 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.443e-05/0.3151, allocations: 30.73 kB / 0.5131 GB, free: 19.77 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.908e-05/0.3152, allocations: 6.469 kB / 0.5131 GB, free: 19.77 MB / 366.1 MB Notification: Performance of sorting global known variables: time 4.838e-05/0.3152, allocations: 99.73 kB / 0.5132 GB, free: 19.69 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3152, allocations: 0 / 0.5132 GB, free: 19.69 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003839/0.3156, allocations: 65.55 kB / 0.5133 GB, free: 19.68 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.001446/0.317, allocations: 1.281 MB / 0.5146 GB, free: 18.79 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008154/0.3179, allocations: 350 kB / 0.5149 GB, free: 18.68 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.3179, allocations: 3.344 kB / 0.5149 GB, free: 18.68 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005398/0.3184, allocations: 287.2 kB / 0.5152 GB, free: 18.5 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006666/0.3191, allocations: 96.73 kB / 0.5153 GB, free: 18.48 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004047/0.3231, allocations: 3.009 MB / 0.5182 GB, free: 16.5 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001554/0.3233, allocations: 0.7355 MB / 0.5189 GB, free: 15.8 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002521/0.3235, allocations: 107.5 kB / 0.519 GB, free: 15.79 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.368e-05/0.3236, allocations: 53.59 kB / 0.5191 GB, free: 15.75 MB / 366.1 MB Notification: Performance of SimCode: time 5.81e-07/0.3236, allocations: 5.219 kB / 0.5191 GB, free: 15.74 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03139/0.355, allocations: 8.33 MB / 0.5272 GB, free: 13.29 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.45/13.81, allocations: 6.156 kB / 0.5272 GB, free: 13.29 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 & /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 sys.exit(0), Time elapsed: 16.647747474955395] Failed to read output from testmodel.py, exit status != 0: 14.208967965096235 14.225019231 14.100939586 Calling exit ...