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.005642/0.005641, allocations: 97.62 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.001292/0.001292, allocations: 197.5 kB / 16.68 MB, free: 5.977 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.429/1.429, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.5/package.mo): time 0.136/0.136, allocations: 2.929 MB / 293.5 MB, free: 3.211 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001966/0.001966, allocations: 63.89 kB / 405.8 MB, free: 0.6523 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2636/0.2656, allocations: 50.33 MB / 456.1 MB, free: 27.99 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.XMLTestXPath): time 0.002571/0.2682, allocations: 1.69 MB / 457.8 MB, free: 26.83 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00182/0.27, allocations: 1.607 MB / 459.4 MB, free: 25.71 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.19e-05/0.2701, allocations: 3.938 kB / 459.4 MB, free: 25.71 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.0003976/0.2705, allocations: 45.38 kB / 459.5 MB, free: 25.68 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003349/0.2709, allocations: 123 kB / 459.6 MB, free: 25.62 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002277/0.2711, allocations: 83.17 kB / 459.7 MB, free: 25.59 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001413/0.2713, allocations: 97.53 kB / 459.7 MB, free: 25.54 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001059/0.2714, allocations: 14.02 kB / 459.8 MB, free: 25.53 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.786e-05/0.2715, allocations: 40.75 kB / 459.8 MB, free: 25.52 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000179/0.2717, allocations: 39.22 kB / 459.8 MB, free: 25.5 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.981e-05/0.2717, allocations: 6.25 kB / 459.8 MB, free: 25.5 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003069/0.272, allocations: 215.6 kB / 460.1 MB, free: 25.42 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 7.047e-05/0.2721, allocations: 17.11 kB / 460.1 MB, free: 25.42 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 6.753e-05/0.2721, allocations: 48.05 kB / 460.1 MB, free: 25.39 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003666/0.2725, allocations: 245 kB / 460.4 MB, free: 25.3 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.2725, allocations: 0 / 460.4 MB, free: 25.3 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.2725, allocations: 0 / 460.4 MB, free: 25.3 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.433e-06/0.2726, allocations: 0 / 460.4 MB, free: 25.3 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.0006257/0.2732, allocations: 482.1 kB / 460.8 MB, free: 24.84 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.243e-05/0.2732, allocations: 13.7 kB / 460.8 MB, free: 24.84 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.84e-05/0.2733, allocations: 41.39 kB / 460.9 MB, free: 24.8 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.559e-05/0.2733, allocations: 8.078 kB / 460.9 MB, free: 24.79 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000288/0.2736, allocations: 216.6 kB / 461.1 MB, free: 24.57 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.009e-05/0.2736, allocations: 7.406 kB / 461.1 MB, free: 24.57 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.676e-05/0.2737, allocations: 7.031 kB / 461.1 MB, free: 24.56 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002147/0.2739, allocations: 100.2 kB / 461.2 MB, free: 24.5 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.118e-05/0.2739, allocations: 0 / 461.2 MB, free: 24.5 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.284e-05/0.2739, allocations: 3.984 kB / 461.2 MB, free: 24.49 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.54e-06/0.2739, allocations: 0 / 461.2 MB, free: 24.49 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001261/0.2741, allocations: 56.78 kB / 461.3 MB, free: 24.48 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000392/0.2745, allocations: 331.1 kB / 461.6 MB, free: 24.16 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002399/0.2747, allocations: 92.62 kB / 461.7 MB, free: 24.09 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.79e-05/0.2748, allocations: 66.95 kB / 461.8 MB, free: 24.05 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.829e-06/0.2748, allocations: 3.469 kB / 461.8 MB, free: 24.05 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001943/0.275, allocations: 131 kB / 461.9 MB, free: 23.95 MB / 366.1 MB Notification: Performance of pre-optimization done (n=11): time 1.323e-06/0.275, allocations: 0 / 461.9 MB, free: 23.95 MB / 366.1 MB Notification: Performance of matching and sorting (n=11): time 0.000439/0.2755, allocations: 229.9 kB / 462.1 MB, free: 23.84 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.922e-05/0.2755, allocations: 105.9 kB / 462.2 MB, free: 23.71 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001237/0.2757, allocations: 164.4 kB / 462.4 MB, free: 23.59 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.346e-05/0.2757, allocations: 25.7 kB / 462.4 MB, free: 23.56 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.855e-05/0.2757, allocations: 98.34 kB / 462.5 MB, free: 23.47 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.023e-05/0.2758, allocations: 26.98 kB / 462.5 MB, free: 23.45 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.636e-05/0.2758, allocations: 30.42 kB / 462.5 MB, free: 23.42 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 6.521e-05/0.2759, allocations: 324.9 kB / 462.9 MB, free: 23.1 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.484e-05/0.276, allocations: 45.12 kB / 462.9 MB, free: 23.08 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.67e-05/0.2761, allocations: 56.67 kB / 463 MB, free: 23.05 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001677/0.2762, allocations: 152.5 kB / 463.1 MB, free: 22.94 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.973e-06/0.2762, allocations: 0 / 463.1 MB, free: 22.94 MB / 366.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002555/0.2765, allocations: 185.5 kB / 463.3 MB, free: 22.84 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.563e-05/0.2766, allocations: 39.47 kB / 463.3 MB, free: 22.81 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.2766, allocations: 4 kB / 463.3 MB, free: 22.8 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.976e-05/0.2766, allocations: 3.094 kB / 463.3 MB, free: 22.8 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.271e-05/0.2767, allocations: 9.312 kB / 463.4 MB, free: 22.8 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.416e-06/0.2767, allocations: 7.266 kB / 463.4 MB, free: 22.8 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.93e-05/0.2768, allocations: 13.98 kB / 463.4 MB, free: 22.79 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.082e-05/0.2768, allocations: 3.125 kB / 463.4 MB, free: 22.79 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.0001036/0.2769, allocations: 156.8 kB / 463.5 MB, free: 22.64 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.633e-05/0.2769, allocations: 13.05 kB / 463.5 MB, free: 22.64 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.807e-05/0.277, allocations: 23.08 kB / 463.6 MB, free: 22.62 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.305e-06/0.277, allocations: 0 / 463.6 MB, free: 22.62 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.999e-06/0.277, allocations: 0 / 463.6 MB, free: 22.62 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.468e-06/0.277, allocations: 7.094 kB / 463.6 MB, free: 22.61 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001368/0.2771, allocations: 211.2 kB / 463.8 MB, free: 22.4 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.2771, allocations: 0 / 463.8 MB, free: 22.4 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.411e-05/0.2772, allocations: 6.062 kB / 463.8 MB, free: 22.4 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.066e-06/0.2772, allocations: 3.156 kB / 463.8 MB, free: 22.4 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.443e-05/0.2772, allocations: 7.234 kB / 463.8 MB, free: 22.4 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.2772, allocations: 0 / 463.8 MB, free: 22.4 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.2772, allocations: 7.375 kB / 463.8 MB, free: 22.39 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003244/0.2775, allocations: 250.4 kB / 464 MB, free: 22.23 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.775e-05/0.2776, allocations: 94.53 kB / 464.1 MB, free: 22.13 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.566e-05/0.2777, allocations: 10.3 kB / 464.1 MB, free: 22.13 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.951e-05/0.2777, allocations: 3.312 kB / 464.1 MB, free: 22.13 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.061e-05/0.2778, allocations: 10.14 kB / 464.2 MB, free: 22.12 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.998e-05/0.2778, allocations: 14.44 kB / 464.2 MB, free: 22.12 MB / 366.1 MB Notification: Performance of sorting global known variables: time 8.038e-05/0.2779, allocations: 126.2 kB / 464.3 MB, free: 22.03 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2779, allocations: 0 / 464.3 MB, free: 22.03 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003459/0.2783, allocations: 74.94 kB / 464.4 MB, free: 22.01 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.001595/0.2799, allocations: 1.103 MB / 465.5 MB, free: 21.21 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002774/0.2802, allocations: 194 kB / 465.7 MB, free: 21.09 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.2802, allocations: 0 / 465.7 MB, free: 21.09 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001197/0.2803, allocations: 136 kB / 465.8 MB, free: 20.99 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002393/0.2805, allocations: 20.78 kB / 465.8 MB, free: 20.98 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001679/0.2822, allocations: 1.87 MB / 467.7 MB, free: 19.57 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001265/0.2824, allocations: 0.7051 MB / 468.4 MB, free: 18.87 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.648e-05/0.2824, allocations: 24 kB / 468.4 MB, free: 18.86 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.096e-05/0.2825, allocations: 32.14 kB / 468.4 MB, free: 18.84 MB / 366.1 MB Notification: Performance of SimCode: time 2.61e-07/0.2825, allocations: 0 / 468.4 MB, free: 18.84 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02928/0.3118, allocations: 4.374 MB / 472.8 MB, free: 17.95 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.389/8.701, allocations: 4.906 kB / 472.8 MB, free: 17.95 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_ExternData_ExternData_Examples_XMLTestXPath_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 ExternData_ExternData_Examples_XMLTestXPath.fmu > ExternData_ExternData.Examples.XMLTestXPath.pipe 2>&1)