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.001556/0.001556, allocations: 107.6 kB / 18.95 MB, free: 2.805 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.001478/0.001478, allocations: 213.1 kB / 22.24 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.426/1.426, allocations: 230.6 MB / 256 MB, free: 7.777 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.01443/0.01443, allocations: 3.273 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.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.002073/0.002073, allocations: 67.89 kB / 439.5 MB, free: 11.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1043/0.1064, allocations: 54.38 MB / 493.9 MB, free: 5.465 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.XMLTestXPath): time 0.003431/0.1098, allocations: 1.687 MB / 495.6 MB, free: 3.766 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00254/0.1123, allocations: 1.695 MB / 497.3 MB, free: 2.062 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.015e-05/0.1124, allocations: 0 / 497.3 MB, free: 2.062 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.0003644/0.1128, allocations: 47.77 kB / 497.3 MB, free: 2.016 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003469/0.1131, allocations: 127.5 kB / 497.4 MB, free: 1.891 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002348/0.1133, allocations: 87.78 kB / 497.5 MB, free: 1.805 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001415/0.1135, allocations: 91.69 kB / 497.6 MB, free: 1.715 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.485e-05/0.1135, allocations: 8.234 kB / 497.6 MB, free: 1.703 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.498e-05/0.1136, allocations: 43.78 kB / 497.7 MB, free: 1.66 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001269/0.1138, allocations: 35.83 kB / 497.7 MB, free: 1.625 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.684e-05/0.1138, allocations: 8 kB / 497.7 MB, free: 1.617 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002894/0.1141, allocations: 187.8 kB / 497.9 MB, free: 1.434 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.975e-05/0.1141, allocations: 23.91 kB / 497.9 MB, free: 1.41 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.747e-05/0.1142, allocations: 35.8 kB / 497.9 MB, free: 1.375 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003608/0.1145, allocations: 243.2 kB / 498.2 MB, free: 1.137 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.046e-06/0.1145, allocations: 3.938 kB / 498.2 MB, free: 1.133 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.1145, allocations: 0 / 498.2 MB, free: 1.133 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.749e-06/0.1145, allocations: 0 / 498.2 MB, free: 1.133 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.000594/0.1151, allocations: 407.1 kB / 498.6 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.401e-05/0.1152, allocations: 12.02 kB / 498.6 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.619e-05/0.1152, allocations: 38.75 kB / 498.6 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.139e-05/0.1153, allocations: 12.89 kB / 498.6 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002653/0.1155, allocations: 150.3 kB / 498.8 MB, free: 468 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.15e-05/0.1155, allocations: 8.312 kB / 498.8 MB, free: 460 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.445e-05/0.1156, allocations: 11.94 kB / 498.8 MB, free: 448 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000227/0.1158, allocations: 133 kB / 498.9 MB, free: 296 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.043e-06/0.1158, allocations: 0 / 498.9 MB, free: 296 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.003e-05/0.1158, allocations: 0 / 498.9 MB, free: 296 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.797e-06/0.1158, allocations: 4 kB / 498.9 MB, free: 292 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001671/0.116, allocations: 81.61 kB / 499 MB, free: 204 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004277/0.1164, allocations: 284.7 kB / 499.3 MB, free: 15.88 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002626/0.1167, allocations: 119 kB / 499.4 MB, free: 15.73 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001178/0.1168, allocations: 83.52 kB / 499.5 MB, free: 15.64 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.066e-05/0.1168, allocations: 0 / 499.5 MB, free: 15.64 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002485/0.117, allocations: 172.5 kB / 499.7 MB, free: 15.44 MB / 366.1 MB Notification: Performance of pre-optimization done (n=11): time 1.172e-06/0.117, allocations: 0 / 499.7 MB, free: 15.44 MB / 366.1 MB Notification: Performance of matching and sorting (n=11): time 0.0005544/0.1176, allocations: 298.8 kB / 500 MB, free: 15.12 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.368e-05/0.1177, allocations: 114.8 kB / 0.4883 GB, free: 14.99 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001615/0.1178, allocations: 165 kB / 0.4885 GB, free: 14.82 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.089e-05/0.1179, allocations: 29.64 kB / 0.4885 GB, free: 14.79 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.897e-05/0.1179, allocations: 96.12 kB / 0.4886 GB, free: 14.69 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.597e-05/0.118, allocations: 31.75 kB / 0.4887 GB, free: 14.66 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5e-05/0.118, allocations: 25.7 kB / 0.4887 GB, free: 14.62 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000149/0.1181, allocations: 326.8 kB / 0.489 GB, free: 14.3 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001075/0.1183, allocations: 65.69 kB / 0.4891 GB, free: 14.23 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001202/0.1184, allocations: 95.31 kB / 0.4891 GB, free: 14.12 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002161/0.1186, allocations: 157.1 kB / 0.4893 GB, free: 13.95 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.1186, allocations: 0 / 0.4893 GB, free: 13.95 MB / 366.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000356/0.119, allocations: 228.9 kB / 0.4895 GB, free: 13.71 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.063e-05/0.119, allocations: 37.7 kB / 0.4895 GB, free: 13.66 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.526e-06/0.119, allocations: 0 / 0.4895 GB, free: 13.66 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.124e-05/0.119, allocations: 0 / 0.4895 GB, free: 13.66 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.648e-05/0.1191, allocations: 15.92 kB / 0.4896 GB, free: 13.65 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.592e-06/0.1191, allocations: 4 kB / 0.4896 GB, free: 13.64 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.18e-05/0.1192, allocations: 11.89 kB / 0.4896 GB, free: 13.63 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.498e-05/0.1192, allocations: 7.984 kB / 0.4896 GB, free: 13.62 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.0001341/0.1193, allocations: 159.5 kB / 0.4897 GB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.238e-05/0.1193, allocations: 11.95 kB / 0.4897 GB, free: 13.44 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.951e-05/0.1194, allocations: 12.72 kB / 0.4898 GB, free: 13.43 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-06/0.1194, allocations: 0 / 0.4898 GB, free: 13.43 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.46e-06/0.1194, allocations: 4 kB / 0.4898 GB, free: 13.42 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.709e-06/0.1194, allocations: 3.938 kB / 0.4898 GB, free: 13.42 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001712/0.1196, allocations: 164.7 kB / 0.4899 GB, free: 13.21 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.093e-06/0.1196, allocations: 0 / 0.4899 GB, free: 13.21 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.476e-05/0.1196, allocations: 15.92 kB / 0.4899 GB, free: 13.2 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.065e-06/0.1196, allocations: 8 kB / 0.4899 GB, free: 13.19 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.359e-05/0.1196, allocations: 4 kB / 0.49 GB, free: 13.19 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.392e-06/0.1196, allocations: 7.938 kB / 0.49 GB, free: 13.18 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.1196, allocations: 0 / 0.49 GB, free: 13.18 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004234/0.1201, allocations: 281.2 kB / 0.4902 GB, free: 12.87 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.438e-05/0.1201, allocations: 19.88 kB / 0.4902 GB, free: 12.85 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.259e-05/0.1201, allocations: 4 kB / 0.4903 GB, free: 12.85 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.011e-05/0.1202, allocations: 8 kB / 0.4903 GB, free: 12.84 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.283e-05/0.1202, allocations: 11.92 kB / 0.4903 GB, free: 12.83 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.669e-05/0.1203, allocations: 4 kB / 0.4903 GB, free: 12.82 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001134/0.1204, allocations: 127.2 kB / 0.4904 GB, free: 12.7 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1204, allocations: 0 / 0.4904 GB, free: 12.7 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003119/0.1207, allocations: 79.75 kB / 0.4905 GB, free: 12.62 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.001994/0.1227, allocations: 1.168 MB / 0.4916 GB, free: 11.54 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003728/0.1231, allocations: 230.7 kB / 0.4918 GB, free: 11.29 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.1231, allocations: 0 / 0.4918 GB, free: 11.29 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001778/0.1232, allocations: 137.1 kB / 0.492 GB, free: 11.14 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002281/0.1235, allocations: 23.78 kB / 0.492 GB, free: 11.12 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002588/0.126, allocations: 2.053 MB / 0.494 GB, free: 8.934 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.61e-05/0.1261, allocations: 89.48 kB / 0.4941 GB, free: 8.824 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.737e-05/0.1262, allocations: 20.41 kB / 0.4941 GB, free: 8.805 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.963e-05/0.1263, allocations: 43.34 kB / 0.4941 GB, free: 8.762 MB / 366.1 MB Notification: Performance of SimCode: time 5.11e-07/0.1263, allocations: 0 / 0.4941 GB, free: 8.762 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03451/0.1608, allocations: 5.088 MB / 0.4991 GB, free: 3.699 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.08/11.25, allocations: 8.047 kB / 0.4991 GB, free: 3.691 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.74029339523986] Failed to read output from testmodel.py, exit status != 0: 11.381766602862626 11.398449909 11.280742199 Calling exit ...