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.001101/0.001101, allocations: 97.08 kB / 16.3 MB, free: 5.535 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.001284/0.001284, allocations: 178.6 kB / 17.19 MB, free: 5.469 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.656/1.656, allocations: 205.4 MB / 223.4 MB, free: 13.17 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1706/0.1706, allocations: 38.03 MB / 309.7 MB, free: 6.141 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.0004963/0.0004964, allocations: 15.12 kB / 376.5 MB, free: 3.215 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2645/0.265, allocations: 56.33 MB / 432.8 MB, free: 18.86 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Fault): time 0.005294/0.2703, allocations: 6.765 MB / 439.6 MB, free: 12.07 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002586/0.273, allocations: 1.892 MB / 441.5 MB, free: 10.17 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003348/0.2733, allocations: 39.69 kB / 441.5 MB, free: 10.13 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004073/0.2737, allocations: 143 kB / 441.6 MB, free: 9.988 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007805/0.2745, allocations: 386.8 kB / 442 MB, free: 9.609 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000569/0.2751, allocations: 283.4 kB / 442.3 MB, free: 9.332 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005663/0.2757, allocations: 0.6042 MB / 442.9 MB, free: 8.727 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000322/0.276, allocations: 213 kB / 443.1 MB, free: 8.52 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004139/0.2764, allocations: 366.6 kB / 443.5 MB, free: 8.16 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000457/0.2769, allocations: 378.7 kB / 443.8 MB, free: 7.789 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.344e-05/0.277, allocations: 36 kB / 443.9 MB, free: 7.754 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.265e-05/0.2771, allocations: 36 kB / 443.9 MB, free: 7.719 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002239/0.2773, allocations: 283.2 kB / 444.2 MB, free: 7.441 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001285/0.2774, allocations: 169.3 kB / 444.4 MB, free: 7.27 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004282/0.2779, allocations: 0.6935 MB / 445 MB, free: 6.574 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.003e-06/0.2779, allocations: 0 / 445 MB, free: 6.574 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.2779, allocations: 0 / 445 MB, free: 6.574 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.255e-06/0.2779, allocations: 4 kB / 445 MB, free: 6.57 MB / 318.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.001585/0.2795, allocations: 1.028 MB / 446.1 MB, free: 5.477 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.927e-05/0.2795, allocations: 8.031 kB / 446.1 MB, free: 5.469 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001249/0.2797, allocations: 87.02 kB / 446.2 MB, free: 5.383 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007469/0.2804, allocations: 0.5562 MB / 446.7 MB, free: 4.785 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.516e-05/0.2805, allocations: 53.3 kB / 446.8 MB, free: 4.734 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.443e-05/0.2806, allocations: 64 kB / 446.8 MB, free: 4.672 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009149/0.2815, allocations: 0.8358 MB / 447.7 MB, free: 3.789 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.667e-05/0.2815, allocations: 0 / 447.7 MB, free: 3.789 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.55e-05/0.2816, allocations: 24 kB / 447.7 MB, free: 3.766 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001651/0.2818, allocations: 53.25 kB / 447.8 MB, free: 3.711 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007802/0.2825, allocations: 0.6256 MB / 448.4 MB, free: 3.086 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002961/0.2855, allocations: 2.994 MB / 451.4 MB, free: 15.98 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001002/0.2865, allocations: 0.9189 MB / 452.3 MB, free: 14.97 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.208e-05/0.2866, allocations: 8.625 kB / 452.3 MB, free: 14.96 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008512/0.2874, allocations: 0.6313 MB / 452.9 MB, free: 14.3 MB / 334.1 MB Notification: Performance of pre-optimization done (n=81): time 2.785e-06/0.2874, allocations: 0 / 452.9 MB, free: 14.3 MB / 334.1 MB Notification: Performance of matching and sorting (n=82): time 0.00423/0.2917, allocations: 2.779 MB / 455.7 MB, free: 11.35 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001113/0.2918, allocations: 212.5 kB / 455.9 MB, free: 11.1 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005241/0.2923, allocations: 485.9 kB / 456.4 MB, free: 10.61 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.932e-05/0.2924, allocations: 53.69 kB / 456.4 MB, free: 10.55 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002424/0.2927, allocations: 336.2 kB / 456.8 MB, free: 10.22 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001852/0.2928, allocations: 232.9 kB / 457 MB, free: 9.988 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.939e-05/0.2929, allocations: 20 kB / 457 MB, free: 9.969 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001957/0.2931, allocations: 386.8 kB / 457.4 MB, free: 9.582 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004933/0.2936, allocations: 325.8 kB / 457.7 MB, free: 9.266 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005757/0.2942, allocations: 0.4904 MB / 458.2 MB, free: 8.703 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005268/0.2947, allocations: 398.2 kB / 458.6 MB, free: 8.305 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.45e-06/0.2947, allocations: 7.938 kB / 458.6 MB, free: 8.297 MB / 334.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.001623/0.2964, allocations: 1.087 MB / 459.7 MB, free: 7.188 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.366e-05/0.2964, allocations: 59.47 kB / 459.7 MB, free: 7.117 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.103e-05/0.2964, allocations: 8 kB / 459.8 MB, free: 7.109 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004573/0.2969, allocations: 137.6 kB / 459.9 MB, free: 6.969 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007623/0.2977, allocations: 211.7 kB / 460.1 MB, free: 6.762 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002777/0.3005, allocations: 3.126 MB / 463.2 MB, free: 3.367 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004751/0.3009, allocations: 60.2 kB / 463.3 MB, free: 3.309 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.586e-05/0.301, allocations: 32 kB / 463.3 MB, free: 3.277 MB / 334.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,$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.0004895/0.3015, allocations: 362.2 kB / 463.7 MB, free: 2.906 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001044/0.3016, allocations: 75.14 kB / 463.7 MB, free: 2.832 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001623/0.3032, allocations: 1.031 MB / 464.8 MB, free: 1.773 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.915e-06/0.3033, allocations: 8 kB / 464.8 MB, free: 1.766 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.572e-06/0.3033, allocations: 4 kB / 464.8 MB, free: 1.762 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.724e-06/0.3033, allocations: 7.984 kB / 464.8 MB, free: 1.754 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002763/0.3061, allocations: 1.936 MB / 466.7 MB, free: 15.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.16e-06/0.3061, allocations: 4 kB / 466.7 MB, free: 15.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006365/0.3067, allocations: 155.9 kB / 466.9 MB, free: 15.58 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005749/0.3073, allocations: 161.5 kB / 467 MB, free: 15.41 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.235e-05/0.3074, allocations: 31.92 kB / 467.1 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002823/0.3102, allocations: 3.119 MB / 470.2 MB, free: 11.99 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/0.3102, allocations: 0 / 470.2 MB, free: 11.99 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002432/0.3127, allocations: 1.61 MB / 471.8 MB, free: 10.33 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004179/0.3131, allocations: 204.2 kB / 472 MB, free: 10.11 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001107/0.3132, allocations: 31.98 kB / 472 MB, free: 10.08 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003593/0.3136, allocations: 43.97 kB / 472.1 MB, free: 10.04 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002021/0.3138, allocations: 92.45 kB / 472.2 MB, free: 9.945 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.317e-05/0.3139, allocations: 27.98 kB / 472.2 MB, free: 9.918 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004211/0.3143, allocations: 334.8 kB / 472.5 MB, free: 9.59 MB / 350.1 MB Notification: Performance of sort global known variables: time 6.12e-07/0.3143, allocations: 0 / 472.5 MB, free: 9.59 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007104/0.315, allocations: 212 kB / 472.7 MB, free: 9.383 MB / 350.1 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_1.closed,switch1.switch_2.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_2.open,switch1.switch_1.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.0002033/0.3152, allocations: 163 kB / 472.9 MB, free: 9.215 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002359/0.3176, allocations: 1.224 MB / 474.1 MB, free: 7.941 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.052e-06/0.3176, allocations: 0 / 474.1 MB, free: 7.941 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001645/0.3193, allocations: 0.8792 MB / 475 MB, free: 7.012 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009071/0.3202, allocations: 134.3 kB / 475.1 MB, free: 6.883 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003493/0.3237, allocations: 2.087 MB / 477.2 MB, free: 4.762 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005722/0.3243, allocations: 1.009 MB / 478.2 MB, free: 3.727 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004515/0.3248, allocations: 142 kB / 478.4 MB, free: 3.586 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000153/0.3249, allocations: 59.44 kB / 478.4 MB, free: 3.527 MB / 350.1 MB Notification: Performance of SimCode: time 9.51e-07/0.3249, allocations: 0 / 478.4 MB, free: 3.527 MB / 350.1 MB Notification: Performance of Templates: time 0.01516/0.3401, allocations: 8.91 MB / 487.3 MB, free: 10.64 MB / 366.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Fault.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: