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.001358/0.001358, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.001652/0.001652, allocations: 207.2 kB / 22.24 MB, free: 5.262 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.521/1.521, allocations: 230.6 MB / 256 MB, free: 7.781 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.0143/0.0143, allocations: 2.805 MB / 315.2 MB, free: 92 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.002123/0.002123, allocations: 67.89 kB / 439.1 MB, free: 12.82 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1133/0.1154, allocations: 54.18 MB / 493.3 MB, free: 6.539 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestState): time 0.01048/0.1259, allocations: 6.999 MB / 0.4886 GB, free: 15.5 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 5.987e-05/0.126, allocations: 35.81 kB / 0.4886 GB, free: 15.47 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.204e-05/0.126, allocations: 4 kB / 0.4886 GB, free: 15.46 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000271/0.1263, allocations: 67.58 kB / 0.4887 GB, free: 15.4 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 3.276e-05/0.1263, allocations: 19.84 kB / 0.4887 GB, free: 15.38 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001972/0.1265, allocations: 39.67 kB / 0.4887 GB, free: 15.34 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 9.033e-05/0.1266, allocations: 43.69 kB / 0.4888 GB, free: 15.3 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.824e-05/0.1266, allocations: 0 / 0.4888 GB, free: 15.3 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.977e-05/0.1267, allocations: 15.94 kB / 0.4888 GB, free: 15.28 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.724e-05/0.1267, allocations: 19.88 kB / 0.4888 GB, free: 15.26 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.281e-05/0.1267, allocations: 0 / 0.4888 GB, free: 15.26 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002186/0.127, allocations: 43.92 kB / 0.4888 GB, free: 15.22 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 1.449e-05/0.127, allocations: 0 / 0.4888 GB, free: 15.22 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 3.685e-05/0.127, allocations: 15.94 kB / 0.4889 GB, free: 15.2 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001803/0.1272, allocations: 59.75 kB / 0.4889 GB, free: 15.14 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.1272, allocations: 0 / 0.4889 GB, free: 15.14 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.1272, allocations: 0 / 0.4889 GB, free: 15.14 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.028e-06/0.1272, allocations: 4 kB / 0.4889 GB, free: 15.14 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.0003655/0.1276, allocations: 266.2 kB / 0.4892 GB, free: 14.85 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.375e-05/0.1276, allocations: 12.03 kB / 0.4892 GB, free: 14.84 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.764e-05/0.1276, allocations: 0.9375 kB / 0.4892 GB, free: 14.84 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001031/0.1277, allocations: 114.5 kB / 0.4893 GB, free: 14.7 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.055e-05/0.1277, allocations: 384 / 0.4893 GB, free: 14.7 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.382e-06/0.1277, allocations: 384 / 0.4893 GB, free: 14.7 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001325/0.1279, allocations: 65.75 kB / 0.4894 GB, free: 14.63 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.953e-06/0.1279, allocations: 0 / 0.4894 GB, free: 14.63 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.175e-06/0.1279, allocations: 0 / 0.4894 GB, free: 14.63 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.025e-05/0.1279, allocations: 3.984 kB / 0.4894 GB, free: 14.63 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.105e-05/0.1279, allocations: 24 kB / 0.4894 GB, free: 14.61 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001659/0.1281, allocations: 121.3 kB / 0.4895 GB, free: 14.46 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.927e-05/0.1282, allocations: 42.56 kB / 0.4895 GB, free: 14.41 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.933e-05/0.1282, allocations: 32.89 kB / 0.4896 GB, free: 14.37 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.316e-05/0.1282, allocations: 0 / 0.4896 GB, free: 14.37 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.305e-05/0.1283, allocations: 42.42 kB / 0.4896 GB, free: 14.32 MB / 366.1 MB Notification: Performance of pre-optimization done (n=15): time 1.052e-06/0.1283, allocations: 0 / 0.4896 GB, free: 14.32 MB / 366.1 MB Notification: Performance of matching and sorting (n=15): time 0.0002509/0.1285, allocations: 141.8 kB / 0.4897 GB, free: 14.18 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.299e-05/0.1286, allocations: 51.41 kB / 0.4898 GB, free: 14.11 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.494e-05/0.1286, allocations: 93.8 kB / 0.4899 GB, free: 14.01 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.594e-05/0.1287, allocations: 25.7 kB / 0.4899 GB, free: 13.98 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.729e-05/0.1287, allocations: 80.14 kB / 0.49 GB, free: 13.9 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.857e-05/0.1287, allocations: 51.56 kB / 0.49 GB, free: 13.85 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.352e-05/0.1288, allocations: 21.72 kB / 0.4901 GB, free: 13.82 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001652/0.1289, allocations: 318.8 kB / 0.4904 GB, free: 13.5 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.182e-05/0.129, allocations: 24 kB / 0.4904 GB, free: 13.48 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.6e-05/0.129, allocations: 34.73 kB / 0.4904 GB, free: 13.45 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.665e-05/0.1291, allocations: 68.83 kB / 0.4905 GB, free: 13.38 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.1291, allocations: 0 / 0.4905 GB, free: 13.38 MB / 366.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001378/0.1293, allocations: 97.62 kB / 0.4906 GB, free: 13.27 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.749e-05/0.1293, allocations: 7.938 kB / 0.4906 GB, free: 13.27 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.411e-06/0.1293, allocations: 0 / 0.4906 GB, free: 13.27 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.237e-05/0.1293, allocations: 0 / 0.4906 GB, free: 13.27 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.11e-07/0.1293, allocations: 4.062 kB / 0.4906 GB, free: 13.26 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.057e-06/0.1293, allocations: 0 / 0.4906 GB, free: 13.26 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.374e-05/0.1293, allocations: 11.94 kB / 0.4906 GB, free: 13.25 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.009e-06/0.1293, allocations: 0 / 0.4906 GB, free: 13.25 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 9.354e-05/0.1294, allocations: 113.8 kB / 0.4907 GB, free: 13.13 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.223e-05/0.1294, allocations: 3.938 kB / 0.4907 GB, free: 13.12 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.186e-05/0.1295, allocations: 3.969 kB / 0.4907 GB, free: 13.12 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.418e-06/0.1295, allocations: 0 / 0.4907 GB, free: 13.12 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.1295, allocations: 3.938 kB / 0.4907 GB, free: 13.12 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.264e-06/0.1295, allocations: 4 kB / 0.4907 GB, free: 13.12 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001204/0.1296, allocations: 125.2 kB / 0.4908 GB, free: 12.96 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.1296, allocations: 0 / 0.4908 GB, free: 12.96 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.377e-06/0.1296, allocations: 3.984 kB / 0.4908 GB, free: 12.96 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.814e-06/0.1296, allocations: 0 / 0.4908 GB, free: 12.96 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.006e-05/0.1296, allocations: 3.938 kB / 0.4908 GB, free: 12.96 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.357e-06/0.1296, allocations: 4 kB / 0.4909 GB, free: 12.95 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.1296, allocations: 0 / 0.4909 GB, free: 12.95 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001647/0.1298, allocations: 128 kB / 0.491 GB, free: 12.81 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.074e-05/0.1298, allocations: 7.875 kB / 0.491 GB, free: 12.8 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.216e-05/0.1298, allocations: 3.938 kB / 0.491 GB, free: 12.8 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.49e-05/0.1298, allocations: 4 kB / 0.491 GB, free: 12.8 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.228e-05/0.1299, allocations: 4.031 kB / 0.491 GB, free: 12.79 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.795e-06/0.1299, allocations: 0 / 0.491 GB, free: 12.79 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.689e-05/0.1299, allocations: 75.28 kB / 0.4911 GB, free: 12.72 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1299, allocations: 0 / 0.4911 GB, free: 12.72 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002083/0.1301, allocations: 12 kB / 0.4911 GB, free: 12.71 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.0004099/0.1305, allocations: 150.5 kB / 0.4912 GB, free: 12.55 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001393/0.1307, allocations: 63.91 kB / 0.4913 GB, free: 12.49 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.1307, allocations: 0 / 0.4913 GB, free: 12.49 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.625e-05/0.1307, allocations: 28 kB / 0.4913 GB, free: 12.46 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004097/0.1311, allocations: 38.58 kB / 0.4913 GB, free: 12.43 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004381/0.1315, allocations: 220.4 kB / 0.4916 GB, free: 12.19 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.055e-05/0.1316, allocations: 71.33 kB / 0.4916 GB, free: 12.1 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.155e-05/0.1317, allocations: 8 kB / 0.4916 GB, free: 12.09 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.335e-05/0.1317, allocations: 7.438 kB / 0.4916 GB, free: 12.08 MB / 366.1 MB Notification: Performance of SimCode: time 4.21e-07/0.1317, allocations: 0 / 0.4916 GB, free: 12.08 MB / 366.1 MB Notification: Performance of Templates: time 0.005187/0.1369, allocations: 1.727 MB / 0.4933 GB, free: 10.41 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: 4.8165121376514435] Failed to read output from testmodel.py, exit status != 0: 0.14490211941301823 0.348373223 0.217974993 Calling exit ...