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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/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(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.002658/0.002658, allocations: 112.8 kB / 17.29 MB, free: 6.219 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.002961/0.002961, allocations: 197.3 kB / 18.21 MB, free: 5.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.65/2.65, allocations: 222.9 MB / 241.9 MB, free: 13.75 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.4051/0.4051, allocations: 38.01 MB / 330 MB, free: 8.766 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002729/0.00273, allocations: 64.28 kB / 398.9 MB, free: 34.36 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2104/0.2132, allocations: 58.06 MB / 457 MB, free: 8.383 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.Fault): time 0.02043/0.2337, allocations: 7.927 MB / 464.9 MB, free: 424 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008048/0.2418, allocations: 1.882 MB / 466.8 MB, free: 14.53 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001826/0.2437, allocations: 43.75 kB / 466.9 MB, free: 14.48 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001346/0.2451, allocations: 127.1 kB / 467 MB, free: 14.36 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003121/0.2484, allocations: 418.2 kB / 467.4 MB, free: 13.95 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001544/0.25, allocations: 263.7 kB / 467.6 MB, free: 13.69 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002821/0.2528, allocations: 1.199 MB / 468.8 MB, free: 12.49 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007592/0.2536, allocations: 290.8 kB / 469.1 MB, free: 12.2 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001583/0.2552, allocations: 0.5019 MB / 469.6 MB, free: 11.7 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001461/0.2567, allocations: 0.5762 MB / 470.2 MB, free: 11.12 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000203/0.2569, allocations: 72 kB / 470.3 MB, free: 11.05 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002822/0.2572, allocations: 72 kB / 470.3 MB, free: 10.98 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004367/0.2577, allocations: 351 kB / 470.7 MB, free: 10.63 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005315/0.2582, allocations: 429.9 kB / 471.1 MB, free: 10.21 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009386/0.2592, allocations: 0.7055 MB / 471.8 MB, free: 9.504 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.2592, allocations: 0 / 471.8 MB, free: 9.504 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.814e-06/0.2592, allocations: 4 kB / 471.8 MB, free: 9.5 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.483e-05/0.2592, allocations: 4 kB / 471.8 MB, free: 9.496 MB / 350.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.00274/0.262, allocations: 1.157 MB / 473 MB, free: 8.273 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.74e-05/0.262, allocations: 11.89 kB / 473 MB, free: 8.262 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000235/0.2623, allocations: 91.89 kB / 473.1 MB, free: 8.172 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001106/0.2634, allocations: 0.5608 MB / 473.6 MB, free: 7.57 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.282e-05/0.2635, allocations: 57.3 kB / 473.7 MB, free: 7.516 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000132/0.2636, allocations: 71.89 kB / 473.8 MB, free: 7.445 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001687/0.2653, allocations: 0.8319 MB / 474.6 MB, free: 6.566 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.832e-05/0.2654, allocations: 15.81 kB / 474.6 MB, free: 6.551 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001018/0.2655, allocations: 24 kB / 474.6 MB, free: 6.527 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003301/0.2658, allocations: 53.25 kB / 474.7 MB, free: 6.473 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001775/0.2676, allocations: 0.6101 MB / 475.3 MB, free: 5.863 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005576/0.2732, allocations: 2.982 MB / 478.3 MB, free: 2.773 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001306/0.2746, allocations: 0.9224 MB / 479.2 MB, free: 1.758 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006432/0.2753, allocations: 423 kB / 479.6 MB, free: 1.34 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.211e-05/0.2753, allocations: 8.547 kB / 479.6 MB, free: 1.332 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001033/0.2764, allocations: 0.6233 MB / 480.3 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of pre-optimization done (n=81): time 2.494e-06/0.2764, allocations: 0 / 480.3 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of matching and sorting (n=82): time 0.005479/0.2819, allocations: 2.587 MB / 482.8 MB, free: 13.95 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001657/0.2821, allocations: 212.5 kB / 483 MB, free: 13.7 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000709/0.2828, allocations: 486 kB / 483.5 MB, free: 13.21 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.092e-05/0.2829, allocations: 53.69 kB / 483.6 MB, free: 13.16 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003238/0.2832, allocations: 340.1 kB / 483.9 MB, free: 12.82 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002342/0.2835, allocations: 241 kB / 484.1 MB, free: 12.58 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002731/0.2837, allocations: 166.6 kB / 484.3 MB, free: 12.41 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002149/0.284, allocations: 382.8 kB / 484.7 MB, free: 12.03 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000584/0.2846, allocations: 317.8 kB / 485 MB, free: 11.72 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007017/0.2853, allocations: 0.5036 MB / 485.5 MB, free: 11.15 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001298/0.2866, allocations: 0.8709 MB / 486.4 MB, free: 10.19 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.043e-06/0.2866, allocations: 0 / 486.4 MB, free: 10.19 MB / 366.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.002162/0.2888, allocations: 1.103 MB / 487.5 MB, free: 9.055 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.616e-05/0.2889, allocations: 63.39 kB / 487.5 MB, free: 8.98 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.629e-05/0.2889, allocations: 7.984 kB / 487.5 MB, free: 8.973 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005898/0.2895, allocations: 141.9 kB / 487.7 MB, free: 8.828 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009527/0.2905, allocations: 211.7 kB / 487.9 MB, free: 8.621 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003903/0.2944, allocations: 3.327 MB / 491.2 MB, free: 5.016 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009658/0.2954, allocations: 43.97 kB / 491.2 MB, free: 4.973 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.187e-05/0.2955, allocations: 32 kB / 491.3 MB, free: 4.941 MB / 366.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.0007074/0.2962, allocations: 362.2 kB / 491.6 MB, free: 4.57 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001814/0.2964, allocations: 67.25 kB / 491.7 MB, free: 4.504 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00204/0.2984, allocations: 1.027 MB / 492.7 MB, free: 3.445 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.157e-05/0.2985, allocations: 8 kB / 492.7 MB, free: 3.438 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.652e-06/0.2985, allocations: 0 / 492.7 MB, free: 3.438 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.524e-05/0.2985, allocations: 15.92 kB / 492.8 MB, free: 3.422 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005359/0.3039, allocations: 1.925 MB / 494.7 MB, free: 1.422 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.308e-05/0.304, allocations: 0 / 494.7 MB, free: 1.422 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001133/0.3051, allocations: 163.9 kB / 494.8 MB, free: 1.262 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001017/0.3062, allocations: 169.4 kB / 495 MB, free: 1.09 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001397/0.3063, allocations: 23.98 kB / 495 MB, free: 1.066 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005352/0.3117, allocations: 3.324 MB / 498.3 MB, free: 13.46 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.817e-06/0.3118, allocations: 0 / 498.3 MB, free: 13.46 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004279/0.3161, allocations: 1.563 MB / 499.9 MB, free: 11.86 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005373/0.3167, allocations: 208.2 kB / 0.4884 GB, free: 11.63 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000152/0.3168, allocations: 39.86 kB / 0.4884 GB, free: 11.59 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00043/0.3173, allocations: 31.97 kB / 0.4885 GB, free: 11.56 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002912/0.3176, allocations: 88.47 kB / 0.4885 GB, free: 11.48 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.85e-05/0.3176, allocations: 27.98 kB / 0.4886 GB, free: 11.45 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005387/0.3182, allocations: 334.9 kB / 0.4889 GB, free: 11.12 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.3182, allocations: 4 kB / 0.4889 GB, free: 11.12 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001032/0.3192, allocations: 212 kB / 0.4891 GB, free: 10.91 MB / 382.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 (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 Backend phase and start with SimCode phase: time 0.0003081/0.3196, allocations: 147.1 kB / 0.4892 GB, free: 10.76 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003185/0.3228, allocations: 1.361 MB / 0.4906 GB, free: 9.348 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.853e-06/0.3228, allocations: 4.125 kB / 0.4906 GB, free: 9.344 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001791/0.3246, allocations: 0.859 MB / 0.4914 GB, free: 8.434 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001129/0.3258, allocations: 162 kB / 0.4916 GB, free: 8.277 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005475/0.3312, allocations: 2.112 MB / 0.4936 GB, free: 6.121 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009823/0.3323, allocations: 0.9893 MB / 0.4946 GB, free: 5.102 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004583/0.3328, allocations: 59.42 kB / 0.4946 GB, free: 5.043 MB / 382.1 MB Notification: Performance of SimCode: time 2.745e-06/0.3328, allocations: 0 / 0.4946 GB, free: 5.043 MB / 382.1 MB Notification: Performance of Templates: time 0.0465/0.3793, allocations: 15.42 MB / 0.5097 GB, free: 5.645 MB / 398.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)