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.0007462/0.0007462, allocations: 76.5 kB / 19.93 MB, free: 4.629 MB / 18.57 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.0008161/0.0008161, allocations: 177.9 kB / 23.21 MB, free: 1.348 MB / 18.57 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 0.8164/0.8164, allocations: 177.2 MB / 203.5 MB, free: 5.715 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.1.1/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.1.1/package.mo): time 0.007158/0.007158, allocations: 1.983 MB / 261.9 MB, free: 11.25 MB / 250.7 MB " [Timeout remaining time 180] Using package ExternalMedia with version 4.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.1.1/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: Performance of FrontEnd - loaded program: time 1.252e-06/1.252e-06, allocations: 0 / 385.9 MB, free: 11.44 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.314e-05/1.439e-05, allocations: 2.281 kB / 385.9 MB, free: 11.44 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic): time 0.00537/0.005384, allocations: 7.69 MB / 393.6 MB, free: 3.711 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.004397/0.009782, allocations: 8.159 MB / 401.7 MB, free: 11.52 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.265e-05/0.009834, allocations: 3.938 kB / 401.7 MB, free: 11.52 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003096/0.01014, allocations: 131.2 kB / 401.9 MB, free: 11.39 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002144/0.01036, allocations: 107.2 kB / 402 MB, free: 11.29 MB / 330.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.1.1/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.1.1/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.1.1/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.001488/0.01185, allocations: 1.486 MB / 403.5 MB, free: 9.789 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002144/0.01206, allocations: 274.6 kB / 403.7 MB, free: 9.52 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.638e-05/0.0121, allocations: 9.797 kB / 403.7 MB, free: 9.512 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003123/0.01522, allocations: 166.2 kB / 403.9 MB, free: 9.352 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001012/0.01532, allocations: 63.81 kB / 404 MB, free: 9.289 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 1.989e-05/0.01534, allocations: 12 kB / 404 MB, free: 9.277 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005677/0.01591, allocations: 475.6 kB / 404.4 MB, free: 8.812 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 5.348e-05/0.01596, allocations: 31.83 kB / 404.5 MB, free: 8.781 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 5.08e-05/0.01601, allocations: 59.84 kB / 404.5 MB, free: 8.723 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005456/0.01656, allocations: 0.5182 MB / 405 MB, free: 8.203 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.083e-06/0.01656, allocations: 3.938 kB / 405 MB, free: 8.199 MB / 330.7 MB Notification: Performance of FrontEnd: time 7.41e-07/0.01656, allocations: 0 / 405 MB, free: 8.199 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.566e-06/0.01657, allocations: 0 / 405 MB, free: 8.199 MB / 330.7 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.0005415/0.01711, allocations: 492.8 kB / 405.5 MB, free: 7.688 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.826e-05/0.01714, allocations: 8.031 kB / 405.5 MB, free: 7.68 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001736/0.01731, allocations: 56.75 kB / 405.6 MB, free: 7.625 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001491/0.01746, allocations: 145.5 kB / 405.7 MB, free: 7.457 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.254e-05/0.01748, allocations: 8.375 kB / 405.7 MB, free: 7.449 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.361e-05/0.0175, allocations: 12.38 kB / 405.7 MB, free: 7.438 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003253/0.01783, allocations: 304.4 kB / 406 MB, free: 7.113 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.748e-06/0.01784, allocations: 8.188 kB / 406.1 MB, free: 7.105 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.442e-05/0.01785, allocations: 8.125 kB / 406.1 MB, free: 7.098 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.588e-06/0.01786, allocations: 11.98 kB / 406.1 MB, free: 7.086 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002589/0.01812, allocations: 211.5 kB / 406.3 MB, free: 6.883 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004881/0.01861, allocations: 0.6003 MB / 406.9 MB, free: 6.242 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005717/0.01918, allocations: 225.5 kB / 407.1 MB, free: 6.016 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001254/0.01931, allocations: 140.8 kB / 407.2 MB, free: 5.875 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001103/0.01942, allocations: 103.9 kB / 407.3 MB, free: 5.773 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.548e-05/0.01943, allocations: 34.5 kB / 407.4 MB, free: 5.73 MB / 330.7 MB Notification: Performance of pre-optimization done (n=44): time 1.253e-06/0.01943, allocations: 0 / 407.4 MB, free: 5.73 MB / 330.7 MB Notification: Performance of matching and sorting (n=48): time 0.001521/0.02096, allocations: 1.179 MB / 408.6 MB, free: 4.52 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.542e-05/0.02098, allocations: 55.34 kB / 408.6 MB, free: 4.453 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.585e-05/0.02105, allocations: 129.7 kB / 408.7 MB, free: 4.316 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.582e-05/0.02106, allocations: 37.7 kB / 408.8 MB, free: 4.273 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.253e-05/0.02111, allocations: 101 kB / 408.9 MB, free: 4.172 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.485e-05/0.02117, allocations: 170.4 kB / 409 MB, free: 4.004 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.299e-05/0.02122, allocations: 49.7 kB / 409.1 MB, free: 3.949 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.049e-05/0.02129, allocations: 338.8 kB / 409.4 MB, free: 3.609 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001345/0.02143, allocations: 128.4 kB / 409.5 MB, free: 3.48 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001489/0.02158, allocations: 188.1 kB / 409.7 MB, free: 3.277 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003043/0.02188, allocations: 345 kB / 410.1 MB, free: 2.922 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.022e-06/0.02188, allocations: 0 / 410.1 MB, free: 2.922 MB / 330.7 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.000575/0.02246, allocations: 494.8 kB / 410.5 MB, free: 2.43 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.177e-05/0.02247, allocations: 8 kB / 410.6 MB, free: 2.422 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.451e-06/0.02247, allocations: 0 / 410.6 MB, free: 2.422 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003696/0.02284, allocations: 160.8 kB / 410.7 MB, free: 2.262 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.933e-05/0.02291, allocations: 31.98 kB / 410.7 MB, free: 2.23 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003912/0.0233, allocations: 0.6694 MB / 411.4 MB, free: 1.535 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.914e-05/0.02337, allocations: 15.97 kB / 411.4 MB, free: 1.52 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.11e-05/0.02338, allocations: 8 kB / 411.4 MB, free: 1.512 MB / 330.7 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 7.91e-05/0.02346, allocations: 125.8 kB / 411.6 MB, free: 1.379 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.436e-05/0.02349, allocations: 19.84 kB / 411.6 MB, free: 1.359 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.888e-05/0.02353, allocations: 34.27 kB / 411.6 MB, free: 1.324 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.862e-06/0.02353, allocations: 8 kB / 411.6 MB, free: 1.316 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.048e-06/0.02354, allocations: 3.938 kB / 411.6 MB, free: 1.312 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.02354, allocations: 3.984 kB / 411.6 MB, free: 1.309 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001807/0.02372, allocations: 214.2 kB / 411.8 MB, free: 1.07 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.02372, allocations: 0 / 411.8 MB, free: 1.07 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001301/0.02385, allocations: 43.97 kB / 411.9 MB, free: 1.027 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000165/0.02402, allocations: 72.72 kB / 411.9 MB, free: 0.9531 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.093e-05/0.02403, allocations: 8 kB / 412 MB, free: 0.9453 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.111/0.1351, allocations: 2.666 MB / 414.6 MB, free: 37.77 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.1351, allocations: 0 / 414.6 MB, free: 37.77 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006644/0.1357, allocations: 0.7132 MB / 415.3 MB, free: 37.57 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.725e-05/0.1358, allocations: 18.17 kB / 415.4 MB, free: 37.57 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.301e-05/0.1358, allocations: 5.344 kB / 415.4 MB, free: 37.56 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.826e-05/0.1359, allocations: 14.36 kB / 415.4 MB, free: 37.56 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.008e-05/0.1359, allocations: 23.31 kB / 415.4 MB, free: 37.55 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.155e-05/0.1359, allocations: 7.016 kB / 415.4 MB, free: 37.55 MB / 330.7 MB Notification: Performance of sorting global known variables: time 2.833e-05/0.136, allocations: 93.25 kB / 415.5 MB, free: 37.48 MB / 330.7 MB Notification: Performance of sort global known variables: time 8e-08/0.136, allocations: 0 / 415.5 MB, free: 37.48 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002348/0.1362, allocations: 66.08 kB / 415.6 MB, free: 37.47 MB / 330.7 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.0002536/0.1365, allocations: 190 kB / 415.7 MB, free: 37.37 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004916/0.1369, allocations: 351.2 kB / 416.1 MB, free: 37.27 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.973e-06/0.1369, allocations: 1.5 kB / 416.1 MB, free: 37.27 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003057/0.1372, allocations: 306.1 kB / 416.4 MB, free: 37.09 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003904/0.1376, allocations: 98.61 kB / 416.5 MB, free: 37.07 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006872/0.1383, allocations: 0.6336 MB / 417.1 MB, free: 36.74 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.156e-05/0.1384, allocations: 128.4 kB / 417.2 MB, free: 36.67 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.521e-05/0.1384, allocations: 24.33 kB / 417.3 MB, free: 36.66 MB / 330.7 MB Notification: Performance of SimCode: time 3.11e-07/0.1384, allocations: 0 / 417.3 MB, free: 36.66 MB / 330.7 MB Notification: Performance of Templates: time 0.004321/0.1428, allocations: 3.94 MB / 421.2 MB, free: 36.36 MB / 330.7 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.240373202599585] Failed to read output from testmodel.py, exit status != 0: 0.1477235145866871 0.154145689 0.136329996 Calling exit ...