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.001718/0.001718, allocations: 178.9 kB / 16.38 MB, free: 5.766 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.262/1.262, allocations: 194.5 MB / 211.6 MB, free: 3.043 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.001569/0.001569, allocations: 106.6 kB / 256.9 MB, free: 4.355 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.162/0.162, allocations: 38 MB / 340.1 MB, free: 1.348 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003598/0.0003598, allocations: 15.98 kB / 403.8 MB, free: 68.79 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08635/0.08672, allocations: 53.22 MB / 457 MB, free: 15.56 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3251/0.4118, allocations: 95.19 MB / 0.5393 GB, free: 80 kB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002201/0.4121, allocations: 99.73 kB / 0.5394 GB, free: 24 kB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0392/0.4513, allocations: 14.95 MB / 0.5539 GB, free: 3.121 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.002e-06/0.4513, allocations: 0 / 0.5539 GB, free: 3.121 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.687e-05/0.4514, allocations: 12 kB / 0.554 GB, free: 3.109 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.001831/0.4532, allocations: 1.082 MB / 0.555 GB, free: 2.016 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.016e-05/0.4533, allocations: 12.02 kB / 0.555 GB, free: 2.004 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000152/0.4534, allocations: 90.91 kB / 0.5551 GB, free: 1.914 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002501/0.4559, allocations: 1.085 MB / 0.5562 GB, free: 0.9688 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.264e-05/0.456, allocations: 54.5 kB / 0.5562 GB, free: 0.9375 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001077/0.4561, allocations: 73.06 kB / 0.5563 GB, free: 0.8867 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001185/0.4573, allocations: 0.8024 MB / 0.5571 GB, free: 268 kB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.779e-05/0.4574, allocations: 4 kB / 0.5571 GB, free: 264 kB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.366e-05/0.4574, allocations: 27.88 kB / 0.5571 GB, free: 256 kB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.576e-05/0.4574, allocations: 15.98 kB / 0.5571 GB, free: 240 kB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008978/0.4583, allocations: 0.6006 MB / 0.5577 GB, free: 15.82 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003858/0.4622, allocations: 2.965 MB / 0.5606 GB, free: 13.27 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008365/0.4631, allocations: 0.6016 MB / 0.5612 GB, free: 12.85 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.002e-05/0.4631, allocations: 8.625 kB / 0.5612 GB, free: 12.84 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000823/0.4639, allocations: 0.6075 MB / 0.5618 GB, free: 12.33 MB / 378.7 MB Notification: Performance of pre-optimization done (n=81): time 2.655e-06/0.464, allocations: 4 kB / 0.5618 GB, free: 12.33 MB / 378.7 MB Notification: Performance of matching and sorting (n=82): time 0.004022/0.468, allocations: 2.672 MB / 0.5644 GB, free: 10.02 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001128/0.4681, allocations: 220.2 kB / 0.5646 GB, free: 9.762 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004541/0.4686, allocations: 432.9 kB / 0.565 GB, free: 9.418 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.85e-05/0.4686, allocations: 48.27 kB / 0.5651 GB, free: 9.379 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002085/0.4689, allocations: 333 kB / 0.5654 GB, free: 9.141 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001776/0.469, allocations: 235.5 kB / 0.5656 GB, free: 8.941 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.651e-05/0.4691, allocations: 20.38 kB / 0.5656 GB, free: 8.938 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001653/0.4693, allocations: 391 kB / 0.566 GB, free: 8.578 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004581/0.4697, allocations: 313.8 kB / 0.5663 GB, free: 8.371 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005709/0.4703, allocations: 0.4946 MB / 0.5668 GB, free: 7.934 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005016/0.4708, allocations: 399.6 kB / 0.5672 GB, free: 7.66 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.4708, allocations: 0 / 0.5672 GB, free: 7.66 MB / 378.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.001553/0.4724, allocations: 1.067 MB / 0.5682 GB, free: 6.828 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.795e-05/0.4725, allocations: 63.95 kB / 0.5683 GB, free: 6.754 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.092e-05/0.4725, allocations: 12 kB / 0.5683 GB, free: 6.742 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000484/0.473, allocations: 129.1 kB / 0.5684 GB, free: 6.625 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007979/0.4738, allocations: 211.4 kB / 0.5686 GB, free: 6.426 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002839/0.4766, allocations: 3.082 MB / 0.5716 GB, free: 3.285 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004226/0.4771, allocations: 50.66 kB / 0.5717 GB, free: 3.25 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.682e-05/0.4771, allocations: 39.73 kB / 0.5717 GB, free: 3.219 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.0004538/0.4776, allocations: 358.2 kB / 0.5721 GB, free: 2.918 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001039/0.4777, allocations: 75.11 kB / 0.5721 GB, free: 2.844 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001525/0.4793, allocations: 0.9908 MB / 0.5731 GB, free: 2.109 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.805e-06/0.4793, allocations: 8 kB / 0.5731 GB, free: 2.102 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/0.4793, allocations: 4 kB / 0.5731 GB, free: 2.098 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.347e-06/0.4793, allocations: 7.984 kB / 0.5731 GB, free: 2.09 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002623/0.4819, allocations: 1.876 MB / 0.5749 GB, free: 0.5938 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.567e-06/0.4819, allocations: 0 / 0.5749 GB, free: 0.5938 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000621/0.4826, allocations: 162.1 kB / 0.5751 GB, free: 452 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005191/0.4831, allocations: 146.1 kB / 0.5752 GB, free: 312 kB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.907e-05/0.4832, allocations: 28.48 kB / 0.5753 GB, free: 296 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002651/0.4858, allocations: 3.076 MB / 0.5783 GB, free: 13.15 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.4858, allocations: 7.969 kB / 0.5783 GB, free: 13.14 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002072/0.4879, allocations: 1.531 MB / 0.5798 GB, free: 11.96 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003461/0.4883, allocations: 205.5 kB / 0.58 GB, free: 11.77 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001004/0.4884, allocations: 32.62 kB / 0.58 GB, free: 11.75 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000363/0.4888, allocations: 42.66 kB / 0.58 GB, free: 11.71 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001946/0.489, allocations: 83.7 kB / 0.5801 GB, free: 11.64 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.052e-05/0.489, allocations: 30.23 kB / 0.5801 GB, free: 11.62 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0003721/0.4894, allocations: 330.7 kB / 0.5805 GB, free: 11.36 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.41e-07/0.4894, allocations: 0 / 0.5805 GB, free: 11.36 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0007601/0.4902, allocations: 215.3 kB / 0.5807 GB, free: 11.18 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.0002856/0.4905, allocations: 168.4 kB / 0.5808 GB, free: 11.02 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001969/0.4925, allocations: 1.198 MB / 0.582 GB, free: 10 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.4925, allocations: 4 kB / 0.582 GB, free: 9.996 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001445/0.4939, allocations: 0.8513 MB / 0.5828 GB, free: 9.238 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006867/0.4946, allocations: 140 kB / 0.583 GB, free: 9.141 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003303/0.4979, allocations: 2.09 MB / 0.585 GB, free: 7.18 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006223/0.4986, allocations: 1.008 MB / 0.586 GB, free: 6.164 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0004444/0.499, allocations: 146.1 kB / 0.5861 GB, free: 6.02 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001526/0.4992, allocations: 54.81 kB / 0.5862 GB, free: 5.969 MB / 394.7 MB Notification: Performance of SimCode: time 6.52e-07/0.4992, allocations: 0 / 0.5862 GB, free: 5.969 MB / 394.7 MB Notification: Performance of Templates: time 0.01519/0.5144, allocations: 9.085 MB / 0.5951 GB, free: 12.9 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)