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.001376/0.001376, allocations: 114.7 kB / 17.16 MB, free: 5.895 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.001389/0.001389, allocations: 210.3 kB / 20.13 MB, free: 2.949 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.518/1.518, allocations: 230.6 MB / 253.5 MB, free: 15.12 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.01494/0.01494, allocations: 3.263 MB / 312.8 MB, free: 2.234 MB / 238.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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternData.Examples.XMLTestXPath,fileNamePrefix="ExternData_ExternData_Examples_XMLTestXPath",fmuType="cs",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.001973/0.001973, allocations: 63.23 kB / 435.1 MB, free: 39.38 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09163/0.0936, allocations: 54.34 MB / 489.4 MB, free: 13.5 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.XMLTestXPath): time 0.002642/0.09624, allocations: 1.712 MB / 491.1 MB, free: 12.16 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001933/0.09817, allocations: 1.654 MB / 492.8 MB, free: 10.87 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.702e-05/0.09825, allocations: 1.375 kB / 492.8 MB, free: 10.87 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.0003879/0.09864, allocations: 56.19 kB / 492.8 MB, free: 10.83 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003355/0.09897, allocations: 116.6 kB / 493 MB, free: 10.75 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002156/0.09919, allocations: 90.28 kB / 493 MB, free: 10.7 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001408/0.09933, allocations: 92.94 kB / 493.1 MB, free: 10.64 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.758e-05/0.09942, allocations: 11.91 kB / 493.1 MB, free: 10.63 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.476e-05/0.09949, allocations: 38.05 kB / 493.2 MB, free: 10.61 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001929/0.09969, allocations: 46.33 kB / 493.2 MB, free: 10.58 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.04e-05/0.09971, allocations: 5.156 kB / 493.2 MB, free: 10.58 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002929/0.1, allocations: 206.2 kB / 493.4 MB, free: 10.47 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.344e-05/0.1001, allocations: 32.34 kB / 493.5 MB, free: 10.45 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.07e-05/0.1001, allocations: 38.11 kB / 493.5 MB, free: 10.42 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003353/0.1005, allocations: 245.6 kB / 493.7 MB, free: 10.27 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.666e-06/0.1005, allocations: 0 / 493.7 MB, free: 10.27 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.1005, allocations: 5 kB / 493.7 MB, free: 10.27 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.077e-05/0.1005, allocations: 0 / 493.7 MB, free: 10.27 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.0005731/0.101, allocations: 487.6 kB / 494.2 MB, free: 9.785 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.054e-05/0.1011, allocations: 13.72 kB / 494.2 MB, free: 9.781 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.546e-05/0.1011, allocations: 1.625 kB / 494.2 MB, free: 9.781 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.646e-05/0.1011, allocations: 41.73 kB / 494.3 MB, free: 9.734 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.838e-05/0.1012, allocations: 9.641 kB / 494.3 MB, free: 9.73 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000254/0.1014, allocations: 205.9 kB / 494.5 MB, free: 9.508 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.488e-05/0.1014, allocations: 9.719 kB / 494.5 MB, free: 9.5 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.138e-05/0.1015, allocations: 3.719 kB / 494.5 MB, free: 9.5 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002057/0.1017, allocations: 101.6 kB / 494.6 MB, free: 9.418 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.098e-05/0.1017, allocations: 3.984 kB / 494.6 MB, free: 9.414 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.46e-05/0.1017, allocations: 1.625 kB / 494.6 MB, free: 9.414 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.562e-06/0.1017, allocations: 1.281 kB / 494.6 MB, free: 9.414 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001397/0.1018, allocations: 50.56 kB / 494.7 MB, free: 9.395 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003953/0.1022, allocations: 321.4 kB / 495 MB, free: 9.059 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002458/0.1025, allocations: 88.19 kB / 495.1 MB, free: 8.988 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001089/0.1026, allocations: 52.67 kB / 495.1 MB, free: 8.953 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.984e-05/0.1026, allocations: 5.562 kB / 495.1 MB, free: 8.949 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002104/0.1028, allocations: 137.4 kB / 495.3 MB, free: 8.82 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 1.442e-06/0.1028, allocations: 0.625 kB / 495.3 MB, free: 8.82 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004889/0.1033, allocations: 235.7 kB / 495.5 MB, free: 8.688 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.504e-05/0.1034, allocations: 109.1 kB / 495.6 MB, free: 8.559 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001379/0.1035, allocations: 166.1 kB / 495.8 MB, free: 8.426 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.42e-05/0.1035, allocations: 31.14 kB / 495.8 MB, free: 8.391 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.91e-05/0.1036, allocations: 95.97 kB / 495.9 MB, free: 8.297 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.973e-05/0.1036, allocations: 27.72 kB / 495.9 MB, free: 8.273 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.432e-05/0.1036, allocations: 26.83 kB / 495.9 MB, free: 8.25 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.033e-05/0.1037, allocations: 321.7 kB / 496.2 MB, free: 7.93 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.066e-05/0.1038, allocations: 33.23 kB / 496.3 MB, free: 7.918 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.212e-05/0.1039, allocations: 63.06 kB / 496.3 MB, free: 7.875 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000156/0.104, allocations: 153.9 kB / 496.5 MB, free: 7.711 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.013e-06/0.104, allocations: 0 / 496.5 MB, free: 7.711 MB / 350.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002499/0.1043, allocations: 183.2 kB / 496.7 MB, free: 7.52 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.133e-05/0.1043, allocations: 41.69 kB / 496.7 MB, free: 7.473 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.439e-06/0.1043, allocations: 0 / 496.7 MB, free: 7.473 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.605e-05/0.1043, allocations: 4 kB / 496.7 MB, free: 7.469 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.053e-05/0.1044, allocations: 15.98 kB / 496.7 MB, free: 7.453 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.891e-06/0.1044, allocations: 0 / 496.7 MB, free: 7.453 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.471e-05/0.1045, allocations: 19.83 kB / 496.7 MB, free: 7.434 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.081e-05/0.1045, allocations: 4 kB / 496.7 MB, free: 7.43 MB / 350.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 8.936e-05/0.1046, allocations: 159.5 kB / 496.9 MB, free: 7.258 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.997e-05/0.1046, allocations: 11.95 kB / 496.9 MB, free: 7.246 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.667e-05/0.1046, allocations: 16.7 kB / 496.9 MB, free: 7.227 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.864e-06/0.1046, allocations: 0 / 496.9 MB, free: 7.227 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.1046, allocations: 8 kB / 496.9 MB, free: 7.219 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/0.1046, allocations: 3.938 kB / 496.9 MB, free: 7.215 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001164/0.1047, allocations: 209.5 kB / 497.1 MB, free: 6.961 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.1047, allocations: 336 / 497.1 MB, free: 6.961 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.152e-05/0.1048, allocations: 11.94 kB / 497.2 MB, free: 6.949 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.674e-06/0.1048, allocations: 0 / 497.2 MB, free: 6.949 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.338e-05/0.1048, allocations: 4 kB / 497.2 MB, free: 6.945 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.1048, allocations: 0 / 497.2 MB, free: 6.945 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.1048, allocations: 0 / 497.2 MB, free: 6.945 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002947/0.1051, allocations: 263.4 kB / 497.4 MB, free: 6.66 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.333e-05/0.1051, allocations: 89.05 kB / 497.5 MB, free: 6.555 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.023e-05/0.1052, allocations: 8 kB / 497.5 MB, free: 6.547 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.539e-05/0.1052, allocations: 4 kB / 497.5 MB, free: 6.543 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.618e-05/0.1053, allocations: 11.92 kB / 497.5 MB, free: 6.531 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.633e-05/0.1053, allocations: 4 kB / 497.5 MB, free: 6.527 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.943e-05/0.1054, allocations: 119.2 kB / 497.7 MB, free: 6.41 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1054, allocations: 4 kB / 497.7 MB, free: 6.406 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003052/0.1057, allocations: 87.69 kB / 497.7 MB, free: 6.32 MB / 350.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.001712/0.1074, allocations: 1.11 MB / 498.9 MB, free: 5.297 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002661/0.1076, allocations: 167.3 kB / 499 MB, free: 5.121 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.1076, allocations: 0 / 499 MB, free: 5.121 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001068/0.1078, allocations: 115.3 kB / 499.1 MB, free: 4.996 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002135/0.108, allocations: 23.86 kB / 499.2 MB, free: 4.973 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001645/0.1096, allocations: 1.875 MB / 0.4893 GB, free: 2.996 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001297/0.1097, allocations: 0.7041 MB / 0.49 GB, free: 2.266 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.379e-05/0.1098, allocations: 24.39 kB / 0.49 GB, free: 2.242 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.104e-05/0.1099, allocations: 31.42 kB / 0.49 GB, free: 2.211 MB / 350.1 MB Notification: Performance of SimCode: time 2.8e-07/0.1099, allocations: 0 / 0.49 GB, free: 2.211 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02249/0.1323, allocations: 4.432 MB / 0.4944 GB, free: 13.74 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.16/8.293, allocations: 10.75 kB / 0.4944 GB, free: 13.73 MB / 366.1 MB " [Timeout remaining time 652] (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 os._exit(0), Time elapsed: 11.048078982974403] Failed to read output from testmodel.py, exit status != 0: 8.452897699025925 8.475681057 8.371078002 Calling exit ...