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.001252/0.001252, allocations: 106.4 kB / 17.06 MB, free: 6.027 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.001186/0.001186, allocations: 195 kB / 18 MB, free: 5.105 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.18/1.18, allocations: 205.1 MB / 223.9 MB, free: 12.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1646/0.1646, allocations: 38 MB / 309.2 MB, free: 5.953 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.001305/0.001305, allocations: 59.91 kB / 431.9 MB, free: 15.67 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07799/0.0793, allocations: 55.24 MB / 487.1 MB, free: 8.375 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Introductory.SimulationFixedInitial): time 0.007486/0.08682, allocations: 7.578 MB / 494.7 MB, free: 0.7539 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003502/0.09036, allocations: 2.369 MB / 497 MB, free: 14.38 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002686/0.09065, allocations: 27.88 kB / 497.1 MB, free: 14.35 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001885/0.09257, allocations: 0.8595 MB / 497.9 MB, free: 13.48 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008657/0.09344, allocations: 0.4975 MB / 498.4 MB, free: 12.98 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009296/0.09439, allocations: 455 kB / 498.9 MB, free: 12.54 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001083/0.09548, allocations: 1.321 MB / 0.4885 GB, free: 11.21 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007497/0.09624, allocations: 0.6854 MB / 0.4891 GB, free: 10.52 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006991/0.09695, allocations: 0.5758 MB / 0.4897 GB, free: 9.945 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00078/0.09774, allocations: 0.6814 MB / 0.4904 GB, free: 9.262 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001195/0.09787, allocations: 84 kB / 0.4904 GB, free: 9.18 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000474/0.09836, allocations: 267.6 kB / 0.4907 GB, free: 8.918 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003966/0.09876, allocations: 0.5027 MB / 0.4912 GB, free: 8.414 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004652/0.09924, allocations: 0.5482 MB / 0.4917 GB, free: 7.863 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001052/0.1003, allocations: 1.324 MB / 0.493 GB, free: 6.535 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.467e-06/0.1003, allocations: 0 / 0.493 GB, free: 6.535 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.1003, allocations: 0 / 0.493 GB, free: 6.535 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.041e-05/0.1003, allocations: 0 / 0.493 GB, free: 6.535 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.001996/0.1023, allocations: 1.339 MB / 0.4943 GB, free: 5.133 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.319e-05/0.1024, allocations: 15.89 kB / 0.4943 GB, free: 5.117 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008943/0.1033, allocations: 163.5 kB / 0.4945 GB, free: 4.957 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001051/0.1043, allocations: 0.7389 MB / 0.4952 GB, free: 4.176 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.311e-05/0.1044, allocations: 70.36 kB / 0.4953 GB, free: 4.105 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001946/0.1046, allocations: 108 kB / 0.4954 GB, free: 4 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001563/0.1062, allocations: 1.219 MB / 0.4966 GB, free: 2.711 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.711e-05/0.1062, allocations: 3.906 kB / 0.4966 GB, free: 2.707 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.791e-05/0.1063, allocations: 39.98 kB / 0.4966 GB, free: 2.668 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002291/0.1065, allocations: 57.97 kB / 0.4967 GB, free: 2.609 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001425/0.108, allocations: 1.015 MB / 0.4977 GB, free: 1.598 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004966/0.1129, allocations: 4.756 MB / 0.5023 GB, free: 12.63 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009759/0.1139, allocations: 0.672 MB / 0.503 GB, free: 11.94 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005658/0.1145, allocations: 447.9 kB / 0.5034 GB, free: 11.5 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.058e-05/0.1146, allocations: 16.55 kB / 0.5034 GB, free: 11.48 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006656/0.1152, allocations: 0.5002 MB / 0.5039 GB, free: 10.95 MB / 398.1 MB Notification: Performance of pre-optimization done (n=69): time 2.565e-06/0.1153, allocations: 4 kB / 0.5039 GB, free: 10.95 MB / 398.1 MB Notification: Performance of matching and sorting (n=73): time 0.00415/0.1194, allocations: 2.784 MB / 0.5066 GB, free: 8.086 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.317e-05/0.1195, allocations: 170.8 kB / 0.5068 GB, free: 7.883 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006/0.1201, allocations: 0.5899 MB / 0.5074 GB, free: 7.285 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.352e-05/0.1202, allocations: 45.69 kB / 0.5074 GB, free: 7.234 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002824/0.1205, allocations: 478.9 kB / 0.5079 GB, free: 6.758 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001807/0.1206, allocations: 248.5 kB / 0.5081 GB, free: 6.512 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002345/0.1209, allocations: 174.6 kB / 0.5083 GB, free: 6.336 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001393/0.121, allocations: 394.7 kB / 0.5086 GB, free: 5.941 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000529/0.1216, allocations: 373.8 kB / 0.509 GB, free: 5.574 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006742/0.1223, allocations: 0.6346 MB / 0.5096 GB, free: 4.828 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.00646/0.1287, allocations: 3.442 MB / 0.513 GB, free: 1.203 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.34e-06/0.1288, allocations: 4 kB / 0.513 GB, free: 1.199 MB / 398.1 MB Notification: Performance of matching and sorting (n=118) (initialization): time 0.002063/0.1308, allocations: 1.344 MB / 0.5143 GB, free: 15.83 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.085e-05/0.1309, allocations: 41.86 kB / 0.5143 GB, free: 15.79 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.452e-05/0.1309, allocations: 11.94 kB / 0.5143 GB, free: 15.77 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005697/0.1315, allocations: 238.4 kB / 0.5146 GB, free: 15.53 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001051/0.1325, allocations: 271.6 kB / 0.5148 GB, free: 15.27 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004923/0.1375, allocations: 6.077 MB / 0.5208 GB, free: 8.777 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005054/0.138, allocations: 31.98 kB / 0.5208 GB, free: 8.746 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.561e-05/0.1381, allocations: 43.98 kB / 0.5208 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.0004621/0.1385, allocations: 380.3 kB / 0.5212 GB, free: 8.316 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001047/0.1386, allocations: 79 kB / 0.5213 GB, free: 8.238 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001834/0.1405, allocations: 1.141 MB / 0.5224 GB, free: 7.066 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.392e-05/0.1405, allocations: 8 kB / 0.5224 GB, free: 7.059 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.241e-06/0.1405, allocations: 4 kB / 0.5224 GB, free: 7.055 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.685e-06/0.1405, allocations: 3.984 kB / 0.5224 GB, free: 7.051 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003119/0.1437, allocations: 2.258 MB / 0.5246 GB, free: 4.699 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.667e-06/0.1437, allocations: 4 kB / 0.5246 GB, free: 4.695 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008809/0.1446, allocations: 187.7 kB / 0.5248 GB, free: 4.512 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000643/0.1452, allocations: 250.7 kB / 0.525 GB, free: 4.258 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.902e-05/0.1453, allocations: 27.92 kB / 0.5251 GB, free: 4.23 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1688/0.3141, allocations: 5.998 MB / 0.5309 GB, free: 49.51 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.958e-06/0.3142, allocations: 6.156 kB / 0.5309 GB, free: 49.51 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002278/0.3165, allocations: 1.643 MB / 0.5325 GB, free: 49.27 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001259/0.3166, allocations: 145.1 kB / 0.5327 GB, free: 49.18 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.406e-05/0.3167, allocations: 29.03 kB / 0.5327 GB, free: 49.18 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003817/0.3171, allocations: 24.08 kB / 0.5327 GB, free: 49.18 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00014/0.3172, allocations: 60.59 kB / 0.5328 GB, free: 49.18 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.027e-05/0.3173, allocations: 24.27 kB / 0.5328 GB, free: 49.18 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003987/0.3177, allocations: 420.3 kB / 0.5332 GB, free: 49.08 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.3177, allocations: 2.688 kB / 0.5332 GB, free: 49.08 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0009382/0.3186, allocations: 270.5 kB / 0.5335 GB, free: 49.08 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.000162/0.3188, allocations: 142.3 kB / 0.5336 GB, free: 48.99 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001747/0.3206, allocations: 1.385 MB / 0.5349 GB, free: 48.58 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.3206, allocations: 1.031 kB / 0.5349 GB, free: 48.58 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001119/0.3217, allocations: 0.9156 MB / 0.5358 GB, free: 48.02 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007924/0.3225, allocations: 177.5 kB / 0.536 GB, free: 47.96 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0027/0.3252, allocations: 2.164 MB / 0.5381 GB, free: 46.97 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005338/0.3258, allocations: 1.113 MB / 0.5392 GB, free: 46.23 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004641/0.3262, allocations: 216.9 kB / 0.5394 GB, free: 46.2 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001563/0.3264, allocations: 59.73 kB / 0.5395 GB, free: 46.19 MB / 414.1 MB Notification: Performance of SimCode: time 3.41e-07/0.3264, allocations: 1.25 kB / 0.5395 GB, free: 46.19 MB / 414.1 MB Notification: Performance of Templates: time 0.01645/0.3429, allocations: 11.4 MB / 0.5506 GB, free: 43.09 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)