Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Introductory.SimulationFixedInitial.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.Introductory.SimulationFixedInitial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Introductory.SimulationFixedInitial") translateModel(PowerSystems.Examples.Introductory.SimulationFixedInitial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Introductory.SimulationFixedInitial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.0009623/0.0009624, 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.483/1.483, allocations: 194.3 MB / 203.1 MB, free: 9.246 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.001762/0.001762, allocations: 124.1 kB / 248.1 MB, free: 6.344 MB / 203.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.169/0.169, allocations: 37.92 MB / 330.9 MB, free: 7.309 MB / 283.1 MB Notification: Performance of FrontEnd - loaded program: time 1.616e-05/1.625e-05, allocations: 4 kB / 390.3 MB, free: 78.23 MB / 315.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09901/0.09905, allocations: 53.24 MB / 443.6 MB, free: 25.11 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3848/0.4838, allocations: 97.99 MB / 0.5289 GB, free: 8.852 MB / 347.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002595/0.4842, allocations: 84.11 kB / 0.529 GB, free: 8.84 MB / 347.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.07061/0.5548, allocations: 25.64 MB / 0.554 GB, free: 4.449 MB / 363.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.5549, allocations: 0 / 0.554 GB, free: 4.449 MB / 363.1 MB Notification: Performance of Transformations before backend: time 8.234e-05/0.555, allocations: 24 kB / 0.554 GB, free: 4.426 MB / 363.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 224 * Number of variables: 224 Notification: Performance of Generate backend data structure: time 0.002716/0.5577, allocations: 1.084 MB / 0.5551 GB, free: 3.344 MB / 363.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.148e-05/0.5577, allocations: 8.031 kB / 0.5551 GB, free: 3.336 MB / 363.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001231/0.559, allocations: 178.5 kB / 0.5553 GB, free: 3.16 MB / 363.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003482/0.5625, allocations: 1.354 MB / 0.5566 GB, free: 2.012 MB / 363.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.792e-05/0.5625, allocations: 28 kB / 0.5566 GB, free: 1.984 MB / 363.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001932/0.5627, allocations: 59.84 kB / 0.5567 GB, free: 1.926 MB / 363.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001407/0.5642, allocations: 0.8143 MB / 0.5575 GB, free: 1.383 MB / 363.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001677/0.5658, allocations: 1.063 MB / 0.5585 GB, free: 0.5039 MB / 363.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.536e-05/0.5659, allocations: 7.891 kB / 0.5585 GB, free: 0.5 MB / 363.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.167e-05/0.566, allocations: 7.984 kB / 0.5585 GB, free: 0.4922 MB / 363.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.481e-05/0.5661, allocations: 45.98 kB / 0.5586 GB, free: 456 kB / 363.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005627/0.5717, allocations: 4.514 MB / 0.563 GB, free: 12.41 MB / 379.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001068/0.5728, allocations: 0.6437 MB / 0.5636 GB, free: 11.96 MB / 379.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005647/0.5734, allocations: 448.8 kB / 0.564 GB, free: 11.66 MB / 379.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.56e-05/0.5734, allocations: 9.219 kB / 0.564 GB, free: 11.66 MB / 379.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007606/0.5742, allocations: 0.5009 MB / 0.5645 GB, free: 11.25 MB / 379.1 MB Notification: Performance of pre-optimization done (n=73): time 4.699e-06/0.5742, allocations: 0 / 0.5645 GB, free: 11.25 MB / 379.1 MB Notification: Performance of matching and sorting (n=77): time 0.004138/0.5784, allocations: 2.358 MB / 0.5668 GB, free: 9.281 MB / 379.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.29e-05/0.5785, allocations: 174 kB / 0.567 GB, free: 9.078 MB / 379.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004915/0.579, allocations: 444.8 kB / 0.5674 GB, free: 8.73 MB / 379.1 MB Notification: Performance of collectPreVariables (initialization): time 5.722e-05/0.5791, allocations: 32.69 kB / 0.5675 GB, free: 8.695 MB / 379.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003049/0.5794, allocations: 469 kB / 0.5679 GB, free: 8.348 MB / 379.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002255/0.5796, allocations: 258.6 kB / 0.5681 GB, free: 8.125 MB / 379.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.278e-05/0.5797, allocations: 0 / 0.5681 GB, free: 8.125 MB / 379.1 MB Notification: Performance of setup shared object (initialization): time 0.0001552/0.5798, allocations: 386.8 kB / 0.5685 GB, free: 7.77 MB / 379.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004942/0.5803, allocations: 362.1 kB / 0.5689 GB, free: 7.539 MB / 379.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006525/0.581, allocations: 0.6002 MB / 0.5694 GB, free: 6.984 MB / 379.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: lineR.i[1] = lineR.i_start[1] (lineL.i_start[1] - lineB.i_start[1] = lineR.i_start[1]) Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: lineR.i[2] = lineR.i_start[2] (lineL.i_start[2] - lineB.i_start[2] = lineR.i_start[2]) Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: lineR.i[3] = lineR.i_start[3] (lineL.i_start[3] - lineB.i_start[3] = lineR.i_start[3]) Notification: Performance of analyzeInitialSystem (initialization): time 0.01074/0.5917, allocations: 3.796 MB / 0.5732 GB, free: 3.676 MB / 379.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.927e-06/0.5918, allocations: 0 / 0.5732 GB, free: 3.676 MB / 379.1 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.00246/0.5942, allocations: 1.231 MB / 0.5744 GB, free: 2.707 MB / 379.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.63e-05/0.5943, allocations: 37.7 kB / 0.5744 GB, free: 2.664 MB / 379.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.785e-05/0.5943, allocations: 7.984 kB / 0.5744 GB, free: 2.656 MB / 379.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006614/0.595, allocations: 244.8 kB / 0.5746 GB, free: 2.457 MB / 379.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001192/0.5962, allocations: 269.2 kB / 0.5749 GB, free: 2.199 MB / 379.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00517/0.6014, allocations: 5.392 MB / 0.5802 GB, free: 12.48 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007797/0.6022, allocations: 31.94 kB / 0.5802 GB, free: 12.45 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001353/0.6023, allocations: 36 kB / 0.5802 GB, free: 12.41 MB / 395.1 MB Warning: The initial conditions are over specified. The following 3 initial equations are redundant, so they are removed from the initialization sytem: lineR.i[1] = lineR.i_start[1] lineR.i[2] = lineR.i_start[2] lineR.i[3] = lineR.i_start[3]. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * Number of states: 0 () * Number of discrete variables: 14 (system.initime,$whenCondition1,$PRE.relayNet.cnt,relayNet.cnt,$whenCondition2,switch.control[1],$PRE.switch.t0,switch.t0,$PRE.switch.open,switch.open,$PRE.switch.closed,switch.closed,$PRE.relayNet.y[1],relayNet.y[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (97): * Single equations (assignments): 91 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 7,(1,100.0%) 7,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003198/0.6027, allocations: 175.3 kB / 0.5804 GB, free: 12.23 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001785/0.6029, allocations: 71.16 kB / 0.5805 GB, free: 12.16 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002128/0.605, allocations: 1.092 MB / 0.5815 GB, free: 11.04 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.68e-05/0.605, allocations: 12 kB / 0.5815 GB, free: 11.03 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.806e-06/0.6051, allocations: 8 kB / 0.5815 GB, free: 11.02 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.057e-06/0.6051, allocations: 3.984 kB / 0.5815 GB, free: 11.02 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003741/0.6088, allocations: 2.096 MB / 0.5836 GB, free: 8.852 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.552e-06/0.6088, allocations: 8.156 kB / 0.5836 GB, free: 8.844 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009726/0.6098, allocations: 195.8 kB / 0.5838 GB, free: 8.652 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006976/0.6105, allocations: 246.5 kB / 0.584 GB, free: 8.402 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.855e-05/0.6106, allocations: 15.98 kB / 0.584 GB, free: 8.387 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005041/0.6157, allocations: 5.325 MB / 0.5892 GB, free: 2.719 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.023e-06/0.6157, allocations: 4.141 kB / 0.5892 GB, free: 2.715 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0026/0.6183, allocations: 1.659 MB / 0.5909 GB, free: 0.9727 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002991/0.6186, allocations: 148.1 kB / 0.591 GB, free: 0.8086 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001704/0.6188, allocations: 20.05 kB / 0.591 GB, free: 0.7891 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004685/0.6193, allocations: 19.97 kB / 0.591 GB, free: 0.7695 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001431/0.6194, allocations: 64.42 kB / 0.5911 GB, free: 0.707 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.864e-05/0.6195, allocations: 20 kB / 0.5911 GB, free: 0.6875 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.0005186/0.62, allocations: 355.2 kB / 0.5915 GB, free: 352 kB / 395.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.62, allocations: 3.938 kB / 0.5915 GB, free: 348 kB / 395.1 MB Notification: Performance of remove unused functions: time 0.001333/0.6214, allocations: 284 kB / 0.5917 GB, free: 64 kB / 395.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 6 (lineL.i[1],lineL.i[2],lineL.i[3],lineB.i[1],lineB.i[2],lineB.i[3]) * Number of discrete variables: 9 (switch.control[1],$whenCondition2,$whenCondition1,switch.t0,switch.open,switch.closed,relayNet.y[1],relayNet.cnt,system.initime) * Number of discrete states: 5 (relayNet.y[1],relayNet.cnt,$whenCondition1,switch.open,switch.closed) * Top-level inputs: 0 Notification: Strong component statistics for simulation (56): * Single equations (assignments): 48 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(1,100.0%) 7,(1,100.0%) 7,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003621/0.6217, allocations: 175.1 kB / 0.5919 GB, free: 15.88 MB / 411.1 MB Notification: Performance of simCode: created initialization part: time 0.002106/0.6238, allocations: 1.334 MB / 0.5932 GB, free: 14.5 MB / 411.1 MB Notification: Performance of simCode: created event and clocks part: time 3.607e-06/0.6239, allocations: 0 / 0.5932 GB, free: 14.5 MB / 411.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001345/0.6252, allocations: 0.8862 MB / 0.5941 GB, free: 13.58 MB / 411.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008604/0.6261, allocations: 147.1 kB / 0.5942 GB, free: 13.43 MB / 411.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003429/0.6295, allocations: 1.782 MB / 0.5959 GB, free: 11.6 MB / 411.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001033/0.6306, allocations: 1.135 MB / 0.5971 GB, free: 10.44 MB / 411.1 MB Notification: Performance of simCode: alias equations: time 0.0006918/0.6313, allocations: 206.6 kB / 0.5973 GB, free: 10.23 MB / 411.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001966/0.6315, allocations: 63.42 kB / 0.5973 GB, free: 10.17 MB / 411.1 MB Notification: Performance of SimCode: time 8.22e-07/0.6315, allocations: 0 / 0.5973 GB, free: 10.17 MB / 411.1 MB Notification: Performance of Templates: time 0.02001/0.6515, allocations: 9.992 MB / 0.6071 GB, free: 204 kB / 411.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.Introductory.SimulationFixedInitial.makefile (rm -f PowerSystems_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe >> ../files/PowerSystems_PowerSystems.Examples.Introductory.SimulationFixedInitial.sim & ./PowerSystems_PowerSystems.Examples.Introductory.SimulationFixedInitial -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe 2>&1)