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.0009778/0.000978, allocations: 188.6 kB / 8.353 MB, free: 0.707 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.307/1.307, allocations: 194.3 MB / 203.1 MB, free: 9.32 MB / 171.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001724/0.001724, allocations: 116.9 kB / 248.1 MB, free: 6.348 MB / 203.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1791/0.1791, allocations: 37.92 MB / 330.9 MB, free: 7.316 MB / 283.1 MB Notification: Performance of FrontEnd - loaded program: time 1.433e-05/1.435e-05, allocations: 4 kB / 390.3 MB, free: 78.26 MB / 315.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08485/0.08488, allocations: 53.25 MB / 443.6 MB, free: 25.11 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3376/0.4226, allocations: 94.43 MB / 0.5254 GB, free: 9.656 MB / 347.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000229/0.4228, allocations: 86.8 kB / 0.5255 GB, free: 9.645 MB / 347.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.03757/0.4604, allocations: 14.79 MB / 0.5399 GB, free: 0.707 MB / 347.1 MB Notification: Performance of FrontEnd: time 9.92e-07/0.4605, allocations: 0 / 0.5399 GB, free: 0.707 MB / 347.1 MB Notification: Performance of Transformations before backend: time 4.725e-05/0.4605, allocations: 12 kB / 0.54 GB, free: 0.6953 MB / 347.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.001878/0.4624, allocations: 0.9694 MB / 0.5409 GB, free: 15.71 MB / 363.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.141e-05/0.4624, allocations: 8.031 kB / 0.5409 GB, free: 15.7 MB / 363.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002732/0.4627, allocations: 86.97 kB / 0.541 GB, free: 15.62 MB / 363.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002786/0.4655, allocations: 1.083 MB / 0.5421 GB, free: 14.7 MB / 363.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.26e-05/0.4656, allocations: 27.5 kB / 0.5421 GB, free: 14.68 MB / 363.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001271/0.4657, allocations: 44.7 kB / 0.5421 GB, free: 14.64 MB / 363.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009623/0.4667, allocations: 0.5331 MB / 0.5426 GB, free: 14.28 MB / 363.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001097/0.4678, allocations: 0.7184 MB / 0.5433 GB, free: 13.7 MB / 363.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.786e-05/0.4678, allocations: 4 kB / 0.5433 GB, free: 13.69 MB / 363.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.671e-05/0.4679, allocations: 0 / 0.5433 GB, free: 13.69 MB / 363.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.391e-05/0.4679, allocations: 16 kB / 0.5434 GB, free: 13.68 MB / 363.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003656/0.4716, allocations: 2.852 MB / 0.5462 GB, free: 11.24 MB / 363.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008375/0.4725, allocations: 0.5618 MB / 0.5467 GB, free: 10.85 MB / 363.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007012/0.4732, allocations: 445.9 kB / 0.5471 GB, free: 10.54 MB / 363.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.775e-05/0.4732, allocations: 8.562 kB / 0.5471 GB, free: 10.53 MB / 363.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007652/0.474, allocations: 0.59 MB / 0.5477 GB, free: 10.03 MB / 363.1 MB Notification: Performance of pre-optimization done (n=81): time 2.655e-06/0.474, allocations: 0 / 0.5477 GB, free: 10.03 MB / 363.1 MB Notification: Performance of matching and sorting (n=82): time 0.002792/0.4768, allocations: 1.704 MB / 0.5494 GB, free: 8.59 MB / 363.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.666e-05/0.4769, allocations: 207.6 kB / 0.5496 GB, free: 8.352 MB / 363.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004378/0.4774, allocations: 389.3 kB / 0.5499 GB, free: 8.043 MB / 363.1 MB Notification: Performance of collectPreVariables (initialization): time 6.033e-05/0.4774, allocations: 36.83 kB / 0.55 GB, free: 8.004 MB / 363.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002178/0.4777, allocations: 338.9 kB / 0.5503 GB, free: 7.758 MB / 363.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001822/0.4779, allocations: 230.3 kB / 0.5505 GB, free: 7.57 MB / 363.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.839e-05/0.4779, allocations: 7.938 kB / 0.5505 GB, free: 7.562 MB / 363.1 MB Notification: Performance of setup shared object (initialization): time 0.0001503/0.4781, allocations: 385.1 kB / 0.5509 GB, free: 7.207 MB / 363.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000411/0.4785, allocations: 283.7 kB / 0.5512 GB, free: 7.031 MB / 363.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004929/0.479, allocations: 470.2 kB / 0.5516 GB, free: 6.629 MB / 363.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004181/0.4794, allocations: 309.7 kB / 0.5519 GB, free: 6.422 MB / 363.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.999e-06/0.4794, allocations: 8 kB / 0.5519 GB, free: 6.414 MB / 363.1 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.001391/0.4808, allocations: 0.9044 MB / 0.5528 GB, free: 5.695 MB / 363.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.639e-05/0.4809, allocations: 63.39 kB / 0.5529 GB, free: 5.621 MB / 363.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.268e-05/0.4809, allocations: 7.953 kB / 0.5529 GB, free: 5.613 MB / 363.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004671/0.4814, allocations: 132.3 kB / 0.553 GB, free: 5.492 MB / 363.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008895/0.4823, allocations: 207.9 kB / 0.5532 GB, free: 5.297 MB / 363.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002702/0.485, allocations: 2.954 MB / 0.5561 GB, free: 2.297 MB / 363.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004684/0.4855, allocations: 27.97 kB / 0.5561 GB, free: 2.27 MB / 363.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.702e-05/0.4856, allocations: 35.38 kB / 0.5561 GB, free: 2.242 MB / 363.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 () * 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.0002385/0.4858, allocations: 219.6 kB / 0.5563 GB, free: 2.02 MB / 363.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001141/0.4859, allocations: 67.23 kB / 0.5564 GB, free: 1.953 MB / 363.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001386/0.4873, allocations: 0.8518 MB / 0.5572 GB, free: 1.309 MB / 363.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.983e-06/0.4873, allocations: 8 kB / 0.5572 GB, free: 1.301 MB / 363.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.781e-06/0.4874, allocations: 7.984 kB / 0.5573 GB, free: 1.293 MB / 363.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.945e-06/0.4874, allocations: 3.984 kB / 0.5573 GB, free: 1.289 MB / 363.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002521/0.4899, allocations: 1.65 MB / 0.5589 GB, free: 15.99 MB / 379.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.168e-06/0.4899, allocations: 0 / 0.5589 GB, free: 15.99 MB / 379.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006469/0.4906, allocations: 155 kB / 0.559 GB, free: 15.85 MB / 379.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005316/0.4911, allocations: 148.4 kB / 0.5592 GB, free: 15.71 MB / 379.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.172e-05/0.4912, allocations: 15.17 kB / 0.5592 GB, free: 15.7 MB / 379.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002425/0.4936, allocations: 2.952 MB / 0.5621 GB, free: 12.71 MB / 379.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.905e-06/0.4936, allocations: 0 / 0.5621 GB, free: 12.71 MB / 379.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001884/0.4955, allocations: 1.379 MB / 0.5634 GB, free: 11.64 MB / 379.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003145/0.4959, allocations: 204.8 kB / 0.5636 GB, free: 11.45 MB / 379.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001371/0.496, allocations: 22.05 kB / 0.5636 GB, free: 11.43 MB / 379.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003953/0.4964, allocations: 27.97 kB / 0.5636 GB, free: 11.4 MB / 379.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001881/0.4966, allocations: 94.08 kB / 0.5637 GB, free: 11.32 MB / 379.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.183e-05/0.4967, allocations: 29.92 kB / 0.5638 GB, free: 11.3 MB / 379.1 MB Notification: Performance of sorting global known variables: time 0.0003092/0.497, allocations: 287.6 kB / 0.564 GB, free: 11.08 MB / 379.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.497, allocations: 4 kB / 0.564 GB, free: 11.07 MB / 379.1 MB Notification: Performance of remove unused functions: time 0.0007233/0.4977, allocations: 188 kB / 0.5642 GB, free: 10.89 MB / 379.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_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.0002645/0.498, allocations: 159.5 kB / 0.5644 GB, free: 10.73 MB / 379.1 MB Notification: Performance of simCode: created initialization part: time 0.001807/0.4998, allocations: 1.117 MB / 0.5655 GB, free: 9.809 MB / 379.1 MB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/0.4999, allocations: 0 / 0.5655 GB, free: 9.809 MB / 379.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00129/0.5011, allocations: 0.8102 MB / 0.5663 GB, free: 9.102 MB / 379.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007214/0.5019, allocations: 122.2 kB / 0.5664 GB, free: 9.004 MB / 379.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002882/0.5048, allocations: 1.397 MB / 0.5677 GB, free: 7.723 MB / 379.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005672/0.5054, allocations: 1.008 MB / 0.5687 GB, free: 6.707 MB / 379.1 MB Notification: Performance of simCode: alias equations: time 0.0005005/0.5059, allocations: 149.9 kB / 0.5689 GB, free: 6.559 MB / 379.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001849/0.5061, allocations: 51.44 kB / 0.5689 GB, free: 6.508 MB / 379.1 MB Notification: Performance of SimCode: time 1.072e-06/0.5061, allocations: 0 / 0.5689 GB, free: 6.508 MB / 379.1 MB Notification: Performance of Templates: time 0.01537/0.5215, allocations: 8.426 MB / 0.5771 GB, free: 14.14 MB / 395.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)