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.001664/0.001664, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.002633/0.002633, allocations: 213.5 kB / 22.25 MB, free: 5.258 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.577/1.577, allocations: 230.6 MB / 256 MB, free: 7.793 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.02255/0.02255, allocations: 2.807 MB / 315.2 MB, free: 100 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.TestConstants,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="ExternalMedia_ExternalMedia.Test.TestMedium.TestConstants") translateModel(ExternalMedia.Test.TestMedium.TestConstants,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="ExternalMedia_ExternalMedia.Test.TestMedium.TestConstants") [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.002934/0.002934, allocations: 71.89 kB / 439.1 MB, free: 12.82 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1173/0.1203, allocations: 54.18 MB / 493.3 MB, free: 6.551 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestConstants): time 0.009688/0.13, allocations: 6.816 MB / 0.4884 GB, free: 15.7 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 1.412e-05/0.13, allocations: 11.92 kB / 0.4884 GB, free: 15.69 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.321e-05/0.13, allocations: 0 / 0.4884 GB, free: 15.69 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 1.43e-05/0.13, allocations: 0 / 0.4884 GB, free: 15.69 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003501/0.1304, allocations: 88.44 kB / 0.4885 GB, free: 15.6 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 3.536e-06/0.1304, allocations: 0 / 0.4885 GB, free: 15.6 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 4.479e-05/0.1304, allocations: 7.922 kB / 0.4885 GB, free: 15.59 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.746e-05/0.1305, allocations: 4 kB / 0.4885 GB, free: 15.59 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008622/0.1391, allocations: 32.02 kB / 0.4885 GB, free: 15.56 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.584e-05/0.1391, allocations: 3.938 kB / 0.4885 GB, free: 15.55 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.652e-06/0.1391, allocations: 0 / 0.4885 GB, free: 15.55 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.937e-06/0.1391, allocations: 0 / 0.4885 GB, free: 15.55 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 7.985e-06/0.1391, allocations: 0 / 0.4885 GB, free: 15.55 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 1.677e-05/0.1391, allocations: 4 kB / 0.4885 GB, free: 15.55 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 6.626e-05/0.1392, allocations: 11.92 kB / 0.4885 GB, free: 15.54 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.1392, allocations: 0 / 0.4885 GB, free: 15.54 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.1392, allocations: 0 / 0.4885 GB, free: 15.54 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.972e-06/0.1392, allocations: 0 / 0.4885 GB, free: 15.54 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.0003078/0.1395, allocations: 242.4 kB / 0.4888 GB, free: 15.27 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.292e-05/0.1396, allocations: 8.031 kB / 0.4888 GB, free: 15.27 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.666e-05/0.1396, allocations: 4.938 kB / 0.4888 GB, free: 15.26 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.808e-05/0.1397, allocations: 110.5 kB / 0.4889 GB, free: 15.13 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.397e-05/0.1397, allocations: 384 / 0.4889 GB, free: 15.13 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.669e-06/0.1397, allocations: 384 / 0.4889 GB, free: 15.13 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001098/0.1398, allocations: 37.83 kB / 0.4889 GB, free: 15.09 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.738e-06/0.1398, allocations: 0 / 0.4889 GB, free: 15.09 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.728e-06/0.1398, allocations: 0 / 0.4889 GB, free: 15.09 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.23e-06/0.1399, allocations: 0 / 0.4889 GB, free: 15.09 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.449e-05/0.1399, allocations: 7.922 kB / 0.4889 GB, free: 15.08 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003263/0.1402, allocations: 327.2 kB / 0.4892 GB, free: 14.73 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001124/0.1403, allocations: 173.1 kB / 0.4894 GB, free: 14.55 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.402e-05/0.1404, allocations: 80.14 kB / 0.4895 GB, free: 14.46 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.937e-05/0.1404, allocations: 75.28 kB / 0.4896 GB, free: 14.39 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.732e-05/0.1405, allocations: 113.8 kB / 0.4897 GB, free: 14.27 MB / 366.1 MB Notification: Performance of pre-optimization done (n=0): time 7.82e-07/0.1405, allocations: 4 kB / 0.4897 GB, free: 14.27 MB / 366.1 MB Notification: Performance of matching and sorting (n=0): time 7.708e-05/0.1406, allocations: 29.7 kB / 0.4897 GB, free: 14.23 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.42e-05/0.1407, allocations: 134.7 kB / 0.4898 GB, free: 14.09 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.539e-05/0.1407, allocations: 89.86 kB / 0.4899 GB, free: 13.99 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.468e-05/0.1408, allocations: 25.7 kB / 0.4899 GB, free: 13.96 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.238e-05/0.1408, allocations: 88.09 kB / 0.49 GB, free: 13.87 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.074e-06/0.1408, allocations: 0 / 0.49 GB, free: 13.87 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.901e-05/0.1408, allocations: 9.719 kB / 0.49 GB, free: 13.85 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000155/0.141, allocations: 310.8 kB / 0.4903 GB, free: 13.54 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.386e-06/0.141, allocations: 4 kB / 0.4903 GB, free: 13.54 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.789e-06/0.141, allocations: 4.125 kB / 0.4903 GB, free: 13.53 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.721e-05/0.141, allocations: 12.8 kB / 0.4903 GB, free: 13.52 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.346e-06/0.141, allocations: 7.938 kB / 0.4904 GB, free: 13.51 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.349e-05/0.1411, allocations: 37.67 kB / 0.4904 GB, free: 13.46 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.417e-05/0.1412, allocations: 4 kB / 0.4904 GB, free: 13.46 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.99e-06/0.1412, allocations: 0 / 0.4904 GB, free: 13.46 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.384e-05/0.1412, allocations: 3.938 kB / 0.4904 GB, free: 13.46 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.131e-05/0.1412, allocations: 7.938 kB / 0.4904 GB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.17e-06/0.1412, allocations: 0 / 0.4904 GB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.188e-05/0.1412, allocations: 96 / 0.4904 GB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.168e-06/0.1412, allocations: 4 kB / 0.4904 GB, free: 13.45 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.0001409/0.1414, allocations: 189.1 kB / 0.4906 GB, free: 13.25 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.347e-05/0.1415, allocations: 104.9 kB / 0.4907 GB, free: 13.14 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.951e-05/0.1415, allocations: 112 kB / 0.4908 GB, free: 13.03 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.044e-05/0.1416, allocations: 180.3 kB / 0.491 GB, free: 12.84 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.969e-05/0.1417, allocations: 180.2 kB / 0.4911 GB, free: 12.66 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.112e-05/0.1418, allocations: 176.3 kB / 0.4913 GB, free: 12.48 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000255/0.142, allocations: 364.7 kB / 0.4917 GB, free: 12.09 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.082e-05/0.1421, allocations: 101 kB / 0.4918 GB, free: 11.98 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.004e-05/0.1422, allocations: 104.9 kB / 0.4919 GB, free: 11.87 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.115e-05/0.1422, allocations: 184.3 kB / 0.492 GB, free: 11.68 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.206e-05/0.1423, allocations: 180.3 kB / 0.4922 GB, free: 11.5 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.596e-05/0.1424, allocations: 188.2 kB / 0.4924 GB, free: 11.31 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.179e-05/0.1425, allocations: 176.3 kB / 0.4925 GB, free: 11.13 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001771/0.1427, allocations: 307.7 kB / 0.4928 GB, free: 10.8 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.761e-05/0.1427, allocations: 109 kB / 0.4929 GB, free: 10.69 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001002/0.1428, allocations: 180.2 kB / 0.4931 GB, free: 10.51 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.672e-05/0.1429, allocations: 105 kB / 0.4932 GB, free: 10.4 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.002e-05/0.143, allocations: 184.2 kB / 0.4934 GB, free: 10.21 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.566e-05/0.1431, allocations: 101 kB / 0.4935 GB, free: 10.11 MB / 366.1 MB Notification: Performance of sorting global known variables: time 4.304e-05/0.1431, allocations: 79.28 kB / 0.4936 GB, free: 10.03 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1431, allocations: 0 / 0.4936 GB, free: 10.03 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002161/0.1434, allocations: 4 kB / 0.4936 GB, free: 10.02 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.0001374/0.1435, allocations: 170.5 kB / 0.4937 GB, free: 9.848 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 6.488e-05/0.1436, allocations: 4 kB / 0.4937 GB, free: 9.844 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.1436, allocations: 0 / 0.4937 GB, free: 9.844 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 1.493e-06/0.1436, allocations: 3.938 kB / 0.4937 GB, free: 9.84 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004122/0.144, allocations: 466.8 kB / 0.4942 GB, free: 9.383 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002527/0.1442, allocations: 157 kB / 0.4943 GB, free: 9.203 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.229e-05/0.1443, allocations: 59.34 kB / 0.4944 GB, free: 9.125 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 1.509e-05/0.1443, allocations: 0 / 0.4944 GB, free: 9.125 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.847e-05/0.1443, allocations: 11.44 kB / 0.4944 GB, free: 9.113 MB / 366.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1443, allocations: 3.938 kB / 0.4944 GB, free: 9.109 MB / 366.1 MB Notification: Performance of Templates: time 0.002155/0.1465, allocations: 167.5 kB / 0.4946 GB, free: 8.949 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f ExternalMedia_ExternalMedia.Test.TestMedium.TestConstants.makefile [Timeout 660] (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 & ./ExternalMedia_ExternalMedia.Test.TestMedium.TestConstants -abortSlowSimulation -alarm=480 -lv LOG_STATS > ExternalMedia_ExternalMedia.Test.TestMedium.TestConstants.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 4.749551797285676] Failed to read output from testmodel.py, exit status != 0: 0.1558499112725258 0.362530738 0.220194416 Calling exit ...