Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternData_ExternData.Examples.XMLTest.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: translateModel(ExternData.Examples.XMLTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ExternData_ExternData.Examples.XMLTest") translateModel(ExternData.Examples.XMLTest,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ExternData_ExternData.Examples.XMLTest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001054/0.001054, allocations: 107.5 kB / 16.36 MB, free: 5.824 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.0009785/0.0009786, allocations: 193.1 kB / 17.29 MB, free: 5.48 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.349/1.349, allocations: 222.9 MB / 241 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.01409/0.01409, allocations: 2.953 MB / 294.1 MB, free: 11.8 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001537/0.001537, allocations: 59.91 kB / 356.1 MB, free: 13.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2305/0.2321, allocations: 50.33 MB / 406.4 MB, free: 32.46 MB / 302.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.XMLTest): time 0.002706/0.2348, allocations: 1.672 MB / 408.1 MB, free: 30.79 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001725/0.2366, allocations: 1.588 MB / 409.7 MB, free: 29.2 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.416e-05/0.2367, allocations: 4 kB / 409.7 MB, free: 29.19 MB / 302.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/package.mo:250:3-279:14:writable] Warning: Pure function 'ExternData.XMLFile' contains a call to impure function 'ExternData.Types.ExternXMLFile.constructor'. Notification: Performance of NFTyping.typeComponents: time 0.0003199/0.237, allocations: 47.77 kB / 409.7 MB, free: 29.14 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003123/0.2373, allocations: 127.1 kB / 409.9 MB, free: 29.02 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002003/0.2375, allocations: 83.78 kB / 410 MB, free: 28.94 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001208/0.2376, allocations: 87.72 kB / 410 MB, free: 28.86 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.312e-05/0.2377, allocations: 16.16 kB / 410.1 MB, free: 28.84 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.216e-05/0.2378, allocations: 39.84 kB / 410.1 MB, free: 28.8 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000178/0.238, allocations: 39.84 kB / 410.1 MB, free: 28.76 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.697e-05/0.238, allocations: 4 kB / 410.1 MB, free: 28.75 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002254/0.2382, allocations: 211.7 kB / 410.3 MB, free: 28.55 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.176e-05/0.2383, allocations: 19.92 kB / 410.4 MB, free: 28.53 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.937e-05/0.2384, allocations: 35.8 kB / 410.4 MB, free: 28.49 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002556/0.2386, allocations: 231.3 kB / 410.6 MB, free: 28.27 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.2386, allocations: 0 / 410.6 MB, free: 28.27 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.2386, allocations: 0 / 410.6 MB, free: 28.27 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.104e-05/0.2387, allocations: 0 / 410.6 MB, free: 28.27 MB / 302.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.0004703/0.2391, allocations: 458.7 kB / 411.1 MB, free: 27.77 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.379e-05/0.2392, allocations: 19.88 kB / 411.1 MB, free: 27.75 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.351e-05/0.2392, allocations: 8.844 kB / 411.1 MB, free: 27.74 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002067/0.2394, allocations: 196.2 kB / 411.3 MB, free: 27.51 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.164e-05/0.2395, allocations: 384 / 411.3 MB, free: 27.51 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.498e-05/0.2395, allocations: 8.125 kB / 411.3 MB, free: 27.5 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001758/0.2397, allocations: 99.31 kB / 411.4 MB, free: 27.39 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.628e-06/0.2397, allocations: 7.984 kB / 411.4 MB, free: 27.39 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.28e-05/0.2397, allocations: 0 / 411.4 MB, free: 27.39 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.899e-06/0.2397, allocations: 0 / 411.4 MB, free: 27.39 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001182/0.2398, allocations: 51.97 kB / 411.5 MB, free: 27.34 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003137/0.2401, allocations: 309.6 kB / 411.8 MB, free: 26.98 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000211/0.2404, allocations: 97.28 kB / 411.9 MB, free: 26.87 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.526e-05/0.2405, allocations: 61.73 kB / 411.9 MB, free: 26.8 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.403e-05/0.2405, allocations: 0 / 411.9 MB, free: 26.8 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001632/0.2407, allocations: 138.7 kB / 412 MB, free: 26.64 MB / 302.1 MB Notification: Performance of pre-optimization done (n=11): time 1.112e-06/0.2407, allocations: 0 / 412 MB, free: 26.64 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.0003806/0.241, allocations: 227.2 kB / 412.3 MB, free: 26.41 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.828e-05/0.2411, allocations: 106.8 kB / 412.4 MB, free: 26.28 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.275e-05/0.2412, allocations: 140.8 kB / 412.5 MB, free: 26.13 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.169e-05/0.2412, allocations: 33.64 kB / 412.5 MB, free: 26.09 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.798e-05/0.2413, allocations: 92.05 kB / 412.6 MB, free: 26 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.743e-05/0.2413, allocations: 27.64 kB / 412.7 MB, free: 25.97 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.765e-05/0.2413, allocations: 25.72 kB / 412.7 MB, free: 25.94 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.993e-05/0.2414, allocations: 326.8 kB / 413 MB, free: 25.61 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.128e-05/0.2415, allocations: 35.98 kB / 413 MB, free: 25.58 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.811e-05/0.2415, allocations: 53.62 kB / 413.1 MB, free: 25.52 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001378/0.2417, allocations: 153 kB / 413.2 MB, free: 25.35 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.2417, allocations: 4 kB / 413.2 MB, free: 25.35 MB / 302.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002242/0.2419, allocations: 191.1 kB / 413.4 MB, free: 25.15 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.86e-05/0.242, allocations: 37.7 kB / 413.5 MB, free: 25.11 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.569e-06/0.242, allocations: 0 / 413.5 MB, free: 25.11 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.427e-05/0.242, allocations: 4 kB / 413.5 MB, free: 25.1 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.508e-05/0.242, allocations: 15.98 kB / 413.5 MB, free: 25.09 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.5e-06/0.2421, allocations: 0 / 413.5 MB, free: 25.09 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.081e-05/0.2421, allocations: 7.938 kB / 413.5 MB, free: 25.08 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.221e-05/0.2421, allocations: 7.938 kB / 413.5 MB, free: 25.07 MB / 302.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 7.963e-05/0.2422, allocations: 170 kB / 413.7 MB, free: 24.89 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.354e-05/0.2423, allocations: 15.89 kB / 413.7 MB, free: 24.88 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.356e-05/0.2423, allocations: 12.38 kB / 413.7 MB, free: 24.86 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.2423, allocations: 0 / 413.7 MB, free: 24.86 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.2423, allocations: 0 / 413.7 MB, free: 24.86 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.926e-06/0.2423, allocations: 0 / 413.7 MB, free: 24.86 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.784e-05/0.2424, allocations: 205.5 kB / 413.9 MB, free: 24.61 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/0.2424, allocations: 0 / 413.9 MB, free: 24.61 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.634e-05/0.2425, allocations: 11.98 kB / 413.9 MB, free: 24.6 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.873e-06/0.2425, allocations: 336 / 413.9 MB, free: 24.6 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.297e-05/0.2425, allocations: 8 kB / 413.9 MB, free: 24.59 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.743e-06/0.2425, allocations: 0 / 413.9 MB, free: 24.59 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.21e-07/0.2425, allocations: 3.938 kB / 413.9 MB, free: 24.59 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002785/0.2428, allocations: 251.4 kB / 414.2 MB, free: 24.31 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.145e-05/0.2428, allocations: 85 kB / 414.3 MB, free: 24.21 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.691e-05/0.2429, allocations: 8 kB / 414.3 MB, free: 24.2 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.505e-05/0.2429, allocations: 8 kB / 414.3 MB, free: 24.2 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.313e-05/0.243, allocations: 7.984 kB / 414.3 MB, free: 24.19 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.813e-05/0.243, allocations: 11.94 kB / 414.3 MB, free: 24.18 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.957e-05/0.2431, allocations: 103.3 kB / 414.4 MB, free: 24.07 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2431, allocations: 4 kB / 414.4 MB, free: 24.07 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002733/0.2433, allocations: 75.92 kB / 414.5 MB, free: 24 MB / 302.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.0008077/0.2442, allocations: 431.6 kB / 414.9 MB, free: 23.69 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002526/0.2444, allocations: 191.3 kB / 415.1 MB, free: 23.49 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.2444, allocations: 0 / 415.1 MB, free: 23.49 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000111/0.2445, allocations: 135.4 kB / 415.2 MB, free: 23.35 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002133/0.2448, allocations: 21.95 kB / 415.2 MB, free: 23.33 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003906/0.2452, allocations: 247.6 kB / 415.5 MB, free: 23.06 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001163/0.2453, allocations: 0.7002 MB / 416.2 MB, free: 22.34 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.396e-05/0.2453, allocations: 8 kB / 416.2 MB, free: 22.33 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.746e-05/0.2454, allocations: 15.42 kB / 416.2 MB, free: 22.31 MB / 302.1 MB Notification: Performance of SimCode: time 2.6e-07/0.2454, allocations: 0 / 416.2 MB, free: 22.31 MB / 302.1 MB Notification: Performance of Templates: time 0.00516/0.2505, allocations: 2.54 MB / 418.7 MB, free: 19.78 MB / 302.1 MB make -j1 -f ExternData_ExternData.Examples.XMLTest.makefile (rm -f ExternData_ExternData.Examples.XMLTest.pipe ; mkfifo ExternData_ExternData.Examples.XMLTest.pipe ; head -c 1048576 < ExternData_ExternData.Examples.XMLTest.pipe >> ../files/ExternData_ExternData.Examples.XMLTest.sim & ./ExternData_ExternData.Examples.XMLTest -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > ExternData_ExternData.Examples.XMLTest.pipe 2>&1)