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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001221/0.001221, allocations: 114.2 kB / 17.07 MB, free: 5.973 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001244/0.001244, allocations: 194.8 kB / 18 MB, free: 5.059 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.817/1.817, allocations: 205.1 MB / 223.9 MB, free: 12.2 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1832/0.1832, allocations: 37.99 MB / 309.2 MB, free: 5.941 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001699/0.001699, allocations: 67.89 kB / 431.9 MB, free: 15.65 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1343/0.136, allocations: 55.24 MB / 487.1 MB, free: 8.344 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationFixedInitial): time 0.01218/0.1482, allocations: 7.559 MB / 494.7 MB, free: 0.7422 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.005982/0.1543, allocations: 2.373 MB / 497 MB, free: 14.36 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001119/0.1554, allocations: 31.81 kB / 497.1 MB, free: 14.33 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003005/0.1585, allocations: 0.8518 MB / 497.9 MB, free: 13.47 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001911/0.1604, allocations: 0.5052 MB / 498.4 MB, free: 12.96 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001645/0.1621, allocations: 455 kB / 498.9 MB, free: 12.52 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001948/0.164, allocations: 1.313 MB / 0.4885 GB, free: 11.2 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001244/0.1653, allocations: 0.6893 MB / 0.4891 GB, free: 10.51 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001239/0.1665, allocations: 0.5797 MB / 0.4897 GB, free: 9.926 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001399/0.168, allocations: 0.6775 MB / 0.4904 GB, free: 9.246 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003061/0.1683, allocations: 88 kB / 0.4904 GB, free: 9.16 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009826/0.1693, allocations: 263.6 kB / 0.4907 GB, free: 8.902 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007474/0.17, allocations: 0.5065 MB / 0.4912 GB, free: 8.395 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001059/0.1711, allocations: 0.5443 MB / 0.4917 GB, free: 7.848 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001943/0.1731, allocations: 1.328 MB / 0.493 GB, free: 6.516 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.28e-06/0.1731, allocations: 0 / 0.493 GB, free: 6.516 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1731, allocations: 0 / 0.493 GB, free: 6.516 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.742e-05/0.1732, allocations: 0 / 0.493 GB, free: 6.516 MB / 382.1 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.003084/0.1763, allocations: 1.339 MB / 0.4943 GB, free: 5.113 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.376e-05/0.1763, allocations: 15.89 kB / 0.4943 GB, free: 5.098 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001096/0.1774, allocations: 159.5 kB / 0.4945 GB, free: 4.941 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001405/0.1788, allocations: 0.7466 MB / 0.4952 GB, free: 4.152 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.823e-05/0.1789, allocations: 62.38 kB / 0.4953 GB, free: 4.09 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002362/0.1791, allocations: 108.1 kB / 0.4954 GB, free: 3.984 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00177/0.1809, allocations: 1.219 MB / 0.4966 GB, free: 2.695 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.064e-05/0.181, allocations: 11.84 kB / 0.4966 GB, free: 2.684 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.159e-05/0.1811, allocations: 36 kB / 0.4966 GB, free: 2.648 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000274/0.1814, allocations: 57.97 kB / 0.4967 GB, free: 2.59 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001636/0.183, allocations: 1.011 MB / 0.4977 GB, free: 1.582 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006424/0.1894, allocations: 4.763 MB / 0.5023 GB, free: 12.61 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001123/0.1906, allocations: 0.6643 MB / 0.503 GB, free: 11.93 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006112/0.1912, allocations: 451.9 kB / 0.5034 GB, free: 11.48 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.034e-05/0.1913, allocations: 12.5 kB / 0.5034 GB, free: 11.47 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007221/0.192, allocations: 0.5042 MB / 0.5039 GB, free: 10.93 MB / 398.1 MB Notification: Performance of pre-optimization done (n=69): time 3.597e-06/0.192, allocations: 0 / 0.5039 GB, free: 10.93 MB / 398.1 MB Notification: Performance of matching and sorting (n=73): time 0.004796/0.1968, allocations: 2.788 MB / 0.5066 GB, free: 8.066 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001002/0.1969, allocations: 170.8 kB / 0.5068 GB, free: 7.863 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006616/0.1976, allocations: 0.5899 MB / 0.5074 GB, free: 7.266 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.186e-05/0.1977, allocations: 41.7 kB / 0.5074 GB, free: 7.219 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003481/0.198, allocations: 486.9 kB / 0.5079 GB, free: 6.734 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002278/0.1983, allocations: 252.5 kB / 0.5081 GB, free: 6.484 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002376/0.1985, allocations: 166.6 kB / 0.5083 GB, free: 6.316 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001803/0.1987, allocations: 394.7 kB / 0.5086 GB, free: 5.922 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005571/0.1993, allocations: 373.8 kB / 0.509 GB, free: 5.555 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007212/0.2, allocations: 0.6424 MB / 0.5096 GB, free: 4.801 MB / 398.1 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.006854/0.2068, allocations: 3.446 MB / 0.513 GB, free: 1.172 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.721e-06/0.2069, allocations: 0 / 0.513 GB, free: 1.172 MB / 398.1 MB Notification: Performance of matching and sorting (n=118) (initialization): time 0.002237/0.2091, allocations: 1.34 MB / 0.5143 GB, free: 15.8 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.943e-05/0.2092, allocations: 37.69 kB / 0.5143 GB, free: 15.76 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.486e-05/0.2092, allocations: 8 kB / 0.5143 GB, free: 15.75 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006907/0.2099, allocations: 254.5 kB / 0.5146 GB, free: 15.5 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001017/0.2109, allocations: 259.6 kB / 0.5148 GB, free: 15.25 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005981/0.2169, allocations: 6.081 MB / 0.5208 GB, free: 8.754 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006902/0.2176, allocations: 31.98 kB / 0.5208 GB, free: 8.723 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.062e-05/0.2177, allocations: 44.06 kB / 0.5208 GB, free: 8.68 MB / 414.1 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.0006111/0.2183, allocations: 380.4 kB / 0.5212 GB, free: 8.293 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001173/0.2185, allocations: 79 kB / 0.5213 GB, free: 8.215 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002023/0.2205, allocations: 1.145 MB / 0.5224 GB, free: 7.039 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.179e-05/0.2205, allocations: 8 kB / 0.5224 GB, free: 7.031 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.094e-06/0.2205, allocations: 4 kB / 0.5224 GB, free: 7.027 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.618e-06/0.2206, allocations: 3.984 kB / 0.5224 GB, free: 7.023 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003698/0.2243, allocations: 2.258 MB / 0.5246 GB, free: 4.672 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.032e-06/0.2243, allocations: 0 / 0.5246 GB, free: 4.672 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008733/0.2252, allocations: 191.9 kB / 0.5248 GB, free: 4.484 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006698/0.2258, allocations: 246.6 kB / 0.525 GB, free: 4.234 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.884e-05/0.2259, allocations: 27.91 kB / 0.5251 GB, free: 4.207 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3184/0.5444, allocations: 6.001 MB / 0.5309 GB, free: 49.46 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.412e-06/0.5445, allocations: 6.484 kB / 0.5309 GB, free: 49.46 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00298/0.5475, allocations: 1.641 MB / 0.5325 GB, free: 49.22 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003078/0.5478, allocations: 146.2 kB / 0.5327 GB, free: 49.12 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001151/0.5479, allocations: 25.56 kB / 0.5327 GB, free: 49.12 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004372/0.5484, allocations: 22.88 kB / 0.5327 GB, free: 49.12 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001793/0.5485, allocations: 58.03 kB / 0.5328 GB, free: 49.12 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.474e-05/0.5486, allocations: 22.94 kB / 0.5328 GB, free: 49.12 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0005664/0.5492, allocations: 417.7 kB / 0.5332 GB, free: 49.03 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.5492, allocations: 0 / 0.5332 GB, free: 49.03 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001205/0.5504, allocations: 274.3 kB / 0.5335 GB, free: 49.03 MB / 414.1 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.0002438/0.5507, allocations: 136.3 kB / 0.5336 GB, free: 48.94 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002335/0.553, allocations: 1.394 MB / 0.5349 GB, free: 48.54 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/0.553, allocations: 3.438 kB / 0.5349 GB, free: 48.54 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001341/0.5544, allocations: 0.9077 MB / 0.5358 GB, free: 47.98 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001036/0.5554, allocations: 182.4 kB / 0.536 GB, free: 47.92 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00369/0.5591, allocations: 2.162 MB / 0.5381 GB, free: 46.93 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008243/0.56, allocations: 1.115 MB / 0.5392 GB, free: 46.18 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0006399/0.5606, allocations: 211.6 kB / 0.5394 GB, free: 46.16 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001703/0.5608, allocations: 60.78 kB / 0.5395 GB, free: 46.14 MB / 414.1 MB Notification: Performance of SimCode: time 1.102e-06/0.5608, allocations: 0 / 0.5395 GB, free: 46.14 MB / 414.1 MB Notification: Performance of Templates: time 0.02239/0.5832, allocations: 11.18 MB / 0.5504 GB, free: 43.25 MB / 414.1 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)