Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ExternData_ExternData.Examples.XMLTestInnerOuter.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.XMLTestInnerOuter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ExternData_ExternData.Examples.XMLTestInnerOuter") translateModel(ExternData.Examples.XMLTestInnerOuter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ExternData_ExternData.Examples.XMLTestInnerOuter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001272/0.001272, allocations: 106.6 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.001035/0.001035, allocations: 190.5 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.309/1.309, allocations: 222.9 MB / 241 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/package.mo): time 0.0122/0.0122, allocations: 2.954 MB / 294.1 MB, free: 11.78 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001266/0.001266, allocations: 59.91 kB / 356.1 MB, free: 13.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2187/0.22, allocations: 50.33 MB / 406.4 MB, free: 32.46 MB / 302.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.XMLTestInnerOuter): time 0.002631/0.2227, allocations: 1.684 MB / 408.1 MB, free: 30.79 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001789/0.2245, allocations: 1.596 MB / 409.7 MB, free: 29.18 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.119e-05/0.2246, allocations: 7.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.0003013/0.2249, allocations: 45.86 kB / 409.8 MB, free: 29.13 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000282/0.2252, allocations: 115.5 kB / 409.9 MB, free: 29.02 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001946/0.2254, allocations: 96.27 kB / 410 MB, free: 28.92 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001227/0.2255, allocations: 107.8 kB / 410.1 MB, free: 28.82 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.516e-05/0.2256, allocations: 8.234 kB / 410.1 MB, free: 28.8 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.312e-05/0.2257, allocations: 51.77 kB / 410.1 MB, free: 28.75 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001451/0.2258, allocations: 35.84 kB / 410.2 MB, free: 28.72 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.184e-05/0.2259, allocations: 8 kB / 410.2 MB, free: 28.71 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002542/0.2261, allocations: 207.8 kB / 410.4 MB, free: 28.51 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.26e-05/0.2262, allocations: 23.91 kB / 410.4 MB, free: 28.48 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.552e-05/0.2262, allocations: 43.73 kB / 410.4 MB, free: 28.44 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002749/0.2265, allocations: 243.3 kB / 410.7 MB, free: 28.21 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.858e-06/0.2265, allocations: 0 / 410.7 MB, free: 28.21 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.373e-06/0.2265, allocations: 0 / 410.7 MB, free: 28.21 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.062e-05/0.2266, allocations: 4 kB / 410.7 MB, free: 28.2 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.0004716/0.227, allocations: 458.7 kB / 411.1 MB, free: 27.7 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.055e-05/0.2271, allocations: 11.89 kB / 411.1 MB, free: 27.69 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.088e-05/0.2271, allocations: 8.844 kB / 411.2 MB, free: 27.68 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001802/0.2273, allocations: 208.9 kB / 411.4 MB, free: 27.44 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.125e-05/0.2273, allocations: 8.375 kB / 411.4 MB, free: 27.43 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.451e-05/0.2273, allocations: 8.125 kB / 411.4 MB, free: 27.43 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001887/0.2275, allocations: 103.3 kB / 411.5 MB, free: 27.31 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.005e-06/0.2276, allocations: 0 / 411.5 MB, free: 27.31 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.352e-05/0.2276, allocations: 8 kB / 411.5 MB, free: 27.3 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.668e-06/0.2276, allocations: 0 / 411.5 MB, free: 27.3 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001287/0.2277, allocations: 71.83 kB / 411.6 MB, free: 27.23 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003013/0.228, allocations: 321.6 kB / 411.9 MB, free: 26.87 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002065/0.2283, allocations: 105.2 kB / 412 MB, free: 26.75 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.785e-05/0.2283, allocations: 57.75 kB / 412 MB, free: 26.68 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.314e-05/0.2284, allocations: 0 / 412 MB, free: 26.68 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001601/0.2285, allocations: 146.8 kB / 412.2 MB, free: 26.52 MB / 302.1 MB Notification: Performance of pre-optimization done (n=11): time 1.102e-06/0.2285, allocations: 0 / 412.2 MB, free: 26.52 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.0003977/0.2289, allocations: 251.3 kB / 412.4 MB, free: 26.26 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.537e-05/0.229, allocations: 114.7 kB / 412.5 MB, free: 26.12 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.205e-05/0.2291, allocations: 137.8 kB / 412.7 MB, free: 25.98 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.183e-05/0.2291, allocations: 29.64 kB / 412.7 MB, free: 25.94 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.553e-05/0.2291, allocations: 96.05 kB / 412.8 MB, free: 25.84 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.463e-05/0.2292, allocations: 27.64 kB / 412.8 MB, free: 25.82 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.967e-05/0.2292, allocations: 25.72 kB / 412.8 MB, free: 25.79 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.277e-05/0.2293, allocations: 326.8 kB / 413.2 MB, free: 25.46 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.019e-05/0.2294, allocations: 39.98 kB / 413.2 MB, free: 25.42 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.23e-05/0.2294, allocations: 53.69 kB / 413.3 MB, free: 25.36 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001503/0.2296, allocations: 161.1 kB / 413.4 MB, free: 25.18 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.2296, allocations: 0 / 413.4 MB, free: 25.18 MB / 302.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002484/0.2299, allocations: 207.1 kB / 413.6 MB, free: 24.97 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.586e-05/0.2299, allocations: 33.7 kB / 413.6 MB, free: 24.93 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.298e-06/0.2299, allocations: 3.938 kB / 413.6 MB, free: 24.93 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.296e-05/0.2299, allocations: 4 kB / 413.7 MB, free: 24.92 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.844e-05/0.23, allocations: 11.98 kB / 413.7 MB, free: 24.91 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.889e-06/0.23, allocations: 0 / 413.7 MB, free: 24.91 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.33e-05/0.2301, allocations: 11.94 kB / 413.7 MB, free: 24.9 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.189e-05/0.2301, allocations: 11.94 kB / 413.7 MB, free: 24.89 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 (component.timeTable.nextEventScaled,component.timeTable.nextEvent,$PRE.component.timeTable.nextEvent,component.timeTable.last,component.timeTable.b,component.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.641e-05/0.2302, allocations: 163.5 kB / 413.8 MB, free: 24.71 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.412e-05/0.2302, allocations: 7.906 kB / 413.9 MB, free: 24.7 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.288e-05/0.2302, allocations: 16.36 kB / 413.9 MB, free: 24.68 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.724e-06/0.2302, allocations: 0 / 413.9 MB, free: 24.68 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/0.2302, allocations: 0 / 413.9 MB, free: 24.68 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.117e-06/0.2302, allocations: 4 kB / 413.9 MB, free: 24.68 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001027/0.2304, allocations: 217.4 kB / 414.1 MB, free: 24.42 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.2304, allocations: 0 / 414.1 MB, free: 24.42 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.92e-05/0.2304, allocations: 16 kB / 414.1 MB, free: 24.4 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.545e-06/0.2304, allocations: 336 / 414.1 MB, free: 24.4 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.399e-05/0.2305, allocations: 11.92 kB / 414.1 MB, free: 24.39 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.054e-06/0.2305, allocations: 0 / 414.1 MB, free: 24.39 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.2305, allocations: 3.938 kB / 414.1 MB, free: 24.39 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003187/0.2308, allocations: 263.5 kB / 414.4 MB, free: 24.1 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.668e-05/0.2308, allocations: 89.02 kB / 414.5 MB, free: 24 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.752e-05/0.2309, allocations: 4 kB / 414.5 MB, free: 23.99 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.807e-05/0.2309, allocations: 11.98 kB / 414.5 MB, free: 23.98 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.699e-05/0.231, allocations: 4 kB / 414.5 MB, free: 23.98 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.698e-05/0.231, allocations: 11.92 kB / 414.5 MB, free: 23.96 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.23e-05/0.2311, allocations: 111.3 kB / 414.6 MB, free: 23.86 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2311, allocations: 0 / 414.6 MB, free: 23.86 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002811/0.2314, allocations: 71.98 kB / 414.7 MB, free: 23.79 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,component.timeTable.a,component.timeTable.b,component.timeTable.last,component.timeTable.nextEvent,component.timeTable.nextEventScaled) * Number of discrete states: 6 (component.timeTable.nextEvent,component.timeTable.last,component.timeTable.nextEventScaled,component.timeTable.b,component.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.0007624/0.2321, allocations: 441.5 kB / 415.1 MB, free: 23.47 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002701/0.2324, allocations: 203.3 kB / 415.3 MB, free: 23.26 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.2324, allocations: 0 / 415.3 MB, free: 23.26 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001189/0.2325, allocations: 147.6 kB / 415.4 MB, free: 23.11 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000213/0.2328, allocations: 17.36 kB / 415.5 MB, free: 23.09 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00037/0.2331, allocations: 255.3 kB / 415.7 MB, free: 22.82 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001027/0.2333, allocations: 0.7037 MB / 416.4 MB, free: 22.09 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.327e-05/0.2333, allocations: 7.984 kB / 416.4 MB, free: 22.08 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.676e-05/0.2333, allocations: 19.42 kB / 416.4 MB, free: 22.06 MB / 302.1 MB Notification: Performance of SimCode: time 2.5e-07/0.2333, allocations: 4 kB / 416.4 MB, free: 22.06 MB / 302.1 MB Notification: Performance of Templates: time 0.004661/0.238, allocations: 2.635 MB / 419.1 MB, free: 19.43 MB / 302.1 MB make -j1 -f ExternData_ExternData.Examples.XMLTestInnerOuter.makefile (rm -f ExternData_ExternData.Examples.XMLTestInnerOuter.pipe ; mkfifo ExternData_ExternData.Examples.XMLTestInnerOuter.pipe ; head -c 1048576 < ExternData_ExternData.Examples.XMLTestInnerOuter.pipe >> ../files/ExternData_ExternData.Examples.XMLTestInnerOuter.sim & ./ExternData_ExternData.Examples.XMLTestInnerOuter -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > ExternData_ExternData.Examples.XMLTestInnerOuter.pipe 2>&1)