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.001348/0.001348, allocations: 110.2 kB / 19.69 MB, free: 2.254 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.001816/0.001816, allocations: 216.7 kB / 23.01 MB, free: 4.566 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.522/1.522, allocations: 230.6 MB / 256.8 MB, free: 8.02 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.803 MB / 316 MB, free: 316 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: translateModel(ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic,tolerance=1e-07,outputFormat="empty",numberOfIntervals=800,variableFilter="",fileNamePrefix="ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic") translateModel(ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic,tolerance=1e-07,outputFormat="empty",numberOfIntervals=800,variableFilter="",fileNamePrefix="ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic") [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.002057/0.002057, allocations: 63.91 kB / 439.9 MB, free: 13.15 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09329/0.09534, allocations: 54.17 MB / 494.1 MB, free: 6.883 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic): time 0.01141/0.1068, allocations: 8.493 MB / 0.4908 GB, free: 14.35 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01011/0.1169, allocations: 9.502 MB / 0.5001 GB, free: 4.812 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001071/0.117, allocations: 4 kB / 0.5001 GB, free: 4.809 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005304/0.1175, allocations: 159 kB / 0.5003 GB, free: 4.652 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003227/0.1178, allocations: 103.3 kB / 0.5004 GB, free: 4.551 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.003507/0.1213, allocations: 1.46 MB / 0.5018 GB, free: 3.082 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003952/0.1217, allocations: 270.7 kB / 0.502 GB, free: 2.816 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.719e-05/0.1218, allocations: 9.812 kB / 0.5021 GB, free: 2.809 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004523/0.1263, allocations: 125.6 kB / 0.5022 GB, free: 2.691 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001945/0.1265, allocations: 87.62 kB / 0.5023 GB, free: 2.605 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.418e-05/0.1266, allocations: 8 kB / 0.5023 GB, free: 2.598 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00146/0.128, allocations: 471.9 kB / 0.5027 GB, free: 2.137 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 7.213e-05/0.1281, allocations: 35.84 kB / 0.5027 GB, free: 2.102 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001149/0.1282, allocations: 91.59 kB / 0.5028 GB, free: 2.012 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001192/0.1294, allocations: 0.4946 MB / 0.5033 GB, free: 1.516 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.1294, allocations: 0 / 0.5033 GB, free: 1.516 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.1294, allocations: 0 / 0.5033 GB, free: 1.516 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.571e-06/0.1294, allocations: 0 / 0.5033 GB, free: 1.516 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.0009838/0.1304, allocations: 496.6 kB / 0.5038 GB, free: 1 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.545e-05/0.1304, allocations: 16.03 kB / 0.5038 GB, free: 0.9844 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003522/0.1308, allocations: 52.75 kB / 0.5039 GB, free: 0.9336 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002406/0.131, allocations: 150.3 kB / 0.504 GB, free: 0.7617 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.888e-05/0.1311, allocations: 8.375 kB / 0.504 GB, free: 0.7539 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.315e-05/0.1311, allocations: 20.34 kB / 0.504 GB, free: 0.7344 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006082/0.1317, allocations: 252.9 kB / 0.5043 GB, free: 484 kB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.276e-05/0.1317, allocations: 4 kB / 0.5043 GB, free: 480 kB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.871e-05/0.1317, allocations: 4 kB / 0.5043 GB, free: 476 kB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.326e-05/0.1318, allocations: 8 kB / 0.5043 GB, free: 468 kB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005972/0.1324, allocations: 204.3 kB / 0.5045 GB, free: 264 kB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1817/0.314, allocations: 0.6523 MB / 0.5051 GB, free: 24.78 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007163/0.3147, allocations: 222.7 kB / 0.5053 GB, free: 24.75 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002384/0.315, allocations: 136 kB / 0.5055 GB, free: 24.75 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002248/0.3152, allocations: 100.8 kB / 0.5056 GB, free: 24.75 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.422e-05/0.3152, allocations: 38.12 kB / 0.5056 GB, free: 24.71 MB / 366.1 MB Notification: Performance of pre-optimization done (n=44): time 2.124e-06/0.3152, allocations: 0 / 0.5056 GB, free: 24.71 MB / 366.1 MB Notification: Performance of matching and sorting (n=48): time 0.003055/0.3183, allocations: 1.18 MB / 0.5067 GB, free: 24.5 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.19e-05/0.3183, allocations: 57.97 kB / 0.5068 GB, free: 24.43 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.733e-05/0.3184, allocations: 126.7 kB / 0.5069 GB, free: 24.33 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.826e-05/0.3184, allocations: 31.61 kB / 0.507 GB, free: 24.3 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.472e-05/0.3185, allocations: 102 kB / 0.507 GB, free: 24.21 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.071e-05/0.3185, allocations: 166.3 kB / 0.5072 GB, free: 24.12 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.813e-05/0.3186, allocations: 62.84 kB / 0.5073 GB, free: 24.1 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 5.225e-05/0.3187, allocations: 331 kB / 0.5076 GB, free: 23.79 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002749/0.319, allocations: 128.3 kB / 0.5077 GB, free: 23.79 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002877/0.3193, allocations: 191.9 kB / 0.5079 GB, free: 23.74 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005407/0.3198, allocations: 342.5 kB / 0.5082 GB, free: 23.62 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.3198, allocations: 0.9688 kB / 0.5082 GB, free: 23.62 MB / 366.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.001213/0.321, allocations: 498.2 kB / 0.5087 GB, free: 23.42 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.79e-05/0.321, allocations: 9.719 kB / 0.5087 GB, free: 23.42 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.883e-06/0.321, allocations: 1.156 kB / 0.5087 GB, free: 23.42 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008318/0.3219, allocations: 162.8 kB / 0.5089 GB, free: 23.39 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001452/0.322, allocations: 28.27 kB / 0.5089 GB, free: 23.39 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005428/0.3226, allocations: 0.6708 MB / 0.5095 GB, free: 22.81 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002037/0.3228, allocations: 12.02 kB / 0.5096 GB, free: 22.8 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.122e-05/0.3228, allocations: 12.09 kB / 0.5096 GB, free: 22.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 9.399e-05/0.3229, allocations: 136.6 kB / 0.5097 GB, free: 22.67 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.507e-05/0.3229, allocations: 16.03 kB / 0.5097 GB, free: 22.66 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.864e-05/0.323, allocations: 23.31 kB / 0.5097 GB, free: 22.64 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.141e-05/0.323, allocations: 10.73 kB / 0.5097 GB, free: 22.64 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.291e-06/0.323, allocations: 0 / 0.5097 GB, free: 22.64 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.323, allocations: 1.266 kB / 0.5097 GB, free: 22.64 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003006/0.3233, allocations: 272.2 kB / 0.51 GB, free: 22.43 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.524e-06/0.3233, allocations: 0.6094 kB / 0.51 GB, free: 22.43 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003175/0.3236, allocations: 51.34 kB / 0.5101 GB, free: 22.42 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003475/0.324, allocations: 73.06 kB / 0.5101 GB, free: 22.4 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.691e-05/0.324, allocations: 7.125 kB / 0.5101 GB, free: 22.4 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001527/0.3255, allocations: 2.715 MB / 0.5128 GB, free: 19.68 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.3255, allocations: 3.938 kB / 0.5128 GB, free: 19.68 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001073/0.3266, allocations: 0.7171 MB / 0.5135 GB, free: 19.33 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.39e-05/0.3266, allocations: 25.39 kB / 0.5135 GB, free: 19.31 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.476e-05/0.3266, allocations: 6.188 kB / 0.5135 GB, free: 19.31 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001716/0.3268, allocations: 10.36 kB / 0.5135 GB, free: 19.3 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.403e-05/0.3269, allocations: 26.94 kB / 0.5135 GB, free: 19.3 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.628e-05/0.3269, allocations: 9.844 kB / 0.5136 GB, free: 19.3 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.999e-05/0.3269, allocations: 92.53 kB / 0.5136 GB, free: 19.22 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3269, allocations: 1.156 kB / 0.5136 GB, free: 19.22 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003923/0.3273, allocations: 63.39 kB / 0.5137 GB, free: 19.21 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.000352/0.3277, allocations: 179.3 kB / 0.5139 GB, free: 19.11 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008612/0.3285, allocations: 347.7 kB / 0.5142 GB, free: 19 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.3285, allocations: 3.5 kB / 0.5142 GB, free: 19 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006569/0.3292, allocations: 296.2 kB / 0.5145 GB, free: 18.82 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00064/0.3298, allocations: 99.2 kB / 0.5146 GB, free: 18.8 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001234/0.3311, allocations: 0.7521 MB / 0.5153 GB, free: 18.38 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001479/0.3312, allocations: 0.7363 MB / 0.516 GB, free: 17.68 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.388e-05/0.3313, allocations: 23.44 kB / 0.5161 GB, free: 17.67 MB / 366.1 MB Notification: Performance of SimCode: time 6.01e-07/0.3313, allocations: 0 / 0.5161 GB, free: 17.67 MB / 366.1 MB Notification: Performance of Templates: time 0.007827/0.3391, allocations: 3.847 MB / 0.5198 GB, free: 17.32 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic.makefile [Timeout 660] (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 & ./ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic -abortSlowSimulation -alarm=480 -lv LOG_STATS > ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 7.743221539072692] Failed to read output from testmodel.py, exit status != 0: 0.3465744610875845 0.360330702 0.228270775 Calling exit ...