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.001281/0.001281, allocations: 80.94 kB / 19.94 MB, free: 4.543 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.001415/0.001415, allocations: 177.4 kB / 23.36 MB, free: 1.129 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.897/0.897, allocations: 177.2 MB / 203.8 MB, free: 5.477 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.008298/0.008298, allocations: 1.996 MB / 262.3 MB, free: 10.94 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 8.32e-07/8.32e-07, allocations: 0 / 279.5 MB, free: 9.684 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.948e-06/1.078e-05, allocations: 2.312 kB / 279.5 MB, free: 9.68 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestState): time 0.006/0.006011, allocations: 7.711 MB / 287.2 MB, free: 1.93 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 3.043e-05/0.006041, allocations: 39.75 kB / 287.3 MB, free: 1.891 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.035e-05/0.006052, allocations: 0 / 287.3 MB, free: 1.891 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000131/0.006183, allocations: 59.64 kB / 287.3 MB, free: 1.832 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 1.786e-05/0.0062, allocations: 19.8 kB / 287.3 MB, free: 1.812 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001184/0.006319, allocations: 47.61 kB / 287.4 MB, free: 1.766 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 5.006e-05/0.006369, allocations: 47.62 kB / 287.4 MB, free: 1.719 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 2.323e-05/0.006392, allocations: 7.922 kB / 287.4 MB, free: 1.711 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.711e-05/0.006419, allocations: 15.98 kB / 287.5 MB, free: 1.695 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.311e-05/0.006452, allocations: 11.94 kB / 287.5 MB, free: 1.684 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.033e-05/0.006463, allocations: 0 / 287.5 MB, free: 1.684 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001104/0.006573, allocations: 43.98 kB / 287.5 MB, free: 1.641 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 1.084e-05/0.006584, allocations: 0 / 287.5 MB, free: 1.641 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 1.589e-05/0.0066, allocations: 15.94 kB / 287.5 MB, free: 1.625 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 9.349e-05/0.006693, allocations: 47.89 kB / 287.6 MB, free: 1.578 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.272e-06/0.006695, allocations: 0 / 287.6 MB, free: 1.578 MB / 266.7 MB Notification: Performance of FrontEnd: time 4.31e-07/0.006695, allocations: 0 / 287.6 MB, free: 1.578 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.795e-06/0.006698, allocations: 7.938 kB / 287.6 MB, free: 1.57 MB / 266.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.000174/0.006872, allocations: 236.9 kB / 287.8 MB, free: 1.316 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.947e-05/0.006901, allocations: 16.02 kB / 287.8 MB, free: 1.301 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.092e-05/0.006922, allocations: 0.9375 kB / 287.8 MB, free: 1.301 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.976e-05/0.006972, allocations: 113.7 kB / 287.9 MB, free: 1.164 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.191e-06/0.006978, allocations: 384 / 287.9 MB, free: 1.164 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.204e-06/0.006985, allocations: 4.375 kB / 287.9 MB, free: 1.16 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.322e-05/0.007039, allocations: 37.09 kB / 288 MB, free: 1.117 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.168e-06/0.007043, allocations: 192 / 288 MB, free: 1.117 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.14e-06/0.007048, allocations: 4.125 kB / 288 MB, free: 1.113 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.26e-06/0.007053, allocations: 3.984 kB / 288 MB, free: 1.109 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.406e-05/0.007067, allocations: 15.94 kB / 288 MB, free: 1.094 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 5.986e-05/0.007127, allocations: 70.7 kB / 288.1 MB, free: 1.008 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 2.793e-05/0.007155, allocations: 22.58 kB / 288.1 MB, free: 0.9766 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.339e-05/0.007168, allocations: 12.89 kB / 288.1 MB, free: 0.9609 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.352e-05/0.007182, allocations: 3.984 kB / 288.1 MB, free: 0.957 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.549e-05/0.007197, allocations: 34.55 kB / 288.1 MB, free: 0.9141 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 3.9e-07/0.007198, allocations: 0 / 288.1 MB, free: 0.9141 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 9.026e-05/0.007288, allocations: 85.38 kB / 288.2 MB, free: 0.8281 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.724e-05/0.007315, allocations: 51.41 kB / 288.3 MB, free: 0.7656 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.282e-05/0.007348, allocations: 93.8 kB / 288.4 MB, free: 0.6641 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.044e-05/0.007359, allocations: 29.73 kB / 288.4 MB, free: 0.6289 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.104e-05/0.00738, allocations: 80.14 kB / 288.5 MB, free: 0.5469 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.278e-05/0.007422, allocations: 55.52 kB / 288.5 MB, free: 0.4922 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.032e-05/0.007443, allocations: 17.7 kB / 288.6 MB, free: 480 kB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.399e-05/0.007527, allocations: 314.8 kB / 288.9 MB, free: 156 kB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.028e-05/0.007537, allocations: 10.83 kB / 288.9 MB, free: 144 kB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.187e-06/0.007546, allocations: 8 kB / 288.9 MB, free: 136 kB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.206e-05/0.007588, allocations: 43.59 kB / 288.9 MB, free: 88 kB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.275e-06/0.00759, allocations: 0 / 288.9 MB, free: 88 kB / 266.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 5.24e-05/0.007643, allocations: 65.62 kB / 289 MB, free: 16 kB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.048e-05/0.007653, allocations: 8.062 kB / 289 MB, free: 8 kB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/0.007659, allocations: 0 / 289 MB, free: 8 kB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.165e-05/0.007671, allocations: 0 / 289 MB, free: 8 kB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.18e-06/0.007676, allocations: 0 / 289 MB, free: 8 kB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.167e-06/0.00768, allocations: 7.984 kB / 289 MB, free: 0 / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.1203/0.128, allocations: 12.84 kB / 289 MB, free: 25.18 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.49e-06/0.128, allocations: 0 / 289 MB, free: 25.18 MB / 266.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 3.995e-05/0.1281, allocations: 108.8 kB / 289.1 MB, free: 25.06 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.136e-06/0.1281, allocations: 0 / 289.1 MB, free: 25.06 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.398e-05/0.1281, allocations: 5.047 kB / 289.1 MB, free: 25.06 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.791e-06/0.1281, allocations: 5.625 kB / 289.1 MB, free: 25.06 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.273e-06/0.1281, allocations: 1.219 kB / 289.1 MB, free: 25.06 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.124e-06/0.1281, allocations: 1.891 kB / 289.1 MB, free: 25.06 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.189e-05/0.1282, allocations: 67.47 kB / 289.2 MB, free: 24.99 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.1282, allocations: 0.5312 kB / 289.2 MB, free: 24.99 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.392e-06/0.1282, allocations: 3.531 kB / 289.2 MB, free: 24.99 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.563e-06/0.1282, allocations: 0 / 289.2 MB, free: 24.99 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.056e-06/0.1282, allocations: 0 / 289.2 MB, free: 24.99 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.1282, allocations: 2.734 kB / 289.2 MB, free: 24.99 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.1282, allocations: 4.25 kB / 289.2 MB, free: 24.99 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.486e-05/0.1282, allocations: 98.58 kB / 289.3 MB, free: 24.92 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.011e-06/0.1282, allocations: 10.2 kB / 289.3 MB, free: 24.92 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.451e-06/0.1282, allocations: 3.781 kB / 289.3 MB, free: 24.92 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.967e-06/0.1283, allocations: 5.016 kB / 289.3 MB, free: 24.91 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.253e-06/0.1283, allocations: 1.156 kB / 289.3 MB, free: 24.91 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.443e-06/0.1283, allocations: 1.969 kB / 289.3 MB, free: 24.91 MB / 266.7 MB Notification: Performance of sorting global known variables: time 3.606e-06/0.1283, allocations: 6.547 kB / 289.3 MB, free: 24.91 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1283, allocations: 0 / 289.3 MB, free: 24.91 MB / 266.7 MB Notification: Performance of remove unused functions: time 9.727e-05/0.1284, allocations: 17.39 kB / 289.3 MB, free: 24.91 MB / 266.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.0001608/0.1285, allocations: 128 kB / 289.5 MB, free: 24.84 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 4.628e-05/0.1286, allocations: 32.56 kB / 289.5 MB, free: 24.83 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.1286, allocations: 0.5625 kB / 289.5 MB, free: 24.83 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 1.293e-05/0.1286, allocations: 22.12 kB / 289.5 MB, free: 24.82 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001218/0.1287, allocations: 37.66 kB / 289.6 MB, free: 24.82 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004016/0.1291, allocations: 214.8 kB / 289.8 MB, free: 24.69 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 1.823e-05/0.1291, allocations: 60.81 kB / 289.8 MB, free: 24.62 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 1.692e-05/0.1291, allocations: 3.094 kB / 289.8 MB, free: 24.62 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.546e-05/0.1292, allocations: 64.03 kB / 289.9 MB, free: 24.57 MB / 266.7 MB Notification: Performance of SimCode: time 4.11e-07/0.1292, allocations: 2.672 kB / 289.9 MB, free: 24.57 MB / 266.7 MB Notification: Performance of Templates: time 0.003063/0.1323, allocations: 1.948 MB / 291.8 MB, free: 24.4 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.5173027119599283]