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.5/package.mo", uses=false) Using package ExternData with version 3.0.5 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.5/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.00743/0.00743, allocations: 98.48 kB / 15.73 MB, free: 6.047 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.001932/0.001932, allocations: 194.3 kB / 16.68 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.53/1.53, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.5/package.mo): time 0.1373/0.1373, allocations: 2.945 MB / 293.5 MB, free: 3.184 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00191/0.00191, allocations: 63.91 kB / 405.8 MB, free: 0.6562 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2831/0.285, allocations: 50.34 MB / 456.1 MB, free: 27.94 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.XMLTestXPath): time 0.002572/0.2876, allocations: 1.676 MB / 457.8 MB, free: 26.79 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001661/0.2893, allocations: 1.606 MB / 459.4 MB, free: 25.67 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.37e-05/0.2894, allocations: 0 / 459.4 MB, free: 25.67 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.5/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.0003289/0.2897, allocations: 50.02 kB / 459.4 MB, free: 25.64 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002835/0.29, allocations: 125.5 kB / 459.6 MB, free: 25.57 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001981/0.2902, allocations: 89.89 kB / 459.7 MB, free: 25.54 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001208/0.2903, allocations: 101.9 kB / 459.8 MB, free: 25.48 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.188e-05/0.2904, allocations: 3.641 kB / 459.8 MB, free: 25.48 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.553e-05/0.2905, allocations: 45.83 kB / 459.8 MB, free: 25.46 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001709/0.2907, allocations: 39.67 kB / 459.8 MB, free: 25.44 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.835e-05/0.2907, allocations: 6.406 kB / 459.8 MB, free: 25.44 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002751/0.291, allocations: 207.6 kB / 460 MB, free: 25.38 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 5.456e-05/0.291, allocations: 21.61 kB / 460.1 MB, free: 25.37 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 6.469e-05/0.2911, allocations: 51 kB / 460.1 MB, free: 25.33 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000327/0.2914, allocations: 235.5 kB / 460.3 MB, free: 25.26 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.763e-06/0.2915, allocations: 7.938 kB / 460.4 MB, free: 25.25 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.2915, allocations: 0 / 460.4 MB, free: 25.25 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.552e-06/0.2915, allocations: 0 / 460.4 MB, free: 25.25 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.0005961/0.2921, allocations: 482.2 kB / 460.8 MB, free: 24.79 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.886e-05/0.2921, allocations: 12.64 kB / 460.8 MB, free: 24.79 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.209e-05/0.2922, allocations: 41.02 kB / 460.9 MB, free: 24.75 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.337e-05/0.2922, allocations: 8.078 kB / 460.9 MB, free: 24.74 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002752/0.2925, allocations: 219.5 kB / 461.1 MB, free: 24.52 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.374e-05/0.2925, allocations: 3.438 kB / 461.1 MB, free: 24.52 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.346e-05/0.2926, allocations: 15.19 kB / 461.1 MB, free: 24.5 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002289/0.2928, allocations: 92.19 kB / 461.2 MB, free: 24.45 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.344e-05/0.2928, allocations: 0 / 461.2 MB, free: 24.45 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.424e-05/0.2928, allocations: 0 / 461.2 MB, free: 24.45 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.272e-06/0.2928, allocations: 7.156 kB / 461.2 MB, free: 24.44 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001373/0.293, allocations: 53.12 kB / 461.3 MB, free: 24.43 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003976/0.2934, allocations: 323 kB / 461.6 MB, free: 24.12 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000238/0.2936, allocations: 98.27 kB / 461.7 MB, free: 24.05 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001005/0.2938, allocations: 63.47 kB / 461.7 MB, free: 24.01 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.651e-05/0.2938, allocations: 7.922 kB / 461.8 MB, free: 24 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002109/0.294, allocations: 138 kB / 461.9 MB, free: 23.89 MB / 366.1 MB Notification: Performance of pre-optimization done (n=11): time 1.222e-06/0.294, allocations: 0 / 461.9 MB, free: 23.89 MB / 366.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004555/0.2945, allocations: 231.5 kB / 462.1 MB, free: 23.78 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.78e-05/0.2945, allocations: 114 kB / 462.2 MB, free: 23.65 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001255/0.2947, allocations: 161.9 kB / 462.4 MB, free: 23.53 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.252e-05/0.2947, allocations: 25.7 kB / 462.4 MB, free: 23.5 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.891e-05/0.2947, allocations: 94.45 kB / 462.5 MB, free: 23.41 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.318e-05/0.2948, allocations: 30.09 kB / 462.5 MB, free: 23.39 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.808e-05/0.2948, allocations: 29.61 kB / 462.6 MB, free: 23.36 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 7.455e-05/0.2949, allocations: 329.2 kB / 462.9 MB, free: 23.04 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.099e-05/0.295, allocations: 33.38 kB / 462.9 MB, free: 23.03 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.757e-05/0.2951, allocations: 58.16 kB / 463 MB, free: 23 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001891/0.2953, allocations: 151.1 kB / 463.1 MB, free: 22.89 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.2953, allocations: 0 / 463.1 MB, free: 22.89 MB / 366.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002767/0.2956, allocations: 188.3 kB / 463.3 MB, free: 22.79 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.171e-05/0.2956, allocations: 42.91 kB / 463.3 MB, free: 22.75 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.18e-06/0.2956, allocations: 0 / 463.3 MB, free: 22.75 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.614e-05/0.2956, allocations: 0 / 463.3 MB, free: 22.75 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.002e-05/0.2957, allocations: 9.562 kB / 463.3 MB, free: 22.75 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.524e-06/0.2957, allocations: 0 / 463.3 MB, free: 22.75 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.549e-05/0.2958, allocations: 17.7 kB / 463.4 MB, free: 22.75 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.657e-05/0.2958, allocations: 7.281 kB / 463.4 MB, free: 22.74 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.296, allocations: 153.3 kB / 463.5 MB, free: 22.59 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.984e-05/0.296, allocations: 17.58 kB / 463.5 MB, free: 22.59 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.873e-05/0.296, allocations: 15.28 kB / 463.6 MB, free: 22.57 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.946e-06/0.2961, allocations: 0 / 463.6 MB, free: 22.57 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.542e-06/0.2961, allocations: 3.938 kB / 463.6 MB, free: 22.57 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.788e-06/0.2961, allocations: 3.938 kB / 463.6 MB, free: 22.57 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001398/0.2962, allocations: 216.2 kB / 463.8 MB, free: 22.35 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.716e-06/0.2962, allocations: 3.375 kB / 463.8 MB, free: 22.35 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.882e-05/0.2963, allocations: 13.28 kB / 463.8 MB, free: 22.34 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/0.2963, allocations: 0 / 463.8 MB, free: 22.34 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.521e-05/0.2963, allocations: 3.188 kB / 463.8 MB, free: 22.34 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.266e-06/0.2963, allocations: 3.312 kB / 463.8 MB, free: 22.34 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.2963, allocations: 4 kB / 463.8 MB, free: 22.34 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003193/0.2967, allocations: 250.3 kB / 464 MB, free: 22.18 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.019e-05/0.2967, allocations: 91.84 kB / 464.1 MB, free: 22.08 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.968e-05/0.2967, allocations: 6.531 kB / 464.1 MB, free: 22.08 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.245e-05/0.2968, allocations: 6.406 kB / 464.1 MB, free: 22.08 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.196e-05/0.2969, allocations: 18.44 kB / 464.2 MB, free: 22.07 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.833e-05/0.2969, allocations: 3.094 kB / 464.2 MB, free: 22.07 MB / 366.1 MB Notification: Performance of sorting global known variables: time 8.399e-05/0.297, allocations: 122.1 kB / 464.3 MB, free: 21.98 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.297, allocations: 0 / 464.3 MB, free: 21.98 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003061/0.2973, allocations: 82.91 kB / 464.4 MB, free: 21.96 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.001561/0.2989, allocations: 1.099 MB / 465.5 MB, free: 21.16 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002727/0.2992, allocations: 188.9 kB / 465.7 MB, free: 21.05 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/0.2992, allocations: 4 kB / 465.7 MB, free: 21.04 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001416/0.2993, allocations: 135.1 kB / 465.8 MB, free: 20.95 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002286/0.2996, allocations: 20.97 kB / 465.8 MB, free: 20.94 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001874/0.3014, allocations: 1.87 MB / 467.7 MB, free: 19.52 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001786/0.3016, allocations: 0.7055 MB / 468.4 MB, free: 18.82 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.615e-05/0.3017, allocations: 23.75 kB / 468.4 MB, free: 18.82 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.61e-05/0.3018, allocations: 32.17 kB / 468.4 MB, free: 18.8 MB / 366.1 MB Notification: Performance of SimCode: time 6.51e-07/0.3018, allocations: 0 / 468.4 MB, free: 18.8 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02983/0.3316, allocations: 4.376 MB / 472.8 MB, free: 17.91 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.195/8.527, allocations: 3.984 kB / 472.8 MB, free: 17.9 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 & 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)