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.001652/0.001652, allocations: 97.31 kB / 19.73 MB, free: 2.117 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.00181/0.00181, allocations: 219.2 kB / 23.03 MB, free: 4.922 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.453/1.453, allocations: 230.6 MB / 256.8 MB, free: 7.809 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.01272/0.01272, allocations: 2.802 MB / 316 MB, free: 108 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.001937/0.001937, allocations: 64.08 kB / 439.4 MB, free: 13.34 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1019/0.1038, allocations: 54.17 MB / 493.6 MB, free: 7.066 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic): time 0.009503/0.1133, allocations: 7.692 MB / 0.4895 GB, free: 15.34 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.007955/0.1212, allocations: 8.155 MB / 0.4975 GB, free: 7.152 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001153/0.1214, allocations: 3.938 kB / 0.4975 GB, free: 7.148 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004803/0.1218, allocations: 135.2 kB / 0.4976 GB, free: 7.016 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003043/0.1221, allocations: 99.28 kB / 0.4977 GB, free: 6.918 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.003413/0.1256, allocations: 1.439 MB / 0.4991 GB, free: 5.473 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003896/0.1259, allocations: 266.8 kB / 0.4994 GB, free: 5.211 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.934e-05/0.126, allocations: 5.812 kB / 0.4994 GB, free: 5.207 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004409/0.1304, allocations: 138.4 kB / 0.4995 GB, free: 5.074 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002251/0.1306, allocations: 91.55 kB / 0.4996 GB, free: 4.984 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.156e-05/0.1307, allocations: 8 kB / 0.4996 GB, free: 4.977 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001477/0.1321, allocations: 471.9 kB / 0.5001 GB, free: 4.516 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 8.033e-05/0.1322, allocations: 31.92 kB / 0.5001 GB, free: 4.484 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001111/0.1323, allocations: 75.64 kB / 0.5002 GB, free: 4.41 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001196/0.1335, allocations: 0.4946 MB / 0.5006 GB, free: 3.914 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.239e-05/0.1335, allocations: 7.984 kB / 0.5006 GB, free: 3.906 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.1335, allocations: 0 / 0.5006 GB, free: 3.906 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.921e-06/0.1335, allocations: 0 / 0.5006 GB, free: 3.906 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.0008843/0.1344, allocations: 492.8 kB / 0.5011 GB, free: 3.395 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.846e-05/0.1345, allocations: 8.031 kB / 0.5011 GB, free: 3.387 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.591e-05/0.1345, allocations: 4.188 kB / 0.5011 GB, free: 3.383 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.649e-05/0.1346, allocations: 54.72 kB / 0.5012 GB, free: 3.32 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003432/0.1349, allocations: 56.75 kB / 0.5012 GB, free: 3.266 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002284/0.1351, allocations: 150.2 kB / 0.5014 GB, free: 3.094 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.764e-05/0.1352, allocations: 12.38 kB / 0.5014 GB, free: 3.082 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.333e-05/0.1352, allocations: 12.12 kB / 0.5014 GB, free: 3.07 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005806/0.1358, allocations: 296.2 kB / 0.5017 GB, free: 2.754 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.747e-06/0.1358, allocations: 0 / 0.5017 GB, free: 2.754 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.022e-05/0.1358, allocations: 4 kB / 0.5017 GB, free: 2.75 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.658e-05/0.1358, allocations: 11.98 kB / 0.5017 GB, free: 2.738 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005181/0.1363, allocations: 208.2 kB / 0.5019 GB, free: 2.535 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008757/0.1372, allocations: 0.6502 MB / 0.5025 GB, free: 1.832 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006303/0.1378, allocations: 222.5 kB / 0.5027 GB, free: 1.605 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002565/0.1381, allocations: 137 kB / 0.5029 GB, free: 1.469 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001873/0.1383, allocations: 103.8 kB / 0.503 GB, free: 1.367 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.762e-05/0.1383, allocations: 34.56 kB / 0.503 GB, free: 1.324 MB / 366.1 MB Notification: Performance of pre-optimization done (n=44): time 1.301e-05/0.1383, allocations: 4 kB / 0.503 GB, free: 1.32 MB / 366.1 MB Notification: Performance of matching and sorting (n=48): time 0.00295/0.1413, allocations: 1.177 MB / 0.5042 GB, free: 112 kB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.448e-05/0.1413, allocations: 55.41 kB / 0.5042 GB, free: 44 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1718/0.3131, allocations: 122.5 kB / 0.5043 GB, free: 25.02 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.452e-05/0.3131, allocations: 28.02 kB / 0.5044 GB, free: 24.99 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.51e-05/0.3132, allocations: 101.4 kB / 0.5045 GB, free: 24.91 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001024/0.3133, allocations: 169.5 kB / 0.5046 GB, free: 24.83 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.737e-05/0.3134, allocations: 56.12 kB / 0.5047 GB, free: 24.81 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 6.509e-05/0.3134, allocations: 332.3 kB / 0.505 GB, free: 24.5 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002721/0.3137, allocations: 130.3 kB / 0.5051 GB, free: 24.5 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000272/0.314, allocations: 192.6 kB / 0.5053 GB, free: 24.45 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005588/0.3145, allocations: 343.4 kB / 0.5056 GB, free: 24.39 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.3145, allocations: 0 / 0.5056 GB, free: 24.39 MB / 366.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.001227/0.3158, allocations: 0.4911 MB / 0.5061 GB, free: 24.34 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.974e-05/0.3158, allocations: 7.75 kB / 0.5061 GB, free: 24.34 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.007e-05/0.3158, allocations: 2.484 kB / 0.5061 GB, free: 24.34 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008464/0.3167, allocations: 156.6 kB / 0.5063 GB, free: 24.33 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001522/0.3168, allocations: 29.05 kB / 0.5063 GB, free: 24.33 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005807/0.3174, allocations: 0.6789 MB / 0.507 GB, free: 23.8 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001559/0.3175, allocations: 13.22 kB / 0.507 GB, free: 23.8 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.211e-05/0.3176, allocations: 10.86 kB / 0.507 GB, free: 23.8 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.0001045/0.3177, allocations: 133.5 kB / 0.5071 GB, free: 23.69 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.797e-05/0.3177, allocations: 18.97 kB / 0.5071 GB, free: 23.68 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.407e-05/0.3178, allocations: 25.75 kB / 0.5071 GB, free: 23.66 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.389e-05/0.3178, allocations: 9.375 kB / 0.5072 GB, free: 23.66 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.254e-06/0.3178, allocations: 0.5156 kB / 0.5072 GB, free: 23.66 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.148e-06/0.3178, allocations: 5.297 kB / 0.5072 GB, free: 23.66 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003034/0.3181, allocations: 254 kB / 0.5074 GB, free: 23.51 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.3181, allocations: 1.188 kB / 0.5074 GB, free: 23.51 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000283/0.3184, allocations: 43.91 kB / 0.5074 GB, free: 23.51 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003669/0.3188, allocations: 73.11 kB / 0.5075 GB, free: 23.5 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.992e-05/0.3188, allocations: 5.828 kB / 0.5075 GB, free: 23.5 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001565/0.3203, allocations: 2.707 MB / 0.5102 GB, free: 20.89 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/0.3203, allocations: 3.594 kB / 0.5102 GB, free: 20.89 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001137/0.3215, allocations: 0.7233 MB / 0.5109 GB, free: 20.59 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.435e-05/0.3215, allocations: 22.3 kB / 0.5109 GB, free: 20.58 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.52e-05/0.3215, allocations: 5.125 kB / 0.5109 GB, free: 20.58 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001707/0.3217, allocations: 8.234 kB / 0.5109 GB, free: 20.58 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.862e-05/0.3218, allocations: 23.02 kB / 0.5109 GB, free: 20.57 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.999e-05/0.3218, allocations: 10.8 kB / 0.5109 GB, free: 20.57 MB / 366.1 MB Notification: Performance of sorting global known variables: time 4.961e-05/0.3219, allocations: 94.39 kB / 0.511 GB, free: 20.49 MB / 366.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3219, allocations: 3.938 kB / 0.511 GB, free: 20.49 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003919/0.3223, allocations: 67.03 kB / 0.5111 GB, free: 20.48 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.00151/0.3238, allocations: 1.274 MB / 0.5123 GB, free: 19.59 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008672/0.3246, allocations: 351.2 kB / 0.5127 GB, free: 19.48 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.3246, allocations: 1.281 kB / 0.5127 GB, free: 19.48 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005789/0.3252, allocations: 290.3 kB / 0.513 GB, free: 19.3 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006613/0.3259, allocations: 98.19 kB / 0.513 GB, free: 19.28 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004327/0.3302, allocations: 3.011 MB / 0.516 GB, free: 17.33 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001176/0.3303, allocations: 127.5 kB / 0.5161 GB, free: 17.25 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002628/0.3306, allocations: 105 kB / 0.5162 GB, free: 17.24 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.007e-05/0.3307, allocations: 55.69 kB / 0.5163 GB, free: 17.2 MB / 366.1 MB Notification: Performance of SimCode: time 6.91e-07/0.3307, allocations: 4.938 kB / 0.5163 GB, free: 17.2 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03602/0.3667, allocations: 8.442 MB / 0.5245 GB, free: 14.89 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.74/14.1, allocations: 9.281 kB / 0.5245 GB, free: 14.88 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 & /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: 17.007614400004968] Failed to read output from testmodel.py, exit status != 0: 14.502807855955325 14.51567465 14.37946398 Calling exit ...