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.001471/0.001471, allocations: 114.5 kB / 18.94 MB, free: 2.957 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.001862/0.001862, allocations: 216 kB / 22.25 MB, free: 5.117 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.487/1.487, allocations: 230.6 MB / 256 MB, free: 8.031 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.01614/0.01614, allocations: 2.797 MB / 315.2 MB, free: 336 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.002055/0.002055, allocations: 67.91 kB / 438.7 MB, free: 13.69 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1023/0.1044, allocations: 54.17 MB / 492.9 MB, free: 7.422 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestConstants): time 0.01017/0.1145, allocations: 7.45 MB / 0.4886 GB, free: 15.93 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 9.778e-06/0.1146, allocations: 7.922 kB / 0.4886 GB, free: 15.93 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.551e-05/0.1146, allocations: 0 / 0.4886 GB, free: 15.93 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 1.719e-05/0.1146, allocations: 0 / 0.4886 GB, free: 15.93 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003456/0.1149, allocations: 100.4 kB / 0.4887 GB, free: 15.83 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 3.286e-06/0.1149, allocations: 0 / 0.4887 GB, free: 15.83 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 4.874e-05/0.115, allocations: 15.92 kB / 0.4887 GB, free: 15.81 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.779e-05/0.115, allocations: 4 kB / 0.4887 GB, free: 15.81 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02042/0.1354, allocations: 34.81 kB / 0.4887 GB, free: 15.78 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.757e-05/0.1355, allocations: 0 / 0.4887 GB, free: 15.78 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 7.564e-06/0.1355, allocations: 4 kB / 0.4887 GB, free: 15.77 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.029e-06/0.1355, allocations: 0 / 0.4887 GB, free: 15.77 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 1.441e-05/0.1355, allocations: 3.938 kB / 0.4887 GB, free: 15.77 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 1.744e-05/0.1355, allocations: 0 / 0.4887 GB, free: 15.77 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 5.544e-05/0.1356, allocations: 0 / 0.4887 GB, free: 15.77 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.1356, allocations: 0 / 0.4887 GB, free: 15.77 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.013e-06/0.1356, allocations: 0 / 0.4887 GB, free: 15.77 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.031e-06/0.1356, allocations: 4 kB / 0.4887 GB, free: 15.77 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.0003443/0.1359, allocations: 246.4 kB / 0.489 GB, free: 15.5 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.355e-05/0.136, allocations: 12.06 kB / 0.489 GB, free: 15.48 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.857e-05/0.136, allocations: 30.75 kB / 0.489 GB, free: 15.45 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.439e-05/0.136, allocations: 0.9375 kB / 0.489 GB, free: 15.45 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001244/0.1362, allocations: 106.5 kB / 0.4891 GB, free: 15.32 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.057e-06/0.1362, allocations: 384 / 0.4891 GB, free: 15.32 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.268e-05/0.1362, allocations: 4.375 kB / 0.4891 GB, free: 15.31 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001121/0.1363, allocations: 29.64 kB / 0.4892 GB, free: 15.28 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.01e-05/0.1363, allocations: 4 kB / 0.4892 GB, free: 15.27 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.424e-06/0.1363, allocations: 0 / 0.4892 GB, free: 15.27 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.268e-06/0.1363, allocations: 3.938 kB / 0.4892 GB, free: 15.27 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.397e-05/0.1363, allocations: 4 kB / 0.4892 GB, free: 15.27 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004178/0.1368, allocations: 350.5 kB / 0.4895 GB, free: 14.88 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000133/0.1369, allocations: 173.2 kB / 0.4897 GB, free: 14.7 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.388e-05/0.1369, allocations: 84.14 kB / 0.4898 GB, free: 14.61 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.018e-05/0.137, allocations: 75.28 kB / 0.4898 GB, free: 14.54 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.564e-05/0.1371, allocations: 109.8 kB / 0.4899 GB, free: 14.42 MB / 366.1 MB Notification: Performance of pre-optimization done (n=0): time 1.253e-06/0.1371, allocations: 0 / 0.4899 GB, free: 14.42 MB / 366.1 MB Notification: Performance of matching and sorting (n=0): time 0.000103/0.1372, allocations: 33.62 kB / 0.49 GB, free: 14.38 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001374/0.1373, allocations: 130.7 kB / 0.4901 GB, free: 14.24 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001199/0.1374, allocations: 93.86 kB / 0.4902 GB, free: 14.14 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.122e-05/0.1375, allocations: 25.7 kB / 0.4902 GB, free: 14.11 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.064e-05/0.1375, allocations: 88.09 kB / 0.4903 GB, free: 14.02 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.287e-06/0.1375, allocations: 3.938 kB / 0.4903 GB, free: 14.02 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.783e-05/0.1376, allocations: 13.72 kB / 0.4903 GB, free: 14 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002446/0.1378, allocations: 314.8 kB / 0.4906 GB, free: 13.68 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.088e-05/0.1378, allocations: 0 / 0.4906 GB, free: 13.68 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.247e-06/0.1378, allocations: 4.125 kB / 0.4906 GB, free: 13.68 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.378e-05/0.1379, allocations: 12.8 kB / 0.4906 GB, free: 13.66 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.1379, allocations: 0 / 0.4906 GB, free: 13.66 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.000126/0.138, allocations: 37.69 kB / 0.4907 GB, free: 13.62 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.966e-05/0.138, allocations: 8 kB / 0.4907 GB, free: 13.61 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.198e-06/0.138, allocations: 3.984 kB / 0.4907 GB, free: 13.61 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.424e-05/0.138, allocations: 0 / 0.4907 GB, free: 13.61 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.996e-05/0.1381, allocations: 4 kB / 0.4907 GB, free: 13.6 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.919e-06/0.1381, allocations: 0 / 0.4907 GB, free: 13.6 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.149e-05/0.1381, allocations: 4.094 kB / 0.4907 GB, free: 13.6 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.464e-06/0.1381, allocations: 4 kB / 0.4907 GB, free: 13.59 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.0001349/0.1383, allocations: 185.1 kB / 0.4909 GB, free: 13.4 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001086/0.1384, allocations: 108.9 kB / 0.491 GB, free: 13.29 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.418e-05/0.1385, allocations: 108 kB / 0.4911 GB, free: 13.18 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001102/0.1386, allocations: 184.2 kB / 0.4912 GB, free: 12.99 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001121/0.1387, allocations: 184.3 kB / 0.4914 GB, free: 12.8 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001071/0.1388, allocations: 176.3 kB / 0.4916 GB, free: 12.62 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003625/0.1391, allocations: 380.2 kB / 0.4919 GB, free: 12.2 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.86e-05/0.1392, allocations: 101 kB / 0.492 GB, free: 12.1 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.388e-05/0.1393, allocations: 104.9 kB / 0.4921 GB, free: 11.99 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000108/0.1394, allocations: 180.3 kB / 0.4923 GB, free: 11.8 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001152/0.1395, allocations: 192.2 kB / 0.4925 GB, free: 11.61 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001038/0.1396, allocations: 180.2 kB / 0.4927 GB, free: 11.43 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0001116/0.1397, allocations: 176.3 kB / 0.4928 GB, free: 11.25 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002479/0.14, allocations: 307.7 kB / 0.4931 GB, free: 10.92 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.803e-05/0.14, allocations: 109 kB / 0.4932 GB, free: 10.81 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001185/0.1402, allocations: 184.2 kB / 0.4934 GB, free: 10.62 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001366/0.1403, allocations: 101 kB / 0.4935 GB, free: 10.52 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001153/0.1404, allocations: 180.2 kB / 0.4937 GB, free: 10.33 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.906e-05/0.1405, allocations: 105 kB / 0.4938 GB, free: 10.22 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.639e-05/0.1405, allocations: 83.27 kB / 0.4939 GB, free: 10.14 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1405, allocations: 4.094 kB / 0.4939 GB, free: 10.14 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004074/0.1409, allocations: 3.938 kB / 0.4939 GB, free: 10.13 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.0005785/0.1415, allocations: 0.8046 MB / 0.4946 GB, free: 9.301 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 7.129e-05/0.1416, allocations: 4 kB / 0.4946 GB, free: 9.297 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.1416, allocations: 4.062 kB / 0.4947 GB, free: 9.293 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 2.705e-06/0.1416, allocations: 0 / 0.4947 GB, free: 9.293 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006086/0.1422, allocations: 459.7 kB / 0.4951 GB, free: 8.84 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005454/0.1427, allocations: 194.4 kB / 0.4953 GB, free: 8.609 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004469/0.1432, allocations: 0.669 MB / 0.4959 GB, free: 7.914 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 1.82e-05/0.1432, allocations: 4 kB / 0.4959 GB, free: 7.91 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.307e-05/0.1432, allocations: 7.438 kB / 0.4959 GB, free: 7.902 MB / 366.1 MB Notification: Performance of SimCode: time 3.5e-07/0.1432, allocations: 0 / 0.4959 GB, free: 7.902 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03105/0.1743, allocations: 0.9923 MB / 0.4969 GB, free: 7.031 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.76/10.94, allocations: 2.656 kB / 0.4969 GB, free: 7.031 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ExternalMedia_ExternalMedia_Test_TestMedium_TestConstants_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 ExternalMedia_ExternalMedia_Test_TestMedium_TestConstants.fmu > ExternalMedia_ExternalMedia.Test.TestMedium.TestConstants.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 13.657368981046602] Failed to read output from testmodel.py, exit status != 0: 11.045510908123106 11.289161706 11.150450002 Calling exit ...