Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_master_PowerSystems.Examples.Introductory.SimulationFixedInitial.conf.json Using package PowerSystems with version 1.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0-master/package.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/var/lib/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_master_PowerSystems.Examples.Introductory.SimulationFixedInitial") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001384/0.001388, allocations: 184 kB / 16.38 MB, free: 5.598 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.846/1.846, allocations: 194.5 MB / 211.6 MB, free: 7.52 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.002004/0.002004, allocations: 116.6 kB / 256.9 MB, free: 10.14 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0-master/package.mo): time 0.3122/0.3122, allocations: 38.01 MB / 340.1 MB, free: 13.39 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004563/0.0004565, allocations: 16.41 kB / 403.8 MB, free: 55.27 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06961/0.07009, allocations: 53.24 MB / 457 MB, free: 10.37 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationFixedInitial): time 0.008024/0.07815, allocations: 7.847 MB / 464.9 MB, free: 2.488 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.005246/0.08344, allocations: 2.733 MB / 467.6 MB, free: 15.74 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007881/0.08427, allocations: 55.62 kB / 467.7 MB, free: 15.69 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007588/0.08504, allocations: 254.5 kB / 467.9 MB, free: 15.44 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001524/0.08658, allocations: 498.4 kB / 468.4 MB, free: 14.95 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001674/0.08828, allocations: 459 kB / 468.8 MB, free: 14.5 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.001083/0.08938, allocations: 0.6748 MB / 469.5 MB, free: 13.82 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002131/0.09153, allocations: 0.9983 MB / 470.5 MB, free: 12.79 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007603/0.09231, allocations: 414.5 kB / 470.9 MB, free: 12.38 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007995/0.09312, allocations: 466.4 kB / 471.4 MB, free: 11.93 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001255/0.09327, allocations: 40 kB / 471.4 MB, free: 11.89 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005584/0.09384, allocations: 171.8 kB / 471.6 MB, free: 11.72 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005735/0.09444, allocations: 446.9 kB / 472 MB, free: 11.28 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002815/0.09473, allocations: 205.2 kB / 472.2 MB, free: 11.07 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001279/0.09603, allocations: 0.9857 MB / 473.2 MB, free: 10.09 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.518e-06/0.09605, allocations: 4 kB / 473.2 MB, free: 10.08 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.726e-06/0.09606, allocations: 0 / 473.2 MB, free: 10.08 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.313e-05/0.09608, allocations: 0 / 473.2 MB, free: 10.08 MB / 314.7 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.002503/0.0986, allocations: 1.167 MB / 474.4 MB, free: 8.855 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.892e-05/0.09865, allocations: 8.031 kB / 474.4 MB, free: 8.848 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001251/0.09991, allocations: 170.6 kB / 474.6 MB, free: 8.68 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00163/0.1016, allocations: 0.6835 MB / 475.2 MB, free: 7.953 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.026e-05/0.1017, allocations: 65.98 kB / 475.3 MB, free: 7.887 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002991/0.102, allocations: 111.8 kB / 475.4 MB, free: 7.777 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002714/0.1047, allocations: 1.207 MB / 476.6 MB, free: 6.504 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.966e-05/0.1048, allocations: 7.938 kB / 476.6 MB, free: 6.496 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001207/0.1049, allocations: 39.92 kB / 476.7 MB, free: 6.457 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003145/0.1053, allocations: 65.95 kB / 476.7 MB, free: 6.391 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002423/0.1077, allocations: 0.9991 MB / 477.7 MB, free: 5.391 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008444/0.1162, allocations: 4.779 MB / 482.5 MB, free: 420 kB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001626/0.1178, allocations: 0.672 MB / 483.2 MB, free: 15.72 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.988e-05/0.1179, allocations: 8.625 kB / 483.2 MB, free: 15.71 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001085/0.119, allocations: 0.5042 MB / 483.7 MB, free: 15.18 MB / 330.7 MB Notification: Performance of pre-optimization done (n=69): time 4.494e-06/0.119, allocations: 3.938 kB / 483.7 MB, free: 15.17 MB / 330.7 MB Notification: Performance of matching and sorting (n=73): time 0.006743/0.1258, allocations: 2.928 MB / 486.6 MB, free: 12.13 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001309/0.1259, allocations: 166.7 kB / 486.8 MB, free: 11.93 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009659/0.1269, allocations: 0.59 MB / 487.4 MB, free: 11.34 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 8.419e-05/0.127, allocations: 49.75 kB / 487.4 MB, free: 11.28 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004726/0.1275, allocations: 474.9 kB / 487.9 MB, free: 10.81 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003089/0.1278, allocations: 252.5 kB / 488.1 MB, free: 10.56 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.368e-05/0.1279, allocations: 16 kB / 488.1 MB, free: 10.54 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002564/0.1282, allocations: 394.8 kB / 488.5 MB, free: 10.15 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008885/0.1291, allocations: 369.7 kB / 488.9 MB, free: 9.785 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001127/0.1302, allocations: 0.6232 MB / 489.5 MB, free: 9.047 MB / 330.7 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.008243/0.1385, allocations: 2.503 MB / 492 MB, free: 6.488 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.735e-06/0.1385, allocations: 4 kB / 492 MB, free: 6.484 MB / 330.7 MB Notification: Performance of matching and sorting (n=118) (initialization): time 0.003324/0.1419, allocations: 1.328 MB / 493.4 MB, free: 5.133 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.357e-05/0.1419, allocations: 46.42 kB / 493.4 MB, free: 5.082 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.012e-05/0.142, allocations: 8 kB / 493.4 MB, free: 5.074 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009059/0.1429, allocations: 246.3 kB / 493.6 MB, free: 4.824 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001509/0.1444, allocations: 283.6 kB / 493.9 MB, free: 4.547 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007835/0.1523, allocations: 5.629 MB / 499.6 MB, free: 14.52 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000773/0.1531, allocations: 35.98 kB / 499.6 MB, free: 14.48 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000105/0.1532, allocations: 40 kB / 499.6 MB, free: 14.44 MB / 346.7 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: 37 * 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 () * 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 (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.0007546/0.154, allocations: 386 kB / 0.4883 GB, free: 14.05 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001554/0.1541, allocations: 79.06 kB / 0.4884 GB, free: 13.97 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002885/0.157, allocations: 1.137 MB / 0.4895 GB, free: 12.81 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.294e-05/0.1571, allocations: 15.89 kB / 0.4895 GB, free: 12.8 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.97e-06/0.1571, allocations: 4 kB / 0.4895 GB, free: 12.79 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.408e-05/0.1571, allocations: 3.984 kB / 0.4895 GB, free: 12.79 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005131/0.1623, allocations: 2.242 MB / 0.4917 GB, free: 10.46 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.128e-05/0.1623, allocations: 4 kB / 0.4917 GB, free: 10.45 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001264/0.1636, allocations: 191.8 kB / 0.4919 GB, free: 10.27 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001047/0.1647, allocations: 262.6 kB / 0.4921 GB, free: 10 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.348e-05/0.1648, allocations: 23.98 kB / 0.4921 GB, free: 9.977 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007652/0.1725, allocations: 5.559 MB / 0.4976 GB, free: 4.016 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.122e-06/0.1725, allocations: 3.938 kB / 0.4976 GB, free: 4.012 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003874/0.1764, allocations: 1.714 MB / 0.4992 GB, free: 2.211 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002436/0.1767, allocations: 148.2 kB / 0.4994 GB, free: 2.047 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001558/0.1768, allocations: 23.98 kB / 0.4994 GB, free: 2.023 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000556/0.1774, allocations: 23.98 kB / 0.4994 GB, free: 2 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001794/0.1776, allocations: 56.48 kB / 0.4995 GB, free: 1.945 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.768e-05/0.1777, allocations: 24.06 kB / 0.4995 GB, free: 1.922 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0007022/0.1784, allocations: 407 kB / 0.4999 GB, free: 1.527 MB / 346.7 MB Notification: Performance of sort global known variables: time 7.4e-07/0.1784, allocations: 0 / 0.4999 GB, free: 1.527 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001369/0.1798, allocations: 283.9 kB / 0.5002 GB, free: 1.25 MB / 346.7 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 (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.0002668/0.1801, allocations: 135.1 kB / 0.5003 GB, free: 1.105 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.003033/0.1831, allocations: 1.376 MB / 0.5016 GB, free: 15.68 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.132e-06/0.1832, allocations: 0 / 0.5016 GB, free: 15.68 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001989/0.1851, allocations: 0.9135 MB / 0.5025 GB, free: 14.71 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009584/0.1861, allocations: 158.8 kB / 0.5027 GB, free: 14.55 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004927/0.1911, allocations: 2.609 MB / 0.5052 GB, free: 11.9 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001087/0.1922, allocations: 1.135 MB / 0.5063 GB, free: 10.73 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.000851/0.1931, allocations: 218.4 kB / 0.5066 GB, free: 10.52 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002153/0.1933, allocations: 55.44 kB / 0.5066 GB, free: 10.46 MB / 362.7 MB Notification: Performance of SimCode: time 1.537e-06/0.1933, allocations: 0 / 0.5066 GB, free: 10.46 MB / 362.7 MB Notification: Performance of Templates: time 0.02616/0.2195, allocations: 9.975 MB / 0.5163 GB, free: 0.4961 MB / 362.7 MB