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.00146/0.00146, allocations: 92.22 kB / 19.65 MB, free: 280 kB / 13.93 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.001535/0.001535, allocations: 169 kB / 23.02 MB, free: 1.551 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 1.054/1.054, allocations: 177.1 MB / 203.4 MB, free: 5.23 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.01083/0.01083, allocations: 1.99 MB / 261.9 MB, free: 10.9 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.233e-06/1.233e-06, allocations: 0 / 332.3 MB, free: 16.95 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.559e-05/1.682e-05, allocations: 2.312 kB / 332.3 MB, free: 16.95 MB / 266.7 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestState): time 0.005944/0.005961, allocations: 7.739 MB / 340 MB, free: 9.172 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 2.424e-05/0.005985, allocations: 31.81 kB / 340.1 MB, free: 9.141 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.646e-05/0.006002, allocations: 0 / 340.1 MB, free: 9.141 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001987/0.0062, allocations: 63.64 kB / 340.1 MB, free: 9.078 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 1.361e-05/0.006214, allocations: 23.73 kB / 340.2 MB, free: 9.055 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001627/0.006377, allocations: 43.67 kB / 340.2 MB, free: 9.012 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 6.392e-05/0.006441, allocations: 43.62 kB / 340.2 MB, free: 8.969 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 3.237e-05/0.006473, allocations: 7.938 kB / 340.3 MB, free: 8.961 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.682e-05/0.00651, allocations: 11.98 kB / 340.3 MB, free: 8.949 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.64e-05/0.006556, allocations: 11.94 kB / 340.3 MB, free: 8.938 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 1.642e-05/0.006573, allocations: 0 / 340.3 MB, free: 8.938 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001446/0.006717, allocations: 47.98 kB / 340.3 MB, free: 8.891 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 1.303e-05/0.00673, allocations: 4 kB / 340.3 MB, free: 8.887 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 2.428e-05/0.006755, allocations: 11.94 kB / 340.3 MB, free: 8.875 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001415/0.006896, allocations: 51.83 kB / 340.4 MB, free: 8.824 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.966e-06/0.006899, allocations: 3.984 kB / 340.4 MB, free: 8.82 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.01e-07/0.0069, allocations: 0 / 340.4 MB, free: 8.82 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.268e-06/0.006904, allocations: 3.938 kB / 340.4 MB, free: 8.816 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.0002488/0.007153, allocations: 364.6 kB / 340.8 MB, free: 8.426 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.916e-05/0.007192, allocations: 8.031 kB / 340.8 MB, free: 8.418 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.803e-05/0.00723, allocations: 8.891 kB / 340.8 MB, free: 8.41 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.144e-05/0.007271, allocations: 120.5 kB / 340.9 MB, free: 8.266 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.01e-05/0.007282, allocations: 384 / 340.9 MB, free: 8.266 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.937e-06/0.00729, allocations: 4.359 kB / 340.9 MB, free: 8.262 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.677e-05/0.007377, allocations: 41.08 kB / 340.9 MB, free: 8.219 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.404e-06/0.007385, allocations: 192 / 340.9 MB, free: 8.219 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.177e-06/0.007394, allocations: 4.125 kB / 340.9 MB, free: 8.215 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.246e-06/0.007402, allocations: 4 kB / 340.9 MB, free: 8.211 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.545e-05/0.007417, allocations: 11.94 kB / 341 MB, free: 8.199 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.149e-05/0.007499, allocations: 120.6 kB / 341.1 MB, free: 8.047 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.902e-05/0.007538, allocations: 39 kB / 341.1 MB, free: 7.996 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.455e-05/0.007553, allocations: 23.72 kB / 341.1 MB, free: 7.969 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.049e-05/0.007573, allocations: 0 / 341.1 MB, free: 7.969 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.498e-05/0.007588, allocations: 33.39 kB / 341.2 MB, free: 7.926 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 7.11e-07/0.007589, allocations: 4 kB / 341.2 MB, free: 7.922 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.0001412/0.00773, allocations: 89.84 kB / 341.3 MB, free: 7.828 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.592e-05/0.007756, allocations: 59.34 kB / 341.3 MB, free: 7.758 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.374e-05/0.00779, allocations: 142.2 kB / 341.5 MB, free: 7.605 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.089e-06/0.007795, allocations: 25.7 kB / 341.5 MB, free: 7.574 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 1.331e-05/0.007808, allocations: 126.9 kB / 341.6 MB, free: 7.445 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.98e-05/0.007848, allocations: 55.59 kB / 341.7 MB, free: 7.391 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.382e-05/0.007872, allocations: 23.38 kB / 341.7 MB, free: 7.359 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 4.965e-05/0.007921, allocations: 0.4962 MB / 342.2 MB, free: 6.852 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.349e-05/0.007935, allocations: 8 kB / 342.2 MB, free: 6.844 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.046e-05/0.007945, allocations: 11.94 kB / 342.2 MB, free: 6.832 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.293e-05/0.007988, allocations: 46.44 kB / 342.2 MB, free: 6.785 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.00799, allocations: 0 / 342.2 MB, free: 6.785 MB / 266.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 5.456e-05/0.008045, allocations: 73.58 kB / 342.3 MB, free: 6.707 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.133e-05/0.008056, allocations: 4 kB / 342.3 MB, free: 6.703 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.933e-06/0.008063, allocations: 0 / 342.3 MB, free: 6.703 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.184e-05/0.008075, allocations: 4 kB / 342.3 MB, free: 6.699 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.537e-06/0.008079, allocations: 3.938 kB / 342.3 MB, free: 6.695 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.388e-06/0.008083, allocations: 64 / 342.3 MB, free: 6.695 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.616e-05/0.008109, allocations: 11.89 kB / 342.3 MB, free: 6.684 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.162e-06/0.008115, allocations: 0 / 342.3 MB, free: 6.684 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 4.296e-05/0.008158, allocations: 160.6 kB / 342.5 MB, free: 6.516 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.088e-06/0.008162, allocations: 0 / 342.5 MB, free: 6.516 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.867e-05/0.008191, allocations: 3.969 kB / 342.5 MB, free: 6.516 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.348e-06/0.008195, allocations: 8 kB / 342.5 MB, free: 6.508 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.276e-06/0.008199, allocations: 3.938 kB / 342.5 MB, free: 6.504 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.816e-06/0.008201, allocations: 0 / 342.5 MB, free: 6.504 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 4.081e-05/0.008242, allocations: 116.6 kB / 342.6 MB, free: 6.355 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.81e-07/0.008243, allocations: 4 kB / 342.6 MB, free: 6.352 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.6e-07/0.008243, allocations: 0 / 342.6 MB, free: 6.352 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.01e-07/0.008244, allocations: 0 / 342.6 MB, free: 6.352 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.711e-06/0.00825, allocations: 4 kB / 342.6 MB, free: 6.348 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.32e-07/0.00825, allocations: 0 / 342.6 MB, free: 6.348 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.008251, allocations: 0 / 342.6 MB, free: 6.348 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.327e-05/0.008314, allocations: 124.2 kB / 342.8 MB, free: 6.203 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.252e-06/0.008321, allocations: 4 kB / 342.8 MB, free: 6.199 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.363e-06/0.008328, allocations: 0 / 342.8 MB, free: 6.199 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.273e-05/0.008341, allocations: 11.98 kB / 342.8 MB, free: 6.188 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.668e-05/0.008357, allocations: 3.938 kB / 342.8 MB, free: 6.184 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.873e-06/0.008359, allocations: 4.031 kB / 342.8 MB, free: 6.18 MB / 266.7 MB Notification: Performance of sorting global known variables: time 2.089e-05/0.00838, allocations: 119.2 kB / 342.9 MB, free: 6.062 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.00838, allocations: 0 / 342.9 MB, free: 6.062 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001287/0.008509, allocations: 19.94 kB / 342.9 MB, free: 6.043 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.0003038/0.008813, allocations: 140.8 kB / 343.1 MB, free: 5.906 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001097/0.008922, allocations: 35.69 kB / 343.1 MB, free: 5.867 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.045e-06/0.008925, allocations: 0 / 343.1 MB, free: 5.867 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 1.735e-05/0.008943, allocations: 31.61 kB / 343.1 MB, free: 5.832 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002322/0.009175, allocations: 42.97 kB / 343.2 MB, free: 5.793 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006685/0.009844, allocations: 209.8 kB / 343.4 MB, free: 5.559 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 2.567e-05/0.009869, allocations: 63.34 kB / 343.4 MB, free: 5.477 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 2.482e-05/0.009894, allocations: 0 / 343.4 MB, free: 5.477 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.102e-05/0.009905, allocations: 8.5 kB / 343.4 MB, free: 5.469 MB / 266.7 MB Notification: Performance of SimCode: time 8.21e-07/0.009906, allocations: 0 / 343.4 MB, free: 5.469 MB / 266.7 MB Notification: Performance of Templates: time 0.00334/0.01325, allocations: 2.033 MB / 345.5 MB, free: 3.488 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: 3.0264959959313273]