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.001324/0.001324, allocations: 114.3 kB / 18.94 MB, free: 2.934 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.001587/0.001587, allocations: 219.2 kB / 22.26 MB, free: 5.082 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.465/1.465, allocations: 230.6 MB / 256 MB, free: 8.023 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.01267/0.01267, allocations: 2.796 MB / 315.2 MB, free: 324 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: "" <> buildModelFMU(ExternalMedia.Test.TestMedium.TestState,fileNamePrefix="ExternalMedia_ExternalMedia_Test_TestMedium_TestState",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternalMedia.Test.TestMedium.TestState,fileNamePrefix="ExternalMedia_ExternalMedia_Test_TestMedium_TestState",fmuType="me",version="2.0",platforms={"static"}) [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.00216/0.00216, allocations: 71.88 kB / 438.7 MB, free: 13.67 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09147/0.09363, allocations: 54.17 MB / 492.9 MB, free: 7.402 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestState): time 0.0104/0.104, allocations: 7.67 MB / 0.4888 GB, free: 15.7 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 6.685e-05/0.1041, allocations: 35.88 kB / 0.4888 GB, free: 15.66 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.519e-05/0.1041, allocations: 3.938 kB / 0.4888 GB, free: 15.66 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002793/0.1044, allocations: 75.58 kB / 0.4889 GB, free: 15.58 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 4.474e-05/0.1044, allocations: 27.77 kB / 0.4889 GB, free: 15.55 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001983/0.1046, allocations: 39.7 kB / 0.489 GB, free: 15.52 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001037/0.1047, allocations: 47.61 kB / 0.489 GB, free: 15.47 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.794e-05/0.1048, allocations: 3.984 kB / 0.489 GB, free: 15.46 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.905e-05/0.1048, allocations: 15.94 kB / 0.489 GB, free: 15.45 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.397e-05/0.1049, allocations: 11.94 kB / 0.489 GB, free: 15.44 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 2.467e-05/0.1049, allocations: 0 / 0.489 GB, free: 15.44 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000222/0.1051, allocations: 40 kB / 0.4891 GB, free: 15.4 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 1.417e-05/0.1051, allocations: 0 / 0.4891 GB, free: 15.4 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 4.876e-05/0.1052, allocations: 23.81 kB / 0.4891 GB, free: 15.38 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001959/0.1054, allocations: 63.8 kB / 0.4892 GB, free: 15.31 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.1054, allocations: 0 / 0.4892 GB, free: 15.31 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.1054, allocations: 0 / 0.4892 GB, free: 15.31 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.179e-06/0.1054, allocations: 0 / 0.4892 GB, free: 15.31 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.0003339/0.1057, allocations: 270.2 kB / 0.4894 GB, free: 15.02 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.882e-05/0.1058, allocations: 8.031 kB / 0.4894 GB, free: 15.01 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.08e-05/0.1058, allocations: 34.73 kB / 0.4895 GB, free: 14.97 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.738e-05/0.1058, allocations: 4.938 kB / 0.4895 GB, free: 14.96 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.467e-05/0.1059, allocations: 110.5 kB / 0.4896 GB, free: 14.83 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.109e-05/0.1059, allocations: 384 / 0.4896 GB, free: 14.83 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.666e-06/0.106, allocations: 8.375 kB / 0.4896 GB, free: 14.82 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001258/0.1061, allocations: 61.56 kB / 0.4896 GB, free: 14.76 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.895e-06/0.1061, allocations: 0 / 0.4896 GB, free: 14.76 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.484e-06/0.1061, allocations: 0 / 0.4896 GB, free: 14.76 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.173e-06/0.1061, allocations: 0 / 0.4896 GB, free: 14.76 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.517e-05/0.1061, allocations: 31.98 kB / 0.4897 GB, free: 14.73 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001822/0.1063, allocations: 140.7 kB / 0.4898 GB, free: 14.55 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.954e-05/0.1064, allocations: 42.56 kB / 0.4898 GB, free: 14.5 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.034e-05/0.1064, allocations: 32.88 kB / 0.4899 GB, free: 14.46 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.951e-05/0.1065, allocations: 7.938 kB / 0.4899 GB, free: 14.45 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.081e-05/0.1065, allocations: 42.44 kB / 0.4899 GB, free: 14.4 MB / 366.1 MB Notification: Performance of pre-optimization done (n=15): time 1.002e-06/0.1065, allocations: 0 / 0.4899 GB, free: 14.4 MB / 366.1 MB Notification: Performance of matching and sorting (n=15): time 0.0002345/0.1067, allocations: 137.1 kB / 0.4901 GB, free: 14.27 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.444e-05/0.1068, allocations: 51.41 kB / 0.4901 GB, free: 14.2 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.235e-05/0.1068, allocations: 89.86 kB / 0.4902 GB, free: 14.11 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.592e-05/0.1069, allocations: 25.7 kB / 0.4902 GB, free: 14.07 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.565e-05/0.1069, allocations: 84.17 kB / 0.4903 GB, free: 13.99 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.54e-05/0.107, allocations: 47.53 kB / 0.4903 GB, free: 13.94 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.945e-05/0.107, allocations: 25.7 kB / 0.4904 GB, free: 13.91 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001484/0.1072, allocations: 314.8 kB / 0.4907 GB, free: 13.59 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.728e-05/0.1072, allocations: 23.98 kB / 0.4907 GB, free: 13.57 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.926e-05/0.1072, allocations: 24 kB / 0.4907 GB, free: 13.55 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001028/0.1073, allocations: 80.77 kB / 0.4908 GB, free: 13.46 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.562e-06/0.1073, allocations: 3.938 kB / 0.4908 GB, free: 13.46 MB / 366.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.000127/0.1075, allocations: 104.5 kB / 0.4909 GB, free: 13.36 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.51e-05/0.1075, allocations: 4 kB / 0.4909 GB, free: 13.35 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.492e-06/0.1075, allocations: 0 / 0.4909 GB, free: 13.35 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.376e-05/0.1075, allocations: 4 kB / 0.4909 GB, free: 13.35 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.172e-06/0.1075, allocations: 0 / 0.4909 GB, free: 13.35 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.929e-06/0.1075, allocations: 0 / 0.4909 GB, free: 13.35 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.013e-05/0.1075, allocations: 3.953 kB / 0.4909 GB, free: 13.34 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.25e-06/0.1075, allocations: 0 / 0.4909 GB, free: 13.34 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.0001023/0.1076, allocations: 113.8 kB / 0.491 GB, free: 13.22 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.191e-05/0.1076, allocations: 7.969 kB / 0.491 GB, free: 13.21 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.175e-05/0.1077, allocations: 3.969 kB / 0.491 GB, free: 13.21 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.346e-06/0.1077, allocations: 7.984 kB / 0.491 GB, free: 13.21 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.1077, allocations: 3.984 kB / 0.491 GB, free: 13.2 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.134e-06/0.1077, allocations: 0 / 0.491 GB, free: 13.2 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001329/0.1078, allocations: 148.6 kB / 0.4912 GB, free: 13.02 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.979e-06/0.1078, allocations: 7.875 kB / 0.4912 GB, free: 13.01 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.41e-07/0.1078, allocations: 0 / 0.4912 GB, free: 13.01 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.813e-06/0.1078, allocations: 0 / 0.4912 GB, free: 13.01 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.631e-06/0.1078, allocations: 0 / 0.4912 GB, free: 13.01 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.303e-06/0.1078, allocations: 4 kB / 0.4912 GB, free: 13 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.12e-06/0.1078, allocations: 7.984 kB / 0.4912 GB, free: 13 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001518/0.108, allocations: 121.1 kB / 0.4913 GB, free: 12.86 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.664e-05/0.108, allocations: 11.88 kB / 0.4913 GB, free: 12.85 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.1e-05/0.108, allocations: 0 / 0.4913 GB, free: 12.85 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.037e-05/0.108, allocations: 0 / 0.4913 GB, free: 12.85 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.011e-05/0.1081, allocations: 0 / 0.4913 GB, free: 12.85 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.34e-06/0.1081, allocations: 4 kB / 0.4913 GB, free: 12.84 MB / 366.1 MB Notification: Performance of sorting global known variables: time 4.558e-05/0.1081, allocations: 79.31 kB / 0.4914 GB, free: 12.77 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1081, allocations: 3.938 kB / 0.4914 GB, free: 12.76 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000206/0.1083, allocations: 12 kB / 0.4914 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.0008583/0.1092, allocations: 0.7047 MB / 0.4921 GB, free: 12.02 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001594/0.1093, allocations: 59.97 kB / 0.4922 GB, free: 11.96 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.1093, allocations: 4 kB / 0.4922 GB, free: 11.96 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.29e-05/0.1094, allocations: 20 kB / 0.4922 GB, free: 11.94 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003896/0.1098, allocations: 40.06 kB / 0.4922 GB, free: 11.9 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005635/0.1103, allocations: 266 kB / 0.4925 GB, free: 11.6 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003353/0.1107, allocations: 0.6884 MB / 0.4931 GB, free: 10.89 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 2.569e-05/0.1107, allocations: 4 kB / 0.4932 GB, free: 10.88 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.123e-05/0.1107, allocations: 15.42 kB / 0.4932 GB, free: 10.87 MB / 366.1 MB Notification: Performance of SimCode: time 4.6e-07/0.1107, allocations: 3.938 kB / 0.4932 GB, free: 10.86 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.029/0.1397, allocations: 2.985 MB / 0.4961 GB, free: 8.027 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.02/11.16, allocations: 14.97 kB / 0.4961 GB, free: 8.02 MB / 366.1 MB " [Timeout remaining time 649] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ExternalMedia_ExternalMedia_Test_TestMedium_TestState_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 ExternalMedia_ExternalMedia_Test_TestMedium_TestState.fmu > ExternalMedia_ExternalMedia.Test.TestMedium.TestState.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.129573764046654] Failed to read output from testmodel.py, exit status != 0: 11.486526313005015 11.701541683 11.593041757 Calling exit ...