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.001766/0.001766, allocations: 101.5 kB / 19.73 MB, free: 2.23 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.002194/0.002194, allocations: 214.7 kB / 23.04 MB, free: 5.07 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.514/1.514, allocations: 230.6 MB / 256.8 MB, free: 7.996 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.01449/0.01449, allocations: 2.796 MB / 316 MB, free: 292 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternalMedia.Test.TestMedium.TestConstants,fileNamePrefix="ExternalMedia_ExternalMedia_Test_TestMedium_TestConstants",fmuType="cs",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.001978/0.001978, allocations: 63.91 kB / 439.5 MB, free: 13.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09996/0.1019, allocations: 54.17 MB / 493.6 MB, free: 7.355 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternalMedia.Test.TestMedium.TestConstants): time 0.009451/0.1114, allocations: 7.442 MB / 0.4893 GB, free: 15.88 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 9.618e-06/0.1114, allocations: 3.984 kB / 0.4893 GB, free: 15.87 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.837e-05/0.1114, allocations: 0 / 0.4893 GB, free: 15.87 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 1.819e-05/0.1114, allocations: 0 / 0.4893 GB, free: 15.87 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003503/0.1118, allocations: 112.3 kB / 0.4895 GB, free: 15.76 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 3.877e-06/0.1118, allocations: 0 / 0.4895 GB, free: 15.76 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 4.006e-05/0.1118, allocations: 7.938 kB / 0.4895 GB, free: 15.75 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.032e-05/0.1119, allocations: 7.922 kB / 0.4895 GB, free: 15.75 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01809/0.13, allocations: 36.05 kB / 0.4895 GB, free: 15.71 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.202e-05/0.13, allocations: 4 kB / 0.4895 GB, free: 15.71 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.533e-06/0.13, allocations: 0 / 0.4895 GB, free: 15.71 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.508e-06/0.13, allocations: 0 / 0.4895 GB, free: 15.71 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 1.183e-05/0.13, allocations: 7.922 kB / 0.4895 GB, free: 15.7 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 1.489e-05/0.13, allocations: 0 / 0.4895 GB, free: 15.7 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 5.115e-05/0.1301, allocations: 0 / 0.4895 GB, free: 15.7 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.1301, allocations: 0 / 0.4895 GB, free: 15.7 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1301, allocations: 4 kB / 0.4895 GB, free: 15.7 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.111e-06/0.1301, allocations: 3.938 kB / 0.4895 GB, free: 15.69 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.0002724/0.1304, allocations: 242.4 kB / 0.4898 GB, free: 15.43 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.118e-05/0.1304, allocations: 12.06 kB / 0.4898 GB, free: 15.41 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.317e-05/0.1304, allocations: 192 / 0.4898 GB, free: 15.41 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.926e-05/0.1304, allocations: 30.75 kB / 0.4898 GB, free: 15.38 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.739e-05/0.1305, allocations: 0.9375 kB / 0.4898 GB, free: 15.38 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.399e-05/0.1305, allocations: 114.5 kB / 0.4899 GB, free: 15.24 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.59e-06/0.1305, allocations: 384 / 0.4899 GB, free: 15.24 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.193e-05/0.1306, allocations: 4.125 kB / 0.4899 GB, free: 15.23 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.202e-05/0.1306, allocations: 33.7 kB / 0.4899 GB, free: 15.2 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.322e-06/0.1306, allocations: 0 / 0.4899 GB, free: 15.2 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.282e-06/0.1306, allocations: 0 / 0.4899 GB, free: 15.2 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.331e-06/0.1307, allocations: 4 kB / 0.4899 GB, free: 15.19 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.673e-05/0.1307, allocations: 3.938 kB / 0.4899 GB, free: 15.19 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003008/0.131, allocations: 354.6 kB / 0.4903 GB, free: 14.8 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.022e-05/0.1311, allocations: 169.1 kB / 0.4904 GB, free: 14.62 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.986e-05/0.1311, allocations: 80.14 kB / 0.4905 GB, free: 14.54 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.052e-05/0.1311, allocations: 75.28 kB / 0.4906 GB, free: 14.46 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.373e-05/0.1312, allocations: 105.8 kB / 0.4907 GB, free: 14.35 MB / 366.1 MB Notification: Performance of pre-optimization done (n=0): time 7.81e-07/0.1312, allocations: 0 / 0.4907 GB, free: 14.35 MB / 366.1 MB Notification: Performance of matching and sorting (n=0): time 7.067e-05/0.1313, allocations: 33.64 kB / 0.4907 GB, free: 14.31 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.356e-05/0.1313, allocations: 130.7 kB / 0.4909 GB, free: 14.17 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.533e-05/0.1314, allocations: 93.86 kB / 0.4909 GB, free: 14.07 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.607e-05/0.1314, allocations: 25.7 kB / 0.491 GB, free: 14.04 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.998e-05/0.1315, allocations: 88.03 kB / 0.4911 GB, free: 13.95 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.579e-06/0.1315, allocations: 4 kB / 0.4911 GB, free: 13.95 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.923e-05/0.1315, allocations: 13.7 kB / 0.4911 GB, free: 13.93 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001467/0.1317, allocations: 314.8 kB / 0.4914 GB, free: 13.61 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.147e-06/0.1317, allocations: 0 / 0.4914 GB, free: 13.61 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.196e-06/0.1317, allocations: 12.06 kB / 0.4914 GB, free: 13.6 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.073e-05/0.1317, allocations: 12.8 kB / 0.4914 GB, free: 13.58 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.1317, allocations: 0 / 0.4914 GB, free: 13.58 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.539e-05/0.1318, allocations: 33.7 kB / 0.4914 GB, free: 13.54 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.673e-05/0.1318, allocations: 8 kB / 0.4914 GB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.528e-06/0.1318, allocations: 0 / 0.4914 GB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.164e-05/0.1319, allocations: 0 / 0.4914 GB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.12e-05/0.1319, allocations: 3.984 kB / 0.4914 GB, free: 13.53 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.358e-06/0.1319, allocations: 0 / 0.4914 GB, free: 13.53 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.12e-05/0.1319, allocations: 8.094 kB / 0.4914 GB, free: 13.52 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.376e-06/0.1319, allocations: 0 / 0.4914 GB, free: 13.52 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.0001065/0.132, allocations: 185.1 kB / 0.4916 GB, free: 13.33 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.812e-05/0.1321, allocations: 104.9 kB / 0.4917 GB, free: 13.22 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.644e-05/0.1322, allocations: 108 kB / 0.4918 GB, free: 13.11 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.214e-05/0.1323, allocations: 180.3 kB / 0.492 GB, free: 12.93 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.689e-05/0.1323, allocations: 188.2 kB / 0.4922 GB, free: 12.74 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.391e-05/0.1324, allocations: 176.3 kB / 0.4923 GB, free: 12.56 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002525/0.1327, allocations: 376.2 kB / 0.4927 GB, free: 12.14 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.75e-05/0.1327, allocations: 109 kB / 0.4928 GB, free: 12.03 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.118e-05/0.1328, allocations: 101 kB / 0.4929 GB, free: 11.92 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.253e-05/0.1329, allocations: 192.2 kB / 0.4931 GB, free: 11.73 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.419e-05/0.1329, allocations: 176.3 kB / 0.4933 GB, free: 11.55 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.845e-05/0.133, allocations: 180.2 kB / 0.4934 GB, free: 11.36 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.837e-05/0.1331, allocations: 176.3 kB / 0.4936 GB, free: 11.18 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001613/0.1332, allocations: 311.7 kB / 0.4939 GB, free: 10.86 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.654e-05/0.1333, allocations: 109 kB / 0.494 GB, free: 10.74 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.044e-05/0.1334, allocations: 180.2 kB / 0.4942 GB, free: 10.56 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.485e-05/0.1335, allocations: 105 kB / 0.4943 GB, free: 10.45 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.308e-05/0.1336, allocations: 184.2 kB / 0.4944 GB, free: 10.26 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.49e-05/0.1336, allocations: 105 kB / 0.4945 GB, free: 10.15 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.082e-05/0.1337, allocations: 79.28 kB / 0.4946 GB, free: 10.07 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1337, allocations: 3.938 kB / 0.4946 GB, free: 10.07 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002263/0.1339, allocations: 0 / 0.4946 GB, free: 10.07 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.0004529/0.1343, allocations: 0.8086 MB / 0.4954 GB, free: 9.234 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 6.566e-05/0.1344, allocations: 4.094 kB / 0.4954 GB, free: 9.23 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.235e-06/0.1344, allocations: 0 / 0.4954 GB, free: 9.23 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 1.563e-06/0.1344, allocations: 0 / 0.4954 GB, free: 9.23 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003964/0.1348, allocations: 459.7 kB / 0.4959 GB, free: 8.777 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000388/0.1352, allocations: 194.4 kB / 0.496 GB, free: 8.547 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003117/0.1355, allocations: 0.6729 MB / 0.4967 GB, free: 7.848 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 1.47e-05/0.1355, allocations: 8.062 kB / 0.4967 GB, free: 7.84 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.136e-05/0.1355, allocations: 7.438 kB / 0.4967 GB, free: 7.832 MB / 366.1 MB Notification: Performance of SimCode: time 3.51e-07/0.1355, allocations: 3.938 kB / 0.4967 GB, free: 7.828 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01874/0.1543, allocations: 1.012 MB / 0.4977 GB, free: 6.953 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.98/11.14, allocations: 16.44 kB / 0.4977 GB, free: 6.945 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.968287348048761] Failed to read output from testmodel.py, exit status != 0: 11.295872264076024 11.470424332 11.337459739 Calling exit ...