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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/package.mo", uses=false) Using package ExternData with version 3.0.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001275/0.001275, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001242/0.001242, allocations: 198.6 kB / 16.53 MB, free: 6.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.365/1.365, allocations: 222.9 MB / 240.2 MB, free: 4.422 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/package.mo): time 0.1846/0.1846, allocations: 2.93 MB / 293.3 MB, free: 3.238 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0016/0.0016, allocations: 63.91 kB / 354.8 MB, free: 3.66 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1247/0.1263, allocations: 50.36 MB / 405.1 MB, free: 1.258 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.XMLTestXPath): time 0.003927/0.1303, allocations: 1.663 MB / 406.8 MB, free: 15.59 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002312/0.1326, allocations: 1.604 MB / 408.4 MB, free: 13.97 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.027e-05/0.1327, allocations: 4 kB / 408.4 MB, free: 13.97 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/package.mo:281:3-311:15:writable] Warning: Pure function 'ExternData.XML2File' contains a call to impure function 'ExternData.Types.ExternXML2File.constructor'. Notification: Performance of NFTyping.typeComponents: time 0.0003235/0.1331, allocations: 51.7 kB / 408.4 MB, free: 13.92 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003645/0.1334, allocations: 115.5 kB / 408.6 MB, free: 13.8 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002865/0.1337, allocations: 95.2 kB / 408.6 MB, free: 13.71 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000161/0.1339, allocations: 99.75 kB / 408.7 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001038/0.134, allocations: 12.22 kB / 408.8 MB, free: 13.6 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.937e-05/0.1341, allocations: 39.8 kB / 408.8 MB, free: 13.56 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001973/0.1343, allocations: 43.77 kB / 408.8 MB, free: 13.52 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.33e-05/0.1344, allocations: 4 kB / 408.8 MB, free: 13.52 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000353/0.1347, allocations: 215.7 kB / 409.1 MB, free: 13.3 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.968e-05/0.1348, allocations: 19.88 kB / 409.1 MB, free: 13.29 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.894e-05/0.1349, allocations: 39.8 kB / 409.1 MB, free: 13.25 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004114/0.1353, allocations: 243.7 kB / 409.3 MB, free: 13.01 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.102e-06/0.1353, allocations: 3.984 kB / 409.4 MB, free: 13 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.615e-06/0.1353, allocations: 0 / 409.4 MB, free: 13 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.698e-06/0.1353, allocations: 3.938 kB / 409.4 MB, free: 13 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.0007258/0.1361, allocations: 476.7 kB / 409.8 MB, free: 12.48 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.523e-05/0.1361, allocations: 15.89 kB / 409.8 MB, free: 12.46 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.872e-05/0.1362, allocations: 30.75 kB / 409.9 MB, free: 12.43 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.482e-05/0.1362, allocations: 8.844 kB / 409.9 MB, free: 12.42 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002617/0.1365, allocations: 212.9 kB / 410.1 MB, free: 12.17 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.433e-05/0.1365, allocations: 12.38 kB / 410.1 MB, free: 12.16 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.052e-05/0.1366, allocations: 11.88 kB / 410.1 MB, free: 12.15 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002368/0.1368, allocations: 91.36 kB / 410.2 MB, free: 12.05 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.997e-06/0.1368, allocations: 0 / 410.2 MB, free: 12.05 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.541e-05/0.1368, allocations: 8 kB / 410.2 MB, free: 12.04 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.659e-06/0.1368, allocations: 4 kB / 410.2 MB, free: 12.04 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001433/0.137, allocations: 55.84 kB / 410.3 MB, free: 11.98 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004632/0.1375, allocations: 321.6 kB / 410.6 MB, free: 11.61 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002542/0.1377, allocations: 101.3 kB / 410.7 MB, free: 11.5 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001025/0.1378, allocations: 61.69 kB / 410.7 MB, free: 11.43 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.166e-05/0.1379, allocations: 0 / 410.7 MB, free: 11.43 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002774/0.1382, allocations: 138.7 kB / 410.9 MB, free: 11.27 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 1.273e-06/0.1382, allocations: 0 / 410.9 MB, free: 11.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004736/0.1386, allocations: 227.2 kB / 411.1 MB, free: 11.04 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.397e-05/0.1387, allocations: 110.8 kB / 411.2 MB, free: 10.9 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000144/0.1389, allocations: 160 kB / 411.4 MB, free: 10.74 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.391e-05/0.1389, allocations: 25.7 kB / 411.4 MB, free: 10.71 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.918e-05/0.139, allocations: 100 kB / 411.5 MB, free: 10.61 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.713e-05/0.139, allocations: 27.8 kB / 411.5 MB, free: 10.58 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.675e-05/0.1391, allocations: 29.7 kB / 411.5 MB, free: 10.54 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001142/0.1392, allocations: 322.8 kB / 411.9 MB, free: 10.22 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.605e-05/0.1393, allocations: 39.97 kB / 411.9 MB, free: 10.18 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.747e-05/0.1394, allocations: 53.64 kB / 411.9 MB, free: 10.12 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001987/0.1396, allocations: 153 kB / 412.1 MB, free: 9.953 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.1396, allocations: 0 / 412.1 MB, free: 9.953 MB / 350.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003658/0.14, allocations: 191.1 kB / 412.3 MB, free: 9.754 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.29e-05/0.14, allocations: 37.69 kB / 412.3 MB, free: 9.711 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.74e-06/0.14, allocations: 0 / 412.3 MB, free: 9.711 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.26e-05/0.1401, allocations: 4 kB / 412.3 MB, free: 9.707 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.091e-05/0.1401, allocations: 8 kB / 412.3 MB, free: 9.699 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.432e-06/0.1401, allocations: 0 / 412.3 MB, free: 9.699 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.832e-05/0.1402, allocations: 19.92 kB / 412.3 MB, free: 9.68 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.236e-05/0.1402, allocations: 4 kB / 412.4 MB, free: 9.676 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 0.0001251/0.1404, allocations: 159.4 kB / 412.5 MB, free: 9.504 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.387e-05/0.1404, allocations: 15.81 kB / 412.5 MB, free: 9.488 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.934e-05/0.1405, allocations: 12.72 kB / 412.5 MB, free: 9.477 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-06/0.1405, allocations: 0 / 412.5 MB, free: 9.477 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.334e-06/0.1405, allocations: 7.984 kB / 412.5 MB, free: 9.469 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.27e-06/0.1405, allocations: 7.938 kB / 412.6 MB, free: 9.461 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000176/0.1407, allocations: 201.6 kB / 412.7 MB, free: 9.215 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.1407, allocations: 0 / 412.7 MB, free: 9.215 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.577e-05/0.1407, allocations: 15.92 kB / 412.8 MB, free: 9.199 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.1407, allocations: 0 / 412.8 MB, free: 9.199 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.464e-05/0.1408, allocations: 4 kB / 412.8 MB, free: 9.195 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.934e-06/0.1408, allocations: 0 / 412.8 MB, free: 9.195 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.1408, allocations: 0 / 412.8 MB, free: 9.195 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003701/0.1412, allocations: 255.3 kB / 413 MB, free: 8.918 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.884e-05/0.1412, allocations: 93 kB / 413.1 MB, free: 8.809 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.665e-05/0.1413, allocations: 8.062 kB / 413.1 MB, free: 8.801 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.854e-05/0.1413, allocations: 7.984 kB / 413.1 MB, free: 8.793 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.247e-05/0.1414, allocations: 15.88 kB / 413.1 MB, free: 8.777 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.128e-05/0.1414, allocations: 8.312 kB / 413.1 MB, free: 8.77 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001025/0.1415, allocations: 125.3 kB / 413.3 MB, free: 8.648 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1415, allocations: 0 / 413.3 MB, free: 8.648 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003495/0.1419, allocations: 79.98 kB / 413.3 MB, free: 8.57 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.001552/0.1435, allocations: 1.107 MB / 414.5 MB, free: 7.551 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003426/0.1438, allocations: 187.3 kB / 414.6 MB, free: 7.355 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.1438, allocations: 0 / 414.6 MB, free: 7.355 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001711/0.144, allocations: 139.3 kB / 414.8 MB, free: 7.207 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002633/0.1443, allocations: 21.97 kB / 414.8 MB, free: 7.188 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002383/0.1467, allocations: 1.875 MB / 416.7 MB, free: 5.211 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003085/0.147, allocations: 0.7039 MB / 417.4 MB, free: 4.48 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.598e-05/0.1471, allocations: 16.42 kB / 417.4 MB, free: 4.465 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.108e-05/0.1471, allocations: 35.41 kB / 417.4 MB, free: 4.43 MB / 350.1 MB Notification: Performance of SimCode: time 4.7e-07/0.1471, allocations: 4 kB / 417.4 MB, free: 4.426 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02383/0.171, allocations: 4.286 MB / 421.7 MB, free: 152 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.892/8.063, allocations: 0 / 421.7 MB, free: 152 kB / 350.1 MB (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 --timeout=50 --tolerance=1e-06 ExternData_ExternData_Examples_XMLTestXPath.fmu > ExternData_ExternData.Examples.XMLTestXPath.pipe 2>&1)