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.001325/0.001325, 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.001644/0.001644, allocations: 214.6 kB / 22.24 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.49/1.49, allocations: 230.6 MB / 256 MB, free: 7.797 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.01352/0.01352, allocations: 2.805 MB / 315.2 MB, free: 92 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.002054/0.002054, allocations: 68.17 kB / 439.1 MB, free: 12.81 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0956/0.09765, allocations: 54.19 MB / 493.3 MB, free: 6.527 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic): time 0.0104/0.1081, allocations: 7.69 MB / 0.4892 GB, free: 14.8 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.009086/0.1171, allocations: 8.163 MB / 0.4972 GB, free: 6.609 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001677/0.1173, allocations: 3.938 kB / 0.4972 GB, free: 6.605 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005805/0.1179, allocations: 135.2 kB / 0.4974 GB, free: 6.473 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003591/0.1182, allocations: 99.28 kB / 0.4974 GB, free: 6.375 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.004685/0.1229, allocations: 1.433 MB / 0.4988 GB, free: 4.934 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004767/0.1234, allocations: 274.7 kB / 0.4991 GB, free: 4.664 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.617e-05/0.1235, allocations: 5.812 kB / 0.4991 GB, free: 4.66 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004689/0.1282, allocations: 133.6 kB / 0.4992 GB, free: 4.535 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002209/0.1284, allocations: 83.61 kB / 0.4993 GB, free: 4.453 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.422e-05/0.1284, allocations: 8 kB / 0.4993 GB, free: 4.445 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001651/0.1301, allocations: 467.9 kB / 0.4998 GB, free: 3.988 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 8.78e-05/0.1302, allocations: 39.8 kB / 0.4998 GB, free: 3.949 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001064/0.1303, allocations: 71.7 kB / 0.4999 GB, free: 3.879 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001261/0.1315, allocations: 0.4946 MB / 0.5004 GB, free: 3.383 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.943e-06/0.1315, allocations: 3.984 kB / 0.5004 GB, free: 3.379 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.1315, allocations: 0 / 0.5004 GB, free: 3.379 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.054e-05/0.1315, allocations: 0 / 0.5004 GB, free: 3.379 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.0009281/0.1325, allocations: 492.7 kB / 0.5008 GB, free: 2.867 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.825e-05/0.1325, allocations: 12.03 kB / 0.5009 GB, free: 2.855 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003491/0.1329, allocations: 56.69 kB / 0.5009 GB, free: 2.801 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002562/0.1331, allocations: 150.3 kB / 0.501 GB, free: 2.629 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.234e-05/0.1331, allocations: 12.38 kB / 0.5011 GB, free: 2.617 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.533e-05/0.1332, allocations: 8.375 kB / 0.5011 GB, free: 2.609 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006141/0.1338, allocations: 306.7 kB / 0.5014 GB, free: 2.281 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.132e-05/0.1338, allocations: 0 / 0.5014 GB, free: 2.281 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.996e-05/0.1338, allocations: 4 kB / 0.5014 GB, free: 2.277 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.995e-05/0.1338, allocations: 11.98 kB / 0.5014 GB, free: 2.266 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005282/0.1344, allocations: 204.2 kB / 0.5016 GB, free: 2.066 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000922/0.1353, allocations: 0.6 MB / 0.5022 GB, free: 1.426 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006699/0.136, allocations: 230.5 kB / 0.5024 GB, free: 1.191 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002818/0.1362, allocations: 132.8 kB / 0.5025 GB, free: 1.059 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001893/0.1364, allocations: 95.92 kB / 0.5026 GB, free: 0.9648 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.254e-05/0.1365, allocations: 38.72 kB / 0.5026 GB, free: 0.918 MB / 366.1 MB Notification: Performance of pre-optimization done (n=44): time 1.813e-06/0.1365, allocations: 0 / 0.5026 GB, free: 0.918 MB / 366.1 MB Notification: Performance of matching and sorting (n=48): time 0.218/0.3544, allocations: 1.177 MB / 0.5038 GB, free: 24.92 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.498e-05/0.3544, allocations: 57.38 kB / 0.5038 GB, free: 24.86 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.005e-05/0.3545, allocations: 123.7 kB / 0.504 GB, free: 24.76 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.949e-05/0.3546, allocations: 30.27 kB / 0.504 GB, free: 24.73 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.952e-05/0.3546, allocations: 101.5 kB / 0.5041 GB, free: 24.64 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001032/0.3547, allocations: 166.4 kB / 0.5042 GB, free: 24.55 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.735e-05/0.3548, allocations: 61.78 kB / 0.5043 GB, free: 24.54 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 6.106e-05/0.3549, allocations: 329.1 kB / 0.5046 GB, free: 24.23 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002634/0.3551, allocations: 133 kB / 0.5047 GB, free: 24.23 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003017/0.3554, allocations: 193.4 kB / 0.5049 GB, free: 24.18 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005572/0.356, allocations: 344.5 kB / 0.5053 GB, free: 24.12 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.356, allocations: 0 / 0.5053 GB, free: 24.12 MB / 366.1 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.001154/0.3571, allocations: 499.1 kB / 0.5057 GB, free: 24.06 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.858e-05/0.3572, allocations: 6.125 kB / 0.5057 GB, free: 24.06 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.087e-06/0.3572, allocations: 1 kB / 0.5057 GB, free: 24.06 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008194/0.358, allocations: 156.7 kB / 0.5059 GB, free: 24.05 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000158/0.3582, allocations: 38.48 kB / 0.5059 GB, free: 24.05 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005925/0.3587, allocations: 0.6726 MB / 0.5066 GB, free: 23.53 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001577/0.3589, allocations: 13.06 kB / 0.5066 GB, free: 23.53 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.421e-05/0.3589, allocations: 7.328 kB / 0.5066 GB, free: 23.53 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.0001112/0.359, allocations: 139.1 kB / 0.5067 GB, free: 23.41 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.037e-05/0.3591, allocations: 19.38 kB / 0.5067 GB, free: 23.4 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.941e-05/0.3592, allocations: 23.88 kB / 0.5068 GB, free: 23.39 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.674e-05/0.3592, allocations: 8.719 kB / 0.5068 GB, free: 23.39 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.017e-06/0.3592, allocations: 1.531 kB / 0.5068 GB, free: 23.39 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.91e-06/0.3592, allocations: 1.359 kB / 0.5068 GB, free: 23.39 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002688/0.3595, allocations: 211.3 kB / 0.507 GB, free: 23.27 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.986e-06/0.3595, allocations: 0.5156 kB / 0.507 GB, free: 23.27 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002748/0.3597, allocations: 55.02 kB / 0.507 GB, free: 23.26 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000337/0.3601, allocations: 72.5 kB / 0.5071 GB, free: 23.25 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.006e-05/0.3601, allocations: 12.52 kB / 0.5071 GB, free: 23.25 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001445/0.3615, allocations: 2.661 MB / 0.5097 GB, free: 20.71 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/0.3615, allocations: 3.938 kB / 0.5097 GB, free: 20.7 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001111/0.3627, allocations: 0.7146 MB / 0.5104 GB, free: 20.36 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.298e-05/0.3627, allocations: 18.3 kB / 0.5104 GB, free: 20.34 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.293e-05/0.3627, allocations: 2 kB / 0.5104 GB, free: 20.34 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001683/0.3629, allocations: 11.97 kB / 0.5104 GB, free: 20.34 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.039e-05/0.3629, allocations: 30.59 kB / 0.5105 GB, free: 20.33 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.838e-05/0.363, allocations: 10.38 kB / 0.5105 GB, free: 20.33 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.006e-05/0.363, allocations: 93.31 kB / 0.5106 GB, free: 20.25 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.363, allocations: 0 / 0.5106 GB, free: 20.25 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003789/0.3634, allocations: 61.2 kB / 0.5106 GB, free: 20.25 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.0004026/0.3638, allocations: 193.4 kB / 0.5108 GB, free: 20.14 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008893/0.3647, allocations: 354.8 kB / 0.5112 GB, free: 20.02 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.3647, allocations: 1.156 kB / 0.5112 GB, free: 20.02 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005644/0.3653, allocations: 289.5 kB / 0.5114 GB, free: 19.85 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000667/0.3659, allocations: 95.69 kB / 0.5115 GB, free: 19.83 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001251/0.3672, allocations: 0.7217 MB / 0.5122 GB, free: 19.47 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001151/0.3673, allocations: 130.9 kB / 0.5124 GB, free: 19.38 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002588/0.3675, allocations: 108.4 kB / 0.5125 GB, free: 19.38 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.101e-05/0.3676, allocations: 23.02 kB / 0.5125 GB, free: 19.37 MB / 366.1 MB Notification: Performance of SimCode: time 6.41e-07/0.3676, allocations: 0 / 0.5125 GB, free: 19.37 MB / 366.1 MB Notification: Performance of Templates: time 0.01325/0.3808, allocations: 5.611 MB / 0.518 GB, free: 18.71 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: 4.994931293651462] Failed to read output from testmodel.py, exit status != 0: 0.38817190006375313 0.402350896 0.268337475 Calling exit ...