Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternalMedia_ExternalMedia.Test.TestMedium.TestState.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.0006733/0.0006733, allocations: 72.19 kB / 9.903 MB, free: 0.7852 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009292/0.001602, allocations: 435.8 kB / 10.33 MB, free: 368 kB / 10.45 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.0007011/0.0007011, allocations: 161.1 kB / 11.23 MB, free: 2.941 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009016/0.001603, allocations: 463.6 kB / 11.68 MB, free: 2.484 MB / 13.93 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.9815/0.9815, allocations: 177.2 MB / 189.6 MB, free: 5.309 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08218/1.064, allocations: 53.65 MB / 243.2 MB, free: 15.59 MB / 250.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.00751/0.00751, allocations: 1.983 MB / 245.9 MB, free: 12.88 MB / 250.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.002183/0.009693, allocations: 1.227 MB / 247.2 MB, free: 11.65 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.TestState,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="ExternalMedia_ExternalMedia.Test.TestMedium.TestState") translateModel(ExternalMedia.Test.TestMedium.TestState,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="ExternalMedia_ExternalMedia.Test.TestMedium.TestState") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.723e-06/1.723e-06, allocations: 0 / 248.4 MB, free: 10.4 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.813e-05/1.986e-05, allocations: 2.312 kB / 248.4 MB, free: 10.4 MB / 250.7 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestState): time 0.007637/0.007657, allocations: 7.766 MB / 256.2 MB, free: 2.598 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 2.964e-05/0.007686, allocations: 31.88 kB / 256.2 MB, free: 2.566 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.39e-05/0.0077, allocations: 4 kB / 256.2 MB, free: 2.562 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001184/0.007819, allocations: 59.64 kB / 256.3 MB, free: 2.504 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 1.831e-05/0.007837, allocations: 27.77 kB / 256.3 MB, free: 2.477 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 7.948e-05/0.007917, allocations: 47.62 kB / 256.4 MB, free: 2.43 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 6.235e-05/0.007979, allocations: 43.62 kB / 256.4 MB, free: 2.387 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.621e-05/0.008015, allocations: 11.92 kB / 256.4 MB, free: 2.375 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 4.357e-05/0.008059, allocations: 15.98 kB / 256.4 MB, free: 2.359 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.354e-05/0.008102, allocations: 11.94 kB / 256.4 MB, free: 2.348 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 1.405e-05/0.008116, allocations: 0 / 256.4 MB, free: 2.348 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001377/0.008254, allocations: 43.94 kB / 256.5 MB, free: 2.305 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 9.228e-06/0.008263, allocations: 0 / 256.5 MB, free: 2.305 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 2.119e-05/0.008284, allocations: 11.94 kB / 256.5 MB, free: 2.293 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000118/0.008402, allocations: 55.83 kB / 256.5 MB, free: 2.238 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.329e-05/0.008416, allocations: 4 kB / 256.5 MB, free: 2.234 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.302e-06/0.008417, allocations: 0 / 256.5 MB, free: 2.234 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.326e-05/0.00843, allocations: 0 / 256.5 MB, free: 2.234 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0002602/0.00869, allocations: 248.5 kB / 256.8 MB, free: 1.969 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.815e-05/0.008719, allocations: 12.03 kB / 256.8 MB, free: 1.957 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.093e-05/0.00874, allocations: 4.938 kB / 256.8 MB, free: 1.953 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.072e-05/0.00879, allocations: 105.7 kB / 256.9 MB, free: 1.824 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.406e-06/0.008799, allocations: 4.375 kB / 256.9 MB, free: 1.82 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.789e-06/0.008803, allocations: 384 / 256.9 MB, free: 1.82 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.442e-05/0.008878, allocations: 53.02 kB / 257 MB, free: 1.762 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.881e-06/0.008884, allocations: 192 / 257 MB, free: 1.762 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.861e-06/0.00889, allocations: 4.125 kB / 257 MB, free: 1.758 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.841e-06/0.008895, allocations: 0 / 257 MB, free: 1.758 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.444e-05/0.00891, allocations: 8 kB / 257 MB, free: 1.75 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 6.687e-05/0.008977, allocations: 70.62 kB / 257 MB, free: 1.664 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.411e-05/0.009011, allocations: 26.58 kB / 257.1 MB, free: 1.629 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.056e-05/0.009021, allocations: 12.89 kB / 257.1 MB, free: 1.613 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.07e-05/0.009042, allocations: 4 kB / 257.1 MB, free: 1.609 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.95e-05/0.009062, allocations: 34.5 kB / 257.1 MB, free: 1.566 MB / 250.7 MB Notification: Performance of pre-optimization done (n=15): time 8.01e-07/0.009062, allocations: 0 / 257.1 MB, free: 1.566 MB / 250.7 MB Notification: Performance of matching and sorting (n=15): time 0.0001107/0.009173, allocations: 81.69 kB / 257.2 MB, free: 1.48 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.601e-05/0.009199, allocations: 51.41 kB / 257.3 MB, free: 1.418 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.786e-05/0.009227, allocations: 97.78 kB / 257.4 MB, free: 1.312 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 8.205e-06/0.009235, allocations: 25.7 kB / 257.4 MB, free: 1.281 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.763e-05/0.009253, allocations: 80.14 kB / 257.5 MB, free: 1.199 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.087e-05/0.009294, allocations: 55.8 kB / 257.5 MB, free: 1.145 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.11e-05/0.009315, allocations: 13.72 kB / 257.5 MB, free: 1.125 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 6.554e-05/0.00938, allocations: 322.8 kB / 257.8 MB, free: 0.8008 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.175e-05/0.009392, allocations: 10.83 kB / 257.8 MB, free: 0.7891 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.757e-06/0.009401, allocations: 11.94 kB / 257.9 MB, free: 0.7773 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.244e-05/0.009433, allocations: 39.53 kB / 257.9 MB, free: 0.7383 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.232e-06/0.009434, allocations: 0 / 257.9 MB, free: 0.7383 MB / 250.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 4.884e-05/0.009483, allocations: 69.62 kB / 258 MB, free: 0.6641 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.039e-05/0.009494, allocations: 4 kB / 258 MB, free: 0.6602 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.17e-06/0.009499, allocations: 0 / 258 MB, free: 0.6602 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.062e-06/0.009505, allocations: 0 / 258 MB, free: 0.6602 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.346e-06/0.009508, allocations: 0 / 258 MB, free: 0.6602 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.224e-06/0.009511, allocations: 0 / 258 MB, free: 0.6602 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.944e-05/0.00953, allocations: 11.89 kB / 258 MB, free: 0.6484 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.188e-06/0.009534, allocations: 0 / 258 MB, free: 0.6484 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 4.711e-05/0.009581, allocations: 109.9 kB / 258.1 MB, free: 0.5312 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.749e-06/0.009586, allocations: 7.984 kB / 258.1 MB, free: 0.5234 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.366e-05/0.00961, allocations: 7.906 kB / 258.1 MB, free: 0.5195 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.425e-06/0.009612, allocations: 0 / 258.1 MB, free: 0.5195 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.132e-06/0.009613, allocations: 0 / 258.1 MB, free: 0.5195 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.765e-06/0.009616, allocations: 3.938 kB / 258.1 MB, free: 0.5156 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.902e-05/0.009665, allocations: 77.78 kB / 258.2 MB, free: 432 kB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.472e-06/0.009666, allocations: 3.984 kB / 258.2 MB, free: 428 kB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.11e-07/0.009667, allocations: 0 / 258.2 MB, free: 428 kB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.438e-06/0.009671, allocations: 0 / 258.2 MB, free: 428 kB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.61e-07/0.009672, allocations: 4 kB / 258.2 MB, free: 424 kB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.697e-06/0.009676, allocations: 8 kB / 258.2 MB, free: 416 kB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.31e-07/0.009676, allocations: 0 / 258.2 MB, free: 416 kB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.716e-06/0.009679, allocations: 7.984 kB / 258.2 MB, free: 408 kB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.906e-05/0.009738, allocations: 94.7 kB / 258.3 MB, free: 292 kB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.512e-06/0.009744, allocations: 3.984 kB / 258.3 MB, free: 288 kB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.087e-06/0.009754, allocations: 4 kB / 258.3 MB, free: 284 kB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.484e-06/0.009761, allocations: 0 / 258.3 MB, free: 284 kB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.713e-06/0.009763, allocations: 0 / 258.3 MB, free: 284 kB / 250.7 MB Notification: Performance of sorting global known variables: time 4.368e-06/0.009767, allocations: 4.859 kB / 258.3 MB, free: 276 kB / 250.7 MB Notification: Performance of sort global known variables: time 6e-08/0.009767, allocations: 7.875 kB / 258.3 MB, free: 268 kB / 250.7 MB Notification: Performance of remove unused functions: time 9.673e-05/0.009864, allocations: 15.94 kB / 258.3 MB, free: 252 kB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002703/0.01013, allocations: 131.2 kB / 258.5 MB, free: 128 kB / 250.7 MB Notification: Performance of simCode: created initialization part: time 6.767e-05/0.0102, allocations: 40.72 kB / 258.5 MB, free: 84 kB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.0102, allocations: 0 / 258.5 MB, free: 84 kB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 1.251e-05/0.01022, allocations: 20.84 kB / 258.5 MB, free: 60 kB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001502/0.01037, allocations: 35.22 kB / 258.6 MB, free: 28 kB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00129/0.01166, allocations: 219.2 kB / 258.8 MB, free: 15.79 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.653e-05/0.01168, allocations: 55.36 kB / 258.8 MB, free: 15.71 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 1.563e-05/0.0117, allocations: 7.984 kB / 258.8 MB, free: 15.7 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.486e-05/0.01175, allocations: 67.34 kB / 258.9 MB, free: 15.64 MB / 266.7 MB Notification: Performance of SimCode: time 5.41e-07/0.01175, allocations: 0 / 258.9 MB, free: 15.64 MB / 266.7 MB Notification: Performance of Templates: time 0.003485/0.01524, allocations: 2.007 MB / 260.9 MB, free: 13.67 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f ExternalMedia_ExternalMedia.Test.TestMedium.TestState.makefile [Timeout 660] (rm -f ExternalMedia_ExternalMedia.Test.TestMedium.TestState.pipe ; mkfifo ExternalMedia_ExternalMedia.Test.TestMedium.TestState.pipe ; head -c 1048576 < ExternalMedia_ExternalMedia.Test.TestMedium.TestState.pipe >> ../files/ExternalMedia_ExternalMedia.Test.TestMedium.TestState.sim & ./ExternalMedia_ExternalMedia.Test.TestMedium.TestState -abortSlowSimulation -alarm=240 -lv LOG_STATS > ExternalMedia_ExternalMedia.Test.TestMedium.TestState.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 2.3566286340355873]