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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001057/0.001057, allocations: 103.5 kB / 16.62 MB, free: 6.801 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.001106/0.001106, allocations: 193.8 kB / 17.55 MB, free: 5.949 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.381/1.381, allocations: 222.9 MB / 241.2 MB, free: 15.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1741/0.1741, allocations: 38.03 MB / 329.4 MB, free: 8.984 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00138/0.00138, allocations: 63.88 kB / 398.3 MB, free: 34.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1186/0.12, allocations: 58.05 MB / 456.3 MB, free: 8.441 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationFixedInitial): time 0.01114/0.1312, allocations: 9.23 MB / 465.6 MB, free: 15.16 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006357/0.1376, allocations: 2.812 MB / 468.4 MB, free: 12.34 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001926/0.1395, allocations: 59.62 kB / 468.4 MB, free: 12.29 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002785/0.1423, allocations: 0.8016 MB / 469.2 MB, free: 11.48 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001728/0.1441, allocations: 485.9 kB / 469.7 MB, free: 11 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001692/0.1458, allocations: 411.3 kB / 470.1 MB, free: 10.6 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001913/0.1477, allocations: 1.313 MB / 471.4 MB, free: 9.281 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00122/0.149, allocations: 0.7401 MB / 472.2 MB, free: 8.531 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001059/0.15, allocations: 0.5719 MB / 472.7 MB, free: 7.957 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001175/0.1512, allocations: 0.732 MB / 473.5 MB, free: 7.223 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002162/0.1514, allocations: 80 kB / 473.5 MB, free: 7.145 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000703/0.1522, allocations: 271.6 kB / 473.8 MB, free: 6.879 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005665/0.1527, allocations: 0.5066 MB / 474.3 MB, free: 6.371 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006161/0.1534, allocations: 0.5443 MB / 474.9 MB, free: 5.824 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00145/0.1548, allocations: 1.316 MB / 476.2 MB, free: 4.504 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.1548, allocations: 0 / 476.2 MB, free: 4.504 MB / 350.1 MB Notification: Performance of FrontEnd: time 8.31e-07/0.1548, allocations: 0 / 476.2 MB, free: 4.504 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.335e-05/0.1549, allocations: 0 / 476.2 MB, free: 4.504 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: 224 * Number of variables: 224 Notification: Performance of Generate backend data structure: time 0.002521/0.1574, allocations: 1.335 MB / 477.5 MB, free: 3.109 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.165e-05/0.1575, allocations: 15.88 kB / 477.5 MB, free: 3.094 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009941/0.1585, allocations: 167.5 kB / 477.7 MB, free: 2.93 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001062/0.1595, allocations: 0.6999 MB / 478.4 MB, free: 2.188 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.402e-05/0.1596, allocations: 66.38 kB / 478.4 MB, free: 2.125 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002391/0.1599, allocations: 115.9 kB / 478.6 MB, free: 2.012 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001853/0.1617, allocations: 1.216 MB / 479.8 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.924e-05/0.1618, allocations: 11.88 kB / 479.8 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.257e-05/0.1618, allocations: 32 kB / 479.8 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002569/0.1621, allocations: 65.97 kB / 479.9 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001535/0.1637, allocations: 1.011 MB / 480.9 MB, free: 15.61 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005631/0.1693, allocations: 4.764 MB / 485.7 MB, free: 10.64 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001067/0.1704, allocations: 0.672 MB / 486.3 MB, free: 9.941 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006822/0.1711, allocations: 451.8 kB / 486.8 MB, free: 9.496 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.732e-05/0.1712, allocations: 16.53 kB / 486.8 MB, free: 9.48 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007459/0.1719, allocations: 0.5041 MB / 487.3 MB, free: 8.945 MB / 366.1 MB Notification: Performance of pre-optimization done (n=69): time 2.515e-06/0.1719, allocations: 0 / 487.3 MB, free: 8.945 MB / 366.1 MB Notification: Performance of matching and sorting (n=73): time 0.004695/0.1766, allocations: 2.78 MB / 490.1 MB, free: 6.078 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.884e-05/0.1767, allocations: 178.8 kB / 490.2 MB, free: 5.867 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006806/0.1774, allocations: 0.586 MB / 490.8 MB, free: 5.27 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.66e-05/0.1775, allocations: 41.7 kB / 490.9 MB, free: 5.223 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000364/0.1779, allocations: 479 kB / 491.3 MB, free: 4.746 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000217/0.1781, allocations: 260.4 kB / 491.6 MB, free: 4.488 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002572/0.1783, allocations: 166.6 kB / 491.8 MB, free: 4.32 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001861/0.1785, allocations: 398.7 kB / 492.1 MB, free: 3.922 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005947/0.1791, allocations: 381.7 kB / 492.5 MB, free: 3.547 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007395/0.1799, allocations: 0.631 MB / 493.2 MB, free: 2.805 MB / 366.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.006798/0.1867, allocations: 3.449 MB / 496.6 MB, free: 15.18 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.821e-06/0.1867, allocations: 4 kB / 496.6 MB, free: 15.18 MB / 382.1 MB Notification: Performance of matching and sorting (n=118) (initialization): time 0.002128/0.1889, allocations: 1.343 MB / 497.9 MB, free: 13.81 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.943e-05/0.1889, allocations: 36.83 kB / 498 MB, free: 13.77 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.452e-05/0.1889, allocations: 8 kB / 498 MB, free: 13.76 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006064/0.1895, allocations: 254.4 kB / 498.2 MB, free: 13.5 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001057/0.1906, allocations: 259.6 kB / 498.5 MB, free: 13.25 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005468/0.1961, allocations: 6.085 MB / 0.4928 GB, free: 6.75 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006105/0.1967, allocations: 35.92 kB / 0.4928 GB, free: 6.715 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.694e-05/0.1968, allocations: 40.08 kB / 0.4928 GB, free: 6.676 MB / 382.1 MB Warning: The initial conditions are over specified. The following 3 initial equations are redundant, so they are removed from the initialization system: 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: 37 * Number of states: 0 () * Number of discrete variables: 14 (system.initime,relayNet.cnt,$PRE.relayNet.cnt,$whenCondition1,$PRE.switch.t0,$PRE.switch.closed,$PRE.switch.open,relayNet.y[1],$PRE.relayNet.y[1],switch.closed,switch.open,switch.t0,switch.control[1],$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (99): * Single equations (assignments): 94 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,7,100.0%), (1,7,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005468/0.1974, allocations: 386.6 kB / 0.4932 GB, free: 6.285 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001132/0.1975, allocations: 79 kB / 0.4933 GB, free: 6.207 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001926/0.1994, allocations: 1.141 MB / 0.4944 GB, free: 5.039 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.139e-05/0.1994, allocations: 8 kB / 0.4944 GB, free: 5.031 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.472e-06/0.1995, allocations: 4 kB / 0.4944 GB, free: 5.027 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.04e-05/0.1995, allocations: 3.984 kB / 0.4944 GB, free: 5.023 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003546/0.203, allocations: 2.242 MB / 0.4966 GB, free: 2.695 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.355e-06/0.203, allocations: 12.06 kB / 0.4966 GB, free: 2.684 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008895/0.2039, allocations: 179.8 kB / 0.4968 GB, free: 2.508 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006802/0.2046, allocations: 258.4 kB / 0.497 GB, free: 2.246 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.72e-05/0.2047, allocations: 23.92 kB / 0.497 GB, free: 2.223 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00555/0.2103, allocations: 6.019 MB / 0.5029 GB, free: 11.79 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.5e-06/0.2103, allocations: 4.031 kB / 0.5029 GB, free: 11.79 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002843/0.2131, allocations: 1.645 MB / 0.5045 GB, free: 10.09 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002931/0.2134, allocations: 152.1 kB / 0.5047 GB, free: 9.922 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001132/0.2136, allocations: 16 kB / 0.5047 GB, free: 9.906 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003991/0.214, allocations: 27.97 kB / 0.5047 GB, free: 9.879 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001508/0.2141, allocations: 60.42 kB / 0.5048 GB, free: 9.82 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.406e-05/0.2142, allocations: 23.98 kB / 0.5048 GB, free: 9.797 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0005078/0.2147, allocations: 415 kB / 0.5052 GB, free: 9.398 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.964e-06/0.2147, allocations: 4 kB / 0.5052 GB, free: 9.395 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001111/0.2158, allocations: 275.9 kB / 0.5055 GB, free: 9.125 MB / 398.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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 48 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,7,100.0%), (1,7,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002351/0.2161, allocations: 127.2 kB / 0.5056 GB, free: 8.992 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002444/0.2185, allocations: 1.564 MB / 0.5071 GB, free: 7.375 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/0.2185, allocations: 4 kB / 0.5071 GB, free: 7.371 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001294/0.2198, allocations: 0.9045 MB / 0.508 GB, free: 6.414 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008877/0.2207, allocations: 184.9 kB / 0.5082 GB, free: 6.238 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003753/0.2245, allocations: 2.567 MB / 0.5107 GB, free: 3.625 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008273/0.2254, allocations: 1.111 MB / 0.5118 GB, free: 2.488 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005755/0.2259, allocations: 218.4 kB / 0.512 GB, free: 2.27 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001574/0.2261, allocations: 55.44 kB / 0.512 GB, free: 2.215 MB / 398.1 MB Notification: Performance of SimCode: time 4.91e-07/0.2261, allocations: 0 / 0.512 GB, free: 2.215 MB / 398.1 MB Notification: Performance of Templates: time 0.2348/0.4609, allocations: 10.95 MB / 0.5227 GB, free: 68.66 MB / 398.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)