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/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/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_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/Complex 3.2.2+maint.om/package.mo): time 0.001081/0.001081, allocations: 189.5 kB / 17.27 MB, free: 4.5 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.181/1.181, allocations: 194.2 MB / 212.2 MB, free: 2.355 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001838/0.001838, allocations: 134 kB / 256.6 MB, free: 4.309 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1673/0.1673, allocations: 37.95 MB / 338.8 MB, free: 2.211 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001213/0.001213, allocations: 63.91 kB / 401.8 MB, free: 68.74 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08505/0.08628, allocations: 52.18 MB / 454 MB, free: 16.57 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationFixedInitial): time 0.007114/0.09344, allocations: 9.233 MB / 463.2 MB, free: 7.289 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.004574/0.09805, allocations: 2.883 MB / 466.1 MB, free: 4.395 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00131/0.0994, allocations: 59.62 kB / 466.2 MB, free: 4.336 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002012/0.1015, allocations: 0.8132 MB / 467 MB, free: 3.523 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001136/0.1026, allocations: 485.9 kB / 467.4 MB, free: 3.047 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001038/0.1037, allocations: 395.3 kB / 467.8 MB, free: 2.66 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.001598/0.1053, allocations: 1.995 MB / 469.8 MB, free: 0.6602 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008456/0.1062, allocations: 0.6658 MB / 470.5 MB, free: 15.98 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009788/0.1072, allocations: 0.4938 MB / 471 MB, free: 15.49 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001204/0.1084, allocations: 0.7243 MB / 471.7 MB, free: 14.77 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001921/0.1086, allocations: 56 kB / 471.8 MB, free: 14.71 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006424/0.1092, allocations: 251.6 kB / 472 MB, free: 14.46 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000529/0.1098, allocations: 494.7 kB / 472.5 MB, free: 13.98 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007916/0.1106, allocations: 0.5169 MB / 473 MB, free: 13.46 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001382/0.112, allocations: 1.285 MB / 474.3 MB, free: 12.17 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.417e-06/0.112, allocations: 4 kB / 474.3 MB, free: 12.16 MB / 330.7 MB Notification: Performance of FrontEnd: time 9.82e-07/0.112, allocations: 4 kB / 474.3 MB, free: 12.16 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.085e-05/0.112, allocations: 0 / 474.3 MB, free: 12.16 MB / 330.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.00244/0.1145, allocations: 1.339 MB / 475.6 MB, free: 10.76 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.597e-05/0.1145, allocations: 8.031 kB / 475.6 MB, free: 10.75 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009758/0.1155, allocations: 171.5 kB / 475.8 MB, free: 10.59 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001237/0.1167, allocations: 0.696 MB / 476.5 MB, free: 9.848 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.909e-05/0.1168, allocations: 66.38 kB / 476.6 MB, free: 9.781 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002702/0.1171, allocations: 111.8 kB / 476.7 MB, free: 9.672 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001614/0.1187, allocations: 1.223 MB / 477.9 MB, free: 8.379 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.674e-05/0.1188, allocations: 0 / 477.9 MB, free: 8.379 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.944e-05/0.1188, allocations: 36 kB / 477.9 MB, free: 8.344 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002482/0.1191, allocations: 57.97 kB / 478 MB, free: 8.285 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001465/0.1206, allocations: 1.019 MB / 479 MB, free: 7.266 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005699/0.1263, allocations: 4.775 MB / 483.8 MB, free: 2.285 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00103/0.1273, allocations: 0.672 MB / 484.5 MB, free: 1.59 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005706/0.1279, allocations: 456.4 kB / 484.9 MB, free: 1.141 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.471e-05/0.128, allocations: 8.562 kB / 484.9 MB, free: 1.133 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006768/0.1287, allocations: 0.5042 MB / 485.4 MB, free: 0.6016 MB / 330.7 MB Notification: Performance of pre-optimization done (n=69): time 2.375e-06/0.1287, allocations: 0 / 485.4 MB, free: 0.6016 MB / 330.7 MB Notification: Performance of matching and sorting (n=73): time 0.004386/0.1331, allocations: 2.784 MB / 488.2 MB, free: 13.73 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.616e-05/0.1332, allocations: 162.8 kB / 488.4 MB, free: 13.54 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000637/0.1338, allocations: 0.5977 MB / 489 MB, free: 12.93 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.874e-05/0.1339, allocations: 49.73 kB / 489 MB, free: 12.88 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003113/0.1342, allocations: 478.9 kB / 489.5 MB, free: 12.4 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001956/0.1344, allocations: 252.5 kB / 489.7 MB, free: 12.15 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002262/0.1347, allocations: 170.5 kB / 489.9 MB, free: 11.98 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001531/0.1348, allocations: 394.8 kB / 490.3 MB, free: 11.59 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005287/0.1354, allocations: 369.8 kB / 490.6 MB, free: 11.22 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007133/0.1361, allocations: 0.6349 MB / 491.3 MB, free: 10.47 MB / 346.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.006702/0.1428, allocations: 3.447 MB / 494.7 MB, free: 6.855 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.991e-06/0.1428, allocations: 0 / 494.7 MB, free: 6.855 MB / 346.7 MB Notification: Performance of matching and sorting (n=118) (initialization): time 0.00203/0.1449, allocations: 1.336 MB / 496.1 MB, free: 5.496 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.704e-05/0.1449, allocations: 33.7 kB / 496.1 MB, free: 5.457 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.433e-05/0.1449, allocations: 8 kB / 496.1 MB, free: 5.449 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006215/0.1455, allocations: 258.6 kB / 496.4 MB, free: 5.188 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001079/0.1466, allocations: 267.5 kB / 496.6 MB, free: 4.926 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004721/0.1514, allocations: 5.566 MB / 0.4904 GB, free: 14.95 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005786/0.152, allocations: 31.98 kB / 0.4904 GB, free: 14.92 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.162e-05/0.1521, allocations: 43.98 kB / 0.4905 GB, free: 14.88 MB / 362.7 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.0005465/0.1526, allocations: 387 kB / 0.4909 GB, free: 14.48 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001032/0.1527, allocations: 75.06 kB / 0.4909 GB, free: 14.41 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001877/0.1546, allocations: 1.145 MB / 0.492 GB, free: 13.24 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.875e-05/0.1546, allocations: 8 kB / 0.492 GB, free: 13.23 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.462e-06/0.1546, allocations: 4 kB / 0.4921 GB, free: 13.23 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.494e-06/0.1547, allocations: 3.984 kB / 0.4921 GB, free: 13.22 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003338/0.158, allocations: 2.261 MB / 0.4943 GB, free: 10.88 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.312e-06/0.158, allocations: 3.984 kB / 0.4943 GB, free: 10.87 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009099/0.1589, allocations: 179.8 kB / 0.4944 GB, free: 10.7 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006598/0.1596, allocations: 250.7 kB / 0.4947 GB, free: 10.44 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.75e-05/0.1597, allocations: 19.98 kB / 0.4947 GB, free: 10.42 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004435/0.1641, allocations: 5.507 MB / 0.5001 GB, free: 4.504 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.376e-06/0.1641, allocations: 4.031 kB / 0.5001 GB, free: 4.5 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1917/0.3558, allocations: 14.4 MB / 0.5141 GB, free: 59.2 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001727/0.356, allocations: 146.7 kB / 0.5143 GB, free: 59.1 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001115/0.3561, allocations: 21.06 kB / 0.5143 GB, free: 59.09 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003986/0.3565, allocations: 35.59 kB / 0.5143 GB, free: 59.08 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002402/0.3568, allocations: 57.45 kB / 0.5144 GB, free: 59.07 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.948e-05/0.3569, allocations: 23.03 kB / 0.5144 GB, free: 59.07 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.000566/0.3574, allocations: 419 kB / 0.5148 GB, free: 58.89 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3574, allocations: 1.188 kB / 0.5148 GB, free: 58.89 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002011/0.3595, allocations: 407.6 kB / 0.5152 GB, free: 58.86 MB / 362.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 (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.0002974/0.3598, allocations: 150.6 kB / 0.5154 GB, free: 58.75 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002212/0.362, allocations: 1.381 MB / 0.5167 GB, free: 58.05 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.362, allocations: 0 / 0.5167 GB, free: 58.05 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001079/0.3631, allocations: 0.917 MB / 0.5176 GB, free: 57.47 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008013/0.3639, allocations: 175 kB / 0.5178 GB, free: 57.41 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004002/0.3679, allocations: 3.535 MB / 0.5212 GB, free: 55.3 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006078/0.3685, allocations: 1.152 MB / 0.5223 GB, free: 54.55 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0006178/0.3692, allocations: 222.3 kB / 0.5226 GB, free: 54.52 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002062/0.3694, allocations: 63.36 kB / 0.5226 GB, free: 54.51 MB / 362.7 MB Notification: Performance of SimCode: time 7.31e-07/0.3694, allocations: 0 / 0.5226 GB, free: 54.51 MB / 362.7 MB Notification: Performance of Templates: time 0.01996/0.3893, allocations: 14.67 MB / 0.5369 GB, free: 44.75 MB / 362.7 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)