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.0009518/0.0009518, allocations: 92.2 kB / 20.19 MB, free: 4.359 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.001249/0.001249, allocations: 173 kB / 23.49 MB, free: 1.055 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.9367/0.9367, allocations: 177.1 MB / 203.8 MB, free: 5.652 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.007887/0.007887, allocations: 1.994 MB / 262.3 MB, free: 11.14 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.533e-06/1.533e-06, allocations: 0 / 332.3 MB, free: 2.359 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.602e-05/1.755e-05, allocations: 2.312 kB / 332.3 MB, free: 2.355 MB / 298.7 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic): time 0.006962/0.00698, allocations: 8.542 MB / 340.9 MB, free: 9.773 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.005909/0.01289, allocations: 9.526 MB / 350.4 MB, free: 220 kB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.12e-05/0.01298, allocations: 3.938 kB / 350.4 MB, free: 216 kB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004781/0.01346, allocations: 127.2 kB / 350.5 MB, free: 88 kB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003131/0.01377, allocations: 103.2 kB / 350.6 MB, free: 15.98 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.003372/0.01714, allocations: 1.502 MB / 352.1 MB, free: 14.47 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002981/0.01744, allocations: 270.6 kB / 352.4 MB, free: 14.21 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.118e-05/0.01748, allocations: 9.812 kB / 352.4 MB, free: 14.2 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003319/0.0208, allocations: 178.7 kB / 352.6 MB, free: 14.04 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001349/0.02094, allocations: 67.8 kB / 352.6 MB, free: 13.97 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 2.306e-05/0.02096, allocations: 8 kB / 352.6 MB, free: 13.96 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008884/0.02185, allocations: 471.6 kB / 353.1 MB, free: 13.5 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 5.774e-05/0.02191, allocations: 31.84 kB / 353.1 MB, free: 13.47 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 6.7e-05/0.02197, allocations: 67.83 kB / 353.2 MB, free: 13.4 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006854/0.02266, allocations: 482.7 kB / 353.7 MB, free: 12.93 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.225e-06/0.02266, allocations: 0 / 353.7 MB, free: 12.93 MB / 330.7 MB Notification: Performance of FrontEnd: time 5.71e-07/0.02266, allocations: 3.938 kB / 353.7 MB, free: 12.93 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.438e-06/0.02267, allocations: 0 / 353.7 MB, free: 12.93 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.0006198/0.02329, allocations: 0.5848 MB / 354.3 MB, free: 12.3 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.261e-05/0.02332, allocations: 8.031 kB / 354.3 MB, free: 12.3 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002587/0.02358, allocations: 96.5 kB / 354.4 MB, free: 12.2 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001671/0.02374, allocations: 140.5 kB / 354.5 MB, free: 12.04 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.697e-05/0.02376, allocations: 8.375 kB / 354.5 MB, free: 12.03 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.757e-05/0.02379, allocations: 16.33 kB / 354.5 MB, free: 12.02 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003306/0.02412, allocations: 260.7 kB / 354.8 MB, free: 11.73 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.927e-06/0.02413, allocations: 4.188 kB / 354.8 MB, free: 11.72 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.472e-05/0.02414, allocations: 4.125 kB / 354.8 MB, free: 11.72 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.35e-05/0.02416, allocations: 11.98 kB / 354.8 MB, free: 11.71 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001866/0.02434, allocations: 108.9 kB / 354.9 MB, free: 11.6 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000592/0.02494, allocations: 0.6986 MB / 355.6 MB, free: 10.85 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003687/0.0253, allocations: 159 kB / 355.8 MB, free: 10.68 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.473e-05/0.02538, allocations: 63.67 kB / 355.8 MB, free: 10.62 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000126/0.0255, allocations: 100.1 kB / 355.9 MB, free: 10.52 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.786e-05/0.02553, allocations: 41.3 kB / 356 MB, free: 10.47 MB / 330.7 MB Notification: Performance of pre-optimization done (n=44): time 1.623e-06/0.02553, allocations: 0 / 356 MB, free: 10.47 MB / 330.7 MB Notification: Performance of matching and sorting (n=48): time 0.001473/0.02701, allocations: 0.9126 MB / 356.9 MB, free: 9.523 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.44e-05/0.02704, allocations: 55.41 kB / 356.9 MB, free: 9.457 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001111/0.02715, allocations: 181.8 kB / 357.1 MB, free: 9.262 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.001e-05/0.02717, allocations: 33.7 kB / 357.1 MB, free: 9.223 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.576e-05/0.02724, allocations: 143.8 kB / 357.3 MB, free: 9.078 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.283e-05/0.02732, allocations: 170.5 kB / 357.4 MB, free: 8.91 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.001e-05/0.02739, allocations: 75.28 kB / 357.5 MB, free: 8.828 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001296/0.02752, allocations: 0.504 MB / 358 MB, free: 8.312 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.842e-05/0.0276, allocations: 56.47 kB / 358.1 MB, free: 8.254 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001106/0.02771, allocations: 137.1 kB / 358.2 MB, free: 8.094 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004831/0.02819, allocations: 218 kB / 358.4 MB, free: 7.855 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/0.0282, allocations: 8 kB / 358.4 MB, free: 7.848 MB / 330.7 MB Notification: Performance of matching and sorting (n=55) (initialization): time 0.0005139/0.02871, allocations: 369.8 kB / 358.8 MB, free: 7.477 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.776e-05/0.02873, allocations: 8.156 kB / 358.8 MB, free: 7.469 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.614e-06/0.02873, allocations: 0 / 358.8 MB, free: 7.469 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004121/0.02915, allocations: 147.5 kB / 358.9 MB, free: 7.32 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.508e-05/0.02922, allocations: 35.92 kB / 359 MB, free: 7.285 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005121/0.02973, allocations: 0.8979 MB / 359.9 MB, free: 6.355 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.013e-05/0.0298, allocations: 19.86 kB / 359.9 MB, free: 6.336 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.267e-05/0.02982, allocations: 4 kB / 359.9 MB, free: 6.332 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 {(4,7)} Notification: Performance of prepare postOptimizeDAE: time 9.594e-05/0.02991, allocations: 172.6 kB / 360.1 MB, free: 6.152 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.686e-05/0.02995, allocations: 27.84 kB / 360.1 MB, free: 6.125 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.793e-05/0.03, allocations: 22.28 kB / 360.1 MB, free: 6.102 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.476e-06/0.03001, allocations: 11.98 kB / 360.1 MB, free: 6.09 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.803e-06/0.03001, allocations: 0 / 360.1 MB, free: 6.09 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.149e-06/0.03002, allocations: 0 / 360.1 MB, free: 6.09 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000189/0.03021, allocations: 201.5 kB / 360.3 MB, free: 5.859 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/0.03021, allocations: 4 kB / 360.3 MB, free: 5.855 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000134/0.03034, allocations: 47.91 kB / 360.4 MB, free: 5.809 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002094/0.03055, allocations: 67.59 kB / 360.4 MB, free: 5.738 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.359e-05/0.03057, allocations: 8 kB / 360.5 MB, free: 5.73 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001951/0.03252, allocations: 3.683 MB / 364.1 MB, free: 1.781 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.462e-06/0.03252, allocations: 0 / 364.1 MB, free: 1.781 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000637/0.03316, allocations: 0.5615 MB / 364.7 MB, free: 1.199 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.446e-05/0.03317, allocations: 15.86 kB / 364.7 MB, free: 1.184 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.679e-05/0.03319, allocations: 3.938 kB / 364.7 MB, free: 1.18 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.225e-05/0.03327, allocations: 8 kB / 364.7 MB, free: 1.172 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.32e-05/0.03333, allocations: 27.94 kB / 364.8 MB, free: 1.145 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.243e-05/0.03335, allocations: 16.02 kB / 364.8 MB, free: 1.129 MB / 330.7 MB Notification: Performance of sorting global known variables: time 4.488e-05/0.03339, allocations: 135.2 kB / 364.9 MB, free: 0.9961 MB / 330.7 MB Notification: Performance of sort global known variables: time 8e-08/0.03339, allocations: 0 / 364.9 MB, free: 0.9961 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002252/0.03362, allocations: 63.92 kB / 365 MB, free: 0.9336 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.0003/0.03392, allocations: 183.4 kB / 365.1 MB, free: 0.7695 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004232/0.03434, allocations: 255.5 kB / 365.4 MB, free: 0.5195 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.03434, allocations: 0 / 365.4 MB, free: 0.5195 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005987/0.03494, allocations: 303.1 kB / 365.7 MB, free: 204 kB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004037/0.03534, allocations: 106.9 kB / 365.8 MB, free: 100 kB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009731/0.03632, allocations: 0.5545 MB / 366.3 MB, free: 15.51 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.676e-05/0.03636, allocations: 85.31 kB / 366.4 MB, free: 15.41 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001374/0.0365, allocations: 101.3 kB / 366.5 MB, free: 15.3 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.869e-05/0.03654, allocations: 24.48 kB / 366.6 MB, free: 15.28 MB / 346.7 MB Notification: Performance of SimCode: time 7.81e-07/0.03654, allocations: 0 / 366.6 MB, free: 15.28 MB / 346.7 MB Notification: Performance of Templates: time 0.006614/0.04315, allocations: 5.483 MB / 372 MB, free: 9.914 MB / 346.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=240 -lv LOG_STATS > ExternalMedia_ExternalMedia.Test.TestMedium.TestBasePropertiesDynamic.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.0194722758606076]