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.002628/0.002633, allocations: 364.4 kB / 17.21 MB, free: 4.953 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 3.768/3.768, allocations: 388.9 MB / 406.8 MB, free: 12.01 MB / 330.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.003578/0.003578, allocations: 237.2 kB / 452.2 MB, free: 14.61 MB / 378.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0-master/package.mo): time 0.7456/0.7456, allocations: 76.01 MB / 0.56 GB, free: 177.6 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004677/0.000468, allocations: 20 kB / 0.6222 GB, free: 114.1 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09314/0.09363, allocations: 53.23 MB / 0.6742 GB, free: 60.83 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4686/0.5623, allocations: 98.75 MB / 0.7707 GB, free: 81.61 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002816/0.5627, allocations: 88.83 kB / 0.7707 GB, free: 81.61 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1065/0.6692, allocations: 25.82 MB / 0.796 GB, free: 73.75 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.394e-06/0.6692, allocations: 0 / 0.796 GB, free: 73.75 MB / 442.7 MB Notification: Performance of Transformations before backend: time 7.034e-05/0.6693, allocations: 26.97 kB / 0.796 GB, free: 73.75 MB / 442.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.003956/0.6733, allocations: 1.207 MB / 0.7972 GB, free: 72.88 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.211e-05/0.6734, allocations: 11.5 kB / 0.7972 GB, free: 72.88 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002073/0.6754, allocations: 182.2 kB / 0.7973 GB, free: 72.8 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003372/0.6789, allocations: 0.9989 MB / 0.7983 GB, free: 72.29 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.145e-05/0.679, allocations: 66.77 kB / 0.7984 GB, free: 72.28 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000255/0.6793, allocations: 84.53 kB / 0.7985 GB, free: 72.28 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002892/0.6822, allocations: 1.197 MB / 0.7996 GB, free: 71.82 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.87e-05/0.6823, allocations: 10.69 kB / 0.7996 GB, free: 71.81 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001323/0.6824, allocations: 44 kB / 0.7997 GB, free: 71.8 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001152/0.6825, allocations: 54.83 kB / 0.7997 GB, free: 71.8 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002609/0.6852, allocations: 0.9783 MB / 0.8007 GB, free: 71.61 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009348/0.6946, allocations: 4.68 MB / 0.8053 GB, free: 68.58 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001757/0.6964, allocations: 0.6653 MB / 0.8059 GB, free: 68.44 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001086/0.6975, allocations: 472.2 kB / 0.8064 GB, free: 68.36 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.28e-05/0.6976, allocations: 9.984 kB / 0.8064 GB, free: 68.36 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001181/0.6988, allocations: 0.5335 MB / 0.8069 GB, free: 68.14 MB / 442.7 MB Notification: Performance of pre-optimization done (n=73): time 4.108e-06/0.6988, allocations: 4 kB / 0.8069 GB, free: 68.13 MB / 442.7 MB Notification: Performance of matching and sorting (n=77): time 0.007785/0.7066, allocations: 2.887 MB / 0.8097 GB, free: 67.06 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.538e-05/0.7067, allocations: 166.7 kB / 0.8099 GB, free: 66.87 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009341/0.7077, allocations: 0.5769 MB / 0.8104 GB, free: 66.66 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001765/0.7079, allocations: 45.77 kB / 0.8105 GB, free: 66.62 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003978/0.7083, allocations: 471.1 kB / 0.8109 GB, free: 66.34 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003256/0.7086, allocations: 273.8 kB / 0.8112 GB, free: 66.14 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.119e-05/0.7087, allocations: 22.91 kB / 0.8112 GB, free: 66.14 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001396/0.7089, allocations: 384.5 kB / 0.8116 GB, free: 65.81 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009714/0.7099, allocations: 393.4 kB / 0.812 GB, free: 65.75 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001099/0.711, allocations: 0.6262 MB / 0.8126 GB, free: 65.39 MB / 442.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.0186/0.7296, allocations: 3.902 MB / 0.8164 GB, free: 62.39 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.698e-06/0.7296, allocations: 6.344 kB / 0.8164 GB, free: 62.38 MB / 442.7 MB Notification: Performance of matching and sorting (n=119) (initialization): time 0.003561/0.7332, allocations: 1.362 MB / 0.8177 GB, free: 61.35 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.641e-05/0.7333, allocations: 41.64 kB / 0.8178 GB, free: 61.3 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.913e-05/0.7333, allocations: 8 kB / 0.8178 GB, free: 61.3 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009901/0.7343, allocations: 248.8 kB / 0.818 GB, free: 61.1 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002288/0.7366, allocations: 255 kB / 0.8182 GB, free: 60.85 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006489/0.7432, allocations: 5.577 MB / 0.8237 GB, free: 55.58 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001193/0.7444, allocations: 42.97 kB / 0.8237 GB, free: 55.55 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001704/0.7446, allocations: 43.31 kB / 0.8238 GB, free: 55.52 MB / 442.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: 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 () * Number of clocked 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.0008831/0.7455, allocations: 373.5 kB / 0.8241 GB, free: 55.22 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002281/0.7457, allocations: 75.06 kB / 0.8242 GB, free: 55.15 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003287/0.749, allocations: 1.191 MB / 0.8254 GB, free: 54.28 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.103e-05/0.7491, allocations: 15.95 kB / 0.8254 GB, free: 54.27 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.756e-06/0.7492, allocations: 4 kB / 0.8254 GB, free: 54.26 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.466e-05/0.7492, allocations: 7.984 kB / 0.8254 GB, free: 54.25 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006018/0.7552, allocations: 2.337 MB / 0.8277 GB, free: 51.9 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.228e-05/0.7553, allocations: 5.938 kB / 0.8277 GB, free: 51.9 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001888/0.7572, allocations: 187.9 kB / 0.8279 GB, free: 51.71 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001213/0.7584, allocations: 260.8 kB / 0.8281 GB, free: 51.45 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001779/0.7586, allocations: 27.42 kB / 0.8281 GB, free: 51.43 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00623/0.7649, allocations: 5.504 MB / 0.8335 GB, free: 45.55 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/0.7649, allocations: 0 / 0.8335 GB, free: 45.55 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006104/0.771, allocations: 1.725 MB / 0.8352 GB, free: 43.77 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004367/0.7715, allocations: 140.2 kB / 0.8353 GB, free: 43.62 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003367/0.7719, allocations: 28.05 kB / 0.8353 GB, free: 43.59 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001491/0.7734, allocations: 31.97 kB / 0.8354 GB, free: 43.56 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003322/0.7738, allocations: 60.42 kB / 0.8354 GB, free: 43.5 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001517/0.7739, allocations: 31.94 kB / 0.8355 GB, free: 43.47 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001071/0.775, allocations: 403 kB / 0.8359 GB, free: 43.08 MB / 442.7 MB Notification: Performance of sort global known variables: time 5.41e-07/0.775, allocations: 0 / 0.8359 GB, free: 43.08 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002874/0.7779, allocations: 307.9 kB / 0.8361 GB, free: 42.78 MB / 442.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 (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.0005834/0.7786, allocations: 190.6 kB / 0.8363 GB, free: 42.6 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.00324/0.7818, allocations: 1.43 MB / 0.8377 GB, free: 41.12 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.929e-06/0.7819, allocations: 0 / 0.8377 GB, free: 41.12 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001967/0.7838, allocations: 0.9396 MB / 0.8386 GB, free: 40.14 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001494/0.7854, allocations: 169.3 kB / 0.8388 GB, free: 39.97 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004777/0.7901, allocations: 2.646 MB / 0.8414 GB, free: 37.29 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007399/0.7909, allocations: 1.13 MB / 0.8425 GB, free: 36.14 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001016/0.792, allocations: 217.3 kB / 0.8427 GB, free: 35.92 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003087/0.7923, allocations: 63.42 kB / 0.8428 GB, free: 35.86 MB / 442.7 MB Notification: Performance of SimCode: time 9.62e-07/0.7923, allocations: 0 / 0.8428 GB, free: 35.86 MB / 442.7 MB Notification: Performance of Templates: time 0.02744/0.8197, allocations: 10.94 MB / 0.8534 GB, free: 25.05 MB / 442.7 MB