Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Fault.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(PowerSystems.Examples.AC1ph_DC.Elementary.Fault,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Fault") translateModel(PowerSystems.Examples.AC1ph_DC.Elementary.Fault,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Fault") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001577/0.001578, allocations: 111 kB / 17.75 MB, free: 5.355 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.001888/0.001888, allocations: 186.5 kB / 18.68 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.333/1.333, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1723/0.1723, allocations: 37.98 MB / 309.9 MB, free: 5.965 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001413/0.001413, allocations: 63.84 kB / 432.5 MB, free: 15.65 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09147/0.09289, allocations: 55.25 MB / 487.8 MB, free: 8.328 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Fault): time 0.007921/0.1009, allocations: 6.893 MB / 494.7 MB, free: 1.395 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002829/0.1037, allocations: 1.614 MB / 496.3 MB, free: 15.77 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004196/0.1042, allocations: 19.88 kB / 496.3 MB, free: 15.75 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005894/0.1048, allocations: 158.7 kB / 496.5 MB, free: 15.6 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001056/0.1059, allocations: 453.6 kB / 496.9 MB, free: 15.15 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006808/0.1065, allocations: 295.4 kB / 497.2 MB, free: 14.86 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001139/0.1077, allocations: 1.199 MB / 498.4 MB, free: 13.66 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003847/0.1081, allocations: 306.4 kB / 498.7 MB, free: 13.36 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005925/0.1087, allocations: 0.5096 MB / 499.2 MB, free: 12.85 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007004/0.1094, allocations: 0.541 MB / 499.8 MB, free: 12.3 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001119/0.1095, allocations: 72 kB / 499.8 MB, free: 12.23 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001392/0.1097, allocations: 76 kB / 499.9 MB, free: 12.16 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003283/0.11, allocations: 347.1 kB / 0.4885 GB, free: 11.82 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004067/0.1104, allocations: 429.9 kB / 0.4889 GB, free: 11.4 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008408/0.1113, allocations: 0.9227 MB / 0.4898 GB, free: 10.47 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.427e-06/0.1113, allocations: 0 / 0.4898 GB, free: 10.47 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.885e-06/0.1113, allocations: 0 / 0.4898 GB, free: 10.47 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.051e-05/0.1113, allocations: 3.938 kB / 0.4898 GB, free: 10.47 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 158 * Number of variables: 158 Notification: Performance of Generate backend data structure: time 0.002053/0.1134, allocations: 1.153 MB / 0.491 GB, free: 9.25 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.617e-05/0.1134, allocations: 15.89 kB / 0.491 GB, free: 9.234 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001407/0.1136, allocations: 83.91 kB / 0.4911 GB, free: 9.152 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009952/0.1146, allocations: 0.6076 MB / 0.4916 GB, free: 8.504 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.215e-05/0.1146, allocations: 53.31 kB / 0.4917 GB, free: 8.453 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001179/0.1148, allocations: 64 kB / 0.4918 GB, free: 8.391 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00119/0.116, allocations: 0.8319 MB / 0.4926 GB, free: 7.512 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.796e-05/0.116, allocations: 4 kB / 0.4926 GB, free: 7.508 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.46e-05/0.1161, allocations: 31.97 kB / 0.4926 GB, free: 7.477 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001873/0.1163, allocations: 53.27 kB / 0.4927 GB, free: 7.422 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009716/0.1172, allocations: 0.614 MB / 0.4933 GB, free: 6.805 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003739/0.121, allocations: 2.955 MB / 0.4961 GB, free: 3.746 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001019/0.122, allocations: 0.9185 MB / 0.497 GB, free: 2.734 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005686/0.1226, allocations: 415.3 kB / 0.4974 GB, free: 2.324 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.038e-05/0.1226, allocations: 8.547 kB / 0.4974 GB, free: 2.316 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000822/0.1235, allocations: 0.6272 MB / 0.4981 GB, free: 1.656 MB / 382.1 MB Notification: Performance of pre-optimization done (n=81): time 2.575e-06/0.1235, allocations: 0 / 0.4981 GB, free: 1.656 MB / 382.1 MB Notification: Performance of matching and sorting (n=82): time 0.004188/0.1277, allocations: 2.583 MB / 0.5006 GB, free: 14.94 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001205/0.1278, allocations: 212.5 kB / 0.5008 GB, free: 14.69 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005011/0.1283, allocations: 490 kB / 0.5013 GB, free: 14.2 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.906e-05/0.1284, allocations: 49.7 kB / 0.5013 GB, free: 14.14 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002304/0.1286, allocations: 340.2 kB / 0.5016 GB, free: 13.8 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001905/0.1288, allocations: 244.9 kB / 0.5019 GB, free: 13.56 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002226/0.129, allocations: 162.6 kB / 0.502 GB, free: 13.4 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001508/0.1292, allocations: 382.8 kB / 0.5024 GB, free: 13.02 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004941/0.1297, allocations: 321.8 kB / 0.5027 GB, free: 12.7 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006264/0.1303, allocations: 0.4977 MB / 0.5032 GB, free: 12.14 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001043/0.1314, allocations: 0.8709 MB / 0.504 GB, free: 11.18 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.206e-06/0.1314, allocations: 0 / 0.504 GB, free: 11.18 MB / 398.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.001679/0.1331, allocations: 1.107 MB / 0.5051 GB, free: 10.04 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.731e-05/0.1332, allocations: 59.41 kB / 0.5052 GB, free: 9.973 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.068e-05/0.1332, allocations: 8 kB / 0.5052 GB, free: 9.965 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005187/0.1337, allocations: 149.9 kB / 0.5053 GB, free: 9.812 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008035/0.1345, allocations: 207.7 kB / 0.5055 GB, free: 9.609 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003029/0.1375, allocations: 3.324 MB / 0.5088 GB, free: 6.004 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004255/0.138, allocations: 48.12 kB / 0.5088 GB, free: 5.957 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.511e-05/0.1381, allocations: 35.98 kB / 0.5088 GB, free: 5.922 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 64 (system.initime,fault_Ab.fault_pp.t0,$PRE.fault_Ab.fault_pp.t0,fault_Ab.fault_pg.t0,$PRE.fault_Ab.fault_pg.t0,relay2.cnt,$PRE.relay2.cnt,$whenCondition2,relay1.cnt,$PRE.relay1.cnt,$whenCondition1,fault_Ab.fault_pg.on,$PRE.fault_Ab.fault_pg.on,fault_Ab.fault_pp.on,$PRE.fault_Ab.fault_pp.on,fault_Ab.first,$PRE.fault_Ab.first,fault_Ab.v_pos,$PRE.fault_Ab.v_pos,fault_Ab.t_zero,$PRE.fault_Ab.t_zero,switch2.switch_2.closed,switch2.switch_2.open,$PRE.switch2.switch_2.open,switch2.switch_2.arc,$PRE.switch2.switch_2.arc,switch2.switch_1.closed,switch2.switch_1.open,$PRE.switch2.switch_1.open,switch2.switch_1.arc,$PRE.switch2.switch_1.arc,switch1.switch_2.closed,switch1.switch_2.open,$PRE.switch1.switch_2.open,switch1.switch_2.arc,$PRE.switch1.switch_2.arc,switch1.switch_1.closed,switch1.switch_1.open,$PRE.switch1.switch_1.open,switch1.switch_1.arc,$PRE.switch1.switch_1.arc,relay2.y[2],$PRE.relay2.y[2],relay2.y[1],$PRE.relay2.y[1],relay1.y[2],$PRE.relay1.y[2],relay1.y[1],$PRE.relay1.y[1],$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6,$whenCondition7,$whenCondition8,$whenCondition9,$whenCondition10,$whenCondition11,$whenCondition12,$whenCondition13,$whenCondition14,$whenCondition15,$whenCondition16,$whenCondition17) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (122): * Single equations (assignments): 118 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004183/0.1385, allocations: 366.1 kB / 0.5092 GB, free: 5.547 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001077/0.1386, allocations: 71.16 kB / 0.5092 GB, free: 5.477 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001675/0.1403, allocations: 1.023 MB / 0.5102 GB, free: 4.426 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.528e-06/0.1403, allocations: 3.984 kB / 0.5103 GB, free: 4.422 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.656e-06/0.1403, allocations: 4 kB / 0.5103 GB, free: 4.418 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000304/0.1406, allocations: 200.1 kB / 0.5104 GB, free: 4.203 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000103/0.1407, allocations: 31.98 kB / 0.5105 GB, free: 4.172 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003277/0.1411, allocations: 39.95 kB / 0.5105 GB, free: 4.133 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001915/0.1413, allocations: 80.55 kB / 0.5106 GB, free: 4.055 MB / 398.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.002507/0.1438, allocations: 1.369 MB / 0.5119 GB, free: 2.637 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.002025/0.1458, allocations: 1.633 MB / 0.5135 GB, free: 0.9766 MB / 398.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0005926/0.1464, allocations: 461.3 kB / 0.514 GB, free: 0.5234 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003829/0.1468, allocations: 334.9 kB / 0.5143 GB, free: 200 kB / 398.1 MB Notification: Performance of Backend: time 5.61e-07/0.1468, allocations: 3.938 kB / 0.5143 GB, free: 196 kB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002038/0.1489, allocations: 0.9848 MB / 0.5152 GB, free: 15.15 MB / 414.1 MB Notification: Performance of SimCode: time 0.002679/0.1516, allocations: 2.047 MB / 0.5172 GB, free: 13.03 MB / 414.1 MB Notification: Performance of Templates: time 0.01866/0.1702, allocations: 10.99 MB / 0.528 GB, free: 2.02 MB / 414.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Fault.makefile (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Fault.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Fault.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Fault.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Fault.sim & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Fault -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Fault.pipe 2>&1)