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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.001805/0.001805, allocations: 110.1 kB / 17.29 MB, free: 6.219 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.002541/0.00254, allocations: 193.3 kB / 18.21 MB, free: 5.293 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.668/2.668, allocations: 222.9 MB / 241.9 MB, free: 15.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.381/0.381, allocations: 38.02 MB / 330.1 MB, free: 8.957 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002868/0.002868, allocations: 65.58 kB / 398.9 MB, free: 34.38 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1904/0.1933, allocations: 58.06 MB / 457 MB, free: 8.414 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationFixedInitial): time 0.02273/0.2161, allocations: 9.227 MB / 466.2 MB, free: 15.14 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01469/0.231, allocations: 2.816 MB / 469 MB, free: 12.32 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004341/0.2354, allocations: 59.62 kB / 469.1 MB, free: 12.26 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008356/0.2439, allocations: 0.8055 MB / 469.9 MB, free: 11.45 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005948/0.2499, allocations: 478 kB / 470.4 MB, free: 10.98 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003981/0.254, allocations: 407.3 kB / 470.8 MB, free: 10.58 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.005889/0.2599, allocations: 1.317 MB / 472.1 MB, free: 9.258 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003861/0.2639, allocations: 0.7362 MB / 472.8 MB, free: 8.512 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002767/0.2667, allocations: 0.5719 MB / 473.4 MB, free: 7.938 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005133/0.272, allocations: 0.7398 MB / 474.1 MB, free: 7.195 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001104/0.2732, allocations: 80 kB / 474.2 MB, free: 7.117 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002869/0.2761, allocations: 271.6 kB / 474.5 MB, free: 6.852 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002761/0.2789, allocations: 0.5026 MB / 475 MB, free: 6.348 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002783/0.2817, allocations: 0.5443 MB / 475.5 MB, free: 5.801 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004633/0.2864, allocations: 1.01 MB / 476.5 MB, free: 4.789 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.735e-05/0.2866, allocations: 0 / 476.5 MB, free: 4.789 MB / 350.1 MB Notification: Performance of FrontEnd: time 5.701e-06/0.2866, allocations: 4 kB / 476.5 MB, free: 4.785 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001742/0.2868, allocations: 4 kB / 476.5 MB, free: 4.781 MB / 350.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.008835/0.2957, allocations: 1.331 MB / 477.9 MB, free: 3.391 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 0.0001097/0.2958, allocations: 19.83 kB / 477.9 MB, free: 3.371 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00242/0.2983, allocations: 167.5 kB / 478.1 MB, free: 3.207 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004275/0.3026, allocations: 0.6999 MB / 478.8 MB, free: 2.465 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001745/0.3028, allocations: 70.34 kB / 478.8 MB, free: 2.398 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008083/0.3037, allocations: 108 kB / 478.9 MB, free: 2.293 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00933/0.313, allocations: 1.223 MB / 480.1 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001095/0.3132, allocations: 0 / 480.1 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003168/0.3136, allocations: 39.98 kB / 480.2 MB, free: 0.957 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005148/0.3141, allocations: 61.95 kB / 480.2 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003572/0.3177, allocations: 1.011 MB / 481.3 MB, free: 15.89 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01164/0.3294, allocations: 4.764 MB / 486 MB, free: 10.92 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002173/0.3317, allocations: 0.6681 MB / 486.7 MB, free: 10.23 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001116/0.3328, allocations: 459.8 kB / 487.1 MB, free: 9.773 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.878e-05/0.333, allocations: 12.55 kB / 487.2 MB, free: 9.762 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001451/0.3344, allocations: 0.5003 MB / 487.7 MB, free: 9.23 MB / 366.1 MB Notification: Performance of pre-optimization done (n=69): time 1.213e-05/0.3345, allocations: 3.938 kB / 487.7 MB, free: 9.227 MB / 366.1 MB Notification: Performance of matching and sorting (n=73): time 0.008851/0.3434, allocations: 2.784 MB / 490.4 MB, free: 6.355 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001783/0.3436, allocations: 170.8 kB / 490.6 MB, free: 6.152 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001186/0.3448, allocations: 0.5977 MB / 491.2 MB, free: 5.543 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001213/0.345, allocations: 41.7 kB / 491.2 MB, free: 5.496 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005698/0.3456, allocations: 471 kB / 491.7 MB, free: 5.027 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003521/0.3459, allocations: 264.3 kB / 492 MB, free: 4.766 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003966/0.3463, allocations: 166.6 kB / 492.1 MB, free: 4.598 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002953/0.3466, allocations: 394.7 kB / 492.5 MB, free: 4.203 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009891/0.3477, allocations: 373.8 kB / 492.9 MB, free: 3.836 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001226/0.3489, allocations: 0.6388 MB / 493.5 MB, free: 3.086 MB / 366.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.01211/0.361, allocations: 3.461 MB / 497 MB, free: 15.45 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.35e-05/0.3611, allocations: 0 / 497 MB, free: 15.45 MB / 382.1 MB Notification: Performance of matching and sorting (n=118) (initialization): time 0.003965/0.3651, allocations: 1.347 MB / 498.3 MB, free: 14.08 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.947e-05/0.3652, allocations: 33.7 kB / 498.4 MB, free: 14.04 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.509e-05/0.3652, allocations: 8 kB / 498.4 MB, free: 14.03 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001061/0.3663, allocations: 246.9 kB / 498.6 MB, free: 13.78 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001931/0.3682, allocations: 263.6 kB / 498.9 MB, free: 13.52 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01035/0.3786, allocations: 6.081 MB / 0.4931 GB, free: 7.027 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001758/0.3805, allocations: 35.98 kB / 0.4931 GB, free: 6.992 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001983/0.3807, allocations: 43.98 kB / 0.4932 GB, free: 6.949 MB / 382.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.001247/0.382, allocations: 372.7 kB / 0.4935 GB, free: 6.57 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002772/0.3823, allocations: 79.06 kB / 0.4936 GB, free: 6.492 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00362/0.3859, allocations: 1.137 MB / 0.4947 GB, free: 5.328 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.36e-05/0.386, allocations: 12 kB / 0.4947 GB, free: 5.316 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.344e-05/0.386, allocations: 4.125 kB / 0.4947 GB, free: 5.312 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.773e-05/0.386, allocations: 3.984 kB / 0.4947 GB, free: 5.309 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007161/0.3932, allocations: 2.257 MB / 0.4969 GB, free: 2.965 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.408e-05/0.3933, allocations: 0 / 0.4969 GB, free: 2.965 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001781/0.3951, allocations: 183.8 kB / 0.4971 GB, free: 2.785 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001498/0.3966, allocations: 254.2 kB / 0.4974 GB, free: 2.527 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000163/0.3968, allocations: 31.92 kB / 0.4974 GB, free: 2.496 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01028/0.4071, allocations: 6.011 MB / 0.5033 GB, free: 12.07 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.505e-05/0.4072, allocations: 3.984 kB / 0.5033 GB, free: 12.07 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00558/0.4128, allocations: 1.649 MB / 0.5049 GB, free: 10.37 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005496/0.4134, allocations: 148.1 kB / 0.505 GB, free: 10.2 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004758/0.4139, allocations: 27.92 kB / 0.5051 GB, free: 10.18 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001197/0.4152, allocations: 23.98 kB / 0.5051 GB, free: 10.15 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003732/0.4156, allocations: 64.42 kB / 0.5051 GB, free: 10.09 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001318/0.4158, allocations: 23.98 kB / 0.5052 GB, free: 10.07 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001309/0.4171, allocations: 411 kB / 0.5055 GB, free: 9.672 MB / 398.1 MB Notification: Performance of sort global known variables: time 5.91e-07/0.4171, allocations: 0 / 0.5055 GB, free: 9.672 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.002381/0.4195, allocations: 272 kB / 0.5058 GB, free: 9.406 MB / 398.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.0004487/0.42, allocations: 127.1 kB / 0.5059 GB, free: 9.273 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.004953/0.425, allocations: 1.56 MB / 0.5075 GB, free: 7.66 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 8.206e-06/0.425, allocations: 0 / 0.5075 GB, free: 7.66 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00258/0.4276, allocations: 0.9211 MB / 0.5084 GB, free: 6.688 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002156/0.4298, allocations: 184.9 kB / 0.5085 GB, free: 6.508 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008249/0.4381, allocations: 2.639 MB / 0.5111 GB, free: 3.816 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001526/0.4397, allocations: 1.115 MB / 0.5122 GB, free: 2.676 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005126/0.4402, allocations: 67.42 kB / 0.5123 GB, free: 2.609 MB / 398.1 MB Notification: Performance of SimCode: time 4.338e-06/0.4403, allocations: 0 / 0.5123 GB, free: 2.609 MB / 398.1 MB Notification: Performance of Templates: time 0.447/0.8872, allocations: 21.02 MB / 0.5328 GB, free: 62.49 MB / 398.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)