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.001447/0.001447, allocations: 115.8 kB / 17.74 MB, free: 5.344 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.00172/0.00172, allocations: 189.5 kB / 18.67 MB, free: 4.422 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.47/1.47, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1902/0.1902, allocations: 37.99 MB / 309.9 MB, free: 5.961 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.00138/0.00138, allocations: 67.91 kB / 432.5 MB, free: 15.66 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1077/0.1091, allocations: 55.25 MB / 487.8 MB, free: 8.355 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationFixedInitial): time 0.00978/0.1189, allocations: 7.563 MB / 495.3 MB, free: 0.75 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004768/0.1237, allocations: 2.357 MB / 497.7 MB, free: 14.38 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007852/0.1245, allocations: 35.81 kB / 497.7 MB, free: 14.35 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002508/0.1271, allocations: 0.8634 MB / 498.6 MB, free: 13.48 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001531/0.1286, allocations: 0.5014 MB / 499.1 MB, free: 12.98 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001401/0.1301, allocations: 455 kB / 499.5 MB, free: 12.53 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002038/0.1321, allocations: 1.313 MB / 0.4891 GB, free: 11.21 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001147/0.1333, allocations: 0.6854 MB / 0.4898 GB, free: 10.52 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001328/0.1346, allocations: 0.5797 MB / 0.4904 GB, free: 9.941 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001359/0.136, allocations: 0.6891 MB / 0.491 GB, free: 9.25 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002589/0.1363, allocations: 80 kB / 0.4911 GB, free: 9.172 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007976/0.1371, allocations: 263.7 kB / 0.4914 GB, free: 8.914 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007572/0.1379, allocations: 0.5065 MB / 0.4918 GB, free: 8.406 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009379/0.1388, allocations: 0.552 MB / 0.4924 GB, free: 7.852 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002031/0.1408, allocations: 1.32 MB / 0.4937 GB, free: 6.527 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.1409, allocations: 0 / 0.4937 GB, free: 6.527 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1409, allocations: 0 / 0.4937 GB, free: 6.527 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.334e-05/0.1409, allocations: 0 / 0.4937 GB, free: 6.527 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.003285/0.1442, allocations: 1.339 MB / 0.495 GB, free: 5.125 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.311e-05/0.1443, allocations: 11.89 kB / 0.495 GB, free: 5.113 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001153/0.1454, allocations: 171.5 kB / 0.4952 GB, free: 4.945 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001445/0.1469, allocations: 0.7428 MB / 0.4959 GB, free: 4.16 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.252e-05/0.147, allocations: 62.38 kB / 0.4959 GB, free: 4.098 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002572/0.1472, allocations: 108.1 kB / 0.496 GB, free: 3.992 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002015/0.1493, allocations: 1.219 MB / 0.4972 GB, free: 2.703 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.968e-05/0.1493, allocations: 11.84 kB / 0.4972 GB, free: 2.691 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.928e-05/0.1494, allocations: 32 kB / 0.4973 GB, free: 2.66 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002721/0.1497, allocations: 61.97 kB / 0.4973 GB, free: 2.598 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00171/0.1514, allocations: 1.011 MB / 0.4983 GB, free: 1.59 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006546/0.158, allocations: 4.752 MB / 0.503 GB, free: 12.63 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001156/0.1592, allocations: 0.6643 MB / 0.5036 GB, free: 11.95 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006448/0.1598, allocations: 463.8 kB / 0.5041 GB, free: 11.49 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.232e-05/0.1599, allocations: 8.562 kB / 0.5041 GB, free: 11.48 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007885/0.1607, allocations: 0.5003 MB / 0.5046 GB, free: 10.95 MB / 398.1 MB Notification: Performance of pre-optimization done (n=69): time 2.946e-06/0.1607, allocations: 4 kB / 0.5046 GB, free: 10.95 MB / 398.1 MB Notification: Performance of matching and sorting (n=73): time 0.005052/0.1658, allocations: 2.788 MB / 0.5073 GB, free: 8.078 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.513e-05/0.1659, allocations: 166.8 kB / 0.5074 GB, free: 7.879 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007738/0.1667, allocations: 0.5938 MB / 0.508 GB, free: 7.277 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.801e-05/0.1668, allocations: 37.7 kB / 0.5081 GB, free: 7.234 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003959/0.1672, allocations: 482.9 kB / 0.5085 GB, free: 6.754 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002552/0.1674, allocations: 248.5 kB / 0.5087 GB, free: 6.508 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002708/0.1677, allocations: 182.5 kB / 0.5089 GB, free: 6.324 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001898/0.1679, allocations: 398.7 kB / 0.5093 GB, free: 5.926 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005969/0.1685, allocations: 373.8 kB / 0.5097 GB, free: 5.559 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007584/0.1693, allocations: 0.6346 MB / 0.5103 GB, free: 4.812 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.007087/0.1764, allocations: 3.435 MB / 0.5136 GB, free: 1.195 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.017e-06/0.1764, allocations: 0 / 0.5136 GB, free: 1.195 MB / 398.1 MB Notification: Performance of matching and sorting (n=118) (initialization): time 0.002381/0.1788, allocations: 1.344 MB / 0.5149 GB, free: 15.83 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.497e-05/0.1789, allocations: 37.78 kB / 0.515 GB, free: 15.79 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.871e-05/0.1789, allocations: 12 kB / 0.515 GB, free: 15.77 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006487/0.1796, allocations: 250.3 kB / 0.5152 GB, free: 15.52 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001173/0.1807, allocations: 263.6 kB / 0.5155 GB, free: 15.26 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005796/0.1866, allocations: 6.073 MB / 0.5214 GB, free: 8.777 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007318/0.1873, allocations: 39.98 kB / 0.5215 GB, free: 8.738 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001283/0.1875, allocations: 36 kB / 0.5215 GB, free: 8.703 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.0006938/0.1882, allocations: 376.4 kB / 0.5218 GB, free: 8.32 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001804/0.1884, allocations: 82.94 kB / 0.5219 GB, free: 8.238 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002102/0.1905, allocations: 1.149 MB / 0.523 GB, free: 7.059 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.121e-05/0.1905, allocations: 8 kB / 0.5231 GB, free: 7.051 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.179e-05/0.1905, allocations: 4 kB / 0.5231 GB, free: 7.047 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.236e-05/0.1905, allocations: 7.984 kB / 0.5231 GB, free: 7.039 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003747/0.1943, allocations: 2.25 MB / 0.5253 GB, free: 4.695 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.923e-06/0.1943, allocations: 0 / 0.5253 GB, free: 4.695 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009582/0.1953, allocations: 187.8 kB / 0.5254 GB, free: 4.512 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007327/0.196, allocations: 254.4 kB / 0.5257 GB, free: 4.254 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.895e-05/0.1961, allocations: 35.91 kB / 0.5257 GB, free: 4.219 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2423/0.4385, allocations: 5.99 MB / 0.5316 GB, free: 49.42 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.758e-06/0.4385, allocations: 6.047 kB / 0.5316 GB, free: 49.42 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002644/0.4412, allocations: 1.645 MB / 0.5332 GB, free: 49.18 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002142/0.4414, allocations: 143.4 kB / 0.5333 GB, free: 49.09 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001178/0.4415, allocations: 25.5 kB / 0.5333 GB, free: 49.09 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004103/0.442, allocations: 27.14 kB / 0.5334 GB, free: 49.09 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001679/0.4421, allocations: 62.73 kB / 0.5334 GB, free: 49.09 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.807e-05/0.4422, allocations: 22.98 kB / 0.5335 GB, free: 49.09 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0005007/0.4427, allocations: 415.9 kB / 0.5338 GB, free: 48.99 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4427, allocations: 0 / 0.5338 GB, free: 48.99 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001075/0.4438, allocations: 271.7 kB / 0.5341 GB, free: 48.99 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.0002261/0.444, allocations: 138.9 kB / 0.5342 GB, free: 48.91 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002118/0.4462, allocations: 1.392 MB / 0.5356 GB, free: 48.5 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/0.4462, allocations: 0 / 0.5356 GB, free: 48.5 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001268/0.4474, allocations: 0.9131 MB / 0.5365 GB, free: 47.95 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009683/0.4484, allocations: 181.4 kB / 0.5367 GB, free: 47.88 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003647/0.4521, allocations: 2.249 MB / 0.5389 GB, free: 46.85 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007113/0.4528, allocations: 1.117 MB / 0.5399 GB, free: 46.1 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002758/0.4531, allocations: 65.33 kB / 0.54 GB, free: 46.09 MB / 414.1 MB Notification: Performance of SimCode: time 8.62e-07/0.4531, allocations: 0 / 0.54 GB, free: 46.09 MB / 414.1 MB Notification: Performance of Templates: time 0.02902/0.4821, allocations: 21.1 MB / 0.5606 GB, free: 35.72 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)