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.001365/0.001365, allocations: 110.2 kB / 19.69 MB, free: 2.254 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.001512/0.001512, allocations: 216.3 kB / 23.01 MB, free: 4.566 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.508/1.508, allocations: 230.6 MB / 256.8 MB, free: 8.008 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.01334/0.01334, allocations: 2.807 MB / 316 MB, free: 320 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.002115/0.002115, allocations: 71.89 kB / 439.9 MB, free: 13.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09225/0.09436, allocations: 54.17 MB / 494.1 MB, free: 6.895 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestState): time 0.009798/0.1042, allocations: 7.664 MB / 0.49 GB, free: 15.19 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 3.765e-05/0.1042, allocations: 27.88 kB / 0.49 GB, free: 15.16 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.724e-05/0.1042, allocations: 3.938 kB / 0.49 GB, free: 15.16 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002255/0.1044, allocations: 87.58 kB / 0.4901 GB, free: 15.07 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 2.962e-05/0.1045, allocations: 23.78 kB / 0.4902 GB, free: 15.05 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002021/0.1047, allocations: 39.69 kB / 0.4902 GB, free: 15.01 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 7.991e-05/0.1048, allocations: 39.62 kB / 0.4902 GB, free: 14.97 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.291e-05/0.1048, allocations: 7.984 kB / 0.4902 GB, free: 14.96 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.958e-05/0.1049, allocations: 11.98 kB / 0.4902 GB, free: 14.95 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.521e-05/0.1049, allocations: 19.88 kB / 0.4903 GB, free: 14.93 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.425e-05/0.1049, allocations: 0 / 0.4903 GB, free: 14.93 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001812/0.1051, allocations: 40 kB / 0.4903 GB, free: 14.89 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 1.016e-05/0.1051, allocations: 0 / 0.4903 GB, free: 14.89 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 4.063e-05/0.1052, allocations: 27.81 kB / 0.4903 GB, free: 14.87 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001624/0.1053, allocations: 55.81 kB / 0.4904 GB, free: 14.81 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.788e-06/0.1053, allocations: 0 / 0.4904 GB, free: 14.81 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.1053, allocations: 0 / 0.4904 GB, free: 14.81 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.369e-06/0.1053, allocations: 0 / 0.4904 GB, free: 14.81 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.0003939/0.1057, allocations: 262.2 kB / 0.4906 GB, free: 14.53 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.376e-05/0.1058, allocations: 8.031 kB / 0.4906 GB, free: 14.52 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.683e-05/0.1058, allocations: 16.86 kB / 0.4907 GB, free: 14.5 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.035e-05/0.1059, allocations: 106.5 kB / 0.4908 GB, free: 14.38 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.522e-06/0.1059, allocations: 384 / 0.4908 GB, free: 14.38 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.708e-06/0.1059, allocations: 384 / 0.4908 GB, free: 14.38 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00012/0.106, allocations: 61.81 kB / 0.4908 GB, free: 14.31 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.363e-06/0.106, allocations: 3.938 kB / 0.4908 GB, free: 14.3 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.184e-06/0.106, allocations: 0 / 0.4908 GB, free: 14.3 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.332e-06/0.106, allocations: 0 / 0.4908 GB, free: 14.3 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.198e-05/0.1061, allocations: 31.98 kB / 0.4909 GB, free: 14.27 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001621/0.1062, allocations: 144.7 kB / 0.491 GB, free: 14.09 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.644e-05/0.1063, allocations: 42.56 kB / 0.491 GB, free: 14.04 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.533e-05/0.1063, allocations: 28.89 kB / 0.4911 GB, free: 14.01 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.158e-05/0.1064, allocations: 3.938 kB / 0.4911 GB, free: 14 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.52e-05/0.1064, allocations: 34.56 kB / 0.4911 GB, free: 13.96 MB / 366.1 MB Notification: Performance of pre-optimization done (n=15): time 4.148e-06/0.1064, allocations: 0 / 0.4911 GB, free: 13.96 MB / 366.1 MB Notification: Performance of matching and sorting (n=15): time 0.000261/0.1067, allocations: 148.8 kB / 0.4912 GB, free: 13.81 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.763e-05/0.1067, allocations: 59.44 kB / 0.4913 GB, free: 13.74 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.973e-05/0.1067, allocations: 89.86 kB / 0.4914 GB, free: 13.64 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.4e-05/0.1068, allocations: 25.7 kB / 0.4914 GB, free: 13.61 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.24e-05/0.1068, allocations: 80.14 kB / 0.4915 GB, free: 13.53 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.075e-05/0.1069, allocations: 55.45 kB / 0.4915 GB, free: 13.48 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.683e-05/0.1069, allocations: 17.72 kB / 0.4916 GB, free: 13.45 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001341/0.107, allocations: 318.8 kB / 0.4919 GB, free: 13.13 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.333e-05/0.1071, allocations: 24 kB / 0.4919 GB, free: 13.11 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.122e-05/0.1071, allocations: 27.98 kB / 0.4919 GB, free: 13.08 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.604e-05/0.1072, allocations: 80.81 kB / 0.492 GB, free: 13 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.1072, allocations: 0 / 0.492 GB, free: 13 MB / 366.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001672/0.1073, allocations: 104.8 kB / 0.4921 GB, free: 12.89 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.352e-05/0.1074, allocations: 4 kB / 0.4921 GB, free: 12.89 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.148e-05/0.1074, allocations: 0 / 0.4921 GB, free: 12.89 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.092e-05/0.1074, allocations: 0 / 0.4921 GB, free: 12.89 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.805e-06/0.1074, allocations: 4 kB / 0.4921 GB, free: 12.89 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.399e-06/0.1074, allocations: 3.938 kB / 0.4921 GB, free: 12.88 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.559e-05/0.1074, allocations: 3.953 kB / 0.4921 GB, free: 12.88 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.468e-06/0.1074, allocations: 0 / 0.4921 GB, free: 12.88 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 8.526e-05/0.1075, allocations: 117.9 kB / 0.4922 GB, free: 12.75 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.045e-05/0.1075, allocations: 3.938 kB / 0.4922 GB, free: 12.75 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.733e-05/0.1076, allocations: 7.969 kB / 0.4922 GB, free: 12.75 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.557e-06/0.1076, allocations: 0 / 0.4922 GB, free: 12.75 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.076e-06/0.1076, allocations: 4 kB / 0.4922 GB, free: 12.74 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.914e-06/0.1076, allocations: 0 / 0.4922 GB, free: 12.74 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001207/0.1077, allocations: 148.6 kB / 0.4924 GB, free: 12.55 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.1077, allocations: 0 / 0.4924 GB, free: 12.55 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.785e-06/0.1077, allocations: 3.938 kB / 0.4924 GB, free: 12.55 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.223e-06/0.1077, allocations: 4 kB / 0.4924 GB, free: 12.55 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.58e-06/0.1077, allocations: 3.938 kB / 0.4924 GB, free: 12.54 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.1077, allocations: 0 / 0.4924 GB, free: 12.54 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.02e-07/0.1077, allocations: 0 / 0.4924 GB, free: 12.54 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001449/0.1078, allocations: 121.1 kB / 0.4925 GB, free: 12.41 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.348e-05/0.1079, allocations: 11.88 kB / 0.4925 GB, free: 12.39 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.726e-06/0.1079, allocations: 0 / 0.4925 GB, free: 12.39 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.955e-05/0.1079, allocations: 0 / 0.4925 GB, free: 12.39 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.676e-05/0.1079, allocations: 12.02 kB / 0.4925 GB, free: 12.38 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.044e-06/0.1079, allocations: 0 / 0.4925 GB, free: 12.38 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.605e-05/0.1079, allocations: 75.28 kB / 0.4926 GB, free: 12.31 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1079, allocations: 0 / 0.4926 GB, free: 12.31 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002132/0.1082, allocations: 16 kB / 0.4926 GB, free: 12.29 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.0003027/0.1085, allocations: 131.8 kB / 0.4927 GB, free: 12.16 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001273/0.1086, allocations: 59.86 kB / 0.4928 GB, free: 12.1 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.097e-06/0.1086, allocations: 4 kB / 0.4928 GB, free: 12.09 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.277e-05/0.1086, allocations: 27.98 kB / 0.4928 GB, free: 12.07 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003853/0.109, allocations: 40.08 kB / 0.4929 GB, free: 12.03 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004357/0.1094, allocations: 262 kB / 0.4931 GB, free: 11.74 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000298/0.1097, allocations: 0.6863 MB / 0.4938 GB, free: 11.03 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.486e-05/0.1098, allocations: 11.44 kB / 0.4938 GB, free: 11.02 MB / 366.1 MB Notification: Performance of SimCode: time 3.9e-07/0.1098, allocations: 0 / 0.4938 GB, free: 11.02 MB / 366.1 MB Notification: Performance of Templates: time 0.002573/0.1123, allocations: 0.8358 MB / 0.4946 GB, free: 10.18 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: 6.92328711389564] Failed to read output from testmodel.py, exit status != 0: 0.11992959911003709 0.291908897 0.183406024 Calling exit ...