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.001343/0.001343, allocations: 101.9 kB / 19.73 MB, free: 1.992 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.001412/0.001412, allocations: 213.8 kB / 23.03 MB, free: 4.426 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.572/1.572, allocations: 230.6 MB / 256.8 MB, free: 7.797 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.01847/0.01847, allocations: 3.279 MB / 316.5 MB, free: 15.61 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.001895/0.001895, allocations: 71.83 kB / 440.3 MB, free: 11.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1073/0.1092, allocations: 54.38 MB / 494.7 MB, free: 5.453 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.XMLTestXPath): time 0.00373/0.113, allocations: 1.678 MB / 496.3 MB, free: 3.766 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002832/0.1158, allocations: 1.687 MB / 498 MB, free: 2.07 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.583e-05/0.1159, allocations: 0 / 498 MB, free: 2.07 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.0004093/0.1163, allocations: 51.7 kB / 498.1 MB, free: 2.02 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004374/0.1167, allocations: 123.4 kB / 498.2 MB, free: 1.898 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002666/0.117, allocations: 91.78 kB / 498.3 MB, free: 1.809 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001577/0.1172, allocations: 83.77 kB / 498.4 MB, free: 1.727 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.624e-05/0.1172, allocations: 12.22 kB / 498.4 MB, free: 1.711 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.396e-05/0.1173, allocations: 47.78 kB / 498.4 MB, free: 1.664 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001477/0.1175, allocations: 35.84 kB / 498.5 MB, free: 1.629 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.077e-05/0.1175, allocations: 11.94 kB / 498.5 MB, free: 1.617 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003322/0.1178, allocations: 195.8 kB / 498.7 MB, free: 1.426 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.576e-05/0.1179, allocations: 23.92 kB / 498.7 MB, free: 1.402 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.472e-05/0.118, allocations: 35.73 kB / 498.7 MB, free: 1.367 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004464/0.1184, allocations: 251.2 kB / 499 MB, free: 1.121 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.998e-06/0.1184, allocations: 0 / 499 MB, free: 1.121 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.1184, allocations: 0 / 499 MB, free: 1.121 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.23e-06/0.1184, allocations: 0 / 499 MB, free: 1.121 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.0006891/0.1191, allocations: 407.1 kB / 499.4 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.917e-05/0.1192, allocations: 8.031 kB / 499.4 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.629e-05/0.1192, allocations: 4.188 kB / 499.4 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.137e-05/0.1192, allocations: 34.75 kB / 499.4 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.099e-05/0.1193, allocations: 16.77 kB / 499.4 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003038/0.1196, allocations: 154.3 kB / 499.6 MB, free: 452 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.272e-05/0.1196, allocations: 16.12 kB / 499.6 MB, free: 436 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.836e-05/0.1196, allocations: 4 kB / 499.6 MB, free: 432 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002533/0.1198, allocations: 121.1 kB / 499.7 MB, free: 292 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.518e-06/0.1199, allocations: 0 / 499.7 MB, free: 292 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.158e-05/0.1199, allocations: 0 / 499.7 MB, free: 292 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.328e-06/0.1199, allocations: 4 kB / 499.7 MB, free: 288 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001671/0.12, allocations: 89.59 kB / 499.8 MB, free: 192 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000441/0.1205, allocations: 280.7 kB / 0.4884 GB, free: 15.87 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002719/0.1207, allocations: 122.9 kB / 0.4885 GB, free: 15.72 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001229/0.1209, allocations: 79.44 kB / 0.4886 GB, free: 15.63 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.422e-05/0.1209, allocations: 3.984 kB / 0.4886 GB, free: 15.63 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002551/0.1211, allocations: 172.4 kB / 0.4887 GB, free: 15.43 MB / 366.1 MB Notification: Performance of pre-optimization done (n=11): time 1.353e-06/0.1211, allocations: 0 / 0.4887 GB, free: 15.43 MB / 366.1 MB Notification: Performance of matching and sorting (n=11): time 0.0005658/0.1217, allocations: 298.7 kB / 0.489 GB, free: 15.11 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.026e-05/0.1218, allocations: 114.8 kB / 0.4891 GB, free: 14.98 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001761/0.122, allocations: 164.5 kB / 0.4893 GB, free: 14.81 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.286e-05/0.122, allocations: 29.7 kB / 0.4893 GB, free: 14.77 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.447e-05/0.122, allocations: 96.14 kB / 0.4894 GB, free: 14.68 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.218e-05/0.1221, allocations: 31.73 kB / 0.4894 GB, free: 14.64 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.432e-05/0.1221, allocations: 29.66 kB / 0.4895 GB, free: 14.61 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001491/0.1223, allocations: 322.8 kB / 0.4898 GB, free: 14.29 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001133/0.1224, allocations: 69.67 kB / 0.4898 GB, free: 14.21 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001235/0.1225, allocations: 83.39 kB / 0.4899 GB, free: 14.12 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002306/0.1228, allocations: 153 kB / 0.49 GB, free: 13.95 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.1228, allocations: 0 / 0.49 GB, free: 13.95 MB / 366.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000366/0.1231, allocations: 232.9 kB / 0.4903 GB, free: 13.7 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.353e-05/0.1232, allocations: 41.69 kB / 0.4903 GB, free: 13.66 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.519e-06/0.1232, allocations: 0 / 0.4903 GB, free: 13.66 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.262e-05/0.1232, allocations: 0 / 0.4903 GB, free: 13.66 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.315e-05/0.1233, allocations: 8 kB / 0.4903 GB, free: 13.65 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.921e-06/0.1233, allocations: 4 kB / 0.4903 GB, free: 13.64 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.587e-05/0.1233, allocations: 19.88 kB / 0.4903 GB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.234e-05/0.1234, allocations: 4 kB / 0.4903 GB, free: 13.62 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.0001472/0.1235, allocations: 162 kB / 0.4905 GB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.354e-05/0.1235, allocations: 11.95 kB / 0.4905 GB, free: 13.44 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.349e-05/0.1236, allocations: 16.7 kB / 0.4905 GB, free: 13.42 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.904e-06/0.1236, allocations: 0 / 0.4905 GB, free: 13.42 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.888e-06/0.1236, allocations: 4 kB / 0.4905 GB, free: 13.41 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.1236, allocations: 3.938 kB / 0.4905 GB, free: 13.41 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001859/0.1238, allocations: 172.6 kB / 0.4907 GB, free: 13.2 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.1238, allocations: 0 / 0.4907 GB, free: 13.2 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.553e-05/0.1238, allocations: 12 kB / 0.4907 GB, free: 13.19 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.435e-06/0.1238, allocations: 0 / 0.4907 GB, free: 13.19 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.508e-05/0.1238, allocations: 4 kB / 0.4907 GB, free: 13.18 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.472e-06/0.1238, allocations: 0 / 0.4907 GB, free: 13.18 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.1238, allocations: 4 kB / 0.4907 GB, free: 13.18 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004278/0.1243, allocations: 285.2 kB / 0.491 GB, free: 12.87 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.382e-05/0.1243, allocations: 19.88 kB / 0.491 GB, free: 12.85 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.853e-05/0.1243, allocations: 8 kB / 0.491 GB, free: 12.84 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.432e-05/0.1244, allocations: 11.98 kB / 0.491 GB, free: 12.83 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.328e-05/0.1245, allocations: 7.875 kB / 0.491 GB, free: 12.82 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.871e-05/0.1245, allocations: 4 kB / 0.491 GB, free: 12.82 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001187/0.1246, allocations: 123.2 kB / 0.4912 GB, free: 12.7 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1246, allocations: 0 / 0.4912 GB, free: 12.7 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003301/0.1249, allocations: 79.75 kB / 0.4912 GB, free: 12.62 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.002145/0.1271, allocations: 1.169 MB / 0.4924 GB, free: 11.54 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003606/0.1274, allocations: 226.7 kB / 0.4926 GB, free: 11.29 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.1274, allocations: 3.938 kB / 0.4926 GB, free: 11.29 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001818/0.1276, allocations: 149.2 kB / 0.4927 GB, free: 11.12 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000256/0.1279, allocations: 23.97 kB / 0.4928 GB, free: 11.1 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002612/0.1305, allocations: 2.064 MB / 0.4948 GB, free: 8.906 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.815e-05/0.1306, allocations: 85.5 kB / 0.4949 GB, free: 8.801 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.418e-05/0.1306, allocations: 24.41 kB / 0.4949 GB, free: 8.777 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.655e-05/0.1307, allocations: 31.42 kB / 0.4949 GB, free: 8.746 MB / 366.1 MB Notification: Performance of SimCode: time 7.51e-07/0.1307, allocations: 0 / 0.4949 GB, free: 8.746 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02841/0.1591, allocations: 4.756 MB / 0.4996 GB, free: 4.027 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.21/11.37, allocations: 4.062 kB / 0.4996 GB, free: 4.023 MB / 366.1 MB " [Timeout remaining time 648] (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.158830283093266] Failed to read output from testmodel.py, exit status != 0: 11.570224549039267 11.599992819 11.476212576 Calling exit ...