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.001728/0.001728, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.00165/0.00165, allocations: 216.8 kB / 22.25 MB, free: 5.121 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.47/1.47, allocations: 230.6 MB / 256 MB, free: 7.977 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.01233/0.01233, allocations: 2.799 MB / 315.2 MB, free: 312 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.00198/0.00198, allocations: 67.91 kB / 438.7 MB, free: 13.65 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1074/0.1094, allocations: 54.18 MB / 492.9 MB, free: 7.383 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestState): time 0.01059/0.12, allocations: 7.668 MB / 0.4888 GB, free: 15.67 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 4.895e-05/0.12, allocations: 35.88 kB / 0.4888 GB, free: 15.64 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.325e-05/0.12, allocations: 0 / 0.4888 GB, free: 15.64 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003056/0.1203, allocations: 83.38 kB / 0.4889 GB, free: 15.56 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 2.904e-05/0.1204, allocations: 19.8 kB / 0.4889 GB, free: 15.54 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002076/0.1206, allocations: 39.67 kB / 0.489 GB, free: 15.5 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001092/0.1207, allocations: 47.62 kB / 0.489 GB, free: 15.45 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.383e-05/0.1207, allocations: 0 / 0.489 GB, free: 15.45 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.097e-05/0.1208, allocations: 12 kB / 0.489 GB, free: 15.44 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.632e-05/0.1208, allocations: 15.88 kB / 0.489 GB, free: 15.43 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.35e-05/0.1209, allocations: 0 / 0.489 GB, free: 15.43 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001969/0.121, allocations: 47.97 kB / 0.4891 GB, free: 15.38 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 1.038e-05/0.1211, allocations: 0 / 0.4891 GB, free: 15.38 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 4.457e-05/0.1211, allocations: 19.88 kB / 0.4891 GB, free: 15.36 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001853/0.1213, allocations: 51.83 kB / 0.4892 GB, free: 15.31 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.1213, allocations: 3.938 kB / 0.4892 GB, free: 15.3 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.1213, allocations: 0 / 0.4892 GB, free: 15.3 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.072e-06/0.1213, allocations: 0 / 0.4892 GB, free: 15.3 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.0003484/0.1216, allocations: 274.2 kB / 0.4894 GB, free: 15.01 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.07e-05/0.1217, allocations: 8.031 kB / 0.4894 GB, free: 15 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.973e-05/0.1217, allocations: 34.75 kB / 0.4895 GB, free: 14.96 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.491e-05/0.1218, allocations: 12.92 kB / 0.4895 GB, free: 14.95 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.681e-05/0.1219, allocations: 106.5 kB / 0.4896 GB, free: 14.82 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.176e-05/0.1219, allocations: 384 / 0.4896 GB, free: 14.82 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.714e-06/0.1219, allocations: 4.375 kB / 0.4896 GB, free: 14.81 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001264/0.122, allocations: 61.56 kB / 0.4896 GB, free: 14.75 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.095e-06/0.122, allocations: 0 / 0.4896 GB, free: 14.75 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.542e-06/0.122, allocations: 0 / 0.4896 GB, free: 14.75 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.242e-06/0.122, allocations: 0 / 0.4896 GB, free: 14.75 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.513e-05/0.1221, allocations: 31.98 kB / 0.4897 GB, free: 14.71 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001711/0.1222, allocations: 144.7 kB / 0.4898 GB, free: 14.53 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.544e-05/0.1223, allocations: 46.5 kB / 0.4898 GB, free: 14.48 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.782e-05/0.1223, allocations: 29.17 kB / 0.4899 GB, free: 14.45 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.585e-05/0.1224, allocations: 7.938 kB / 0.4899 GB, free: 14.44 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.189e-05/0.1224, allocations: 34.5 kB / 0.4899 GB, free: 14.39 MB / 366.1 MB Notification: Performance of pre-optimization done (n=15): time 1.082e-06/0.1224, allocations: 0 / 0.4899 GB, free: 14.39 MB / 366.1 MB Notification: Performance of matching and sorting (n=15): time 0.0002338/0.1226, allocations: 137.5 kB / 0.49 GB, free: 14.25 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.513e-05/0.1227, allocations: 55.44 kB / 0.4901 GB, free: 14.19 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.824e-05/0.1228, allocations: 93.86 kB / 0.4902 GB, free: 14.09 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.897e-05/0.1228, allocations: 25.7 kB / 0.4902 GB, free: 14.05 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.026e-05/0.1228, allocations: 80.14 kB / 0.4903 GB, free: 13.97 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.895e-05/0.1229, allocations: 51.52 kB / 0.4903 GB, free: 13.92 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.395e-05/0.1229, allocations: 13.72 kB / 0.4904 GB, free: 13.9 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001685/0.1231, allocations: 322.8 kB / 0.4907 GB, free: 13.58 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.755e-05/0.1231, allocations: 24 kB / 0.4907 GB, free: 13.55 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.062e-05/0.1232, allocations: 34.94 kB / 0.4907 GB, free: 13.52 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001354/0.1233, allocations: 72.78 kB / 0.4908 GB, free: 13.45 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.1233, allocations: 0 / 0.4908 GB, free: 13.45 MB / 366.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001309/0.1234, allocations: 101.5 kB / 0.4909 GB, free: 13.34 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.587e-05/0.1235, allocations: 7.938 kB / 0.4909 GB, free: 13.34 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.257e-06/0.1235, allocations: 4 kB / 0.4909 GB, free: 13.33 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.811e-05/0.1235, allocations: 4 kB / 0.4909 GB, free: 13.33 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.453e-06/0.1235, allocations: 0 / 0.4909 GB, free: 13.33 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.322e-06/0.1235, allocations: 0 / 0.4909 GB, free: 13.33 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.246e-05/0.1235, allocations: 3.953 kB / 0.4909 GB, free: 13.32 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.273e-06/0.1235, allocations: 4.062 kB / 0.4909 GB, free: 13.32 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.0001071/0.1236, allocations: 113.8 kB / 0.491 GB, free: 13.2 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.182e-05/0.1237, allocations: 7.922 kB / 0.491 GB, free: 13.19 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.614e-05/0.1237, allocations: 3.969 kB / 0.491 GB, free: 13.19 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.995e-06/0.1237, allocations: 8 kB / 0.491 GB, free: 13.18 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.1237, allocations: 0 / 0.491 GB, free: 13.18 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.605e-06/0.1237, allocations: 0 / 0.491 GB, free: 13.18 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001316/0.1238, allocations: 144.6 kB / 0.4912 GB, free: 13 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.877e-06/0.1238, allocations: 3.938 kB / 0.4912 GB, free: 13 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.498e-06/0.1238, allocations: 7.938 kB / 0.4912 GB, free: 12.99 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.152e-06/0.1238, allocations: 0 / 0.4912 GB, free: 12.99 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.815e-06/0.1239, allocations: 4 kB / 0.4912 GB, free: 12.98 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.12e-07/0.1239, allocations: 0 / 0.4912 GB, free: 12.98 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.1239, allocations: 0 / 0.4912 GB, free: 12.98 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001869/0.124, allocations: 124 kB / 0.4913 GB, free: 12.85 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.672e-05/0.1241, allocations: 11.88 kB / 0.4913 GB, free: 12.84 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.106e-05/0.1241, allocations: 0 / 0.4913 GB, free: 12.84 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.977e-05/0.1241, allocations: 4.031 kB / 0.4913 GB, free: 12.83 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.91e-05/0.1241, allocations: 7.922 kB / 0.4913 GB, free: 12.82 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.324e-06/0.1241, allocations: 0 / 0.4913 GB, free: 12.82 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.843e-05/0.1241, allocations: 79.28 kB / 0.4914 GB, free: 12.75 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1241, allocations: 0 / 0.4914 GB, free: 12.75 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0001973/0.1243, allocations: 12 kB / 0.4914 GB, free: 12.73 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.0007706/0.1251, allocations: 0.6992 MB / 0.4921 GB, free: 12.01 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001258/0.1252, allocations: 59.92 kB / 0.4922 GB, free: 11.95 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.1252, allocations: 4.094 kB / 0.4922 GB, free: 11.95 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.407e-05/0.1253, allocations: 31.98 kB / 0.4922 GB, free: 11.91 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003917/0.1257, allocations: 30.78 kB / 0.4922 GB, free: 11.89 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005613/0.1262, allocations: 270.1 kB / 0.4925 GB, free: 11.58 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003443/0.1266, allocations: 0.6962 MB / 0.4932 GB, free: 10.86 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 2.3e-05/0.1266, allocations: 4 kB / 0.4932 GB, free: 10.86 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.938e-05/0.1266, allocations: 11.44 kB / 0.4932 GB, free: 10.84 MB / 366.1 MB Notification: Performance of SimCode: time 4.41e-07/0.1266, allocations: 0 / 0.4932 GB, free: 10.84 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02912/0.1557, allocations: 2.99 MB / 0.4961 GB, free: 8.008 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11/11.16, allocations: 7.438 kB / 0.4961 GB, free: 8.004 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 & python3 -m fmpy simulate --output-file ExternalMedia_ExternalMedia.Test.TestMedium.TestState_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_TestState.fmu > ExternalMedia_ExternalMedia.Test.TestMedium.TestState.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.251532898997539] Failed to read output from testmodel.py, exit status != 0: 11.494254385004751 11.697499338 11.572911847 Calling exit ...