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.00144/0.001441, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001233/0.001233, allocations: 196.7 kB / 16.53 MB, free: 6.699 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.371/1.371, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4/package.mo): time 0.161/0.161, allocations: 2.938 MB / 293.3 MB, free: 3.219 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001367/0.001367, allocations: 67.89 kB / 354.7 MB, free: 3.758 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09535/0.09674, allocations: 50.35 MB / 405 MB, free: 1.363 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.XMLTestInnerOuter): time 0.003535/0.1003, allocations: 1.665 MB / 406.7 MB, free: 15.69 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002301/0.1026, allocations: 1.608 MB / 408.3 MB, free: 14.07 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.555e-05/0.1027, allocations: 0 / 408.3 MB, free: 14.07 MB / 350.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.0003302/0.1031, allocations: 35.78 kB / 408.3 MB, free: 14.04 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003978/0.1035, allocations: 131.4 kB / 408.4 MB, free: 13.91 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000272/0.1038, allocations: 87.78 kB / 408.5 MB, free: 13.82 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001476/0.1039, allocations: 95.83 kB / 408.6 MB, free: 13.73 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.932e-05/0.104, allocations: 20.2 kB / 408.6 MB, free: 13.71 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.508e-05/0.1041, allocations: 43.8 kB / 408.7 MB, free: 13.66 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001744/0.1043, allocations: 39.83 kB / 408.7 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.346e-05/0.1044, allocations: 8 kB / 408.7 MB, free: 13.62 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003043/0.1047, allocations: 199.8 kB / 408.9 MB, free: 13.42 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.548e-05/0.1047, allocations: 27.91 kB / 409 MB, free: 13.39 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.104e-05/0.1048, allocations: 51.73 kB / 409 MB, free: 13.34 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003676/0.1052, allocations: 239.7 kB / 409.2 MB, free: 13.11 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.1052, allocations: 0 / 409.2 MB, free: 13.11 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.146e-06/0.1052, allocations: 0 / 409.2 MB, free: 13.11 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.376e-06/0.1052, allocations: 0 / 409.2 MB, free: 13.11 MB / 350.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.0005795/0.1058, allocations: 464.8 kB / 409.7 MB, free: 12.6 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.188e-05/0.1058, allocations: 11.89 kB / 409.7 MB, free: 12.59 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.436e-05/0.1059, allocations: 12.84 kB / 409.7 MB, free: 12.58 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001994/0.1061, allocations: 200 kB / 409.9 MB, free: 12.34 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.518e-05/0.1061, allocations: 8.375 kB / 409.9 MB, free: 12.34 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.886e-05/0.1062, allocations: 12.12 kB / 409.9 MB, free: 12.32 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002127/0.1064, allocations: 107.3 kB / 410 MB, free: 12.21 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.055e-06/0.1064, allocations: 0 / 410 MB, free: 12.21 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.245e-05/0.1064, allocations: 3.938 kB / 410 MB, free: 12.2 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.207e-06/0.1064, allocations: 0 / 410 MB, free: 12.2 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001541/0.1066, allocations: 63.91 kB / 410.1 MB, free: 12.14 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003812/0.107, allocations: 321.7 kB / 410.4 MB, free: 11.77 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000245/0.1072, allocations: 105.2 kB / 410.5 MB, free: 11.65 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000112/0.1074, allocations: 69.73 kB / 410.6 MB, free: 11.58 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.095e-05/0.1074, allocations: 0 / 410.6 MB, free: 11.58 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002686/0.1077, allocations: 138.8 kB / 410.7 MB, free: 11.42 MB / 350.1 MB Notification: Performance of pre-optimization done (n=11): time 1.202e-06/0.1077, allocations: 0 / 410.7 MB, free: 11.42 MB / 350.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004868/0.1082, allocations: 243.2 kB / 411 MB, free: 11.17 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.348e-05/0.1082, allocations: 118.8 kB / 411.1 MB, free: 11.03 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001179/0.1084, allocations: 141.7 kB / 411.2 MB, free: 10.88 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.399e-05/0.1084, allocations: 25.7 kB / 411.2 MB, free: 10.85 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.262e-05/0.1084, allocations: 96.23 kB / 411.3 MB, free: 10.75 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.59e-05/0.1085, allocations: 35.53 kB / 411.4 MB, free: 10.71 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.679e-05/0.1085, allocations: 21.72 kB / 411.4 MB, free: 10.69 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.607e-05/0.1086, allocations: 326.8 kB / 411.7 MB, free: 10.36 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.993e-05/0.1087, allocations: 39.98 kB / 411.7 MB, free: 10.32 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.29e-05/0.1088, allocations: 61.69 kB / 411.8 MB, free: 10.25 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001989/0.109, allocations: 157.3 kB / 412 MB, free: 10.08 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.1091, allocations: 0 / 412 MB, free: 10.08 MB / 350.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0003115/0.1094, allocations: 203.2 kB / 412.2 MB, free: 9.871 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.835e-05/0.1094, allocations: 37.7 kB / 412.2 MB, free: 9.828 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.492e-06/0.1094, allocations: 3.984 kB / 412.2 MB, free: 9.824 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.258e-05/0.1094, allocations: 8 kB / 412.2 MB, free: 9.816 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.281e-05/0.1095, allocations: 11.94 kB / 412.2 MB, free: 9.805 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.059e-06/0.1095, allocations: 0 / 412.2 MB, free: 9.805 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.925e-05/0.1096, allocations: 11.84 kB / 412.2 MB, free: 9.793 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.513e-05/0.1096, allocations: 15.86 kB / 412.2 MB, free: 9.777 MB / 350.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 0.0001171/0.1098, allocations: 159.5 kB / 412.4 MB, free: 9.605 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.099e-05/0.1098, allocations: 11.89 kB / 412.4 MB, free: 9.594 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.456e-05/0.1098, allocations: 12.38 kB / 412.4 MB, free: 9.582 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.924e-06/0.1098, allocations: 0 / 412.4 MB, free: 9.582 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.482e-06/0.1098, allocations: 8 kB / 412.4 MB, free: 9.574 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.645e-06/0.1098, allocations: 0 / 412.4 MB, free: 9.574 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000153/0.11, allocations: 209.5 kB / 412.6 MB, free: 9.32 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.11, allocations: 0 / 412.6 MB, free: 9.32 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.692e-05/0.1101, allocations: 11.98 kB / 412.7 MB, free: 9.309 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/0.1101, allocations: 0 / 412.7 MB, free: 9.309 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.432e-05/0.1101, allocations: 8 kB / 412.7 MB, free: 9.301 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.878e-06/0.1101, allocations: 0 / 412.7 MB, free: 9.301 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.1101, allocations: 7.938 kB / 412.7 MB, free: 9.293 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003615/0.1105, allocations: 263.5 kB / 412.9 MB, free: 9.008 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.525e-05/0.1106, allocations: 92.94 kB / 413 MB, free: 8.898 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.25e-05/0.1106, allocations: 4 kB / 413 MB, free: 8.895 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.091e-05/0.1107, allocations: 4 kB / 413 MB, free: 8.891 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.303e-05/0.1107, allocations: 11.98 kB / 413 MB, free: 8.879 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.869e-05/0.1107, allocations: 11.88 kB / 413 MB, free: 8.867 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.325e-05/0.1108, allocations: 109.9 kB / 413.2 MB, free: 8.762 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1108, allocations: 4 kB / 413.2 MB, free: 8.758 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00032/0.1111, allocations: 75.98 kB / 413.2 MB, free: 8.684 MB / 350.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.0008635/0.112, allocations: 427.5 kB / 413.6 MB, free: 8.371 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000324/0.1124, allocations: 207.3 kB / 413.9 MB, free: 8.156 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.1124, allocations: 0 / 413.9 MB, free: 8.156 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001594/0.1125, allocations: 147.2 kB / 414 MB, free: 8 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002234/0.1128, allocations: 19.92 kB / 414 MB, free: 7.98 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004489/0.1132, allocations: 255.3 kB / 414.3 MB, free: 7.699 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000302/0.1135, allocations: 0.7002 MB / 415 MB, free: 6.973 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.197e-05/0.1136, allocations: 4 kB / 415 MB, free: 6.969 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.707e-05/0.1136, allocations: 19.42 kB / 415 MB, free: 6.949 MB / 350.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1136, allocations: 0 / 415 MB, free: 6.949 MB / 350.1 MB Notification: Performance of Templates: time 0.006049/0.1197, allocations: 2.644 MB / 417.6 MB, free: 4.316 MB / 350.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)