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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001256/0.001256, allocations: 98.08 kB / 19.73 MB, free: 2.23 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001555/0.001555, allocations: 217.2 kB / 23.04 MB, free: 5.074 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.443/1.443, allocations: 230.6 MB / 256.8 MB, free: 7.988 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.2.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.2.0/package.mo): time 0.01451/0.01451, allocations: 3.269 MB / 316.5 MB, free: 15.82 MB / 254.1 MB " [Timeout remaining time 180] Using package ExternData with version 3.2.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.2.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ExternData.Examples.XMLTestXPath,fileNamePrefix="ExternData_ExternData_Examples_XMLTestXPath",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ExternData.Examples.XMLTestXPath,fileNamePrefix="ExternData_ExternData_Examples_XMLTestXPath",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ExternData requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001956/0.001956, allocations: 70.88 kB / 440.4 MB, free: 12.27 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09865/0.1006, allocations: 54.38 MB / 494.7 MB, free: 5.789 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.XMLTestXPath): time 0.00312/0.1037, allocations: 1.698 MB / 496.4 MB, free: 4.078 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00277/0.1065, allocations: 1.761 MB / 498.2 MB, free: 2.309 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.341e-05/0.1066, allocations: 0 / 498.2 MB, free: 2.309 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.2.0/package.mo:269:3-299:15:writable] Warning: Pure function 'ExternData.XML2File' contains a call to impure function 'ExternData.Types.ExternXML2File.constructor'. Notification: Performance of NFTyping.typeComponents: time 0.0003746/0.1069, allocations: 51.77 kB / 498.2 MB, free: 2.258 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003604/0.1073, allocations: 119.4 kB / 498.4 MB, free: 2.141 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002427/0.1075, allocations: 89.91 kB / 498.5 MB, free: 2.055 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001491/0.1077, allocations: 87.7 kB / 498.5 MB, free: 1.969 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.769e-05/0.1078, allocations: 16.22 kB / 498.6 MB, free: 1.949 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.593e-05/0.1079, allocations: 39.86 kB / 498.6 MB, free: 1.91 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001692/0.108, allocations: 43.77 kB / 498.6 MB, free: 1.867 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.164e-05/0.1081, allocations: 8 kB / 498.6 MB, free: 1.859 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003241/0.1084, allocations: 211.7 kB / 498.8 MB, free: 1.652 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.212e-05/0.1084, allocations: 23.92 kB / 498.9 MB, free: 1.629 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.296e-05/0.1085, allocations: 43.73 kB / 498.9 MB, free: 1.586 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000362/0.1089, allocations: 247.2 kB / 499.2 MB, free: 1.344 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.1089, allocations: 4 kB / 499.2 MB, free: 1.34 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.1089, allocations: 0 / 499.2 MB, free: 1.34 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.338e-06/0.1089, allocations: 0 / 499.2 MB, free: 1.34 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.0006296/0.1095, allocations: 411 kB / 499.6 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.064e-05/0.1095, allocations: 11.97 kB / 499.6 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.299e-05/0.1096, allocations: 4.188 kB / 499.6 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.219e-05/0.1096, allocations: 30.75 kB / 499.6 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.436e-05/0.1096, allocations: 12.89 kB / 499.6 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002736/0.1099, allocations: 154.3 kB / 499.8 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.322e-05/0.1099, allocations: 8.125 kB / 499.8 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.823e-05/0.1099, allocations: 8 kB / 499.8 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000239/0.1102, allocations: 95.36 kB / 499.9 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.474e-06/0.1102, allocations: 0 / 499.9 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.492e-05/0.1102, allocations: 4 kB / 499.9 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.588e-06/0.1102, allocations: 0 / 499.9 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000149/0.1104, allocations: 67.81 kB / 499.9 MB, free: 480 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004285/0.1108, allocations: 292.7 kB / 0.4885 GB, free: 140 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002507/0.111, allocations: 89.22 kB / 0.4886 GB, free: 32 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001193/0.1112, allocations: 45.98 kB / 0.4886 GB, free: 15.98 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.686e-05/0.1112, allocations: 4 kB / 0.4886 GB, free: 15.97 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002257/0.1114, allocations: 142.7 kB / 0.4888 GB, free: 15.81 MB / 366.1 MB Notification: Performance of pre-optimization done (n=11): time 1.002e-06/0.1114, allocations: 0 / 0.4888 GB, free: 15.81 MB / 366.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004997/0.1119, allocations: 231.2 kB / 0.489 GB, free: 15.57 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.161e-05/0.112, allocations: 110.8 kB / 0.4891 GB, free: 15.44 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001724/0.1121, allocations: 168.6 kB / 0.4893 GB, free: 15.27 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.013e-05/0.1122, allocations: 25.7 kB / 0.4893 GB, free: 15.23 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.883e-05/0.1122, allocations: 100.1 kB / 0.4894 GB, free: 15.13 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.591e-05/0.1123, allocations: 31.66 kB / 0.4894 GB, free: 15.11 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.149e-05/0.1123, allocations: 25.7 kB / 0.4894 GB, free: 15.07 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001423/0.1125, allocations: 322.8 kB / 0.4897 GB, free: 14.75 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.643e-05/0.1125, allocations: 35.98 kB / 0.4898 GB, free: 14.71 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001038/0.1126, allocations: 57.69 kB / 0.4898 GB, free: 14.65 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002156/0.1129, allocations: 153.2 kB / 0.49 GB, free: 14.48 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/0.1129, allocations: 4 kB / 0.49 GB, free: 14.48 MB / 366.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003258/0.1132, allocations: 191.2 kB / 0.4902 GB, free: 14.28 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.826e-05/0.1132, allocations: 33.7 kB / 0.4902 GB, free: 14.24 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.021e-06/0.1132, allocations: 3.984 kB / 0.4902 GB, free: 14.24 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.131e-05/0.1132, allocations: 0 / 0.4902 GB, free: 14.24 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.655e-05/0.1133, allocations: 16 kB / 0.4902 GB, free: 14.22 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.99e-06/0.1133, allocations: 7.938 kB / 0.4902 GB, free: 14.21 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.247e-05/0.1134, allocations: 19.88 kB / 0.4902 GB, free: 14.2 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.548e-06/0.1134, allocations: 0 / 0.4902 GB, free: 14.2 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.0001396/0.1136, allocations: 159.5 kB / 0.4904 GB, free: 14.02 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.317e-05/0.1136, allocations: 11.95 kB / 0.4904 GB, free: 14.01 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.657e-05/0.1136, allocations: 8.719 kB / 0.4904 GB, free: 14 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.198e-05/0.1136, allocations: 4 kB / 0.4904 GB, free: 14 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.276e-06/0.1136, allocations: 0 / 0.4904 GB, free: 14 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.589e-06/0.1136, allocations: 7.938 kB / 0.4904 GB, free: 13.99 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001767/0.1138, allocations: 180.6 kB / 0.4906 GB, free: 13.77 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.1138, allocations: 0 / 0.4906 GB, free: 13.77 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.792e-05/0.1139, allocations: 11.94 kB / 0.4906 GB, free: 13.76 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.804e-06/0.1139, allocations: 0 / 0.4906 GB, free: 13.76 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.668e-05/0.1139, allocations: 7.984 kB / 0.4906 GB, free: 13.75 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.352e-06/0.1139, allocations: 0 / 0.4906 GB, free: 13.75 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.1139, allocations: 0 / 0.4906 GB, free: 13.75 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003923/0.1143, allocations: 251.5 kB / 0.4909 GB, free: 13.48 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.361e-05/0.1143, allocations: 19.88 kB / 0.4909 GB, free: 13.46 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.432e-05/0.1144, allocations: 11.94 kB / 0.4909 GB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.645e-05/0.1144, allocations: 4 kB / 0.4909 GB, free: 13.44 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.882e-05/0.1145, allocations: 11.92 kB / 0.4909 GB, free: 13.43 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.81e-05/0.1145, allocations: 4 kB / 0.4909 GB, free: 13.43 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001052/0.1146, allocations: 123.2 kB / 0.491 GB, free: 13.3 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1146, allocations: 0 / 0.491 GB, free: 13.3 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003145/0.1149, allocations: 87.75 kB / 0.4911 GB, free: 13.22 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.001941/0.1169, allocations: 1.112 MB / 0.4922 GB, free: 12.19 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003137/0.1172, allocations: 163.3 kB / 0.4924 GB, free: 12.02 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.1172, allocations: 0 / 0.4924 GB, free: 12.02 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001428/0.1173, allocations: 107.3 kB / 0.4925 GB, free: 11.9 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002205/0.1175, allocations: 26.77 kB / 0.4925 GB, free: 11.88 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002449/0.12, allocations: 1.887 MB / 0.4943 GB, free: 9.891 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004417/0.1204, allocations: 0.7085 MB / 0.495 GB, free: 9.156 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.392e-05/0.1205, allocations: 20.78 kB / 0.495 GB, free: 9.137 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.742e-05/0.1206, allocations: 31.42 kB / 0.4951 GB, free: 9.105 MB / 366.1 MB Notification: Performance of SimCode: time 5.51e-07/0.1206, allocations: 0 / 0.4951 GB, free: 9.105 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02756/0.1481, allocations: 4.639 MB / 0.4996 GB, free: 4.484 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.07/11.22, allocations: 2.234 kB / 0.4996 GB, free: 4.484 MB / 366.1 MB " [Timeout remaining time 649] (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 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 ExternData_ExternData_Examples_XMLTestXPath.fmu > ExternData_ExternData.Examples.XMLTestXPath.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 14.007261135033332] Failed to read output from testmodel.py, exit status != 0: 11.41002077597659 11.6121643 11.499314132 Calling exit ...