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.0007413/0.0007413, allocations: 72.5 kB / 19.93 MB, free: 4.633 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.000751/0.000751, 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.8172/0.8172, allocations: 177.1 MB / 203.5 MB, free: 5.738 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.007212/0.007212, allocations: 1.984 MB / 261.9 MB, free: 11.27 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.252e-06/1.252e-06, allocations: 0 / 385.9 MB, free: 11.45 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.26e-05/1.386e-05, allocations: 2.281 kB / 385.9 MB, free: 11.45 MB / 314.7 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestState): time 0.005107/0.00512, allocations: 6.993 MB / 392.9 MB, free: 4.418 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 2.322e-05/0.005144, allocations: 31.81 kB / 392.9 MB, free: 4.387 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.508e-05/0.005159, allocations: 0 / 392.9 MB, free: 4.387 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001534/0.005312, allocations: 67.58 kB / 393 MB, free: 4.32 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 1.701e-05/0.005329, allocations: 27.77 kB / 393 MB, free: 4.293 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001186/0.005448, allocations: 35.77 kB / 393 MB, free: 4.258 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 5.785e-05/0.005506, allocations: 51.48 kB / 393.1 MB, free: 4.207 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.552e-05/0.005541, allocations: 4 kB / 393.1 MB, free: 4.203 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.394e-05/0.005575, allocations: 11.98 kB / 393.1 MB, free: 4.191 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.807e-05/0.005613, allocations: 11.94 kB / 393.1 MB, free: 4.18 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 1.841e-05/0.005632, allocations: 4 kB / 393.1 MB, free: 4.176 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001191/0.005751, allocations: 43.98 kB / 393.2 MB, free: 4.133 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 1.085e-05/0.005761, allocations: 7.938 kB / 393.2 MB, free: 4.125 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 1.84e-05/0.00578, allocations: 11.94 kB / 393.2 MB, free: 4.113 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001193/0.005899, allocations: 55.83 kB / 393.2 MB, free: 4.059 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.515e-06/0.005902, allocations: 3.984 kB / 393.2 MB, free: 4.055 MB / 314.7 MB Notification: Performance of FrontEnd: time 7.52e-07/0.005902, allocations: 0 / 393.2 MB, free: 4.055 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.656e-06/0.005906, allocations: 0 / 393.2 MB, free: 4.055 MB / 314.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.0002244/0.00613, allocations: 258.3 kB / 393.5 MB, free: 3.773 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.831e-05/0.006159, allocations: 11.97 kB / 393.5 MB, free: 3.762 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.554e-05/0.006184, allocations: 4.891 kB / 393.5 MB, free: 3.758 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 5.178e-05/0.006236, allocations: 113.7 kB / 393.6 MB, free: 3.621 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.446e-06/0.006244, allocations: 384 / 393.6 MB, free: 3.621 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.913e-06/0.006251, allocations: 4.359 kB / 393.6 MB, free: 3.617 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.652e-05/0.006338, allocations: 54.27 kB / 393.7 MB, free: 3.559 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.943e-06/0.006345, allocations: 192 / 393.7 MB, free: 3.559 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.235e-06/0.006353, allocations: 4.125 kB / 393.7 MB, free: 3.555 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.091e-06/0.006359, allocations: 7.984 kB / 393.7 MB, free: 3.547 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.257e-05/0.006382, allocations: 20 kB / 393.7 MB, free: 3.527 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003066/0.006688, allocations: 125.2 kB / 393.8 MB, free: 3.375 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.483e-05/0.006733, allocations: 46.5 kB / 393.9 MB, free: 3.32 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.219e-05/0.006755, allocations: 32.88 kB / 393.9 MB, free: 3.285 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.873e-05/0.006774, allocations: 4 kB / 393.9 MB, free: 3.281 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.676e-05/0.006791, allocations: 34.56 kB / 393.9 MB, free: 3.238 MB / 314.7 MB Notification: Performance of pre-optimization done (n=15): time 6.01e-07/0.006791, allocations: 0 / 393.9 MB, free: 3.238 MB / 314.7 MB Notification: Performance of matching and sorting (n=15): time 0.0001579/0.006949, allocations: 132.6 kB / 394.1 MB, free: 3.105 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.532e-05/0.006975, allocations: 55.34 kB / 394.1 MB, free: 3.039 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.483e-05/0.007, allocations: 89.86 kB / 394.2 MB, free: 2.941 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 6.713e-06/0.007006, allocations: 25.7 kB / 394.2 MB, free: 2.91 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.648e-05/0.007023, allocations: 84.14 kB / 394.3 MB, free: 2.824 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.911e-05/0.007062, allocations: 55.52 kB / 394.4 MB, free: 2.77 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.204e-05/0.007084, allocations: 13.72 kB / 394.4 MB, free: 2.75 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.43e-05/0.007148, allocations: 326.9 kB / 394.7 MB, free: 2.422 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.022e-05/0.007168, allocations: 24 kB / 394.7 MB, free: 2.398 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.667e-05/0.007185, allocations: 27.98 kB / 394.8 MB, free: 2.371 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.221e-05/0.007237, allocations: 76.77 kB / 394.8 MB, free: 2.293 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.007239, allocations: 0 / 394.8 MB, free: 2.293 MB / 314.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 6.338e-05/0.007302, allocations: 96.73 kB / 394.9 MB, free: 2.195 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.798e-06/0.007312, allocations: 4 kB / 394.9 MB, free: 2.191 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.089e-06/0.007317, allocations: 3.938 kB / 394.9 MB, free: 2.188 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.055e-05/0.007328, allocations: 0 / 394.9 MB, free: 2.188 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.453e-06/0.007329, allocations: 7.875 kB / 394.9 MB, free: 2.18 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.587e-06/0.007333, allocations: 0 / 394.9 MB, free: 2.18 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.913e-05/0.007352, allocations: 15.95 kB / 395 MB, free: 2.164 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.39e-06/0.007357, allocations: 7.922 kB / 395 MB, free: 2.156 MB / 314.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.695e-05/0.007404, allocations: 113.8 kB / 395.1 MB, free: 2.035 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.148e-06/0.007408, allocations: 3.984 kB / 395.1 MB, free: 2.031 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.604e-05/0.007434, allocations: 3.969 kB / 395.1 MB, free: 2.023 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-06/0.007437, allocations: 0 / 395.1 MB, free: 2.023 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.458e-06/0.007441, allocations: 7.938 kB / 395.1 MB, free: 2.016 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.344e-06/0.007443, allocations: 0 / 395.1 MB, free: 2.016 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.576e-05/0.007499, allocations: 117.3 kB / 395.2 MB, free: 1.871 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.01e-07/0.0075, allocations: 0 / 395.2 MB, free: 1.871 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.092e-06/0.007501, allocations: 7.984 kB / 395.2 MB, free: 1.863 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.81e-07/0.007501, allocations: 0 / 395.2 MB, free: 1.863 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.22e-06/0.007507, allocations: 4 kB / 395.2 MB, free: 1.859 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.3e-07/0.007507, allocations: 0 / 395.2 MB, free: 1.859 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.32e-07/0.007508, allocations: 0 / 395.2 MB, free: 1.859 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.621e-05/0.007584, allocations: 132.9 kB / 395.3 MB, free: 1.711 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.899e-06/0.007589, allocations: 0 / 395.3 MB, free: 1.711 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.933e-06/0.007596, allocations: 4 kB / 395.3 MB, free: 1.707 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.014e-05/0.007606, allocations: 0 / 395.3 MB, free: 1.707 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.055e-05/0.007616, allocations: 3.938 kB / 395.3 MB, free: 1.703 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.81e-07/0.007617, allocations: 0 / 395.3 MB, free: 1.703 MB / 314.7 MB Notification: Performance of sorting global known variables: time 1.577e-05/0.007633, allocations: 79.31 kB / 395.4 MB, free: 1.625 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007633, allocations: 0 / 395.4 MB, free: 1.625 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0001265/0.00776, allocations: 12 kB / 395.4 MB, free: 1.613 MB / 314.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.0002118/0.007972, allocations: 140 kB / 395.6 MB, free: 1.477 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 8.339e-05/0.008055, allocations: 59.97 kB / 395.6 MB, free: 1.418 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.273e-06/0.008056, allocations: 0 / 395.6 MB, free: 1.418 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 1.662e-05/0.008073, allocations: 31.94 kB / 395.7 MB, free: 1.387 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002075/0.00828, allocations: 50.97 kB / 395.7 MB, free: 1.34 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002428/0.008523, allocations: 230.1 kB / 395.9 MB, free: 1.082 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.802e-05/0.008561, allocations: 75.23 kB / 396 MB, free: 0.9883 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.436e-06/0.00857, allocations: 8.5 kB / 396 MB, free: 0.9805 MB / 314.7 MB Notification: Performance of SimCode: time 2.71e-07/0.00857, allocations: 0 / 396 MB, free: 0.9805 MB / 314.7 MB Notification: Performance of Templates: time 0.001383/0.009953, allocations: 0.8573 MB / 396.9 MB, free: 132 kB / 314.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=480 -lv LOG_STATS > ExternalMedia_ExternalMedia.Test.TestMedium.TestState.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 3.6058275448158383] Failed to read output from testmodel.py, exit status != 0: 0.013978858478367329 0.021887027 0.014420179000000002 Calling exit ...