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.001533/0.001533, allocations: 99.88 kB / 16.5 MB, free: 6.641 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.001756/0.001756, allocations: 195.1 kB / 17.42 MB, free: 6.066 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.453/1.453, allocations: 222.9 MB / 241.1 MB, free: 15.4 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1742/0.1742, allocations: 38.04 MB / 329.3 MB, free: 9.008 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001195/0.001195, allocations: 65.64 kB / 398.1 MB, free: 34.52 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0926/0.09381, allocations: 58.07 MB / 456.1 MB, free: 8.535 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationFixedInitial): time 0.01009/0.1039, allocations: 9.21 MB / 465.4 MB, free: 15.28 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006065/0.1101, allocations: 2.851 MB / 468.2 MB, free: 12.42 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001223/0.1113, allocations: 67.62 kB / 468.3 MB, free: 12.35 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002381/0.1137, allocations: 0.8073 MB / 469.1 MB, free: 11.54 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001501/0.1152, allocations: 473.9 kB / 469.5 MB, free: 11.08 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001307/0.1165, allocations: 407.3 kB / 469.9 MB, free: 10.68 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001911/0.1185, allocations: 1.972 MB / 471.9 MB, free: 8.699 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001057/0.1195, allocations: 0.6695 MB / 472.6 MB, free: 8.027 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008825/0.1204, allocations: 497.8 kB / 473.1 MB, free: 7.539 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001146/0.1216, allocations: 0.732 MB / 473.8 MB, free: 6.805 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001243/0.1217, allocations: 59.94 kB / 473.9 MB, free: 6.746 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005702/0.1223, allocations: 259.6 kB / 474.1 MB, free: 6.492 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004663/0.1228, allocations: 490.8 kB / 474.6 MB, free: 6.012 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005875/0.1234, allocations: 0.513 MB / 475.1 MB, free: 5.496 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001291/0.1247, allocations: 1.285 MB / 476.4 MB, free: 4.207 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.1247, allocations: 4 kB / 476.4 MB, free: 4.203 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.012e-06/0.1247, allocations: 0 / 476.4 MB, free: 4.203 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.218e-05/0.1247, allocations: 0 / 476.4 MB, free: 4.203 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.002423/0.1272, allocations: 1.331 MB / 477.7 MB, free: 2.809 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.498e-05/0.1272, allocations: 12.02 kB / 477.7 MB, free: 2.797 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001059/0.1283, allocations: 167.5 kB / 477.9 MB, free: 2.633 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001154/0.1294, allocations: 0.7038 MB / 478.6 MB, free: 1.891 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.72e-05/0.1295, allocations: 70.36 kB / 478.7 MB, free: 1.82 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002218/0.1297, allocations: 104 kB / 478.8 MB, free: 1.719 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001879/0.1316, allocations: 1.227 MB / 480 MB, free: 432 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.952e-05/0.1317, allocations: 3.938 kB / 480 MB, free: 428 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.753e-05/0.1318, allocations: 39.98 kB / 480 MB, free: 388 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002604/0.132, allocations: 65.91 kB / 480.1 MB, free: 320 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001911/0.134, allocations: 1.007 MB / 481.1 MB, free: 15.3 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00913/0.1431, allocations: 4.775 MB / 485.9 MB, free: 10.32 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001662/0.1448, allocations: 0.6682 MB / 486.6 MB, free: 9.633 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009917/0.1458, allocations: 451.8 kB / 487 MB, free: 9.188 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.64e-05/0.1459, allocations: 16.53 kB / 487 MB, free: 9.172 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001157/0.1471, allocations: 0.5002 MB / 487.5 MB, free: 8.641 MB / 366.1 MB Notification: Performance of pre-optimization done (n=69): time 3.657e-06/0.1471, allocations: 4 kB / 487.5 MB, free: 8.637 MB / 366.1 MB Notification: Performance of matching and sorting (n=73): time 0.005238/0.1524, allocations: 2.78 MB / 490.3 MB, free: 5.77 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.129e-05/0.1525, allocations: 166.8 kB / 490.5 MB, free: 5.57 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006311/0.1531, allocations: 0.5899 MB / 491.1 MB, free: 4.973 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.098e-05/0.1532, allocations: 41.7 kB / 491.1 MB, free: 4.926 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003339/0.1535, allocations: 479 kB / 491.6 MB, free: 4.449 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000208/0.1537, allocations: 256.4 kB / 491.8 MB, free: 4.195 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002833/0.154, allocations: 170.6 kB / 492 MB, free: 4.023 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001624/0.1542, allocations: 394.7 kB / 492.4 MB, free: 3.629 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005443/0.1548, allocations: 377.8 kB / 492.7 MB, free: 3.258 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006993/0.1555, allocations: 0.6348 MB / 493.4 MB, free: 2.508 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.00671/0.1622, allocations: 3.444 MB / 496.8 MB, free: 14.89 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.11e-06/0.1622, allocations: 0 / 496.8 MB, free: 14.89 MB / 382.1 MB Notification: Performance of matching and sorting (n=118) (initialization): time 0.002162/0.1644, allocations: 1.352 MB / 498.2 MB, free: 13.52 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.544e-05/0.1644, allocations: 37.83 kB / 498.2 MB, free: 13.47 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.381e-05/0.1644, allocations: 8 kB / 498.2 MB, free: 13.46 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006021/0.1651, allocations: 238.4 kB / 498.4 MB, free: 13.22 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001068/0.1661, allocations: 271.5 kB / 498.7 MB, free: 12.96 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004976/0.1711, allocations: 5.562 MB / 0.4925 GB, free: 6.992 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005274/0.1717, allocations: 35.98 kB / 0.4925 GB, free: 6.957 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.919e-05/0.1717, allocations: 43.98 kB / 0.4925 GB, free: 6.914 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.0005915/0.1723, allocations: 384.6 kB / 0.4929 GB, free: 6.523 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001105/0.1725, allocations: 75.06 kB / 0.493 GB, free: 6.449 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001998/0.1745, allocations: 1.145 MB / 0.4941 GB, free: 5.281 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.377e-05/0.1745, allocations: 12 kB / 0.4941 GB, free: 5.27 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.534e-06/0.1745, allocations: 4.125 kB / 0.4941 GB, free: 5.266 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.126e-06/0.1745, allocations: 3.984 kB / 0.4941 GB, free: 5.262 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003658/0.1782, allocations: 2.253 MB / 0.4963 GB, free: 2.922 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.619e-06/0.1782, allocations: 0 / 0.4963 GB, free: 2.922 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008682/0.1791, allocations: 187.8 kB / 0.4965 GB, free: 2.738 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007246/0.1798, allocations: 242.3 kB / 0.4967 GB, free: 2.492 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.614e-05/0.1799, allocations: 27.98 kB / 0.4967 GB, free: 2.465 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005104/0.185, allocations: 5.503 MB / 0.5021 GB, free: 12.56 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.355e-06/0.1851, allocations: 4.031 kB / 0.5021 GB, free: 12.55 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002541/0.1876, allocations: 1.642 MB / 0.5037 GB, free: 10.86 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002305/0.1879, allocations: 152.2 kB / 0.5039 GB, free: 10.7 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001157/0.188, allocations: 31.92 kB / 0.5039 GB, free: 10.66 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003883/0.1884, allocations: 19.98 kB / 0.5039 GB, free: 10.64 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001572/0.1885, allocations: 56.48 kB / 0.504 GB, free: 10.59 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.25e-05/0.1886, allocations: 23.98 kB / 0.504 GB, free: 10.57 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0005119/0.1891, allocations: 415 kB / 0.5044 GB, free: 10.16 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1891, allocations: 0 / 0.5044 GB, free: 10.16 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001047/0.1902, allocations: 276 kB / 0.5047 GB, free: 9.895 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.0001959/0.1904, allocations: 130.1 kB / 0.5048 GB, free: 9.762 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.002091/0.1925, allocations: 1.392 MB / 0.5061 GB, free: 8.316 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.524e-06/0.1925, allocations: 0 / 0.5061 GB, free: 8.316 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001341/0.1938, allocations: 0.9045 MB / 0.507 GB, free: 7.359 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008845/0.1947, allocations: 190.6 kB / 0.5072 GB, free: 7.18 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003772/0.1985, allocations: 2.568 MB / 0.5097 GB, free: 4.566 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006928/0.1992, allocations: 1.118 MB / 0.5108 GB, free: 3.422 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005946/0.1998, allocations: 218.5 kB / 0.511 GB, free: 3.203 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001749/0.2, allocations: 55.44 kB / 0.5111 GB, free: 3.148 MB / 398.1 MB Notification: Performance of SimCode: time 1.142e-06/0.2, allocations: 3.938 kB / 0.5111 GB, free: 3.145 MB / 398.1 MB Notification: Performance of Templates: time 0.2164/0.4164, allocations: 10.43 MB / 0.5213 GB, free: 67.94 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)