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.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.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.007829/0.00783, allocations: 100.8 kB / 15.73 MB, free: 5.992 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.00165/0.00165, allocations: 198.8 kB / 16.68 MB, free: 5.918 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.356/1.356, allocations: 222.9 MB / 240.4 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ExternData 3.0.4/package.mo): time 0.01347/0.01347, allocations: 2.953 MB / 293.5 MB, free: 11.76 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001264/0.001264, allocations: 67.91 kB / 406.3 MB, free: 28.74 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09249/0.09377, allocations: 50.32 MB / 456.6 MB, free: 10.37 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ExternData.Examples.XMLTest): time 0.002879/0.09669, allocations: 1.676 MB / 458.3 MB, free: 8.691 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002247/0.09898, allocations: 1.604 MB / 459.9 MB, free: 7.078 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.163e-05/0.09906, allocations: 0 / 459.9 MB, free: 7.078 MB / 334.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.000329/0.0994, allocations: 39.8 kB / 459.9 MB, free: 7.039 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003283/0.09974, allocations: 127.4 kB / 460 MB, free: 6.914 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002319/0.09998, allocations: 83.78 kB / 460.1 MB, free: 6.832 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000135/0.1001, allocations: 91.77 kB / 460.2 MB, free: 6.742 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.313e-05/0.1002, allocations: 20.14 kB / 460.2 MB, free: 6.719 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.301e-05/0.1003, allocations: 39.8 kB / 460.3 MB, free: 6.68 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001784/0.1005, allocations: 43.83 kB / 460.3 MB, free: 6.637 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.083e-05/0.1005, allocations: 4 kB / 460.3 MB, free: 6.633 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003034/0.1008, allocations: 199.8 kB / 460.5 MB, free: 6.438 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 5.593e-05/0.1009, allocations: 19.94 kB / 460.5 MB, free: 6.418 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.435e-05/0.101, allocations: 39.73 kB / 460.6 MB, free: 6.379 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003251/0.1013, allocations: 227.5 kB / 460.8 MB, free: 6.156 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.017e-06/0.1013, allocations: 0 / 460.8 MB, free: 6.156 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.1013, allocations: 0 / 460.8 MB, free: 6.156 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.192e-06/0.1013, allocations: 0 / 460.8 MB, free: 6.156 MB / 334.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.0005969/0.1019, allocations: 460.8 kB / 461.2 MB, free: 5.652 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.622e-05/0.102, allocations: 11.89 kB / 461.2 MB, free: 5.641 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.641e-05/0.102, allocations: 12.84 kB / 461.3 MB, free: 5.629 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002392/0.1023, allocations: 192.1 kB / 461.4 MB, free: 5.402 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.197e-05/0.1023, allocations: 8.375 kB / 461.5 MB, free: 5.395 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.05e-05/0.1023, allocations: 12.12 kB / 461.5 MB, free: 5.383 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002048/0.1025, allocations: 87.38 kB / 461.5 MB, free: 5.285 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.195e-06/0.1025, allocations: 0 / 461.5 MB, free: 5.285 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.173e-05/0.1026, allocations: 4 kB / 461.6 MB, free: 5.281 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.759e-06/0.1026, allocations: 0 / 461.6 MB, free: 5.281 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001419/0.1027, allocations: 55.91 kB / 461.6 MB, free: 5.227 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00039/0.1031, allocations: 313.6 kB / 461.9 MB, free: 4.867 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000253/0.1034, allocations: 97.12 kB / 462 MB, free: 4.754 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001089/0.1035, allocations: 61.83 kB / 462.1 MB, free: 4.688 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.131e-05/0.1035, allocations: 4 kB / 462.1 MB, free: 4.684 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002117/0.1037, allocations: 142.7 kB / 462.2 MB, free: 4.52 MB / 334.1 MB Notification: Performance of pre-optimization done (n=11): time 2.806e-06/0.1038, allocations: 0 / 462.2 MB, free: 4.52 MB / 334.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004407/0.1042, allocations: 223.2 kB / 462.4 MB, free: 4.289 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.725e-05/0.1043, allocations: 114.8 kB / 462.5 MB, free: 4.152 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001231/0.1044, allocations: 149.4 kB / 462.7 MB, free: 4 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.588e-05/0.1044, allocations: 25.7 kB / 462.7 MB, free: 3.969 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.455e-05/0.1045, allocations: 92.14 kB / 462.8 MB, free: 3.875 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.208e-05/0.1045, allocations: 27.72 kB / 462.8 MB, free: 3.848 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.282e-05/0.1046, allocations: 25.7 kB / 462.9 MB, free: 3.816 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001112/0.1047, allocations: 326.8 kB / 463.2 MB, free: 3.488 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.36e-05/0.1048, allocations: 35.97 kB / 463.2 MB, free: 3.453 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.544e-05/0.1049, allocations: 53.94 kB / 463.3 MB, free: 3.395 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001984/0.1051, allocations: 152.9 kB / 463.4 MB, free: 3.227 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.1051, allocations: 0 / 463.4 MB, free: 3.227 MB / 334.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002898/0.1054, allocations: 191.5 kB / 463.6 MB, free: 3.027 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.875e-05/0.1054, allocations: 37.69 kB / 463.6 MB, free: 2.984 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.939e-06/0.1055, allocations: 0 / 463.6 MB, free: 2.984 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.334e-05/0.1055, allocations: 0 / 463.6 MB, free: 2.984 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.451e-05/0.1055, allocations: 12 kB / 463.6 MB, free: 2.973 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.654e-06/0.1056, allocations: 8.062 kB / 463.7 MB, free: 2.965 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.323e-05/0.1056, allocations: 19.89 kB / 463.7 MB, free: 2.945 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.477e-05/0.1057, allocations: 11.92 kB / 463.7 MB, free: 2.934 MB / 334.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 0.0001326/0.1058, allocations: 152.2 kB / 463.8 MB, free: 2.77 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.887e-05/0.1058, allocations: 11.91 kB / 463.8 MB, free: 2.758 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.712e-05/0.1059, allocations: 8.375 kB / 463.9 MB, free: 2.75 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.868e-06/0.1059, allocations: 4 kB / 463.9 MB, free: 2.746 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.1059, allocations: 0 / 463.9 MB, free: 2.746 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.975e-06/0.1059, allocations: 4 kB / 463.9 MB, free: 2.742 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001713/0.1061, allocations: 205.5 kB / 464.1 MB, free: 2.492 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.243e-06/0.1061, allocations: 3.938 kB / 464.1 MB, free: 2.488 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.405e-05/0.1061, allocations: 15.92 kB / 464.1 MB, free: 2.473 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.724e-06/0.1061, allocations: 0 / 464.1 MB, free: 2.473 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.562e-05/0.1062, allocations: 8 kB / 464.1 MB, free: 2.465 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.283e-06/0.1062, allocations: 0 / 464.1 MB, free: 2.465 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.203e-06/0.1062, allocations: 0 / 464.1 MB, free: 2.465 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003489/0.1065, allocations: 243.5 kB / 464.3 MB, free: 2.199 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.648e-05/0.1066, allocations: 89 kB / 464.4 MB, free: 2.094 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.923e-05/0.1066, allocations: 4 kB / 464.4 MB, free: 2.09 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.718e-05/0.1067, allocations: 4 kB / 464.4 MB, free: 2.086 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.117e-05/0.1068, allocations: 11.98 kB / 464.4 MB, free: 2.074 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.908e-05/0.1068, allocations: 11.88 kB / 464.4 MB, free: 2.062 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.108e-05/0.1069, allocations: 103.3 kB / 464.5 MB, free: 1.961 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.443e-06/0.1069, allocations: 0 / 464.5 MB, free: 1.961 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003105/0.1072, allocations: 91.86 kB / 464.6 MB, free: 1.871 MB / 334.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.0009489/0.1081, allocations: 422.6 kB / 465 MB, free: 1.562 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003239/0.1085, allocations: 183.3 kB / 465.2 MB, free: 1.371 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.577e-06/0.1085, allocations: 4 kB / 465.2 MB, free: 1.367 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001623/0.1087, allocations: 139.3 kB / 465.4 MB, free: 1.219 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002427/0.1089, allocations: 15.98 kB / 465.4 MB, free: 1.203 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004746/0.1094, allocations: 239.3 kB / 465.6 MB, free: 0.9375 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000283/0.1097, allocations: 0.7002 MB / 466.3 MB, free: 216 kB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.074e-05/0.1097, allocations: 12 kB / 466.3 MB, free: 204 kB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.075e-05/0.1098, allocations: 23.36 kB / 466.4 MB, free: 180 kB / 334.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1098, allocations: 0 / 466.4 MB, free: 180 kB / 334.1 MB Notification: Performance of Templates: time 0.005599/0.1154, allocations: 2.531 MB / 468.9 MB, free: 13.65 MB / 350.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)