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/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+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/Complex 3.2.2+maint.om/package.mo): time 0.001065/0.001065, allocations: 182.4 kB / 13.64 MB, free: 1.676 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.391/1.391, allocations: 194.3 MB / 208.4 MB, free: 6.703 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001773/0.001773, allocations: 112.7 kB / 253.5 MB, free: 9.586 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1619/0.1619, allocations: 37.91 MB / 336.4 MB, free: 14.26 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 3.302e-05/3.304e-05, allocations: 4 kB / 397.5 MB, free: 1.039 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2747/0.2747, allocations: 53.22 MB / 450.8 MB, free: 13.47 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3616/0.6363, allocations: 95.11 MB / 0.5331 GB, free: 88.09 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003829/0.6368, allocations: 86.94 kB / 0.5332 GB, free: 88.09 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04034/0.6772, allocations: 14.95 MB / 0.5478 GB, free: 81.24 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.062e-06/0.6772, allocations: 0 / 0.5478 GB, free: 81.24 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.471e-05/0.6772, allocations: 16.22 kB / 0.5478 GB, free: 81.22 MB / 378.7 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.001346/0.6786, allocations: 0.9687 MB / 0.5487 GB, free: 80.19 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.002e-05/0.6786, allocations: 8.031 kB / 0.5487 GB, free: 80.18 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001377/0.6788, allocations: 90.95 kB / 0.5488 GB, free: 80.09 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00225/0.681, allocations: 1.076 MB / 0.5499 GB, free: 78.98 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.765e-05/0.6811, allocations: 53.31 kB / 0.5499 GB, free: 78.92 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001028/0.6812, allocations: 67.94 kB / 0.55 GB, free: 78.86 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001062/0.6823, allocations: 0.8008 MB / 0.5508 GB, free: 78.01 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.728e-05/0.6823, allocations: 4 kB / 0.5508 GB, free: 78 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.333e-05/0.6824, allocations: 28 kB / 0.5508 GB, free: 77.98 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.187e-05/0.6824, allocations: 12 kB / 0.5508 GB, free: 77.96 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007728/0.6832, allocations: 0.5829 MB / 0.5514 GB, free: 77.38 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003121/0.6863, allocations: 2.974 MB / 0.5543 GB, free: 74.3 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006977/0.687, allocations: 0.5828 MB / 0.5548 GB, free: 73.7 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004364/0.6875, allocations: 399.1 kB / 0.5552 GB, free: 73.3 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.285e-05/0.6875, allocations: 8.562 kB / 0.5552 GB, free: 73.3 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006526/0.6882, allocations: 0.6058 MB / 0.5558 GB, free: 72.66 MB / 378.7 MB Notification: Performance of pre-optimization done (n=81): time 2.856e-06/0.6882, allocations: 4 kB / 0.5558 GB, free: 72.66 MB / 378.7 MB Notification: Performance of matching and sorting (n=82): time 0.002524/0.6907, allocations: 2.016 MB / 0.5578 GB, free: 70.54 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.137e-05/0.6908, allocations: 208.7 kB / 0.558 GB, free: 70.3 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003692/0.6912, allocations: 427.9 kB / 0.5584 GB, free: 69.87 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.883e-05/0.6912, allocations: 49.7 kB / 0.5585 GB, free: 69.82 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001451/0.6914, allocations: 336.2 kB / 0.5588 GB, free: 69.48 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001244/0.6915, allocations: 232.8 kB / 0.559 GB, free: 69.25 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.396e-05/0.6916, allocations: 20 kB / 0.559 GB, free: 69.23 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.702e-05/0.6917, allocations: 386.8 kB / 0.5594 GB, free: 68.84 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003914/0.6921, allocations: 305.9 kB / 0.5597 GB, free: 68.55 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004558/0.6925, allocations: 490.1 kB / 0.5601 GB, free: 68 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004302/0.693, allocations: 401.5 kB / 0.5605 GB, free: 67.6 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.835e-06/0.693, allocations: 0 / 0.5605 GB, free: 67.6 MB / 378.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.001339/0.6943, allocations: 1.055 MB / 0.5616 GB, free: 66.51 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.386e-05/0.6944, allocations: 63.34 kB / 0.5616 GB, free: 66.44 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.077e-06/0.6944, allocations: 8.031 kB / 0.5616 GB, free: 66.43 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004341/0.6948, allocations: 133.6 kB / 0.5617 GB, free: 66.29 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000772/0.6956, allocations: 207.7 kB / 0.5619 GB, free: 66.09 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002094/0.6977, allocations: 3.045 MB / 0.5649 GB, free: 62.77 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004878/0.6982, allocations: 56.06 kB / 0.565 GB, free: 62.72 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.497e-05/0.6983, allocations: 36 kB / 0.565 GB, free: 62.68 MB / 378.7 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,$PRE.fault_Ab.fault_pp.t0,fault_Ab.fault_pp.t0,$PRE.fault_Ab.fault_pg.t0,fault_Ab.fault_pg.t0,$whenCondition2,$PRE.relay2.cnt,relay2.cnt,$whenCondition1,$PRE.relay1.cnt,relay1.cnt,$whenCondition17,$whenCondition16,$whenCondition15,$whenCondition14,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$PRE.relay1.y[1],relay1.y[1],$PRE.relay1.y[2],relay1.y[2],$PRE.relay2.y[1],relay2.y[1],$PRE.relay2.y[2],relay2.y[2],$PRE.switch1.switch_1.arc,switch1.switch_1.arc,$PRE.switch1.switch_1.open,switch1.switch_1.open,switch1.switch_1.closed,$PRE.switch1.switch_2.arc,switch1.switch_2.arc,$PRE.switch1.switch_2.open,switch1.switch_2.open,switch1.switch_2.closed,$PRE.switch2.switch_1.arc,switch2.switch_1.arc,$PRE.switch2.switch_1.open,switch2.switch_1.open,switch2.switch_1.closed,$PRE.switch2.switch_2.arc,switch2.switch_2.arc,$PRE.switch2.switch_2.open,switch2.switch_2.open,switch2.switch_2.closed,$PRE.fault_Ab.t_zero,fault_Ab.t_zero,$PRE.fault_Ab.v_pos,fault_Ab.v_pos,$PRE.fault_Ab.first,fault_Ab.first,$PRE.fault_Ab.fault_pp.on,fault_Ab.fault_pp.on,$PRE.fault_Ab.fault_pg.on,fault_Ab.fault_pg.on) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002099/0.6985, allocations: 261.2 kB / 0.5653 GB, free: 62.41 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.866e-05/0.6986, allocations: 75.11 kB / 0.5653 GB, free: 62.34 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001396/0.7, allocations: 0.9732 MB / 0.5663 GB, free: 61.34 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.482e-06/0.7, allocations: 8 kB / 0.5663 GB, free: 61.33 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.7, allocations: 0 / 0.5663 GB, free: 61.33 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.594e-06/0.7, allocations: 7.984 kB / 0.5663 GB, free: 61.32 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002372/0.7024, allocations: 1.87 MB / 0.5681 GB, free: 59.38 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.827e-06/0.7024, allocations: 0 / 0.5681 GB, free: 59.38 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006223/0.7031, allocations: 155.8 kB / 0.5683 GB, free: 59.22 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004934/0.7036, allocations: 153.5 kB / 0.5684 GB, free: 59.07 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.322e-05/0.7036, allocations: 19.98 kB / 0.5684 GB, free: 59.05 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001966/0.7056, allocations: 3.056 MB / 0.5714 GB, free: 55.73 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.7056, allocations: 0 / 0.5714 GB, free: 55.73 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001756/0.7074, allocations: 1.509 MB / 0.5729 GB, free: 54.16 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002574/0.7076, allocations: 200.2 kB / 0.5731 GB, free: 53.95 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001008/0.7078, allocations: 35.94 kB / 0.5731 GB, free: 53.91 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003653/0.7081, allocations: 43.97 kB / 0.5732 GB, free: 53.87 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001727/0.7083, allocations: 84.64 kB / 0.5732 GB, free: 53.79 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.672e-05/0.7084, allocations: 31.98 kB / 0.5733 GB, free: 53.76 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002974/0.7087, allocations: 325.6 kB / 0.5736 GB, free: 53.44 MB / 378.7 MB Notification: Performance of sort global known variables: time 7.81e-07/0.7087, allocations: 0 / 0.5736 GB, free: 53.44 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006385/0.7093, allocations: 215.9 kB / 0.5738 GB, free: 53.23 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (line.i1[1],line.i1[2],line.i2[1],line.i2[2]) * Number of discrete variables: 43 (switch1.switch_2.closed,switch1.switch_1.closed,switch2.switch_1.closed,switch2.switch_2.closed,$whenCondition17,$whenCondition16,$whenCondition15,$whenCondition14,$whenCondition13,$whenCondition12,$whenCondition11,$whenCondition10,$whenCondition9,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition1,$whenCondition2,relay1.y[1],relay1.y[2],relay1.cnt,relay2.y[1],relay2.y[2],relay2.cnt,switch1.switch_1.arc,switch1.switch_1.open,switch1.switch_2.arc,switch1.switch_2.open,switch2.switch_1.arc,switch2.switch_1.open,switch2.switch_2.arc,switch2.switch_2.open,fault_Ab.t_zero,fault_Ab.v_pos,fault_Ab.first,fault_Ab.fault_pp.on,fault_Ab.fault_pp.t0,fault_Ab.fault_pg.on,fault_Ab.fault_pg.t0,system.initime) * Number of discrete states: 17 (fault_Ab.t_zero,fault_Ab.fault_pp.on,fault_Ab.fault_pg.on,fault_Ab.v_pos,fault_Ab.first,relay2.y[2],relay2.y[1],relay2.cnt,$whenCondition2,switch2.switch_2.open,switch2.switch_1.open,relay1.y[2],relay1.y[1],relay1.cnt,$whenCondition1,switch1.switch_1.open,switch1.switch_2.open) * Top-level inputs: 0 Notification: Strong component statistics for simulation (76): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 9 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002389/0.7096, allocations: 182.2 kB / 0.574 GB, free: 53.04 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001599/0.7112, allocations: 1.181 MB / 0.5751 GB, free: 51.81 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.7112, allocations: 4.062 kB / 0.5751 GB, free: 51.8 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001106/0.7123, allocations: 0.8441 MB / 0.5759 GB, free: 50.91 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006126/0.7129, allocations: 126.1 kB / 0.5761 GB, free: 50.79 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002335/0.7153, allocations: 1.428 MB / 0.5775 GB, free: 49.32 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000365/0.7157, allocations: 1.013 MB / 0.5784 GB, free: 48.28 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0004159/0.7161, allocations: 154.1 kB / 0.5786 GB, free: 48.13 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001487/0.7162, allocations: 55.38 kB / 0.5786 GB, free: 48.07 MB / 378.7 MB Notification: Performance of SimCode: time 7.31e-07/0.7162, allocations: 3.938 kB / 0.5787 GB, free: 48.07 MB / 378.7 MB Notification: Performance of Templates: time 0.0134/0.7297, allocations: 9.187 MB / 0.5876 GB, free: 38.89 MB / 378.7 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)