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.002437/0.002441, allocations: 352.9 kB / 16.57 MB, free: 5.59 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.586/3.586, allocations: 388.9 MB / 406.2 MB, free: 12 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.003519/0.003519, allocations: 231.8 kB / 451.6 MB, free: 14.6 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.6642/0.6642, allocations: 76 MB / 0.5594 GB, free: 177.6 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004983/0.0004985, allocations: 12 kB / 0.6216 GB, free: 114.1 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06851/0.06904, allocations: 53.24 MB / 0.6736 GB, free: 60.83 MB / 442.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationFixedInitial): time 0.007684/0.07677, allocations: 8.224 MB / 0.6816 GB, free: 52.57 MB / 442.7 MB Notification: Performance of NFInst.instExpressions: time 0.004523/0.08133, allocations: 2.717 MB / 0.6843 GB, free: 49.84 MB / 442.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005206/0.08188, allocations: 59.56 kB / 0.6843 GB, free: 49.79 MB / 442.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000561/0.08245, allocations: 242.3 kB / 0.6846 GB, free: 49.55 MB / 442.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001179/0.08365, allocations: 0.5944 MB / 0.6852 GB, free: 48.95 MB / 442.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00122/0.08489, allocations: 455 kB / 0.6856 GB, free: 48.5 MB / 442.7 MB Notification: Performance of NFFlatten.flatten: time 0.001229/0.08614, allocations: 1.554 MB / 0.6871 GB, free: 46.95 MB / 442.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001616/0.08777, allocations: 1.006 MB / 0.6881 GB, free: 45.9 MB / 442.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005335/0.08833, allocations: 469.8 kB / 0.6885 GB, free: 45.44 MB / 442.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008252/0.08917, allocations: 0.6542 MB / 0.6892 GB, free: 44.79 MB / 442.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001089/0.0893, allocations: 44 kB / 0.6892 GB, free: 44.74 MB / 442.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004717/0.08978, allocations: 195.6 kB / 0.6894 GB, free: 44.55 MB / 442.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004005/0.0902, allocations: 478.8 kB / 0.6899 GB, free: 44.08 MB / 442.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002001/0.09041, allocations: 205.2 kB / 0.6901 GB, free: 43.88 MB / 442.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008678/0.0913, allocations: 0.9898 MB / 0.691 GB, free: 42.88 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.904e-06/0.09132, allocations: 0 / 0.691 GB, free: 42.88 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.824e-06/0.09133, allocations: 7.875 kB / 0.691 GB, free: 42.88 MB / 442.7 MB Notification: Performance of Transformations before backend: time 1.391e-05/0.09135, allocations: 0 / 0.691 GB, free: 42.88 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.002025/0.09339, allocations: 1.163 MB / 0.6922 GB, free: 41.65 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.264e-05/0.09343, allocations: 12.02 kB / 0.6922 GB, free: 41.64 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001131/0.09457, allocations: 170.6 kB / 0.6923 GB, free: 41.47 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001204/0.0958, allocations: 0.6873 MB / 0.693 GB, free: 40.74 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.045e-05/0.09588, allocations: 62 kB / 0.6931 GB, free: 40.68 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002548/0.09614, allocations: 107.9 kB / 0.6932 GB, free: 40.57 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001887/0.09804, allocations: 1.208 MB / 0.6944 GB, free: 39.3 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.453e-05/0.0981, allocations: 8 kB / 0.6944 GB, free: 39.29 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001025/0.09821, allocations: 35.98 kB / 0.6944 GB, free: 39.25 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002631/0.09849, allocations: 61.97 kB / 0.6945 GB, free: 39.19 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001823/0.1003, allocations: 0.9991 MB / 0.6954 GB, free: 38.19 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006047/0.1064, allocations: 4.783 MB / 0.7001 GB, free: 33.2 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001201/0.1076, allocations: 0.6642 MB / 0.7008 GB, free: 32.52 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007146/0.1083, allocations: 447.9 kB / 0.7012 GB, free: 32.07 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.959e-05/0.1084, allocations: 12.52 kB / 0.7012 GB, free: 32.06 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008046/0.1092, allocations: 0.5158 MB / 0.7017 GB, free: 31.52 MB / 442.7 MB Notification: Performance of pre-optimization done (n=69): time 4.043e-06/0.1093, allocations: 0 / 0.7017 GB, free: 31.52 MB / 442.7 MB Notification: Performance of matching and sorting (n=73): time 0.005125/0.1144, allocations: 2.768 MB / 0.7044 GB, free: 28.67 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.721e-05/0.1145, allocations: 174.7 kB / 0.7046 GB, free: 28.46 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006824/0.1152, allocations: 0.5821 MB / 0.7051 GB, free: 27.88 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 6.066e-05/0.1152, allocations: 45.77 kB / 0.7052 GB, free: 27.82 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000287/0.1155, allocations: 482.9 kB / 0.7056 GB, free: 27.34 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001961/0.1158, allocations: 252.5 kB / 0.7059 GB, free: 27.09 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.904e-05/0.1158, allocations: 20 kB / 0.7059 GB, free: 27.07 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001143/0.1159, allocations: 390.7 kB / 0.7063 GB, free: 26.68 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006712/0.1166, allocations: 373.8 kB / 0.7066 GB, free: 26.32 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007994/0.1174, allocations: 0.6192 MB / 0.7072 GB, free: 25.59 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.006587/0.124, allocations: 2.501 MB / 0.7097 GB, free: 23.04 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.685e-06/0.1241, allocations: 0 / 0.7097 GB, free: 23.04 MB / 442.7 MB Notification: Performance of matching and sorting (n=118) (initialization): time 0.002574/0.1267, allocations: 1.328 MB / 0.711 GB, free: 21.68 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.329e-05/0.1267, allocations: 33.7 kB / 0.711 GB, free: 21.64 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.519e-05/0.1267, allocations: 8 kB / 0.711 GB, free: 21.64 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000737/0.1275, allocations: 255 kB / 0.7113 GB, free: 21.38 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001323/0.1288, allocations: 263.6 kB / 0.7115 GB, free: 21.12 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00526/0.1341, allocations: 5.578 MB / 0.717 GB, free: 15.13 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007065/0.1348, allocations: 39.89 kB / 0.717 GB, free: 15.09 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.41e-05/0.1349, allocations: 36 kB / 0.717 GB, free: 15.06 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: 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.0005973/0.1356, allocations: 379.9 kB / 0.7174 GB, free: 14.67 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001239/0.1357, allocations: 83.08 kB / 0.7175 GB, free: 14.59 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002216/0.1379, allocations: 1.137 MB / 0.7186 GB, free: 13.43 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.41e-05/0.138, allocations: 8 kB / 0.7186 GB, free: 13.42 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.37e-06/0.138, allocations: 4 kB / 0.7186 GB, free: 13.41 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.13e-05/0.138, allocations: 11.92 kB / 0.7186 GB, free: 13.4 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003834/0.1419, allocations: 2.246 MB / 0.7208 GB, free: 11.07 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.481e-06/0.1419, allocations: 0 / 0.7208 GB, free: 11.07 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001069/0.143, allocations: 183.8 kB / 0.721 GB, free: 10.89 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008566/0.1438, allocations: 246.5 kB / 0.7212 GB, free: 10.64 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.904e-05/0.1439, allocations: 27.98 kB / 0.7212 GB, free: 10.61 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004969/0.1489, allocations: 5.499 MB / 0.7266 GB, free: 4.707 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.454e-06/0.1489, allocations: 400 / 0.7266 GB, free: 4.707 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002828/0.1518, allocations: 1.634 MB / 0.7282 GB, free: 3.023 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000173/0.152, allocations: 152.2 kB / 0.7283 GB, free: 2.855 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001396/0.1521, allocations: 23.98 kB / 0.7284 GB, free: 2.832 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004957/0.1526, allocations: 27.98 kB / 0.7284 GB, free: 2.805 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001523/0.1528, allocations: 68.36 kB / 0.7285 GB, free: 2.738 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.571e-05/0.1529, allocations: 20 kB / 0.7285 GB, free: 2.719 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0005108/0.1534, allocations: 411 kB / 0.7289 GB, free: 2.32 MB / 442.7 MB Notification: Performance of sort global known variables: time 7.02e-07/0.1534, allocations: 0 / 0.7289 GB, free: 2.32 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001231/0.1546, allocations: 276 kB / 0.7291 GB, free: 2.051 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 (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.0002041/0.1549, allocations: 143.1 kB / 0.7293 GB, free: 1.902 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002265/0.1571, allocations: 1.376 MB / 0.7306 GB, free: 488 kB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.22e-06/0.1572, allocations: 0 / 0.7306 GB, free: 488 kB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.2341/0.3913, allocations: 0.9058 MB / 0.7315 GB, free: 126.8 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001206/0.3925, allocations: 170 kB / 0.7317 GB, free: 126.8 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004327/0.3969, allocations: 2.613 MB / 0.7342 GB, free: 125.8 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008791/0.3978, allocations: 1.136 MB / 0.7353 GB, free: 125.1 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0008013/0.3986, allocations: 210.3 kB / 0.7355 GB, free: 125.1 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000205/0.3988, allocations: 55.25 kB / 0.7356 GB, free: 125 MB / 442.7 MB Notification: Performance of SimCode: time 1.783e-06/0.3988, allocations: 0 / 0.7356 GB, free: 125 MB / 442.7 MB Notification: Performance of Templates: time 0.02533/0.4242, allocations: 9.992 MB / 0.7453 GB, free: 124.6 MB / 442.7 MB