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.001167/0.001168, allocations: 108.2 kB / 16.37 MB, free: 5.984 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.001622/0.001622, allocations: 194 kB / 17.31 MB, free: 5.602 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 / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4-master/package.mo): time 0.01332/0.01332, allocations: 2.954 MB / 294.1 MB, free: 11.8 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001549/0.001549, allocations: 59.89 kB / 356.1 MB, free: 13.76 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2418/0.2434, allocations: 50.33 MB / 406.4 MB, free: 32.64 MB / 302.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.XMLTestInnerOuter): time 0.002891/0.2463, allocations: 1.681 MB / 408.1 MB, free: 30.96 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001791/0.2481, allocations: 1.599 MB / 409.7 MB, free: 29.35 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.346e-05/0.2482, allocations: 4 kB / 409.7 MB, free: 29.35 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.0003403/0.2485, allocations: 43.77 kB / 409.8 MB, free: 29.3 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000282/0.2488, allocations: 119.4 kB / 409.9 MB, free: 29.19 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000199/0.249, allocations: 95.78 kB / 410 MB, free: 29.09 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001157/0.2492, allocations: 95.77 kB / 410.1 MB, free: 29 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.567e-05/0.2493, allocations: 16.22 kB / 410.1 MB, free: 28.98 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.318e-05/0.2493, allocations: 51.77 kB / 410.1 MB, free: 28.93 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001412/0.2495, allocations: 35.84 kB / 410.2 MB, free: 28.89 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.651e-05/0.2495, allocations: 8 kB / 410.2 MB, free: 28.89 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002246/0.2497, allocations: 207.8 kB / 410.4 MB, free: 28.68 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 5.128e-05/0.2498, allocations: 23.86 kB / 410.4 MB, free: 28.66 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.108e-05/0.2498, allocations: 43.8 kB / 410.5 MB, free: 28.62 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002716/0.2501, allocations: 249.3 kB / 410.7 MB, free: 28.38 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.2501, allocations: 0 / 410.7 MB, free: 28.38 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.2501, allocations: 0 / 410.7 MB, free: 28.38 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.969e-06/0.2502, allocations: 0 / 410.7 MB, free: 28.38 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.000475/0.2506, allocations: 460.8 kB / 411.1 MB, free: 27.87 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.792e-05/0.2507, allocations: 19.77 kB / 411.2 MB, free: 27.85 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.991e-05/0.2507, allocations: 8.844 kB / 411.2 MB, free: 27.84 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000188/0.2509, allocations: 200.7 kB / 411.4 MB, free: 27.61 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.181e-05/0.2509, allocations: 8.375 kB / 411.4 MB, free: 27.6 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.589e-05/0.251, allocations: 8.125 kB / 411.4 MB, free: 27.59 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001809/0.2511, allocations: 103.3 kB / 411.5 MB, free: 27.48 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.186e-06/0.2512, allocations: 0 / 411.5 MB, free: 27.48 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.138e-05/0.2512, allocations: 0 / 411.5 MB, free: 27.48 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.109e-06/0.2512, allocations: 0 / 411.5 MB, free: 27.48 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001233/0.2513, allocations: 63.91 kB / 411.5 MB, free: 27.42 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003052/0.2516, allocations: 325.7 kB / 411.9 MB, free: 27.05 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002066/0.2518, allocations: 105.2 kB / 412 MB, free: 26.93 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.112e-05/0.2519, allocations: 61.75 kB / 412 MB, free: 26.86 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.407e-05/0.252, allocations: 7.938 kB / 412 MB, free: 26.85 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001678/0.2521, allocations: 150.7 kB / 412.2 MB, free: 26.68 MB / 302.1 MB Notification: Performance of pre-optimization done (n=11): time 1.343e-06/0.2521, allocations: 0 / 412.2 MB, free: 26.68 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004112/0.2526, allocations: 243.2 kB / 412.4 MB, free: 26.43 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.112e-05/0.2526, allocations: 114.8 kB / 412.5 MB, free: 26.29 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.433e-05/0.2527, allocations: 140.6 kB / 412.7 MB, free: 26.15 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.273e-05/0.2527, allocations: 25.7 kB / 412.7 MB, free: 26.12 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.865e-05/0.2528, allocations: 96.05 kB / 412.8 MB, free: 26.02 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.595e-05/0.2528, allocations: 27.64 kB / 412.8 MB, free: 25.99 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.803e-05/0.2528, allocations: 21.72 kB / 412.8 MB, free: 25.96 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.597e-05/0.2529, allocations: 326.8 kB / 413.2 MB, free: 25.64 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.451e-05/0.253, allocations: 39.98 kB / 413.2 MB, free: 25.6 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.25e-05/0.253, allocations: 61.69 kB / 413.3 MB, free: 25.53 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001489/0.2532, allocations: 161.2 kB / 413.4 MB, free: 25.36 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.874e-06/0.2532, allocations: 0 / 413.4 MB, free: 25.36 MB / 302.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002464/0.2535, allocations: 211 kB / 413.6 MB, free: 25.14 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.239e-05/0.2535, allocations: 40.52 kB / 413.7 MB, free: 25.09 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.077e-06/0.2535, allocations: 0 / 413.7 MB, free: 25.09 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.375e-05/0.2535, allocations: 0 / 413.7 MB, free: 25.09 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.545e-05/0.2536, allocations: 19.98 kB / 413.7 MB, free: 25.07 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.89e-06/0.2536, allocations: 0 / 413.7 MB, free: 25.07 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.208e-05/0.2537, allocations: 7.938 kB / 413.7 MB, free: 25.07 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.188e-05/0.2537, allocations: 7.938 kB / 413.7 MB, free: 25.06 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 8.747e-05/0.2538, allocations: 167.2 kB / 413.9 MB, free: 24.88 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.507e-05/0.2538, allocations: 11.91 kB / 413.9 MB, free: 24.87 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.413e-05/0.2538, allocations: 20.3 kB / 413.9 MB, free: 24.85 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-06/0.2538, allocations: 0 / 413.9 MB, free: 24.85 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.86e-06/0.2539, allocations: 0 / 413.9 MB, free: 24.85 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/0.2539, allocations: 11.94 kB / 413.9 MB, free: 24.84 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001115/0.254, allocations: 213.4 kB / 414.1 MB, free: 24.58 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.253e-06/0.254, allocations: 0 / 414.1 MB, free: 24.58 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.507e-05/0.254, allocations: 8 kB / 414.1 MB, free: 24.57 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.573e-06/0.254, allocations: 0 / 414.1 MB, free: 24.57 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.513e-05/0.2541, allocations: 7.984 kB / 414.1 MB, free: 24.56 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.303e-06/0.2541, allocations: 0 / 414.1 MB, free: 24.56 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.2541, allocations: 0 / 414.1 MB, free: 24.56 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002969/0.2544, allocations: 259.5 kB / 414.4 MB, free: 24.28 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.725e-05/0.2544, allocations: 85.02 kB / 414.5 MB, free: 24.18 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.091e-05/0.2545, allocations: 8 kB / 414.5 MB, free: 24.17 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.615e-05/0.2545, allocations: 7.984 kB / 414.5 MB, free: 24.16 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.379e-05/0.2546, allocations: 11.94 kB / 414.5 MB, free: 24.15 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.728e-05/0.2546, allocations: 11.98 kB / 414.5 MB, free: 24.14 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.218e-05/0.2546, allocations: 107.3 kB / 414.6 MB, free: 24.04 MB / 302.1 MB Notification: Performance of sort global known variables: time 8.21e-07/0.2546, allocations: 0 / 414.6 MB, free: 24.04 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000278/0.2549, allocations: 83.92 kB / 414.7 MB, free: 23.95 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.0007626/0.2557, allocations: 439.2 kB / 415.1 MB, free: 23.64 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002667/0.256, allocations: 207.3 kB / 415.3 MB, free: 23.43 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.514e-06/0.256, allocations: 4 kB / 415.3 MB, free: 23.42 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001168/0.2561, allocations: 139.4 kB / 415.5 MB, free: 23.27 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002116/0.2563, allocations: 14.92 kB / 415.5 MB, free: 23.26 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003841/0.2567, allocations: 255.2 kB / 415.7 MB, free: 22.98 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001098/0.2568, allocations: 0.7001 MB / 416.4 MB, free: 22.26 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.209e-05/0.2569, allocations: 8 kB / 416.4 MB, free: 22.25 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.762e-05/0.2569, allocations: 19.42 kB / 416.5 MB, free: 22.23 MB / 302.1 MB Notification: Performance of SimCode: time 2.41e-07/0.2569, allocations: 0 / 416.5 MB, free: 22.23 MB / 302.1 MB Notification: Performance of Templates: time 0.004832/0.2618, allocations: 2.647 MB / 419.1 MB, free: 19.59 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 gbode -lv LOG_STATS > ExternData_ExternData.Examples.XMLTestInnerOuter.pipe 2>&1)