Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.Introductory.SimulationFixedInitial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.Introductory.SimulationFixedInitial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.Introductory.SimulationFixedInitial") translateModel(PowerSystems.Examples.Introductory.SimulationFixedInitial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="PowerSystems_cpp_PowerSystems.Examples.Introductory.SimulationFixedInitial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001652/0.001652, allocations: 188.4 kB / 15.77 MB, free: 5.988 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.068/2.068, allocations: 205.4 MB / 221.9 MB, free: 13.79 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00116/0.001159, allocations: 86.86 kB / 270.2 MB, free: 13.33 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.3172/0.3172, allocations: 38.06 MB / 356.6 MB, free: 0.7852 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004695/0.0004697, allocations: 16 kB / 422.7 MB, free: 26.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1104/0.1109, allocations: 56.33 MB / 479 MB, free: 2.043 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationFixedInitial): time 0.01304/0.124, allocations: 7.838 MB / 486.9 MB, free: 10.17 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.007667/0.1317, allocations: 2.741 MB / 489.6 MB, free: 7.422 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00128/0.1331, allocations: 59.56 kB / 489.7 MB, free: 7.363 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00129/0.1344, allocations: 258.5 kB / 489.9 MB, free: 7.109 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002481/0.1369, allocations: 498.4 kB / 490.4 MB, free: 6.621 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002219/0.1392, allocations: 455 kB / 490.9 MB, free: 6.176 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.001795/0.141, allocations: 0.6787 MB / 491.5 MB, free: 5.496 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003032/0.1441, allocations: 0.9982 MB / 492.5 MB, free: 4.461 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001588/0.1457, allocations: 414.5 kB / 492.9 MB, free: 4.055 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001247/0.147, allocations: 462.5 kB / 493.4 MB, free: 3.602 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002154/0.1473, allocations: 40 kB / 493.4 MB, free: 3.562 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007924/0.1481, allocations: 179.7 kB / 493.6 MB, free: 3.387 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007992/0.1489, allocations: 439 kB / 494 MB, free: 2.957 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004688/0.1494, allocations: 209.1 kB / 494.2 MB, free: 2.746 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001944/0.1514, allocations: 0.9819 MB / 495.2 MB, free: 1.762 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.1514, allocations: 0 / 495.2 MB, free: 1.762 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.515e-06/0.1515, allocations: 3.938 kB / 495.2 MB, free: 1.758 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.96e-05/0.1515, allocations: 0 / 495.2 MB, free: 1.758 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.003786/0.1553, allocations: 1.167 MB / 496.4 MB, free: 0.5312 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.954e-05/0.1554, allocations: 8.031 kB / 496.4 MB, free: 0.5234 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001853/0.1572, allocations: 170.6 kB / 496.6 MB, free: 364 kB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002243/0.1595, allocations: 0.6874 MB / 497.2 MB, free: 15.63 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.495e-05/0.1597, allocations: 61.98 kB / 497.3 MB, free: 15.57 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004475/0.1601, allocations: 111.8 kB / 497.4 MB, free: 15.46 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003269/0.1634, allocations: 1.208 MB / 498.6 MB, free: 14.18 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.276e-05/0.1635, allocations: 3.938 kB / 498.6 MB, free: 14.18 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001453/0.1637, allocations: 39.98 kB / 498.7 MB, free: 14.14 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004837/0.1642, allocations: 57.97 kB / 498.7 MB, free: 14.08 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003162/0.1674, allocations: 1.003 MB / 499.7 MB, free: 13.08 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01099/0.1784, allocations: 4.783 MB / 0.4927 GB, free: 8.09 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002876/0.1813, allocations: 0.6643 MB / 0.4933 GB, free: 7.402 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001357/0.1815, allocations: 20.55 kB / 0.4934 GB, free: 7.383 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001987/0.1835, allocations: 0.5041 MB / 0.4938 GB, free: 6.855 MB / 346.7 MB Notification: Performance of pre-optimization done (n=69): time 6.332e-06/0.1836, allocations: 0 / 0.4938 GB, free: 6.855 MB / 346.7 MB Notification: Performance of matching and sorting (n=73): time 0.01246/0.1961, allocations: 2.932 MB / 0.4967 GB, free: 3.801 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001882/0.1963, allocations: 166.8 kB / 0.4969 GB, free: 3.598 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001621/0.1979, allocations: 0.59 MB / 0.4974 GB, free: 3 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002417/0.1982, allocations: 45.69 kB / 0.4975 GB, free: 2.949 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007052/0.199, allocations: 0.4897 MB / 0.498 GB, free: 2.453 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006277/0.1996, allocations: 248.4 kB / 0.4982 GB, free: 2.207 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001252/0.1998, allocations: 20 kB / 0.4982 GB, free: 2.188 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002634/0.2001, allocations: 350.8 kB / 0.4986 GB, free: 1.836 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001697/0.2018, allocations: 365.8 kB / 0.4989 GB, free: 1.477 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00207/0.2039, allocations: 0.6268 MB / 0.4995 GB, free: 0.7344 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.01401/0.218, allocations: 2.418 MB / 0.5019 GB, free: 14.27 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.719e-05/0.218, allocations: 4 kB / 0.5019 GB, free: 14.26 MB / 362.7 MB Notification: Performance of matching and sorting (n=118) (initialization): time 0.005597/0.2236, allocations: 1.29 MB / 0.5031 GB, free: 12.95 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.537e-05/0.2238, allocations: 33.7 kB / 0.5032 GB, free: 12.91 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.142e-05/0.2238, allocations: 12.06 kB / 0.5032 GB, free: 12.9 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001543/0.2254, allocations: 242.4 kB / 0.5034 GB, free: 12.65 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002991/0.2284, allocations: 271.6 kB / 0.5037 GB, free: 12.39 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01257/0.2411, allocations: 5.648 MB / 0.5092 GB, free: 6.332 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001399/0.2425, allocations: 35.94 kB / 0.5092 GB, free: 6.297 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002693/0.2428, allocations: 43.98 kB / 0.5093 GB, free: 6.254 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 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.001313/0.2442, allocations: 380.6 kB / 0.5096 GB, free: 5.867 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003488/0.2445, allocations: 75.06 kB / 0.5097 GB, free: 5.793 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004962/0.2495, allocations: 1.145 MB / 0.5108 GB, free: 4.621 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.594e-05/0.2496, allocations: 8 kB / 0.5108 GB, free: 4.613 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.821e-05/0.2497, allocations: 7.984 kB / 0.5108 GB, free: 4.605 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.469e-05/0.2497, allocations: 0 / 0.5108 GB, free: 4.605 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009065/0.2588, allocations: 2.253 MB / 0.513 GB, free: 2.266 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.332e-05/0.2589, allocations: 4 kB / 0.513 GB, free: 2.262 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002483/0.2614, allocations: 195.9 kB / 0.5132 GB, free: 2.07 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001735/0.2632, allocations: 242.3 kB / 0.5135 GB, free: 1.824 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002296/0.2635, allocations: 23.98 kB / 0.5135 GB, free: 1.801 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3737/0.6371, allocations: 5.557 MB / 0.5189 GB, free: 49.27 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.917e-06/0.6372, allocations: 4.562 kB / 0.5189 GB, free: 49.27 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00432/0.6415, allocations: 1.7 MB / 0.5206 GB, free: 48.79 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002795/0.6419, allocations: 150.3 kB / 0.5207 GB, free: 48.69 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001995/0.6421, allocations: 24.98 kB / 0.5207 GB, free: 48.68 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007412/0.6428, allocations: 26.11 kB / 0.5208 GB, free: 48.67 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002566/0.6431, allocations: 61.72 kB / 0.5208 GB, free: 48.66 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.396e-05/0.6432, allocations: 27.02 kB / 0.5209 GB, free: 48.65 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0007216/0.6439, allocations: 407.8 kB / 0.5212 GB, free: 48.48 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.6439, allocations: 0 / 0.5212 GB, free: 48.48 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001623/0.6456, allocations: 273 kB / 0.5215 GB, free: 48.45 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 (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.0002983/0.6459, allocations: 134.2 kB / 0.5216 GB, free: 48.35 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003531/0.6495, allocations: 1.388 MB / 0.523 GB, free: 47.64 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.911e-06/0.6495, allocations: 0 / 0.523 GB, free: 47.64 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002339/0.6519, allocations: 0.9124 MB / 0.5239 GB, free: 47.07 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001334/0.6532, allocations: 157.6 kB / 0.524 GB, free: 47.03 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005756/0.659, allocations: 2.691 MB / 0.5267 GB, free: 45.59 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001006/0.6601, allocations: 1.133 MB / 0.5278 GB, free: 44.84 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004086/0.6605, allocations: 64.16 kB / 0.5278 GB, free: 44.83 MB / 362.7 MB Notification: Performance of SimCode: time 1.122e-06/0.6605, allocations: 3.938 kB / 0.5278 GB, free: 44.82 MB / 362.7 MB Notification: Performance of Templates: time 0.03735/0.6979, allocations: 20.1 MB / 0.5475 GB, free: 31.92 MB / 362.7 MB make -j1 -f PowerSystems_cpp_PowerSystems.Examples.Introductory.SimulationFixedInitial.makefile (rm -f PowerSystems_cpp_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.Introductory.SimulationFixedInitial.sim & ./PowerSystems_cpp_PowerSystems.Examples.Introductory.SimulationFixedInitial --alarm=480 > PowerSystems_cpp_PowerSystems.Examples.Introductory.SimulationFixedInitial.pipe 2>&1)