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.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: 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.001672/0.001678, allocations: 109.1 kB / 16.27 MB, free: 6.41 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.001937/0.001937, allocations: 190.3 kB / 17.2 MB, free: 5.953 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.396/1.396, allocations: 222.9 MB / 240.9 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.5/package.mo): time 0.01489/0.01489, allocations: 2.954 MB / 294 MB, free: 11.85 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002938/0.002938, allocations: 67.88 kB / 355.3 MB, free: 14.48 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2078/0.2108, allocations: 50.34 MB / 405.7 MB, free: 32.61 MB / 302.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.XMLTest): time 0.002455/0.2133, allocations: 1.664 MB / 407.3 MB, free: 30.95 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00171/0.215, allocations: 1.6 MB / 408.9 MB, free: 29.34 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.553e-05/0.2151, allocations: 4 kB / 408.9 MB, free: 29.33 MB / 302.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.5/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.0003277/0.2154, allocations: 39.78 kB / 409 MB, free: 29.29 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003323/0.2158, allocations: 123.4 kB / 409.1 MB, free: 29.17 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001995/0.216, allocations: 84.53 kB / 409.2 MB, free: 29.09 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001007/0.2161, allocations: 87.72 kB / 409.3 MB, free: 29 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.256e-05/0.2162, allocations: 24.2 kB / 409.3 MB, free: 28.98 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.758e-05/0.2162, allocations: 39.8 kB / 409.3 MB, free: 28.94 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000156/0.2164, allocations: 31.84 kB / 409.4 MB, free: 28.91 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.653e-05/0.2164, allocations: 4 kB / 409.4 MB, free: 28.9 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002271/0.2167, allocations: 207.8 kB / 409.6 MB, free: 28.7 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.971e-05/0.2167, allocations: 15.94 kB / 409.6 MB, free: 28.68 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.799e-05/0.2168, allocations: 35.8 kB / 409.6 MB, free: 28.65 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002515/0.217, allocations: 229.4 kB / 409.8 MB, free: 28.43 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.217, allocations: 4 kB / 409.8 MB, free: 28.42 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.82e-07/0.2171, allocations: 0 / 409.8 MB, free: 28.42 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.869e-06/0.2171, allocations: 0 / 409.8 MB, free: 28.42 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.0004493/0.2175, allocations: 456.8 kB / 410.3 MB, free: 27.92 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.211e-05/0.2176, allocations: 15.83 kB / 410.3 MB, free: 27.91 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.704e-05/0.2176, allocations: 16.78 kB / 410.3 MB, free: 27.89 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001528/0.2178, allocations: 200.1 kB / 410.5 MB, free: 27.66 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.156e-05/0.2178, allocations: 4.375 kB / 410.5 MB, free: 27.66 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.364e-05/0.2178, allocations: 8.125 kB / 410.5 MB, free: 27.65 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001761/0.218, allocations: 103.3 kB / 410.6 MB, free: 27.54 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.167e-06/0.218, allocations: 0 / 410.6 MB, free: 27.54 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.196e-05/0.218, allocations: 4 kB / 410.6 MB, free: 27.53 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.581e-06/0.218, allocations: 0 / 410.6 MB, free: 27.53 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001176/0.2182, allocations: 51.97 kB / 410.7 MB, free: 27.48 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002995/0.2185, allocations: 313.6 kB / 411 MB, free: 27.12 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002309/0.2187, allocations: 93.28 kB / 411.1 MB, free: 27.01 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.393e-05/0.2188, allocations: 61.73 kB / 411.1 MB, free: 26.95 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.376e-05/0.2188, allocations: 7.938 kB / 411.2 MB, free: 26.94 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00022/0.2191, allocations: 134.8 kB / 411.3 MB, free: 26.78 MB / 302.1 MB Notification: Performance of pre-optimization done (n=11): time 1.162e-06/0.2191, allocations: 0 / 411.3 MB, free: 26.78 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.0003761/0.2194, allocations: 219.2 kB / 411.5 MB, free: 26.55 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.861e-05/0.2195, allocations: 110.8 kB / 411.6 MB, free: 26.42 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.548e-05/0.2196, allocations: 142 kB / 411.7 MB, free: 26.28 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.292e-05/0.2196, allocations: 33.7 kB / 411.8 MB, free: 26.24 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.878e-05/0.2196, allocations: 88.05 kB / 411.9 MB, free: 26.15 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.626e-05/0.2197, allocations: 35.58 kB / 411.9 MB, free: 26.11 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.828e-05/0.2197, allocations: 21.72 kB / 411.9 MB, free: 26.09 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.243e-05/0.2198, allocations: 322.8 kB / 412.2 MB, free: 25.76 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.167e-05/0.2198, allocations: 43.97 kB / 412.3 MB, free: 25.72 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.84e-05/0.2199, allocations: 57.64 kB / 412.3 MB, free: 25.66 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001388/0.2201, allocations: 141.1 kB / 412.5 MB, free: 25.5 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.2201, allocations: 0 / 412.5 MB, free: 25.5 MB / 302.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002291/0.2203, allocations: 195 kB / 412.7 MB, free: 25.3 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.585e-05/0.2203, allocations: 41.69 kB / 412.7 MB, free: 25.25 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.288e-06/0.2204, allocations: 0 / 412.7 MB, free: 25.25 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.429e-05/0.2204, allocations: 0 / 412.7 MB, free: 25.25 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.621e-05/0.2204, allocations: 16 kB / 412.7 MB, free: 25.23 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.859e-06/0.2205, allocations: 4 kB / 412.7 MB, free: 25.23 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.294e-05/0.2205, allocations: 11.92 kB / 412.7 MB, free: 25.22 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.017e-05/0.2205, allocations: 11.88 kB / 412.7 MB, free: 25.21 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.724e-05/0.2206, allocations: 159.6 kB / 412.9 MB, free: 25.04 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.405e-05/0.2206, allocations: 11.91 kB / 412.9 MB, free: 25.02 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.435e-05/0.2207, allocations: 8.375 kB / 412.9 MB, free: 25.01 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.643e-06/0.2207, allocations: 0 / 412.9 MB, free: 25.01 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.489e-06/0.2207, allocations: 4 kB / 412.9 MB, free: 25.01 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.655e-06/0.2207, allocations: 336 / 412.9 MB, free: 25.01 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000105/0.2208, allocations: 205.5 kB / 413.1 MB, free: 24.76 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.2208, allocations: 4 kB / 413.1 MB, free: 24.75 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.758e-05/0.2209, allocations: 11.98 kB / 413.1 MB, free: 24.74 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.894e-06/0.2209, allocations: 0 / 413.1 MB, free: 24.74 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.175e-05/0.2209, allocations: 4 kB / 413.1 MB, free: 24.74 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.2209, allocations: 0 / 413.1 MB, free: 24.74 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.2209, allocations: 3.984 kB / 413.1 MB, free: 24.73 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002666/0.2212, allocations: 251.4 kB / 413.4 MB, free: 24.46 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.303e-05/0.2212, allocations: 89 kB / 413.5 MB, free: 24.36 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.988e-05/0.2212, allocations: 8 kB / 413.5 MB, free: 24.35 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.62e-05/0.2213, allocations: 4 kB / 413.5 MB, free: 24.34 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.629e-05/0.2214, allocations: 7.984 kB / 413.5 MB, free: 24.34 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.659e-05/0.2214, allocations: 11.94 kB / 413.5 MB, free: 24.32 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.837e-05/0.2214, allocations: 103.3 kB / 413.6 MB, free: 24.22 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2214, allocations: 0 / 413.6 MB, free: 24.22 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003059/0.2217, allocations: 71.98 kB / 413.7 MB, free: 24.15 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.001129/0.2229, allocations: 439.9 kB / 414.1 MB, free: 23.82 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002507/0.2231, allocations: 191.3 kB / 414.3 MB, free: 23.62 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.2232, allocations: 0 / 414.3 MB, free: 23.62 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000109/0.2233, allocations: 143.3 kB / 414.4 MB, free: 23.47 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002106/0.2235, allocations: 16.36 kB / 414.5 MB, free: 23.46 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003487/0.2238, allocations: 249 kB / 414.7 MB, free: 23.18 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.929e-05/0.2239, allocations: 0.6924 MB / 415.4 MB, free: 22.46 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.835e-05/0.224, allocations: 15.42 kB / 415.4 MB, free: 22.45 MB / 302.1 MB Notification: Performance of SimCode: time 2.2e-07/0.224, allocations: 0 / 415.4 MB, free: 22.45 MB / 302.1 MB Notification: Performance of Templates: time 0.003941/0.2279, allocations: 2.594 MB / 418 MB, free: 19.86 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 -lv LOG_STATS > ExternData_ExternData.Examples.XMLTest.pipe 2>&1)