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.008137/0.008137, allocations: 99.45 kB / 15.73 MB, free: 6.059 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.001664/0.001664, allocations: 197 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.345/1.345, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/package.mo): time 0.01223/0.01223, allocations: 2.957 MB / 293.5 MB, free: 11.77 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001193/0.001193, allocations: 67.89 kB / 405.8 MB, free: 29.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1035/0.1047, allocations: 50.34 MB / 456.1 MB, free: 10.86 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.XMLTestXPath): time 0.003426/0.1082, allocations: 1.681 MB / 457.8 MB, free: 9.176 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002228/0.1105, allocations: 1.608 MB / 459.4 MB, free: 7.559 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.081e-05/0.1106, allocations: 4 kB / 459.4 MB, free: 7.555 MB / 334.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.0003971/0.111, allocations: 47.77 kB / 459.4 MB, free: 7.508 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003287/0.1113, allocations: 123.4 kB / 459.6 MB, free: 7.387 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002409/0.1116, allocations: 87.77 kB / 459.6 MB, free: 7.301 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001386/0.1117, allocations: 99.69 kB / 459.7 MB, free: 7.203 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.685e-05/0.1118, allocations: 8.516 kB / 459.8 MB, free: 7.191 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.458e-05/0.1119, allocations: 39.84 kB / 459.8 MB, free: 7.152 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001695/0.1121, allocations: 39.84 kB / 459.8 MB, free: 7.113 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.897e-05/0.1121, allocations: 8 kB / 459.8 MB, free: 7.105 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003514/0.1125, allocations: 211.7 kB / 460 MB, free: 6.898 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.29e-05/0.1125, allocations: 19.92 kB / 460.1 MB, free: 6.879 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.881e-05/0.1126, allocations: 43.73 kB / 460.1 MB, free: 6.836 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003489/0.113, allocations: 247.2 kB / 460.4 MB, free: 6.594 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.113, allocations: 4 kB / 460.4 MB, free: 6.59 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.113, allocations: 0 / 460.4 MB, free: 6.59 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.739e-06/0.113, allocations: 4 kB / 460.4 MB, free: 6.586 MB / 334.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.0006163/0.1136, allocations: 484.1 kB / 460.8 MB, free: 6.059 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.44e-05/0.1137, allocations: 15.89 kB / 460.8 MB, free: 6.043 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.66e-05/0.1137, allocations: 34.73 kB / 460.9 MB, free: 6 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.383e-05/0.1138, allocations: 12.89 kB / 460.9 MB, free: 5.988 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002773/0.1141, allocations: 208.2 kB / 461.1 MB, free: 5.746 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.051e-05/0.1141, allocations: 8.375 kB / 461.1 MB, free: 5.738 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.606e-05/0.1141, allocations: 11.88 kB / 461.1 MB, free: 5.727 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000192/0.1143, allocations: 91.38 kB / 461.2 MB, free: 5.625 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.497e-06/0.1143, allocations: 0 / 461.2 MB, free: 5.625 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.288e-05/0.1143, allocations: 7.938 kB / 461.2 MB, free: 5.617 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.709e-06/0.1143, allocations: 0 / 461.2 MB, free: 5.617 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001323/0.1145, allocations: 47.97 kB / 461.3 MB, free: 5.57 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004424/0.1149, allocations: 329.6 kB / 461.6 MB, free: 5.195 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002351/0.1152, allocations: 97.22 kB / 461.7 MB, free: 5.082 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001029/0.1153, allocations: 61.67 kB / 461.7 MB, free: 5.016 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.407e-06/0.1153, allocations: 7.984 kB / 461.7 MB, free: 5.008 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002006/0.1155, allocations: 130.8 kB / 461.9 MB, free: 4.855 MB / 334.1 MB Notification: Performance of pre-optimization done (n=11): time 1.383e-06/0.1155, allocations: 0 / 461.9 MB, free: 4.855 MB / 334.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004551/0.116, allocations: 227.2 kB / 462.1 MB, free: 4.621 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.269e-05/0.1161, allocations: 114.8 kB / 462.2 MB, free: 4.484 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001519/0.1162, allocations: 164.5 kB / 462.4 MB, free: 4.316 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.832e-05/0.1163, allocations: 25.7 kB / 462.4 MB, free: 4.285 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.387e-05/0.1163, allocations: 92.14 kB / 462.5 MB, free: 4.191 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.916e-05/0.1164, allocations: 35.88 kB / 462.5 MB, free: 4.156 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.695e-05/0.1164, allocations: 29.72 kB / 462.5 MB, free: 4.121 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001232/0.1166, allocations: 322.8 kB / 462.9 MB, free: 3.797 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.462e-05/0.1166, allocations: 39.92 kB / 462.9 MB, free: 3.758 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.92e-05/0.1167, allocations: 57.69 kB / 463 MB, free: 3.695 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001869/0.1169, allocations: 145 kB / 463.1 MB, free: 3.535 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.1169, allocations: 0 / 463.1 MB, free: 3.535 MB / 334.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000342/0.1173, allocations: 191.2 kB / 463.3 MB, free: 3.336 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.125e-05/0.1174, allocations: 37.69 kB / 463.3 MB, free: 3.293 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.714e-06/0.1174, allocations: 0 / 463.3 MB, free: 3.293 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.957e-05/0.1174, allocations: 7.938 kB / 463.3 MB, free: 3.285 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.705e-05/0.1175, allocations: 19.94 kB / 463.3 MB, free: 3.266 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.52e-06/0.1175, allocations: 0 / 463.3 MB, free: 3.266 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.518e-05/0.1176, allocations: 23.88 kB / 463.4 MB, free: 3.242 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.988e-06/0.1176, allocations: 0 / 463.4 MB, free: 3.242 MB / 334.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.000127/0.1177, allocations: 158.7 kB / 463.5 MB, free: 3.074 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.127e-05/0.1178, allocations: 7.953 kB / 463.5 MB, free: 3.066 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.92e-05/0.1178, allocations: 12.72 kB / 463.5 MB, free: 3.051 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.507e-06/0.1178, allocations: 7.938 kB / 463.6 MB, free: 3.043 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.1178, allocations: 0 / 463.6 MB, free: 3.043 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.1178, allocations: 7.938 kB / 463.6 MB, free: 3.035 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001708/0.118, allocations: 213.5 kB / 463.8 MB, free: 2.777 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.118, allocations: 4 kB / 463.8 MB, free: 2.773 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.146e-05/0.1181, allocations: 8 kB / 463.8 MB, free: 2.766 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.903e-06/0.1181, allocations: 0 / 463.8 MB, free: 2.766 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.533e-05/0.1181, allocations: 7.984 kB / 463.8 MB, free: 2.758 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.283e-06/0.1181, allocations: 0 / 463.8 MB, free: 2.758 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.1181, allocations: 0 / 463.8 MB, free: 2.758 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003742/0.1185, allocations: 247.6 kB / 464 MB, free: 2.488 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.351e-05/0.1186, allocations: 96.98 kB / 464.1 MB, free: 2.375 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.522e-05/0.1186, allocations: 4 kB / 464.1 MB, free: 2.371 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.434e-05/0.1187, allocations: 8 kB / 464.1 MB, free: 2.363 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.45e-05/0.1187, allocations: 11.92 kB / 464.2 MB, free: 2.352 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.675e-05/0.1188, allocations: 4 kB / 464.2 MB, free: 2.348 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.53e-05/0.1189, allocations: 123.2 kB / 464.3 MB, free: 2.227 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1189, allocations: 0 / 464.3 MB, free: 2.227 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003414/0.1192, allocations: 87.69 kB / 464.4 MB, free: 2.141 MB / 334.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.001473/0.1207, allocations: 1.11 MB / 465.5 MB, free: 1.117 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003217/0.121, allocations: 187.3 kB / 465.7 MB, free: 0.9219 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.1211, allocations: 0 / 465.7 MB, free: 0.9219 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001673/0.1212, allocations: 135.4 kB / 465.8 MB, free: 0.7773 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002445/0.1215, allocations: 23.44 kB / 465.8 MB, free: 0.7578 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002351/0.1238, allocations: 1.873 MB / 467.7 MB, free: 14.78 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002673/0.1241, allocations: 0.7078 MB / 468.4 MB, free: 14.05 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.072e-05/0.1242, allocations: 16.61 kB / 468.4 MB, free: 14.03 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.095e-05/0.1243, allocations: 39.42 kB / 468.4 MB, free: 13.99 MB / 350.1 MB Notification: Performance of SimCode: time 6.32e-07/0.1243, allocations: 3.938 kB / 468.4 MB, free: 13.99 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02208/0.1464, allocations: 4.365 MB / 472.8 MB, free: 9.617 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.004/8.15, allocations: 11.92 kB / 472.8 MB, free: 9.605 MB / 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)