Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternData_ExternData.Examples.XMLTestXPath.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.00127/0.00127, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.001431/0.001431, allocations: 216.4 kB / 22.25 MB, free: 5.129 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.46/1.46, allocations: 230.6 MB / 256 MB, free: 7.961 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.0144/0.0144, allocations: 3.256 MB / 315.7 MB, free: 15.8 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.XMLTestXPath,fileNamePrefix="ExternData_ExternData_Examples_XMLTestXPath",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternData.Examples.XMLTestXPath,fileNamePrefix="ExternData_ExternData_Examples_XMLTestXPath",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.001992/0.001992, allocations: 59.91 kB / 439.6 MB, free: 12.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09627/0.09826, allocations: 54.38 MB / 493.9 MB, free: 5.758 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.XMLTestXPath): time 0.003311/0.1016, allocations: 1.714 MB / 495.7 MB, free: 4.031 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002659/0.1042, allocations: 1.753 MB / 497.4 MB, free: 2.27 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.692e-05/0.1043, allocations: 0 / 497.4 MB, free: 2.27 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.2.0/package.mo:269:3-299:15:writable] Warning: Pure function 'ExternData.XML2File' contains a call to impure function 'ExternData.Types.ExternXML2File.constructor'. Notification: Performance of NFTyping.typeComponents: time 0.0003294/0.1046, allocations: 55.75 kB / 497.5 MB, free: 2.215 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003248/0.1049, allocations: 127.4 kB / 497.6 MB, free: 2.09 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002336/0.1052, allocations: 90.78 kB / 497.7 MB, free: 2.004 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001584/0.1053, allocations: 87.7 kB / 497.8 MB, free: 1.918 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.404e-05/0.1054, allocations: 16.22 kB / 497.8 MB, free: 1.898 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.931e-05/0.1055, allocations: 43.84 kB / 497.8 MB, free: 1.855 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001985/0.1057, allocations: 47.77 kB / 497.9 MB, free: 1.809 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.997e-05/0.1057, allocations: 4 kB / 497.9 MB, free: 1.805 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000322/0.106, allocations: 207.8 kB / 498.1 MB, free: 1.602 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.351e-05/0.1061, allocations: 19.92 kB / 498.1 MB, free: 1.582 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.847e-05/0.1062, allocations: 43.72 kB / 498.1 MB, free: 1.539 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004291/0.1066, allocations: 247.2 kB / 498.4 MB, free: 1.297 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.048e-06/0.1066, allocations: 0 / 498.4 MB, free: 1.297 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.1066, allocations: 0 / 498.4 MB, free: 1.297 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.091e-05/0.1066, allocations: 0 / 498.4 MB, free: 1.297 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.0006961/0.1073, allocations: 415 kB / 498.8 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.905e-05/0.1074, allocations: 12.03 kB / 498.8 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.913e-05/0.1074, allocations: 34.75 kB / 498.8 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.26e-05/0.1075, allocations: 12.89 kB / 498.8 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002923/0.1078, allocations: 158.3 kB / 499 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.049e-05/0.1078, allocations: 384 / 499 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.072e-05/0.1078, allocations: 11.94 kB / 499 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002087/0.108, allocations: 95.38 kB / 499.1 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.827e-06/0.108, allocations: 0 / 499.1 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.069e-05/0.108, allocations: 0 / 499.1 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.318e-06/0.108, allocations: 0 / 499.1 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000139/0.1082, allocations: 55.91 kB / 499.2 MB, free: 448 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004337/0.1086, allocations: 296.6 kB / 499.4 MB, free: 104 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002549/0.1088, allocations: 93.22 kB / 499.5 MB, free: 15.99 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001103/0.109, allocations: 45.73 kB / 499.6 MB, free: 15.94 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.756e-05/0.109, allocations: 4 kB / 499.6 MB, free: 15.94 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002205/0.1092, allocations: 138.8 kB / 499.7 MB, free: 15.78 MB / 366.1 MB Notification: Performance of pre-optimization done (n=11): time 1.132e-06/0.1092, allocations: 3.938 kB / 499.7 MB, free: 15.77 MB / 366.1 MB Notification: Performance of matching and sorting (n=11): time 0.0005038/0.1097, allocations: 235.3 kB / 500 MB, free: 15.53 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.469e-05/0.1098, allocations: 110.8 kB / 0.4883 GB, free: 15.4 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001787/0.11, allocations: 161.8 kB / 0.4885 GB, free: 15.23 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.115e-05/0.11, allocations: 25.7 kB / 0.4885 GB, free: 15.2 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.965e-05/0.1101, allocations: 100.1 kB / 0.4886 GB, free: 15.1 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.88e-05/0.1101, allocations: 27.75 kB / 0.4886 GB, free: 15.07 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.781e-05/0.1101, allocations: 25.7 kB / 0.4887 GB, free: 15.04 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001765/0.1103, allocations: 330.8 kB / 0.489 GB, free: 14.71 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.608e-05/0.1104, allocations: 31.98 kB / 0.489 GB, free: 14.68 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.337e-05/0.1105, allocations: 57.69 kB / 0.4891 GB, free: 14.61 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002083/0.1107, allocations: 149 kB / 0.4892 GB, free: 14.45 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.1107, allocations: 3.938 kB / 0.4892 GB, free: 14.45 MB / 366.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003191/0.111, allocations: 187.2 kB / 0.4894 GB, free: 14.25 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.17e-05/0.1111, allocations: 37.69 kB / 0.4894 GB, free: 14.21 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.529e-06/0.1111, allocations: 0 / 0.4894 GB, free: 14.21 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.284e-05/0.1111, allocations: 0 / 0.4894 GB, free: 14.21 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.778e-05/0.1112, allocations: 15.98 kB / 0.4894 GB, free: 14.19 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.919e-06/0.1112, allocations: 0 / 0.4894 GB, free: 14.19 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.641e-05/0.1112, allocations: 15.83 kB / 0.4895 GB, free: 14.18 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.31e-05/0.1113, allocations: 12 kB / 0.4895 GB, free: 14.16 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.0001424/0.1114, allocations: 155.5 kB / 0.4896 GB, free: 14 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.978e-05/0.1114, allocations: 7.953 kB / 0.4896 GB, free: 13.99 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.002e-05/0.1115, allocations: 16.7 kB / 0.4896 GB, free: 13.97 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.583e-06/0.1115, allocations: 0 / 0.4896 GB, free: 13.97 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.226e-06/0.1115, allocations: 4 kB / 0.4896 GB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.1115, allocations: 3.938 kB / 0.4897 GB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001852/0.1117, allocations: 184.6 kB / 0.4898 GB, free: 13.74 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-06/0.1117, allocations: 4 kB / 0.4898 GB, free: 13.73 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.577e-05/0.1117, allocations: 19.94 kB / 0.4898 GB, free: 13.71 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.1117, allocations: 0 / 0.4898 GB, free: 13.71 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.324e-05/0.1117, allocations: 4 kB / 0.4899 GB, free: 13.71 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.1117, allocations: 0 / 0.4899 GB, free: 13.71 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.1117, allocations: 0 / 0.4899 GB, free: 13.71 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003936/0.1121, allocations: 247.5 kB / 0.4901 GB, free: 13.44 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.169e-05/0.1122, allocations: 19.88 kB / 0.4901 GB, free: 13.42 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.096e-05/0.1122, allocations: 8 kB / 0.4901 GB, free: 13.41 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.845e-05/0.1123, allocations: 7.938 kB / 0.4901 GB, free: 13.41 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.308e-05/0.1123, allocations: 19.86 kB / 0.4901 GB, free: 13.39 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.821e-05/0.1123, allocations: 4 kB / 0.4901 GB, free: 13.38 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001091/0.1124, allocations: 122 kB / 0.4903 GB, free: 13.27 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1124, allocations: 0 / 0.4903 GB, free: 13.27 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000327/0.1128, allocations: 83.75 kB / 0.4903 GB, free: 13.18 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.002073/0.1148, allocations: 1.118 MB / 0.4914 GB, free: 12.15 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003087/0.1151, allocations: 151.3 kB / 0.4916 GB, free: 11.99 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.1151, allocations: 0 / 0.4916 GB, free: 11.99 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001428/0.1153, allocations: 111.4 kB / 0.4917 GB, free: 11.87 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002291/0.1155, allocations: 23.73 kB / 0.4917 GB, free: 11.84 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002478/0.118, allocations: 1.884 MB / 0.4935 GB, free: 9.859 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003502/0.1183, allocations: 0.7045 MB / 0.4942 GB, free: 9.129 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.974e-05/0.1184, allocations: 20.39 kB / 0.4943 GB, free: 9.109 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.514e-05/0.1185, allocations: 43.42 kB / 0.4943 GB, free: 9.066 MB / 366.1 MB Notification: Performance of SimCode: time 7.01e-07/0.1185, allocations: 0 / 0.4943 GB, free: 9.066 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03426/0.1527, allocations: 4.61 MB / 0.4988 GB, free: 4.469 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.03/11.18, allocations: 7.922 kB / 0.4988 GB, free: 4.461 MB / 366.1 MB " [Timeout remaining time 649] (rm -f ExternData_ExternData.Examples.XMLTestXPath.pipe ; mkfifo ExternData_ExternData.Examples.XMLTestXPath.pipe ; head -c 1048576 < ExternData_ExternData.Examples.XMLTestXPath.pipe >> ../files/ExternData_ExternData.Examples.XMLTestXPath.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ExternData_ExternData_Examples_XMLTestXPath_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 ExternData_ExternData_Examples_XMLTestXPath.fmu > ExternData_ExternData.Examples.XMLTestXPath.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 13.922731982078403] Failed to read output from testmodel.py, exit status != 0: 11.318996991030872 11.530209064 11.420495001 Calling exit ...