Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternalMedia_ExternalMedia.Test.TestMedium.TestConstants.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.001289/0.001289, 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.001542/0.001542, allocations: 215.2 kB / 22.25 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.622/1.622, allocations: 230.6 MB / 256 MB, free: 8 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.02659/0.02659, allocations: 2.803 MB / 315.2 MB, free: 308 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.TestConstants,fileNamePrefix="ExternalMedia_ExternalMedia_Test_TestMedium_TestConstants",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternalMedia.Test.TestMedium.TestConstants,fileNamePrefix="ExternalMedia_ExternalMedia_Test_TestMedium_TestConstants",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.002879/0.002879, allocations: 71.91 kB / 438.7 MB, free: 13.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1064/0.1093, allocations: 54.18 MB / 492.9 MB, free: 7.375 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestConstants): time 0.009481/0.1187, allocations: 7.45 MB / 0.4886 GB, free: 15.89 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 9.828e-06/0.1187, allocations: 3.938 kB / 0.4886 GB, free: 15.88 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.784e-05/0.1188, allocations: 4 kB / 0.4886 GB, free: 15.88 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 1.837e-05/0.1188, allocations: 0 / 0.4886 GB, free: 15.88 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003758/0.1192, allocations: 108.3 kB / 0.4887 GB, free: 15.77 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 4.198e-06/0.1192, allocations: 0 / 0.4887 GB, free: 15.77 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 4.776e-05/0.1192, allocations: 7.938 kB / 0.4887 GB, free: 15.77 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.445e-05/0.1193, allocations: 0 / 0.4887 GB, free: 15.77 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02158/0.1408, allocations: 35.02 kB / 0.4887 GB, free: 15.73 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.534e-05/0.1409, allocations: 3.938 kB / 0.4887 GB, free: 15.73 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.101e-05/0.1409, allocations: 0 / 0.4887 GB, free: 15.73 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.738e-06/0.1409, allocations: 0 / 0.4887 GB, free: 15.73 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 1.075e-05/0.1409, allocations: 8 kB / 0.4887 GB, free: 15.72 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 2.715e-05/0.1409, allocations: 7.922 kB / 0.4888 GB, free: 15.71 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 7.53e-05/0.141, allocations: 0 / 0.4888 GB, free: 15.71 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.033e-06/0.141, allocations: 0 / 0.4888 GB, free: 15.71 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.595e-06/0.141, allocations: 0 / 0.4888 GB, free: 15.71 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.384e-06/0.141, allocations: 0 / 0.4888 GB, free: 15.71 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: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0004218/0.1414, allocations: 242.4 kB / 0.489 GB, free: 15.45 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.66e-05/0.1415, allocations: 12.06 kB / 0.489 GB, free: 15.44 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.707e-05/0.1415, allocations: 30.75 kB / 0.489 GB, free: 15.4 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.661e-05/0.1416, allocations: 0.9375 kB / 0.489 GB, free: 15.4 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001345/0.1417, allocations: 110.5 kB / 0.4891 GB, free: 15.27 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.022e-05/0.1417, allocations: 384 / 0.4891 GB, free: 15.27 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.893e-05/0.1417, allocations: 4.375 kB / 0.4891 GB, free: 15.26 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001416/0.1419, allocations: 33.62 kB / 0.4892 GB, free: 15.22 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.336e-05/0.1419, allocations: 0 / 0.4892 GB, free: 15.22 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.347e-06/0.1419, allocations: 0 / 0.4892 GB, free: 15.22 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.831e-06/0.1419, allocations: 0 / 0.4892 GB, free: 15.22 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.225e-05/0.1419, allocations: 7.938 kB / 0.4892 GB, free: 15.21 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005012/0.1424, allocations: 350.5 kB / 0.4895 GB, free: 14.83 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001446/0.1426, allocations: 173.1 kB / 0.4897 GB, free: 14.65 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.221e-05/0.1427, allocations: 88.12 kB / 0.4898 GB, free: 14.56 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.487e-05/0.1427, allocations: 75.28 kB / 0.4898 GB, free: 14.48 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.16e-05/0.1428, allocations: 113.8 kB / 0.4899 GB, free: 14.36 MB / 366.1 MB Notification: Performance of pre-optimization done (n=0): time 1.653e-06/0.1428, allocations: 0 / 0.4899 GB, free: 14.36 MB / 366.1 MB Notification: Performance of matching and sorting (n=0): time 0.0001102/0.1429, allocations: 25.7 kB / 0.49 GB, free: 14.33 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001031/0.143, allocations: 126.7 kB / 0.4901 GB, free: 14.2 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001392/0.1431, allocations: 93.86 kB / 0.4902 GB, free: 14.09 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.473e-05/0.1432, allocations: 25.7 kB / 0.4902 GB, free: 14.06 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.546e-05/0.1432, allocations: 84.09 kB / 0.4903 GB, free: 13.98 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.907e-06/0.1432, allocations: 0 / 0.4903 GB, free: 13.98 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.098e-05/0.1433, allocations: 25.78 kB / 0.4903 GB, free: 13.95 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002468/0.1435, allocations: 318.8 kB / 0.4906 GB, free: 13.62 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.318e-05/0.1436, allocations: 0 / 0.4906 GB, free: 13.62 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.925e-06/0.1436, allocations: 0 / 0.4906 GB, free: 13.62 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.858e-05/0.1436, allocations: 16.8 kB / 0.4906 GB, free: 13.61 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.866e-06/0.1436, allocations: 0 / 0.4906 GB, free: 13.61 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001508/0.1438, allocations: 29.7 kB / 0.4907 GB, free: 13.57 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.074e-05/0.1438, allocations: 8.094 kB / 0.4907 GB, free: 13.56 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.047e-05/0.1438, allocations: 4 kB / 0.4907 GB, free: 13.56 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.029e-05/0.1438, allocations: 0 / 0.4907 GB, free: 13.56 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.575e-05/0.1439, allocations: 0 / 0.4907 GB, free: 13.56 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.395e-06/0.1439, allocations: 0 / 0.4907 GB, free: 13.56 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.943e-05/0.1439, allocations: 0 / 0.4907 GB, free: 13.56 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.102e-05/0.1439, allocations: 3.984 kB / 0.4907 GB, free: 13.55 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): 1 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.0001618/0.1441, allocations: 193.1 kB / 0.4909 GB, free: 13.36 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001128/0.1442, allocations: 104.9 kB / 0.491 GB, free: 13.25 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.665e-05/0.1443, allocations: 108 kB / 0.4911 GB, free: 13.14 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001053/0.1444, allocations: 184.2 kB / 0.4912 GB, free: 12.95 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001146/0.1445, allocations: 180.2 kB / 0.4914 GB, free: 12.77 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001213/0.1446, allocations: 180.3 kB / 0.4916 GB, free: 12.58 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003798/0.145, allocations: 380.2 kB / 0.4919 GB, free: 12.16 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.195e-05/0.1451, allocations: 105 kB / 0.492 GB, free: 12.05 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.784e-05/0.1451, allocations: 108.9 kB / 0.4921 GB, free: 11.94 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001048/0.1452, allocations: 176.3 kB / 0.4923 GB, free: 11.76 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001242/0.1454, allocations: 188.3 kB / 0.4925 GB, free: 11.57 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000112/0.1455, allocations: 180.2 kB / 0.4927 GB, free: 11.38 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0001181/0.1456, allocations: 176.3 kB / 0.4928 GB, free: 11.2 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002219/0.1458, allocations: 315.7 kB / 0.4931 GB, free: 10.87 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.663e-05/0.1459, allocations: 101 kB / 0.4932 GB, free: 10.77 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001281/0.146, allocations: 184.2 kB / 0.4934 GB, free: 10.58 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000133/0.1462, allocations: 101 kB / 0.4935 GB, free: 10.47 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001139/0.1463, allocations: 192.1 kB / 0.4937 GB, free: 10.28 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.973e-05/0.1463, allocations: 101 kB / 0.4938 GB, free: 10.17 MB / 366.1 MB Notification: Performance of sorting global known variables: time 4.984e-05/0.1464, allocations: 79.28 kB / 0.4939 GB, free: 10.09 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.1464, allocations: 0 / 0.4939 GB, free: 10.09 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003955/0.1468, allocations: 4 kB / 0.4939 GB, free: 10.09 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 (0): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.0006433/0.1474, allocations: 0.8086 MB / 0.4946 GB, free: 9.254 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001001/0.1475, allocations: 8 kB / 0.4947 GB, free: 9.246 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.975e-06/0.1475, allocations: 0 / 0.4947 GB, free: 9.246 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.407e-06/0.1475, allocations: 0 / 0.4947 GB, free: 9.246 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006245/0.1481, allocations: 455.8 kB / 0.4951 GB, free: 8.797 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006084/0.1488, allocations: 198.4 kB / 0.4953 GB, free: 8.562 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000399/0.1492, allocations: 0.6729 MB / 0.4959 GB, free: 7.863 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 2.199e-05/0.1492, allocations: 0 / 0.4959 GB, free: 7.863 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.751e-05/0.1492, allocations: 7.438 kB / 0.4959 GB, free: 7.855 MB / 366.1 MB Notification: Performance of SimCode: time 4.21e-07/0.1492, allocations: 0 / 0.4959 GB, free: 7.855 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02908/0.1783, allocations: 0.9845 MB / 0.4969 GB, free: 6.992 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.9/11.08, allocations: 6.594 kB / 0.4969 GB, free: 6.988 MB / 366.1 MB " [Timeout remaining time 649] (rm -f ExternalMedia_ExternalMedia.Test.TestMedium.TestConstants.pipe ; mkfifo ExternalMedia_ExternalMedia.Test.TestMedium.TestConstants.pipe ; head -c 1048576 < ExternalMedia_ExternalMedia.Test.TestMedium.TestConstants.pipe >> ../files/ExternalMedia_ExternalMedia.Test.TestMedium.TestConstants.sim & python3 -m fmpy simulate --output-file ExternalMedia_ExternalMedia.Test.TestMedium.TestConstants_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_TestConstants.fmu > ExternalMedia_ExternalMedia.Test.TestMedium.TestConstants.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.165413349001028] Failed to read output from testmodel.py, exit status != 0: 11.192440220998833 11.383230198 11.237325673 Calling exit ...