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.005547/0.005547, allocations: 101.5 kB / 15.73 MB, free: 6.031 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001106/0.001106, allocations: 188.6 kB / 16.67 MB, free: 5.969 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.321/1.321, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/package.mo): time 0.1375/0.1375, allocations: 2.934 MB / 293.5 MB, free: 3.172 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001365/0.001365, allocations: 63.91 kB / 405.8 MB, free: 0.668 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2767/0.2781, allocations: 50.34 MB / 456.1 MB, free: 27.95 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.XMLTestXPath): time 0.002536/0.2807, allocations: 1.671 MB / 457.8 MB, free: 26.8 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001792/0.2825, allocations: 1.615 MB / 459.4 MB, free: 25.68 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.224e-05/0.2826, allocations: 0 / 459.4 MB, free: 25.68 MB / 366.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.0003608/0.2829, allocations: 51.03 kB / 459.4 MB, free: 25.65 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003126/0.2833, allocations: 119.9 kB / 459.6 MB, free: 25.59 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002086/0.2835, allocations: 84.78 kB / 459.6 MB, free: 25.55 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.000121/0.2836, allocations: 99.27 kB / 459.7 MB, free: 25.5 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.267e-05/0.2837, allocations: 12.61 kB / 459.7 MB, free: 25.5 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.489e-05/0.2838, allocations: 40.75 kB / 459.8 MB, free: 25.48 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001603/0.2839, allocations: 41 kB / 459.8 MB, free: 25.46 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.584e-05/0.284, allocations: 6 kB / 459.8 MB, free: 25.46 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002385/0.2842, allocations: 209.8 kB / 460 MB, free: 25.39 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 5.238e-05/0.2843, allocations: 17.3 kB / 460.1 MB, free: 25.39 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 5.383e-05/0.2843, allocations: 47.42 kB / 460.1 MB, free: 25.36 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002827/0.2846, allocations: 245.5 kB / 460.3 MB, free: 25.27 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.865e-06/0.2846, allocations: 3.938 kB / 460.3 MB, free: 25.26 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.2846, allocations: 0 / 460.3 MB, free: 25.26 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.044e-05/0.2847, allocations: 0 / 460.3 MB, free: 25.26 MB / 366.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.0005276/0.2852, allocations: 480.1 kB / 460.8 MB, free: 24.81 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.448e-05/0.2852, allocations: 13.3 kB / 460.8 MB, free: 24.8 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.345e-05/0.2853, allocations: 33.94 kB / 460.9 MB, free: 24.77 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.095e-05/0.2853, allocations: 23.03 kB / 460.9 MB, free: 24.75 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002361/0.2856, allocations: 210 kB / 461.1 MB, free: 24.53 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.969e-06/0.2856, allocations: 4.312 kB / 461.1 MB, free: 24.53 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.693e-05/0.2856, allocations: 7.188 kB / 461.1 MB, free: 24.52 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001833/0.2858, allocations: 99.33 kB / 461.2 MB, free: 24.46 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.008e-05/0.2858, allocations: 3.094 kB / 461.2 MB, free: 24.46 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.046e-05/0.2858, allocations: 3.984 kB / 461.2 MB, free: 24.45 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.554e-06/0.2858, allocations: 0 / 461.2 MB, free: 24.45 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001178/0.286, allocations: 58.94 kB / 461.3 MB, free: 24.44 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000326/0.2863, allocations: 322 kB / 461.6 MB, free: 24.12 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002088/0.2865, allocations: 96.86 kB / 461.7 MB, free: 24.06 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.643e-05/0.2866, allocations: 67.7 kB / 461.7 MB, free: 24.02 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.314e-05/0.2866, allocations: 0 / 461.7 MB, free: 24.02 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001664/0.2868, allocations: 133.9 kB / 461.9 MB, free: 23.91 MB / 366.1 MB Notification: Performance of pre-optimization done (n=11): time 1.172e-06/0.2868, allocations: 0 / 461.9 MB, free: 23.91 MB / 366.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004022/0.2872, allocations: 228.9 kB / 462.1 MB, free: 23.8 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.546e-05/0.2873, allocations: 109.1 kB / 462.2 MB, free: 23.68 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001054/0.2874, allocations: 158.8 kB / 462.4 MB, free: 23.56 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.087e-05/0.2874, allocations: 25.7 kB / 462.4 MB, free: 23.53 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.279e-05/0.2874, allocations: 102.1 kB / 462.5 MB, free: 23.44 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.651e-05/0.2875, allocations: 26.88 kB / 462.5 MB, free: 23.41 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.125e-05/0.2875, allocations: 26.28 kB / 462.5 MB, free: 23.39 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 5.084e-05/0.2876, allocations: 329.4 kB / 462.9 MB, free: 23.07 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.492e-05/0.2876, allocations: 37.27 kB / 462.9 MB, free: 23.06 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.336e-05/0.2877, allocations: 61.2 kB / 462.9 MB, free: 23.02 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001474/0.2879, allocations: 145.5 kB / 463.1 MB, free: 22.92 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.2879, allocations: 3.5 kB / 463.1 MB, free: 22.92 MB / 366.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002421/0.2881, allocations: 187.3 kB / 463.3 MB, free: 22.82 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.707e-05/0.2882, allocations: 39.41 kB / 463.3 MB, free: 22.78 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.011e-06/0.2882, allocations: 7.219 kB / 463.3 MB, free: 22.78 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.428e-05/0.2882, allocations: 0 / 463.3 MB, free: 22.78 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.813e-05/0.2883, allocations: 17.09 kB / 463.3 MB, free: 22.77 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.761e-06/0.2883, allocations: 3.938 kB / 463.3 MB, free: 22.77 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.029e-05/0.2884, allocations: 10.47 kB / 463.4 MB, free: 22.77 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.014e-05/0.2884, allocations: 3.125 kB / 463.4 MB, free: 22.77 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 8.454e-05/0.2885, allocations: 156.7 kB / 463.5 MB, free: 22.61 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.895e-05/0.2885, allocations: 17 kB / 463.5 MB, free: 22.61 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.426e-05/0.2885, allocations: 19.16 kB / 463.5 MB, free: 22.59 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.974e-06/0.2885, allocations: 0 / 463.5 MB, free: 22.59 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.2885, allocations: 0 / 463.5 MB, free: 22.59 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.482e-06/0.2886, allocations: 7.219 kB / 463.6 MB, free: 22.59 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001145/0.2887, allocations: 200.1 kB / 463.7 MB, free: 22.38 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/0.2887, allocations: 3.344 kB / 463.7 MB, free: 22.38 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.58e-05/0.2887, allocations: 6.219 kB / 463.8 MB, free: 22.38 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.904e-06/0.2887, allocations: 336 / 463.8 MB, free: 22.38 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.212e-05/0.2888, allocations: 6.531 kB / 463.8 MB, free: 22.38 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.954e-06/0.2888, allocations: 7.062 kB / 463.8 MB, free: 22.38 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.2888, allocations: 4 kB / 463.8 MB, free: 22.38 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003061/0.2891, allocations: 254.2 kB / 464 MB, free: 22.21 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.603e-05/0.2891, allocations: 99.34 kB / 464.1 MB, free: 22.11 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.98e-05/0.2892, allocations: 2.844 kB / 464.1 MB, free: 22.11 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.31e-05/0.2892, allocations: 10.09 kB / 464.1 MB, free: 22.1 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.91e-05/0.2893, allocations: 10.48 kB / 464.1 MB, free: 22.1 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.598e-05/0.2893, allocations: 10.25 kB / 464.2 MB, free: 22.09 MB / 366.1 MB Notification: Performance of sorting global known variables: time 7.195e-05/0.2894, allocations: 125.2 kB / 464.3 MB, free: 22.01 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2894, allocations: 0 / 464.3 MB, free: 22.01 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003088/0.2897, allocations: 75.72 kB / 464.3 MB, free: 21.99 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.001173/0.2909, allocations: 1.097 MB / 465.4 MB, free: 21.2 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003028/0.2912, allocations: 193.9 kB / 465.6 MB, free: 21.09 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.2912, allocations: 0 / 465.6 MB, free: 21.09 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001249/0.2913, allocations: 138.3 kB / 465.8 MB, free: 20.99 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002227/0.2916, allocations: 27.09 kB / 465.8 MB, free: 20.98 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001726/0.2933, allocations: 1.87 MB / 467.7 MB, free: 19.56 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001207/0.2934, allocations: 0.7087 MB / 468.4 MB, free: 18.86 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.641e-05/0.2935, allocations: 17 kB / 468.4 MB, free: 18.86 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.256e-05/0.2936, allocations: 39.8 kB / 468.4 MB, free: 18.83 MB / 366.1 MB Notification: Performance of SimCode: time 4.51e-07/0.2936, allocations: 0 / 468.4 MB, free: 18.83 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02264/0.3162, allocations: 4.41 MB / 472.8 MB, free: 17.94 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.638/7.954, allocations: 12.14 kB / 472.9 MB, free: 17.93 MB / 366.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)