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.001429/0.001429, allocations: 108 kB / 15.61 MB, free: 152 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.001748/0.001748, allocations: 195.5 kB / 16.53 MB, free: 6.664 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.356/1.356, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/package.mo): time 0.1215/0.1215, allocations: 2.934 MB / 293.3 MB, free: 3.215 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001465/0.001465, allocations: 63.89 kB / 354.8 MB, free: 3.656 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08819/0.08967, allocations: 50.34 MB / 405.1 MB, free: 1.27 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.XMLTestXPath): time 0.00317/0.09288, allocations: 1.674 MB / 406.8 MB, free: 15.59 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00229/0.0952, allocations: 1.6 MB / 408.4 MB, free: 13.98 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.193e-05/0.09529, allocations: 3.938 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.0003468/0.09565, allocations: 47.78 kB / 408.4 MB, free: 13.93 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003775/0.09604, allocations: 131.4 kB / 408.6 MB, free: 13.8 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002541/0.0963, allocations: 87.78 kB / 408.6 MB, free: 13.71 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001438/0.09646, allocations: 87.77 kB / 408.7 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.951e-05/0.09655, allocations: 20.19 kB / 408.8 MB, free: 13.6 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.329e-05/0.09664, allocations: 39.86 kB / 408.8 MB, free: 13.56 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001524/0.0968, allocations: 47.7 kB / 408.8 MB, free: 13.52 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.172e-05/0.09683, allocations: 8 kB / 408.8 MB, free: 13.51 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003215/0.09715, allocations: 203.8 kB / 409 MB, free: 13.31 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.673e-05/0.09722, allocations: 23.91 kB / 409.1 MB, free: 13.29 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.349e-05/0.09729, allocations: 39.8 kB / 409.1 MB, free: 13.25 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003627/0.09766, allocations: 243.6 kB / 409.3 MB, free: 13.01 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.397e-06/0.09767, allocations: 0 / 409.3 MB, free: 13.01 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.09768, allocations: 0 / 409.3 MB, free: 13.01 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.04e-06/0.09769, allocations: 0 / 409.3 MB, free: 13.01 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.0006207/0.09832, allocations: 488.7 kB / 409.8 MB, free: 12.48 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.574e-05/0.09836, allocations: 15.89 kB / 409.8 MB, free: 12.46 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.032e-05/0.0984, allocations: 30.75 kB / 409.9 MB, free: 12.42 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.693e-05/0.09845, allocations: 12.84 kB / 409.9 MB, free: 12.41 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000222/0.09868, allocations: 209.2 kB / 410.1 MB, free: 12.17 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.014e-05/0.0987, allocations: 8.375 kB / 410.1 MB, free: 12.16 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.731e-05/0.09872, allocations: 11.88 kB / 410.1 MB, free: 12.15 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002192/0.09895, allocations: 91.38 kB / 410.2 MB, free: 12.05 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.155e-06/0.09897, allocations: 0 / 410.2 MB, free: 12.05 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.306e-05/0.09899, allocations: 8 kB / 410.2 MB, free: 12.04 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.338e-06/0.099, allocations: 0 / 410.2 MB, free: 12.04 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000134/0.09913, allocations: 47.97 kB / 410.2 MB, free: 11.99 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003643/0.09951, allocations: 321.6 kB / 410.6 MB, free: 11.62 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002232/0.09974, allocations: 97.3 kB / 410.7 MB, free: 11.51 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001012/0.09986, allocations: 61.81 kB / 410.7 MB, free: 11.45 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.227e-06/0.09987, allocations: 0 / 410.7 MB, free: 11.45 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002421/0.1001, allocations: 138.8 kB / 410.9 MB, free: 11.29 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 1.272e-06/0.1001, allocations: 0 / 410.9 MB, free: 11.29 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004462/0.1006, allocations: 227.2 kB / 411.1 MB, free: 11.05 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.225e-05/0.1006, allocations: 114.8 kB / 411.2 MB, free: 10.91 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001371/0.1008, allocations: 155.7 kB / 411.3 MB, free: 10.75 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.626e-05/0.1008, allocations: 25.7 kB / 411.4 MB, free: 10.72 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.803e-05/0.1009, allocations: 100 kB / 411.5 MB, free: 10.62 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.323e-05/0.1009, allocations: 27.64 kB / 411.5 MB, free: 10.59 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.772e-05/0.101, allocations: 29.72 kB / 411.5 MB, free: 10.56 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.501e-05/0.1011, allocations: 322.8 kB / 411.8 MB, free: 10.23 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.563e-05/0.1012, allocations: 47.84 kB / 411.9 MB, free: 10.19 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.934e-05/0.1013, allocations: 53.7 kB / 411.9 MB, free: 10.13 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001786/0.1014, allocations: 149 kB / 412.1 MB, free: 9.965 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.1015, allocations: 0 / 412.1 MB, free: 9.965 MB / 350.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002986/0.1018, allocations: 195.1 kB / 412.3 MB, free: 9.762 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.432e-05/0.1018, allocations: 37.69 kB / 412.3 MB, free: 9.719 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.278e-06/0.1018, allocations: 320 / 412.3 MB, free: 9.719 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.382e-05/0.1018, allocations: 0 / 412.3 MB, free: 9.719 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.776e-05/0.1019, allocations: 16.27 kB / 412.3 MB, free: 9.703 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.648e-06/0.1019, allocations: 0 / 412.3 MB, free: 9.703 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.15e-05/0.102, allocations: 15.92 kB / 412.3 MB, free: 9.688 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.189e-05/0.102, allocations: 11.98 kB / 412.3 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.0001113/0.1021, allocations: 163.5 kB / 412.5 MB, free: 9.5 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.504e-05/0.1022, allocations: 15.8 kB / 412.5 MB, free: 9.484 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.125e-05/0.1022, allocations: 12.72 kB / 412.5 MB, free: 9.473 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.274e-06/0.1022, allocations: 0 / 412.5 MB, free: 9.473 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.831e-06/0.1022, allocations: 4 kB / 412.5 MB, free: 9.469 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.1022, allocations: 3.938 kB / 412.5 MB, free: 9.465 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001599/0.1024, allocations: 205.6 kB / 412.7 MB, free: 9.215 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.1024, allocations: 0 / 412.7 MB, free: 9.215 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.536e-05/0.1025, allocations: 12 kB / 412.8 MB, free: 9.203 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.47e-06/0.1025, allocations: 7.984 kB / 412.8 MB, free: 9.195 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.232e-05/0.1025, allocations: 0 / 412.8 MB, free: 9.195 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.046e-06/0.1025, allocations: 4 kB / 412.8 MB, free: 9.191 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.1025, allocations: 0 / 412.8 MB, free: 9.191 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003733/0.1029, allocations: 251.3 kB / 413 MB, free: 8.918 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.546e-05/0.103, allocations: 93 kB / 413.1 MB, free: 8.809 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.546e-05/0.103, allocations: 8 kB / 413.1 MB, free: 8.801 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.963e-05/0.1031, allocations: 4 kB / 413.1 MB, free: 8.797 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.883e-05/0.1031, allocations: 19.86 kB / 413.1 MB, free: 8.777 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.577e-05/0.1032, allocations: 4 kB / 413.1 MB, free: 8.773 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.528e-05/0.1033, allocations: 121.7 kB / 413.3 MB, free: 8.656 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1033, allocations: 4 kB / 413.3 MB, free: 8.652 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003129/0.1036, allocations: 75.98 kB / 413.3 MB, free: 8.578 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.001424/0.105, allocations: 1.113 MB / 414.4 MB, free: 7.555 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003017/0.1053, allocations: 187.3 kB / 414.6 MB, free: 7.359 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.1054, allocations: 4 kB / 414.6 MB, free: 7.355 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001456/0.1055, allocations: 131.4 kB / 414.8 MB, free: 7.215 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002318/0.1057, allocations: 22.12 kB / 414.8 MB, free: 7.195 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00209/0.1078, allocations: 1.875 MB / 416.7 MB, free: 5.219 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002367/0.1081, allocations: 0.7117 MB / 417.4 MB, free: 4.48 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.056e-05/0.1082, 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.422e-05/0.1082, allocations: 35.42 kB / 417.4 MB, free: 4.43 MB / 350.1 MB Notification: Performance of SimCode: time 2.8e-07/0.1083, allocations: 0 / 417.4 MB, free: 4.43 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02279/0.131, allocations: 4.292 MB / 421.7 MB, free: 152 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.834/7.965, allocations: 3.984 kB / 421.7 MB, free: 148 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 & 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)