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.001501/0.001501, allocations: 105.2 kB / 16.35 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.001932/0.001932, 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.317/1.317, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/package.mo): time 0.01264/0.01264, allocations: 2.948 MB / 294.1 MB, free: 11.79 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001383/0.001383, allocations: 59.91 kB / 356.1 MB, free: 13.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.22/0.2214, allocations: 50.34 MB / 406.4 MB, free: 32.45 MB / 302.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.XMLTest): time 0.002624/0.2241, allocations: 1.675 MB / 408.1 MB, free: 30.78 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001823/0.2259, allocations: 1.597 MB / 409.7 MB, free: 29.18 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.243e-05/0.226, allocations: 3.938 kB / 409.7 MB, free: 29.17 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.0003457/0.2264, allocations: 39.8 kB / 409.8 MB, free: 29.13 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003408/0.2267, allocations: 115.5 kB / 409.9 MB, free: 29.02 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002369/0.227, allocations: 87.72 kB / 410 MB, free: 28.93 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000125/0.2271, allocations: 87.77 kB / 410 MB, free: 28.85 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.37e-05/0.2272, allocations: 20.2 kB / 410.1 MB, free: 28.82 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.917e-05/0.2273, allocations: 39.8 kB / 410.1 MB, free: 28.79 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001661/0.2275, allocations: 39.83 kB / 410.1 MB, free: 28.75 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.741e-05/0.2275, allocations: 8 kB / 410.1 MB, free: 28.74 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002671/0.2278, allocations: 203.8 kB / 410.3 MB, free: 28.54 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.392e-05/0.2278, allocations: 19.92 kB / 410.4 MB, free: 28.52 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.232e-05/0.2279, allocations: 31.8 kB / 410.4 MB, free: 28.49 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002828/0.2282, allocations: 231.3 kB / 410.6 MB, free: 28.27 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.2282, allocations: 4 kB / 410.6 MB, free: 28.26 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.2282, allocations: 4 kB / 410.6 MB, free: 28.26 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.719e-06/0.2282, allocations: 0 / 410.6 MB, free: 28.26 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.000479/0.2287, allocations: 454.7 kB / 411.1 MB, free: 27.76 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.173e-05/0.2287, allocations: 11.89 kB / 411.1 MB, free: 27.75 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.721e-05/0.2288, allocations: 8.844 kB / 411.1 MB, free: 27.74 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001852/0.229, allocations: 200.1 kB / 411.3 MB, free: 27.51 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.246e-05/0.229, allocations: 8.375 kB / 411.3 MB, free: 27.5 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.405e-05/0.229, allocations: 12.12 kB / 411.3 MB, free: 27.49 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001821/0.2292, allocations: 87.38 kB / 411.4 MB, free: 27.39 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.155e-06/0.2292, allocations: 0 / 411.4 MB, free: 27.39 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.336e-05/0.2292, allocations: 11.98 kB / 411.4 MB, free: 27.38 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.559e-06/0.2292, allocations: 0 / 411.4 MB, free: 27.38 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001157/0.2294, allocations: 55.84 kB / 411.5 MB, free: 27.32 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003201/0.2297, allocations: 309.7 kB / 411.8 MB, free: 26.97 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002007/0.2299, allocations: 101.2 kB / 411.9 MB, free: 26.85 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.618e-05/0.23, allocations: 57.75 kB / 411.9 MB, free: 26.79 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.437e-05/0.23, allocations: 3.984 kB / 411.9 MB, free: 26.79 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001569/0.2302, allocations: 134.8 kB / 412.1 MB, free: 26.63 MB / 302.1 MB Notification: Performance of pre-optimization done (n=11): time 1.303e-06/0.2302, allocations: 0 / 412.1 MB, free: 26.63 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.0003704/0.2306, allocations: 223.2 kB / 412.3 MB, free: 26.4 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.923e-05/0.2306, allocations: 110.8 kB / 412.4 MB, free: 26.27 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000105/0.2307, allocations: 136.2 kB / 412.5 MB, free: 26.12 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.527e-05/0.2308, allocations: 41.58 kB / 412.6 MB, free: 26.08 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.622e-05/0.2308, allocations: 92.05 kB / 412.6 MB, free: 25.98 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.163e-05/0.2308, allocations: 31.64 kB / 412.7 MB, free: 25.95 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.295e-05/0.2309, allocations: 21.72 kB / 412.7 MB, free: 25.93 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001036/0.231, allocations: 322.8 kB / 413 MB, free: 25.6 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.68e-05/0.2311, allocations: 35.98 kB / 413 MB, free: 25.57 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.668e-05/0.2312, allocations: 65.69 kB / 413.1 MB, free: 25.5 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001568/0.2313, allocations: 145.1 kB / 413.2 MB, free: 25.34 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.2313, allocations: 0 / 413.2 MB, free: 25.34 MB / 302.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002582/0.2316, allocations: 191.1 kB / 413.4 MB, free: 25.14 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.77e-05/0.2317, allocations: 37.7 kB / 413.5 MB, free: 25.09 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.073e-06/0.2317, allocations: 0 / 413.5 MB, free: 25.09 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.828e-05/0.2317, allocations: 0 / 413.5 MB, free: 25.09 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.988e-05/0.2318, allocations: 19.92 kB / 413.5 MB, free: 25.07 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.741e-06/0.2318, allocations: 0 / 413.5 MB, free: 25.07 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.424e-05/0.2318, allocations: 11.94 kB / 413.5 MB, free: 25.06 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.194e-05/0.2319, allocations: 7.938 kB / 413.5 MB, free: 25.05 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 8.363e-05/0.232, allocations: 159.5 kB / 413.7 MB, free: 24.88 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.378e-05/0.232, allocations: 11.91 kB / 413.7 MB, free: 24.87 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.537e-05/0.232, allocations: 12.36 kB / 413.7 MB, free: 24.86 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.793e-06/0.232, allocations: 0 / 413.7 MB, free: 24.86 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.039e-06/0.232, allocations: 8 kB / 413.7 MB, free: 24.85 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.547e-06/0.232, allocations: 0 / 413.7 MB, free: 24.85 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001076/0.2322, allocations: 201.5 kB / 413.9 MB, free: 24.6 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.2322, allocations: 4 kB / 413.9 MB, free: 24.6 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.801e-05/0.2322, allocations: 12 kB / 413.9 MB, free: 24.59 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.2322, allocations: 336 / 413.9 MB, free: 24.59 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.385e-05/0.2322, allocations: 7.984 kB / 413.9 MB, free: 24.58 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.475e-06/0.2322, allocations: 3.938 kB / 413.9 MB, free: 24.57 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.2323, allocations: 3.938 kB / 413.9 MB, free: 24.57 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002926/0.2326, allocations: 247.5 kB / 414.2 MB, free: 24.3 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.209e-05/0.2326, allocations: 85.02 kB / 414.3 MB, free: 24.2 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.008e-05/0.2326, allocations: 11.98 kB / 414.3 MB, free: 24.19 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.619e-05/0.2327, allocations: 4 kB / 414.3 MB, free: 24.18 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.851e-05/0.2327, allocations: 4 kB / 414.3 MB, free: 24.18 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.625e-05/0.2328, allocations: 11.92 kB / 414.3 MB, free: 24.17 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.841e-05/0.2328, allocations: 110.9 kB / 414.4 MB, free: 24.06 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2328, allocations: 0 / 414.4 MB, free: 24.06 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002702/0.2331, allocations: 71.98 kB / 414.5 MB, free: 23.99 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.0007608/0.2339, allocations: 440.4 kB / 414.9 MB, free: 23.68 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002519/0.2341, allocations: 187.3 kB / 415.1 MB, free: 23.48 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.2341, allocations: 0 / 415.1 MB, free: 23.48 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001137/0.2342, allocations: 143.3 kB / 415.2 MB, free: 23.33 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002081/0.2345, allocations: 17.77 kB / 415.2 MB, free: 23.32 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003625/0.2348, allocations: 239.3 kB / 415.5 MB, free: 23.06 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001437/0.235, allocations: 0.7044 MB / 416.2 MB, free: 22.33 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.415e-05/0.235, allocations: 8 kB / 416.2 MB, free: 22.32 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.942e-05/0.2351, allocations: 19.42 kB / 416.2 MB, free: 22.3 MB / 302.1 MB Notification: Performance of SimCode: time 3.21e-07/0.2351, allocations: 0 / 416.2 MB, free: 22.3 MB / 302.1 MB Notification: Performance of Templates: time 0.004976/0.2401, allocations: 2.535 MB / 418.7 MB, free: 19.77 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 cvode -lv LOG_STATS > ExternData_ExternData.Examples.XMLTest.pipe 2>&1)