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.001225/0.001225, allocations: 180.2 kB / 17.4 MB, free: 4.273 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.473/1.473, allocations: 194.5 MB / 212.6 MB, free: 2.938 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.00156/0.00156, allocations: 117.5 kB / 257.9 MB, free: 4.242 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.2013/0.2013, allocations: 38.01 MB / 341.1 MB, free: 1.176 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004235/0.0004235, allocations: 15.98 kB / 405 MB, free: 68.46 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1088/0.1092, allocations: 53.23 MB / 458.3 MB, free: 15.22 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.396/0.5053, allocations: 95.22 MB / 0.5405 GB, free: 15.68 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002808/0.5056, allocations: 96.02 kB / 0.5406 GB, free: 15.64 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04375/0.5493, allocations: 14.93 MB / 0.5552 GB, free: 2.746 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.284e-06/0.5494, allocations: 0 / 0.5552 GB, free: 2.746 MB / 362.7 MB Notification: Performance of Transformations before backend: time 9.295e-05/0.5495, allocations: 15.94 kB / 0.5552 GB, free: 2.73 MB / 362.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.003354/0.5529, allocations: 1.062 MB / 0.5562 GB, free: 1.656 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.566e-05/0.5529, allocations: 12.03 kB / 0.5562 GB, free: 1.645 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000459/0.5534, allocations: 91.84 kB / 0.5563 GB, free: 1.555 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002123/0.5555, allocations: 0.7877 MB / 0.5571 GB, free: 0.8516 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.14e-05/0.5556, allocations: 50.12 kB / 0.5572 GB, free: 0.8242 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002382/0.5559, allocations: 68.78 kB / 0.5572 GB, free: 0.7773 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001593/0.5575, allocations: 0.8154 MB / 0.558 GB, free: 144 kB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.673e-05/0.5575, allocations: 3.938 kB / 0.558 GB, free: 140 kB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.338e-05/0.5576, allocations: 27.56 kB / 0.558 GB, free: 132 kB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.157e-05/0.5577, allocations: 20 kB / 0.5581 GB, free: 112 kB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001163/0.5588, allocations: 0.5931 MB / 0.5586 GB, free: 15.7 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005058/0.5639, allocations: 2.972 MB / 0.5615 GB, free: 13.13 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000965/0.5649, allocations: 0.5974 MB / 0.5621 GB, free: 12.72 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005866/0.5655, allocations: 401 kB / 0.5625 GB, free: 12.45 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.813e-05/0.5655, allocations: 12.56 kB / 0.5625 GB, free: 12.44 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009405/0.5665, allocations: 0.6131 MB / 0.5631 GB, free: 11.93 MB / 378.7 MB Notification: Performance of pre-optimization done (n=81): time 3.636e-06/0.5665, allocations: 4 kB / 0.5631 GB, free: 11.93 MB / 378.7 MB Notification: Performance of matching and sorting (n=82): time 0.004496/0.571, allocations: 2.501 MB / 0.5656 GB, free: 9.82 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001265/0.5712, allocations: 210.7 kB / 0.5658 GB, free: 9.578 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006673/0.5718, allocations: 485.4 kB / 0.5662 GB, free: 9.195 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.571e-05/0.5719, allocations: 56.38 kB / 0.5663 GB, free: 9.148 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002859/0.5722, allocations: 333.6 kB / 0.5666 GB, free: 8.91 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002191/0.5725, allocations: 230.5 kB / 0.5668 GB, free: 8.719 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.131e-05/0.5725, allocations: 19.81 kB / 0.5668 GB, free: 8.715 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001696/0.5727, allocations: 391.7 kB / 0.5672 GB, free: 8.352 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00051/0.5732, allocations: 315.2 kB / 0.5675 GB, free: 8.145 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006493/0.5739, allocations: 0.4918 MB / 0.568 GB, free: 7.711 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001054/0.5749, allocations: 0.8516 MB / 0.5688 GB, free: 6.996 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.75e-06/0.5749, allocations: 4 kB / 0.5688 GB, free: 6.992 MB / 378.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.001723/0.5767, allocations: 1.079 MB / 0.5699 GB, free: 6.152 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.264e-05/0.5767, allocations: 63.39 kB / 0.5699 GB, free: 6.078 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.598e-05/0.5768, allocations: 4 kB / 0.57 GB, free: 6.074 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000504/0.5773, allocations: 137 kB / 0.5701 GB, free: 5.949 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008336/0.5781, allocations: 215.2 kB / 0.5703 GB, free: 5.746 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002923/0.5811, allocations: 3.039 MB / 0.5733 GB, free: 2.633 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000544/0.5816, allocations: 60.64 kB / 0.5733 GB, free: 2.59 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.113e-05/0.5817, allocations: 38.5 kB / 0.5733 GB, free: 2.559 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 () * 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 (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.0005813/0.5823, allocations: 358.7 kB / 0.5737 GB, free: 2.258 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001532/0.5825, allocations: 75.14 kB / 0.5738 GB, free: 2.184 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001766/0.5842, allocations: 0.9898 MB / 0.5747 GB, free: 1.453 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.238e-05/0.5843, allocations: 11.94 kB / 0.5747 GB, free: 1.441 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.5843, allocations: 0 / 0.5747 GB, free: 1.441 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.084e-05/0.5843, allocations: 3.984 kB / 0.5747 GB, free: 1.438 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00336/0.5877, allocations: 1.881 MB / 0.5766 GB, free: 15.94 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.799e-06/0.5877, allocations: 0 / 0.5766 GB, free: 15.94 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006241/0.5883, allocations: 154.7 kB / 0.5767 GB, free: 15.79 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005231/0.5888, allocations: 150.8 kB / 0.5769 GB, free: 15.65 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.084e-05/0.5889, allocations: 26.34 kB / 0.5769 GB, free: 15.64 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003004/0.5919, allocations: 3.052 MB / 0.5799 GB, free: 12.52 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.997e-06/0.592, allocations: 4.031 kB / 0.5799 GB, free: 12.51 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002414/0.5944, allocations: 1.506 MB / 0.5814 GB, free: 11.36 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004678/0.5949, allocations: 203.8 kB / 0.5815 GB, free: 11.17 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001808/0.5951, allocations: 24.62 kB / 0.5816 GB, free: 11.16 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004659/0.5955, allocations: 49.7 kB / 0.5816 GB, free: 11.12 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002372/0.5958, allocations: 100.4 kB / 0.5817 GB, free: 11.04 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.679e-05/0.5959, allocations: 25.92 kB / 0.5817 GB, free: 11.02 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0004906/0.5964, allocations: 329.6 kB / 0.5821 GB, free: 10.76 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5964, allocations: 0 / 0.5821 GB, free: 10.76 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0008922/0.5973, allocations: 222 kB / 0.5823 GB, free: 10.57 MB / 394.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) * Number of clocked states: 0 () * 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.0003375/0.5976, allocations: 169.4 kB / 0.5824 GB, free: 10.41 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002295/0.5999, allocations: 1.196 MB / 0.5836 GB, free: 9.395 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/0.5999, allocations: 0 / 0.5836 GB, free: 9.395 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001419/0.6014, allocations: 0.8518 MB / 0.5844 GB, free: 8.633 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009871/0.6024, allocations: 146.1 kB / 0.5846 GB, free: 8.531 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003801/0.6062, allocations: 2.084 MB / 0.5866 GB, free: 6.578 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007233/0.6069, allocations: 0.9986 MB / 0.5876 GB, free: 5.574 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0005558/0.6075, allocations: 150.1 kB / 0.5877 GB, free: 5.426 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001825/0.6077, allocations: 55.38 kB / 0.5878 GB, free: 5.371 MB / 394.7 MB Notification: Performance of SimCode: time 8.82e-07/0.6077, allocations: 0 / 0.5878 GB, free: 5.371 MB / 394.7 MB Notification: Performance of Templates: time 0.01993/0.6276, allocations: 9.165 MB / 0.5967 GB, free: 12.23 MB / 410.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)