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.001672/0.001672, 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.002218/0.002218, allocations: 206.7 kB / 22.24 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.531/1.531, allocations: 230.6 MB / 256 MB, free: 7.789 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.0177/0.0177, allocations: 3.272 MB / 315.7 MB, free: 15.62 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.002076/0.002076, allocations: 63.89 kB / 439.5 MB, free: 11.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09871/0.1008, allocations: 54.38 MB / 493.9 MB, free: 5.469 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.XMLTestXPath): time 0.003632/0.1044, allocations: 1.679 MB / 495.6 MB, free: 3.777 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002892/0.1073, allocations: 1.695 MB / 497.3 MB, free: 2.074 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.613e-05/0.1074, allocations: 4 kB / 497.3 MB, free: 2.07 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.0003908/0.1078, allocations: 43.77 kB / 497.3 MB, free: 2.027 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004082/0.1082, allocations: 125.9 kB / 497.4 MB, free: 1.906 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002538/0.1084, allocations: 87.78 kB / 497.5 MB, free: 1.82 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001818/0.1086, allocations: 91.7 kB / 497.6 MB, free: 1.73 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.231e-05/0.1087, allocations: 8.219 kB / 497.6 MB, free: 1.719 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.427e-05/0.1088, allocations: 43.84 kB / 497.7 MB, free: 1.676 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001683/0.109, allocations: 43.78 kB / 497.7 MB, free: 1.633 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.147e-05/0.109, allocations: 4 kB / 497.7 MB, free: 1.629 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003568/0.1094, allocations: 191.8 kB / 497.9 MB, free: 1.441 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.351e-05/0.1094, allocations: 19.92 kB / 497.9 MB, free: 1.422 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.835e-05/0.1095, allocations: 35.8 kB / 497.9 MB, free: 1.387 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004578/0.11, allocations: 243.2 kB / 498.2 MB, free: 1.148 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.229e-06/0.11, allocations: 3.938 kB / 498.2 MB, free: 1.145 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.11, allocations: 0 / 498.2 MB, free: 1.145 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.402e-06/0.11, allocations: 0 / 498.2 MB, free: 1.145 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.0007717/0.1107, allocations: 411.1 kB / 498.6 MB, free: 0.707 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.887e-05/0.1108, allocations: 12.03 kB / 498.6 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.348e-05/0.1108, allocations: 34.75 kB / 498.6 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.857e-05/0.1109, allocations: 12.89 kB / 498.6 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003368/0.1112, allocations: 150.3 kB / 498.8 MB, free: 480 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.407e-05/0.1113, allocations: 8.25 kB / 498.8 MB, free: 472 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.818e-05/0.1113, allocations: 7.938 kB / 498.8 MB, free: 464 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002838/0.1116, allocations: 125.1 kB / 498.9 MB, free: 320 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.083e-05/0.1116, allocations: 0 / 498.9 MB, free: 320 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.677e-05/0.1116, allocations: 15.94 kB / 498.9 MB, free: 304 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.05e-06/0.1116, allocations: 0 / 498.9 MB, free: 304 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001811/0.1118, allocations: 85.59 kB / 499 MB, free: 212 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005326/0.1123, allocations: 280.7 kB / 499.3 MB, free: 15.89 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003085/0.1126, allocations: 122.9 kB / 499.4 MB, free: 15.74 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001394/0.1128, allocations: 75.45 kB / 499.5 MB, free: 15.66 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.966e-05/0.1128, allocations: 0 / 499.5 MB, free: 15.66 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000289/0.1131, allocations: 176.5 kB / 499.7 MB, free: 15.45 MB / 366.1 MB Notification: Performance of pre-optimization done (n=11): time 1.483e-06/0.1131, allocations: 0 / 499.7 MB, free: 15.45 MB / 366.1 MB Notification: Performance of matching and sorting (n=11): time 0.0006275/0.1137, allocations: 302.8 kB / 500 MB, free: 15.13 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.119e-05/0.1138, allocations: 110.8 kB / 0.4884 GB, free: 15 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001942/0.114, allocations: 157 kB / 0.4885 GB, free: 14.84 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.606e-05/0.114, allocations: 33.7 kB / 0.4885 GB, free: 14.8 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.805e-05/0.1141, allocations: 96.12 kB / 0.4886 GB, free: 14.7 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.647e-05/0.1141, allocations: 31.73 kB / 0.4887 GB, free: 14.67 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.42e-05/0.1142, allocations: 25.66 kB / 0.4887 GB, free: 14.64 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001755/0.1144, allocations: 326.8 kB / 0.489 GB, free: 14.31 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001268/0.1145, allocations: 73.67 kB / 0.4891 GB, free: 14.23 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001368/0.1146, allocations: 91.33 kB / 0.4891 GB, free: 14.13 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002259/0.1149, allocations: 145.1 kB / 0.4893 GB, free: 13.97 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.1149, allocations: 0 / 0.4893 GB, free: 13.97 MB / 366.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003895/0.1153, allocations: 228.9 kB / 0.4895 GB, free: 13.73 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.021e-05/0.1153, allocations: 37.69 kB / 0.4895 GB, free: 13.69 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.1153, allocations: 0 / 0.4895 GB, free: 13.69 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.546e-05/0.1153, allocations: 0 / 0.4895 GB, free: 13.69 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.03e-05/0.1154, allocations: 19.94 kB / 0.4896 GB, free: 13.67 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.422e-06/0.1154, allocations: 0 / 0.4896 GB, free: 13.67 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.028e-05/0.1155, allocations: 23.81 kB / 0.4896 GB, free: 13.64 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.367e-05/0.1155, allocations: 4 kB / 0.4896 GB, free: 13.64 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.0001831/0.1157, allocations: 159.5 kB / 0.4897 GB, free: 13.47 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.611e-05/0.1157, allocations: 7.953 kB / 0.4897 GB, free: 13.46 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.477e-05/0.1158, allocations: 12.72 kB / 0.4898 GB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.951e-06/0.1158, allocations: 4 kB / 0.4898 GB, free: 13.44 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.135e-06/0.1158, allocations: 4 kB / 0.4898 GB, free: 13.44 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.885e-06/0.1158, allocations: 7.922 kB / 0.4898 GB, free: 13.43 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002054/0.116, allocations: 164.7 kB / 0.4899 GB, free: 13.23 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.088e-06/0.116, allocations: 4 kB / 0.4899 GB, free: 13.22 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.93e-05/0.1161, allocations: 11.98 kB / 0.4899 GB, free: 13.21 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.196e-06/0.1161, allocations: 0 / 0.4899 GB, free: 13.21 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.799e-05/0.1161, allocations: 4 kB / 0.4899 GB, free: 13.21 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.134e-06/0.1161, allocations: 0 / 0.4899 GB, free: 13.21 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.719e-06/0.1161, allocations: 4.25 kB / 0.49 GB, free: 13.2 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004534/0.1165, allocations: 285.2 kB / 0.4902 GB, free: 12.89 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.704e-05/0.1166, allocations: 19.88 kB / 0.4902 GB, free: 12.87 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.908e-05/0.1166, allocations: 4 kB / 0.4902 GB, free: 12.87 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.776e-05/0.1167, allocations: 12 kB / 0.4903 GB, free: 12.86 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.784e-05/0.1167, allocations: 7.922 kB / 0.4903 GB, free: 12.85 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.895e-05/0.1167, allocations: 8 kB / 0.4903 GB, free: 12.84 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001183/0.1168, allocations: 123.2 kB / 0.4904 GB, free: 12.72 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1168, allocations: 0 / 0.4904 GB, free: 12.72 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000333/0.1172, allocations: 75.75 kB / 0.4905 GB, free: 12.64 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.002173/0.1194, allocations: 1.179 MB / 0.4916 GB, free: 11.55 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003929/0.1197, allocations: 226.7 kB / 0.4918 GB, free: 11.31 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.1197, allocations: 0 / 0.4918 GB, free: 11.31 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001793/0.1199, allocations: 141.1 kB / 0.492 GB, free: 11.15 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002368/0.1202, allocations: 23.8 kB / 0.492 GB, free: 11.13 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002709/0.1229, allocations: 2.053 MB / 0.494 GB, free: 8.945 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.728e-05/0.123, allocations: 89.48 kB / 0.4941 GB, free: 8.836 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.32e-05/0.123, allocations: 16.59 kB / 0.4941 GB, free: 8.82 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.996e-05/0.1231, allocations: 47.41 kB / 0.4941 GB, free: 8.773 MB / 366.1 MB Notification: Performance of SimCode: time 6.81e-07/0.1231, allocations: 3.938 kB / 0.4941 GB, free: 8.77 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03449/0.1576, allocations: 5.091 MB / 0.4991 GB, free: 3.703 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.22/11.38, allocations: 7.031 kB / 0.4991 GB, free: 3.699 MB / 366.1 MB " [Timeout remaining time 648] (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 & python3 -m fmpy simulate --output-file ExternData_ExternData.Examples.XMLTestXPath_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_XMLTestXPath.fmu > ExternData_ExternData.Examples.XMLTestXPath.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.17708535399288] Failed to read output from testmodel.py, exit status != 0: 11.520482005085796 11.5509592 11.435739446 Calling exit ...