Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternalMedia_ExternalMedia.Test.TestMedium.TestSat.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.001348/0.001348, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.001724/0.001724, allocations: 216.8 kB / 22.25 MB, free: 4.855 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.494/1.494, allocations: 230.6 MB / 256 MB, free: 7.789 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.01537/0.01537, allocations: 2.817 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: "" <> buildModelFMU(ExternalMedia.Test.TestMedium.TestSat,fileNamePrefix="ExternalMedia_ExternalMedia_Test_TestMedium_TestSat",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternalMedia.Test.TestMedium.TestSat,fileNamePrefix="ExternalMedia_ExternalMedia_Test_TestMedium_TestSat",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.00203/0.00203, allocations: 75.89 kB / 438.6 MB, free: 13.33 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09392/0.09595, allocations: 54.18 MB / 492.8 MB, free: 7.051 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestSat): time 0.01088/0.1068, allocations: 6.994 MB / 499.8 MB, free: 24 kB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.000524/0.1074, allocations: 494.1 kB / 0.4885 GB, free: 15.54 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.851e-05/0.1074, allocations: 4 kB / 0.4886 GB, free: 15.54 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002231/0.1076, allocations: 47.72 kB / 0.4886 GB, free: 15.49 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 2.953e-05/0.1076, allocations: 19.84 kB / 0.4886 GB, free: 15.47 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001567/0.1078, allocations: 35.77 kB / 0.4887 GB, free: 15.43 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 7.935e-05/0.1079, allocations: 35.75 kB / 0.4887 GB, free: 15.4 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.588e-05/0.1079, allocations: 3.938 kB / 0.4887 GB, free: 15.39 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.581e-05/0.1079, allocations: 11.94 kB / 0.4887 GB, free: 15.38 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.902e-05/0.108, allocations: 7.938 kB / 0.4887 GB, free: 15.38 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.307e-05/0.108, allocations: 0 / 0.4887 GB, free: 15.38 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001632/0.1082, allocations: 39.97 kB / 0.4887 GB, free: 15.34 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 1.492e-05/0.1082, allocations: 7.938 kB / 0.4888 GB, free: 15.33 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 2.885e-05/0.1082, allocations: 11.94 kB / 0.4888 GB, free: 15.32 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001523/0.1084, allocations: 55.77 kB / 0.4888 GB, free: 15.26 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.1084, allocations: 0 / 0.4888 GB, free: 15.26 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1084, allocations: 0 / 0.4888 GB, free: 15.26 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.56e-06/0.1084, allocations: 0 / 0.4888 GB, free: 15.26 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0003328/0.1087, allocations: 262.3 kB / 0.4891 GB, free: 14.98 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.947e-05/0.1087, allocations: 8.031 kB / 0.4891 GB, free: 14.97 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.518e-05/0.1088, allocations: 34.75 kB / 0.4891 GB, free: 14.93 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.915e-05/0.1088, allocations: 4.875 kB / 0.4891 GB, free: 14.92 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.577e-05/0.1089, allocations: 110.5 kB / 0.4892 GB, free: 14.79 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.308e-06/0.1089, allocations: 384 / 0.4892 GB, free: 14.79 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.877e-06/0.1089, allocations: 4.375 kB / 0.4892 GB, free: 14.79 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00012/0.109, allocations: 65.56 kB / 0.4893 GB, free: 14.71 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.553e-06/0.109, allocations: 0 / 0.4893 GB, free: 14.71 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.051e-06/0.109, allocations: 0 / 0.4893 GB, free: 14.71 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.836e-06/0.109, allocations: 3.984 kB / 0.4893 GB, free: 14.71 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.76e-05/0.1091, allocations: 24 kB / 0.4893 GB, free: 14.69 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001567/0.1092, allocations: 144.7 kB / 0.4895 GB, free: 14.5 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.411e-05/0.1093, allocations: 42.58 kB / 0.4895 GB, free: 14.45 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.35e-05/0.1093, allocations: 28.88 kB / 0.4895 GB, free: 14.42 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.223e-05/0.1094, allocations: 3.938 kB / 0.4895 GB, free: 14.42 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.978e-05/0.1094, allocations: 38.5 kB / 0.4896 GB, free: 14.37 MB / 366.1 MB Notification: Performance of pre-optimization done (n=14): time 2.875e-06/0.1094, allocations: 4 kB / 0.4896 GB, free: 14.37 MB / 366.1 MB Notification: Performance of matching and sorting (n=14): time 0.0002102/0.1096, allocations: 129.9 kB / 0.4897 GB, free: 14.23 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.525e-05/0.1096, allocations: 51.41 kB / 0.4897 GB, free: 14.17 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.085e-05/0.1097, allocations: 89.86 kB / 0.4898 GB, free: 14.07 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.79e-05/0.1097, allocations: 29.7 kB / 0.4899 GB, free: 14.04 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.588e-05/0.1097, allocations: 80.38 kB / 0.4899 GB, free: 13.96 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.16e-05/0.1098, allocations: 47.53 kB / 0.49 GB, free: 13.91 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.268e-05/0.1098, allocations: 17.72 kB / 0.49 GB, free: 13.89 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001377/0.11, allocations: 318.8 kB / 0.4903 GB, free: 13.57 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.812e-05/0.11, allocations: 23.98 kB / 0.4903 GB, free: 13.54 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.825e-05/0.11, allocations: 26.38 kB / 0.4903 GB, free: 13.52 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.286e-05/0.1101, allocations: 72.84 kB / 0.4904 GB, free: 13.45 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.1101, allocations: 0 / 0.4904 GB, free: 13.45 MB / 366.1 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001162/0.1102, allocations: 93.56 kB / 0.4905 GB, free: 13.35 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.344e-05/0.1103, allocations: 8 kB / 0.4905 GB, free: 13.34 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.1103, allocations: 0 / 0.4905 GB, free: 13.34 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.139e-05/0.1103, allocations: 0 / 0.4905 GB, free: 13.34 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.02e-07/0.1103, allocations: 0 / 0.4905 GB, free: 13.34 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.477e-06/0.1103, allocations: 0 / 0.4905 GB, free: 13.34 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.792e-05/0.1103, allocations: 4 kB / 0.4905 GB, free: 13.34 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.438e-06/0.1103, allocations: 0 / 0.4905 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: 0 () * 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.552e-05/0.1104, allocations: 121.8 kB / 0.4906 GB, free: 13.21 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.336e-05/0.1104, allocations: 15.83 kB / 0.4906 GB, free: 13.19 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.472e-05/0.1104, allocations: 3.969 kB / 0.4906 GB, free: 13.19 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.1104, allocations: 0 / 0.4906 GB, free: 13.19 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.516e-06/0.1104, allocations: 0 / 0.4906 GB, free: 13.19 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.883e-06/0.1105, allocations: 0 / 0.4906 GB, free: 13.19 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001195/0.1106, allocations: 140.7 kB / 0.4908 GB, free: 13.01 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.1106, allocations: 3.938 kB / 0.4908 GB, free: 13.01 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.294e-06/0.1106, allocations: 3.938 kB / 0.4908 GB, free: 13 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.663e-06/0.1106, allocations: 0 / 0.4908 GB, free: 13 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.28e-06/0.1106, allocations: 0 / 0.4908 GB, free: 13 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.71e-07/0.1106, allocations: 8 kB / 0.4908 GB, free: 13 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.1106, allocations: 0 / 0.4908 GB, free: 13 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001371/0.1107, allocations: 124.7 kB / 0.4909 GB, free: 12.86 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.392e-05/0.1107, allocations: 15.83 kB / 0.4909 GB, free: 12.84 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.105e-06/0.1107, allocations: 0 / 0.4909 GB, free: 12.84 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.77e-05/0.1108, allocations: 0 / 0.4909 GB, free: 12.84 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.242e-05/0.1108, allocations: 0 / 0.4909 GB, free: 12.84 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.063e-06/0.1108, allocations: 0 / 0.4909 GB, free: 12.84 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.285e-05/0.1108, allocations: 75.28 kB / 0.491 GB, free: 12.77 MB / 366.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1108, allocations: 0 / 0.491 GB, free: 12.77 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0001911/0.111, allocations: 16 kB / 0.491 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: 0 () * 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.0005906/0.1116, allocations: 0.6926 MB / 0.4917 GB, free: 12.04 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001099/0.1117, allocations: 51.98 kB / 0.4917 GB, free: 11.98 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.52e-06/0.1117, allocations: 4.094 kB / 0.4917 GB, free: 11.98 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.2e-05/0.1117, allocations: 31.98 kB / 0.4918 GB, free: 11.95 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003294/0.1121, allocations: 26.72 kB / 0.4918 GB, free: 11.93 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004976/0.1126, allocations: 231.6 kB / 0.492 GB, free: 11.66 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.337e-05/0.1126, allocations: 71.28 kB / 0.4921 GB, free: 11.57 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 2.187e-05/0.1126, allocations: 4 kB / 0.4921 GB, free: 11.57 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.514e-05/0.1127, allocations: 11.44 kB / 0.4921 GB, free: 11.55 MB / 366.1 MB Notification: Performance of SimCode: time 3.61e-07/0.1127, allocations: 0 / 0.4921 GB, free: 11.55 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02792/0.1406, allocations: 3.115 MB / 0.4951 GB, free: 8.605 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.04/11.18, allocations: 11.42 kB / 0.4952 GB, free: 8.598 MB / 366.1 MB " [Timeout remaining time 648] (rm -f ExternalMedia_ExternalMedia.Test.TestMedium.TestSat.pipe ; mkfifo ExternalMedia_ExternalMedia.Test.TestMedium.TestSat.pipe ; head -c 1048576 < ExternalMedia_ExternalMedia.Test.TestMedium.TestSat.pipe >> ../files/ExternalMedia_ExternalMedia.Test.TestMedium.TestSat.sim & python3 -m fmpy simulate --output-file ExternalMedia_ExternalMedia.Test.TestMedium.TestSat_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 ExternalMedia_ExternalMedia_Test_TestMedium_TestSat.fmu > ExternalMedia_ExternalMedia.Test.TestMedium.TestSat.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.28498932113871] Failed to read output from testmodel.py, exit status != 0: 11.503777903039008 11.729654357 11.618238585 Calling exit ...