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.001427/0.001427, allocations: 100.3 kB / 19.7 MB, free: 2.012 MB / 14.72 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.001855/0.001855, allocations: 219.2 kB / 22.99 MB, free: 4.914 MB / 14.72 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.57/1.57, allocations: 230.6 MB / 256.8 MB, free: 7.816 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/package.mo): time 0.01265/0.01265, allocations: 2.803 MB / 316 MB, free: 120 kB / 238.1 MB " [Timeout remaining time 180] Using package ExternalMedia with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternalMedia 4.0.0/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: ExternalMedia requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002054/0.002054, allocations: 71.89 kB / 439.9 MB, free: 12.87 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1152/0.1172, allocations: 54.17 MB / 494 MB, free: 6.598 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestState): time 0.009798/0.127, allocations: 7.01 MB / 0.4893 GB, free: 15.55 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 4.003e-05/0.127, allocations: 23.89 kB / 0.4893 GB, free: 15.53 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.127e-05/0.1271, allocations: 0 / 0.4893 GB, free: 15.53 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002843/0.1273, allocations: 71.58 kB / 0.4894 GB, free: 15.46 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 2.875e-05/0.1274, allocations: 23.83 kB / 0.4894 GB, free: 15.43 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001843/0.1276, allocations: 39.69 kB / 0.4895 GB, free: 15.39 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 7.93e-05/0.1276, allocations: 39.69 kB / 0.4895 GB, free: 15.36 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.964e-05/0.1277, allocations: 0 / 0.4895 GB, free: 15.36 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.681e-05/0.1277, allocations: 15.94 kB / 0.4895 GB, free: 15.34 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.461e-05/0.1278, allocations: 15.92 kB / 0.4895 GB, free: 15.32 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.167e-05/0.1278, allocations: 0 / 0.4895 GB, free: 15.32 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001731/0.128, allocations: 47.94 kB / 0.4896 GB, free: 15.28 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 1.495e-05/0.128, allocations: 3.938 kB / 0.4896 GB, free: 15.27 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 3.736e-05/0.128, allocations: 11.94 kB / 0.4896 GB, free: 15.26 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001712/0.1282, allocations: 59.8 kB / 0.4896 GB, free: 15.2 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.11e-06/0.1282, allocations: 0 / 0.4896 GB, free: 15.2 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.1282, allocations: 7.938 kB / 0.4897 GB, free: 15.2 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.082e-06/0.1282, allocations: 0 / 0.4897 GB, free: 15.2 MB / 366.1 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.0003612/0.1286, allocations: 262.2 kB / 0.4899 GB, free: 14.91 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.005e-05/0.1286, allocations: 8.031 kB / 0.4899 GB, free: 14.9 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.232e-05/0.1286, allocations: 0.9375 kB / 0.4899 GB, free: 14.9 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000102/0.1287, allocations: 126.4 kB / 0.49 GB, free: 14.75 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.083e-05/0.1287, allocations: 4.375 kB / 0.49 GB, free: 14.75 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.163e-06/0.1287, allocations: 384 / 0.49 GB, free: 14.75 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001246/0.1289, allocations: 53.83 kB / 0.4901 GB, free: 14.69 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.167e-06/0.1289, allocations: 0 / 0.4901 GB, free: 14.69 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.088e-05/0.1289, allocations: 4 kB / 0.4901 GB, free: 14.69 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.806e-06/0.1289, allocations: 3.984 kB / 0.4901 GB, free: 14.68 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.736e-05/0.1289, allocations: 20 kB / 0.4901 GB, free: 14.66 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001537/0.1291, allocations: 121.3 kB / 0.4902 GB, free: 14.52 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.896e-05/0.1292, allocations: 46.5 kB / 0.4903 GB, free: 14.46 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.228e-05/0.1292, allocations: 36.88 kB / 0.4903 GB, free: 14.42 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.248e-05/0.1292, allocations: 4 kB / 0.4903 GB, free: 14.42 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.36e-05/0.1293, allocations: 34.5 kB / 0.4903 GB, free: 14.38 MB / 366.1 MB Notification: Performance of pre-optimization done (n=15): time 1.012e-06/0.1293, allocations: 0 / 0.4903 GB, free: 14.38 MB / 366.1 MB Notification: Performance of matching and sorting (n=15): time 0.0002332/0.1295, allocations: 136.8 kB / 0.4905 GB, free: 14.24 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.661e-05/0.1295, allocations: 55.34 kB / 0.4905 GB, free: 14.17 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.999e-05/0.1296, allocations: 93.86 kB / 0.4906 GB, free: 14.07 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.556e-05/0.1296, allocations: 29.64 kB / 0.4906 GB, free: 14.04 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.591e-05/0.1297, allocations: 80.14 kB / 0.4907 GB, free: 13.95 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.949e-05/0.1297, allocations: 51.53 kB / 0.4908 GB, free: 13.9 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.517e-05/0.1297, allocations: 21.7 kB / 0.4908 GB, free: 13.88 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001467/0.1299, allocations: 310.8 kB / 0.4911 GB, free: 13.56 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.688e-05/0.1299, allocations: 36.02 kB / 0.4911 GB, free: 13.53 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.744e-05/0.13, allocations: 27.94 kB / 0.4911 GB, free: 13.5 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.838e-05/0.13, allocations: 68.83 kB / 0.4912 GB, free: 13.43 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.13, allocations: 0 / 0.4912 GB, free: 13.43 MB / 366.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001182/0.1302, allocations: 104.8 kB / 0.4913 GB, free: 13.32 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.542e-05/0.1302, allocations: 7.938 kB / 0.4913 GB, free: 13.32 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.454e-06/0.1302, allocations: 4 kB / 0.4913 GB, free: 13.31 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.344e-05/0.1302, allocations: 3.984 kB / 0.4913 GB, free: 13.31 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.62e-07/0.1302, allocations: 0 / 0.4913 GB, free: 13.31 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.342e-06/0.1302, allocations: 0 / 0.4913 GB, free: 13.31 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.099e-05/0.1302, allocations: 8.016 kB / 0.4913 GB, free: 13.3 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.933e-06/0.1302, allocations: 4 kB / 0.4913 GB, free: 13.3 MB / 366.1 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 0.0001126/0.1304, allocations: 109.8 kB / 0.4914 GB, free: 13.18 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.448e-06/0.1304, allocations: 3.938 kB / 0.4915 GB, free: 13.18 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.001e-05/0.1304, allocations: 3.969 kB / 0.4915 GB, free: 13.18 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.084e-05/0.1304, allocations: 7.984 kB / 0.4915 GB, free: 13.17 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.1304, allocations: 0 / 0.4915 GB, free: 13.17 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.775e-06/0.1304, allocations: 4 kB / 0.4915 GB, free: 13.16 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.998e-05/0.1305, allocations: 117.2 kB / 0.4916 GB, free: 13.02 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.1305, allocations: 0 / 0.4916 GB, free: 13.02 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.51e-07/0.1305, allocations: 4 kB / 0.4916 GB, free: 13.02 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.202e-06/0.1305, allocations: 0 / 0.4916 GB, free: 13.02 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.015e-06/0.1305, allocations: 3.938 kB / 0.4916 GB, free: 13.01 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.72e-07/0.1305, allocations: 4 kB / 0.4916 GB, free: 13.01 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.1305, allocations: 0 / 0.4916 GB, free: 13.01 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001473/0.1307, allocations: 129 kB / 0.4917 GB, free: 12.86 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.298e-06/0.1307, allocations: 3.938 kB / 0.4917 GB, free: 12.86 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.124e-05/0.1307, allocations: 3.938 kB / 0.4917 GB, free: 12.86 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.856e-05/0.1307, allocations: 4 kB / 0.4917 GB, free: 12.85 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.499e-05/0.1307, allocations: 0 / 0.4917 GB, free: 12.85 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.901e-06/0.1307, allocations: 3.984 kB / 0.4917 GB, free: 12.85 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.638e-05/0.1308, allocations: 79.31 kB / 0.4918 GB, free: 12.77 MB / 366.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.1308, allocations: 0 / 0.4918 GB, free: 12.77 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0001958/0.131, allocations: 15.94 kB / 0.4918 GB, free: 12.75 MB / 366.1 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.0003702/0.1313, allocations: 143.8 kB / 0.492 GB, free: 12.61 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001367/0.1315, allocations: 63.92 kB / 0.492 GB, free: 12.55 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.1315, allocations: 0 / 0.492 GB, free: 12.55 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.904e-05/0.1315, allocations: 28 kB / 0.492 GB, free: 12.52 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003858/0.1319, allocations: 36.06 kB / 0.4921 GB, free: 12.48 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004286/0.1323, allocations: 262.1 kB / 0.4923 GB, free: 12.2 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.965e-05/0.1324, allocations: 71.34 kB / 0.4924 GB, free: 12.11 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.379e-05/0.1324, allocations: 7.438 kB / 0.4924 GB, free: 12.1 MB / 366.1 MB Notification: Performance of SimCode: time 3.01e-07/0.1324, allocations: 0 / 0.4924 GB, free: 12.1 MB / 366.1 MB Notification: Performance of Templates: time 0.002601/0.135, allocations: 0.8519 MB / 0.4932 GB, free: 11.25 MB / 366.1 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: 7.217886514030397] Failed to read output from testmodel.py, exit status != 0: 0.14251304604113102 0.37185325399999997 0.239924446 Calling exit ...