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/package.mo", uses=false) Using package ExternData with version 3.0.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4/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.005487/0.005487, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.001374/0.001373, allocations: 200.9 kB / 16.68 MB, free: 5.969 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.401/1.401, allocations: 222.9 MB / 240.4 MB, free: 4.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4/package.mo): time 0.1373/0.1373, allocations: 2.939 MB / 293.5 MB, free: 3.152 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001359/0.001359, allocations: 63.89 kB / 406.2 MB, free: 164 kB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2781/0.2795, allocations: 50.34 MB / 456.6 MB, free: 28.2 MB / 366.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.XMLTestInnerOuter): time 0.002272/0.2818, allocations: 1.69 MB / 458.3 MB, free: 27.04 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.001568/0.2834, allocations: 1.609 MB / 459.9 MB, free: 25.91 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.692e-05/0.2835, allocations: 3.938 kB / 459.9 MB, free: 25.91 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4/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.00028/0.2837, allocations: 39.11 kB / 459.9 MB, free: 25.89 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002758/0.284, allocations: 121.1 kB / 460 MB, free: 25.82 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001985/0.2842, allocations: 93.09 kB / 460.1 MB, free: 25.78 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001165/0.2844, allocations: 101.2 kB / 460.2 MB, free: 25.73 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.985e-05/0.2845, allocations: 17.66 kB / 460.3 MB, free: 25.72 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.161e-05/0.2845, allocations: 46.12 kB / 460.3 MB, free: 25.7 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001398/0.2847, allocations: 37.95 kB / 460.3 MB, free: 25.68 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 1.742e-05/0.2847, allocations: 9.406 kB / 460.3 MB, free: 25.68 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002265/0.2849, allocations: 204.7 kB / 460.5 MB, free: 25.61 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 5.05e-05/0.285, allocations: 20.23 kB / 460.6 MB, free: 25.6 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 5.461e-05/0.2851, allocations: 47.98 kB / 460.6 MB, free: 25.57 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002733/0.2853, allocations: 245.4 kB / 460.8 MB, free: 25.48 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.2853, allocations: 0 / 460.8 MB, free: 25.48 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.2853, allocations: 0 / 460.8 MB, free: 25.48 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.528e-06/0.2854, allocations: 0 / 460.8 MB, free: 25.48 MB / 366.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.000472/0.2858, allocations: 464.5 kB / 461.3 MB, free: 25.03 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.107e-05/0.2859, allocations: 13.61 kB / 461.3 MB, free: 25.03 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.395e-05/0.2859, allocations: 11.3 kB / 461.3 MB, free: 25.02 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002001/0.2861, allocations: 207.2 kB / 461.5 MB, free: 24.8 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.121e-05/0.2861, allocations: 4.375 kB / 461.5 MB, free: 24.8 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.748e-05/0.2862, allocations: 11.25 kB / 461.5 MB, free: 24.79 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001825/0.2864, allocations: 101.5 kB / 461.6 MB, free: 24.73 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.293e-06/0.2864, allocations: 0 / 461.6 MB, free: 24.73 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.135e-05/0.2864, allocations: 3.438 kB / 461.6 MB, free: 24.73 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.178e-06/0.2864, allocations: 0 / 461.6 MB, free: 24.73 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000121/0.2865, allocations: 66.14 kB / 461.7 MB, free: 24.7 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003006/0.2868, allocations: 327.5 kB / 462 MB, free: 24.38 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002149/0.2871, allocations: 104.8 kB / 462.1 MB, free: 24.31 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.114e-05/0.2872, allocations: 61.83 kB / 462.2 MB, free: 24.28 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.486e-06/0.2872, allocations: 4 kB / 462.2 MB, free: 24.27 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001751/0.2874, allocations: 142.6 kB / 462.3 MB, free: 24.16 MB / 366.1 MB Notification: Performance of pre-optimization done (n=11): time 1.273e-06/0.2874, allocations: 0 / 462.3 MB, free: 24.16 MB / 366.1 MB Notification: Performance of matching and sorting (n=11): time 0.0003999/0.2878, allocations: 246.2 kB / 462.6 MB, free: 24.04 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.897e-05/0.2878, allocations: 114.1 kB / 462.7 MB, free: 23.91 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.45e-05/0.2879, allocations: 137.7 kB / 462.8 MB, free: 23.79 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.222e-05/0.2879, allocations: 32.98 kB / 462.9 MB, free: 23.76 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.783e-05/0.288, allocations: 90.5 kB / 462.9 MB, free: 23.67 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.86e-05/0.288, allocations: 34.34 kB / 463 MB, free: 23.64 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.114e-05/0.288, allocations: 23.28 kB / 463 MB, free: 23.62 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 5.038e-05/0.2881, allocations: 325.3 kB / 463.3 MB, free: 23.3 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.722e-05/0.2882, allocations: 44.83 kB / 463.4 MB, free: 23.29 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.505e-05/0.2883, allocations: 57.59 kB / 463.4 MB, free: 23.26 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001508/0.2884, allocations: 163 kB / 463.6 MB, free: 23.14 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.2884, allocations: 3.188 kB / 463.6 MB, free: 23.14 MB / 366.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002435/0.2887, allocations: 198.6 kB / 463.8 MB, free: 23.03 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.845e-05/0.2887, allocations: 35.62 kB / 463.8 MB, free: 23 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.669e-06/0.2887, allocations: 7.188 kB / 463.8 MB, free: 22.99 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.34e-05/0.2887, allocations: 0 / 463.8 MB, free: 22.99 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.628e-05/0.2888, allocations: 20.92 kB / 463.8 MB, free: 22.98 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.508e-06/0.2888, allocations: 0 / 463.8 MB, free: 22.98 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.139e-05/0.2889, allocations: 13.98 kB / 463.9 MB, free: 22.98 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.271e-05/0.2889, allocations: 18.25 kB / 463.9 MB, free: 22.96 MB / 366.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.861e-05/0.289, allocations: 160.8 kB / 464 MB, free: 22.81 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.29e-05/0.289, allocations: 10.14 kB / 464 MB, free: 22.8 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.227e-05/0.289, allocations: 11.56 kB / 464 MB, free: 22.8 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.713e-06/0.2891, allocations: 0 / 464 MB, free: 22.8 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.228e-06/0.2891, allocations: 3.344 kB / 464 MB, free: 22.8 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.645e-06/0.2891, allocations: 4 kB / 464.1 MB, free: 22.79 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001107/0.2892, allocations: 209.2 kB / 464.3 MB, free: 22.58 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-06/0.2892, allocations: 0 / 464.3 MB, free: 22.58 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.701e-05/0.2892, allocations: 13.23 kB / 464.3 MB, free: 22.58 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.424e-06/0.2893, allocations: 0 / 464.3 MB, free: 22.58 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.49e-05/0.2893, allocations: 11.12 kB / 464.3 MB, free: 22.57 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.272e-06/0.2893, allocations: 0 / 464.3 MB, free: 22.57 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.2893, allocations: 3.219 kB / 464.3 MB, free: 22.57 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002906/0.2896, allocations: 255.8 kB / 464.5 MB, free: 22.41 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.581e-05/0.2896, allocations: 91.72 kB / 464.6 MB, free: 22.31 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.522e-05/0.2896, allocations: 3.25 kB / 464.6 MB, free: 22.31 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.316e-05/0.2897, allocations: 6.5 kB / 464.6 MB, free: 22.31 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.754e-05/0.2897, allocations: 10.28 kB / 464.6 MB, free: 22.31 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.665e-05/0.2898, allocations: 11.03 kB / 464.7 MB, free: 22.3 MB / 366.1 MB Notification: Performance of sorting global known variables: time 5.179e-05/0.2898, allocations: 110.8 kB / 464.8 MB, free: 22.22 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.2898, allocations: 4 kB / 464.8 MB, free: 22.21 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002831/0.2901, allocations: 81.66 kB / 464.8 MB, free: 22.19 MB / 366.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.0007547/0.2909, allocations: 431.6 kB / 465.3 MB, free: 21.97 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002919/0.2912, allocations: 204.6 kB / 465.5 MB, free: 21.85 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.2912, allocations: 4 kB / 465.5 MB, free: 21.85 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001204/0.2913, allocations: 146.8 kB / 465.6 MB, free: 21.74 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002128/0.2915, allocations: 23.38 kB / 465.6 MB, free: 21.73 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003999/0.292, allocations: 251 kB / 465.9 MB, free: 21.55 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001141/0.2921, allocations: 0.7012 MB / 466.6 MB, free: 20.85 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.292e-05/0.2921, allocations: 13.97 kB / 466.6 MB, free: 20.85 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.764e-05/0.2922, allocations: 10.91 kB / 466.6 MB, free: 20.84 MB / 366.1 MB Notification: Performance of SimCode: time 2.4e-07/0.2922, allocations: 3.219 kB / 466.6 MB, free: 20.84 MB / 366.1 MB Notification: Performance of Templates: time 0.006077/0.2982, allocations: 2.653 MB / 469.3 MB, free: 20.56 MB / 366.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 -lv LOG_STATS > ExternData_ExternData.Examples.XMLTestInnerOuter.pipe 2>&1)