Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternData_ExternData.Examples.XMLTest.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.001307/0.001307, 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.002354/0.002354, allocations: 215.7 kB / 22.25 MB, free: 5.262 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.435/1.435, allocations: 230.6 MB / 256 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.2.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.2.0/package.mo): time 0.01486/0.01486, allocations: 3.272 MB / 315.7 MB, free: 15.61 MB / 254.1 MB " [Timeout remaining time 180] Using package ExternData with version 3.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.2.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(ExternData.Examples.XMLTest,fileNamePrefix="ExternData_ExternData_Examples_XMLTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternData.Examples.XMLTest,fileNamePrefix="ExternData_ExternData_Examples_XMLTest",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ExternData 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.002825/0.002825, allocations: 70.39 kB / 439.5 MB, free: 11.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1174/0.1202, allocations: 54.38 MB / 493.9 MB, free: 5.461 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.XMLTest): time 0.003576/0.1238, allocations: 1.659 MB / 495.5 MB, free: 3.789 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003157/0.1269, allocations: 1.695 MB / 497.2 MB, free: 2.086 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.192e-05/0.127, allocations: 0 / 497.2 MB, free: 2.086 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.2.0/package.mo:238:3-267:14:writable] Warning: Pure function 'ExternData.XMLFile' contains a call to impure function 'ExternData.Types.ExternXMLFile.constructor'. Notification: Performance of NFTyping.typeComponents: time 0.0003916/0.1274, allocations: 43.77 kB / 497.3 MB, free: 2.043 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004748/0.1279, allocations: 115.5 kB / 497.4 MB, free: 1.93 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002959/0.1282, allocations: 98.14 kB / 497.5 MB, free: 1.836 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001806/0.1284, allocations: 91.7 kB / 497.6 MB, free: 1.746 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001003/0.1285, allocations: 4.234 kB / 497.6 MB, free: 1.738 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001031/0.1286, allocations: 43.83 kB / 497.6 MB, free: 1.695 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001561/0.1287, allocations: 31.86 kB / 497.7 MB, free: 1.664 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.083e-05/0.1288, allocations: 4 kB / 497.7 MB, free: 1.66 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003679/0.1291, allocations: 191.7 kB / 497.8 MB, free: 1.473 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.353e-05/0.1292, allocations: 23.92 kB / 497.9 MB, free: 1.449 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.626e-05/0.1293, allocations: 35.8 kB / 497.9 MB, free: 1.414 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005081/0.1298, allocations: 235.3 kB / 498.1 MB, free: 1.184 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.1298, allocations: 4 kB / 498.1 MB, free: 1.18 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.083e-06/0.1298, allocations: 7.875 kB / 498.1 MB, free: 1.172 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.921e-06/0.1298, allocations: 0 / 498.1 MB, free: 1.172 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0007502/0.1305, allocations: 415 kB / 498.6 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.507e-05/0.1306, allocations: 8.031 kB / 498.6 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.052e-05/0.1306, allocations: 30.75 kB / 498.6 MB, free: 0.6836 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.225e-05/0.1307, allocations: 12.89 kB / 498.6 MB, free: 0.6719 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003429/0.131, allocations: 150.3 kB / 498.7 MB, free: 0.5 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.584e-05/0.131, allocations: 4.375 kB / 498.8 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.054e-05/0.1311, allocations: 11.94 kB / 498.8 MB, free: 496 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002667/0.1313, allocations: 129 kB / 498.9 MB, free: 348 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.427e-06/0.1313, allocations: 0 / 498.9 MB, free: 348 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.264e-05/0.1313, allocations: 3.938 kB / 498.9 MB, free: 344 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5e-06/0.1314, allocations: 0 / 498.9 MB, free: 344 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001768/0.1315, allocations: 89.66 kB / 499 MB, free: 248 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005017/0.132, allocations: 277 kB / 499.3 MB, free: 15.92 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003195/0.1323, allocations: 122.9 kB / 499.4 MB, free: 15.78 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000125/0.1325, allocations: 79.45 kB / 499.5 MB, free: 15.69 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.934e-05/0.1325, allocations: 4 kB / 499.5 MB, free: 15.68 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002728/0.1328, allocations: 176.4 kB / 499.6 MB, free: 15.48 MB / 366.1 MB Notification: Performance of pre-optimization done (n=11): time 1.282e-06/0.1328, allocations: 0 / 499.6 MB, free: 15.48 MB / 366.1 MB Notification: Performance of matching and sorting (n=11): time 0.0005907/0.1334, allocations: 298.5 kB / 499.9 MB, free: 15.16 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.536e-05/0.1334, allocations: 110.8 kB / 0.4883 GB, free: 15.03 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001963/0.1336, allocations: 169 kB / 0.4885 GB, free: 14.86 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.296e-05/0.1337, allocations: 25.7 kB / 0.4885 GB, free: 14.83 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.887e-05/0.1337, allocations: 100.3 kB / 0.4886 GB, free: 14.73 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.271e-05/0.1338, allocations: 31.78 kB / 0.4886 GB, free: 14.7 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.189e-05/0.1338, allocations: 25.72 kB / 0.4886 GB, free: 14.66 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001639/0.134, allocations: 326.8 kB / 0.489 GB, free: 14.34 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001226/0.1341, allocations: 69.67 kB / 0.489 GB, free: 14.26 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000131/0.1342, allocations: 83.39 kB / 0.4891 GB, free: 14.17 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002109/0.1345, allocations: 149 kB / 0.4892 GB, free: 14 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.569e-06/0.1345, allocations: 4 kB / 0.4892 GB, free: 14 MB / 366.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000367/0.1348, allocations: 228.9 kB / 0.4895 GB, free: 13.76 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.737e-05/0.1349, allocations: 45.69 kB / 0.4895 GB, free: 13.71 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.941e-06/0.1349, allocations: 0 / 0.4895 GB, free: 13.71 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.745e-05/0.1349, allocations: 3.938 kB / 0.4895 GB, free: 13.7 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.349e-05/0.135, allocations: 12 kB / 0.4895 GB, free: 13.69 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.813e-06/0.135, allocations: 0 / 0.4895 GB, free: 13.69 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.726e-05/0.1351, allocations: 19.88 kB / 0.4895 GB, free: 13.67 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.558e-05/0.1351, allocations: 7.938 kB / 0.4895 GB, free: 13.66 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 (timeTable.nextEventScaled,timeTable.nextEvent,$PRE.timeTable.nextEvent,timeTable.last,timeTable.b,timeTable.a,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 1 * 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.0001673/0.1352, allocations: 162.3 kB / 0.4897 GB, free: 13.49 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.757e-05/0.1353, allocations: 11.95 kB / 0.4897 GB, free: 13.48 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.805e-05/0.1353, allocations: 16.72 kB / 0.4897 GB, free: 13.46 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.876e-06/0.1353, allocations: 0 / 0.4897 GB, free: 13.46 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.1353, allocations: 0 / 0.4897 GB, free: 13.46 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.721e-06/0.1353, allocations: 3.984 kB / 0.4897 GB, free: 13.46 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001867/0.1355, allocations: 172.6 kB / 0.4899 GB, free: 13.25 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.577e-06/0.1355, allocations: 4 kB / 0.4899 GB, free: 13.24 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.815e-05/0.1356, allocations: 11.98 kB / 0.4899 GB, free: 13.23 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.075e-06/0.1356, allocations: 0 / 0.4899 GB, free: 13.23 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.425e-05/0.1356, allocations: 4 kB / 0.4899 GB, free: 13.23 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.1356, allocations: 0 / 0.4899 GB, free: 13.23 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.1356, allocations: 0 / 0.4899 GB, free: 13.23 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004149/0.136, allocations: 289.2 kB / 0.4902 GB, free: 12.91 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.617e-05/0.1361, allocations: 23.81 kB / 0.4902 GB, free: 12.89 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.558e-05/0.1361, allocations: 8.328 kB / 0.4902 GB, free: 12.88 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.666e-05/0.1362, allocations: 4 kB / 0.4902 GB, free: 12.88 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.941e-05/0.1362, allocations: 7.984 kB / 0.4902 GB, free: 12.87 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.036e-05/0.1362, allocations: 7.938 kB / 0.4902 GB, free: 12.86 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001217/0.1363, allocations: 119.2 kB / 0.4904 GB, free: 12.74 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1363, allocations: 0 / 0.4904 GB, free: 12.74 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000392/0.1367, allocations: 83.75 kB / 0.4904 GB, free: 12.66 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,timeTable.a,timeTable.b,timeTable.last,timeTable.nextEvent,timeTable.nextEventScaled) * Number of discrete states: 6 (timeTable.nextEvent,timeTable.last,timeTable.nextEventScaled,timeTable.b,timeTable.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 1 * 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.002108/0.1388, allocations: 1.134 MB / 0.4915 GB, free: 11.6 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003822/0.1392, allocations: 226.7 kB / 0.4918 GB, free: 11.35 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.1392, allocations: 0 / 0.4918 GB, free: 11.35 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001718/0.1394, allocations: 145 kB / 0.4919 GB, free: 11.19 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002633/0.1397, allocations: 27.45 kB / 0.4919 GB, free: 11.17 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002656/0.1423, allocations: 2.054 MB / 0.4939 GB, free: 8.984 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.964e-05/0.1424, allocations: 85.48 kB / 0.494 GB, free: 8.879 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.347e-05/0.1425, allocations: 12.42 kB / 0.494 GB, free: 8.867 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.953e-05/0.1425, allocations: 35.42 kB / 0.4941 GB, free: 8.832 MB / 366.1 MB Notification: Performance of SimCode: time 3.91e-07/0.1425, allocations: 0 / 0.4941 GB, free: 8.832 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04052/0.1831, allocations: 5.001 MB / 0.4989 GB, free: 3.859 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.19/11.37, allocations: 0 / 0.4989 GB, free: 3.859 MB / 366.1 MB " [Timeout remaining time 649] (rm -f ExternData_ExternData.Examples.XMLTest.pipe ; mkfifo ExternData_ExternData.Examples.XMLTest.pipe ; head -c 1048576 < ExternData_ExternData.Examples.XMLTest.pipe >> ../files/ExternData_ExternData.Examples.XMLTest.sim & python3 -m fmpy simulate --output-file ExternData_ExternData.Examples.XMLTest_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 ExternData_ExternData_Examples_XMLTest.fmu > ExternData_ExternData.Examples.XMLTest.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.03358822222799] Failed to read output from testmodel.py, exit status != 0: 11.487540279980749 11.503741266 11.370514314 Calling exit ...