Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.Generic.Network.NetworkControlled.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.Generic.Network.NetworkControlled,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Generic.Network.NetworkControlled") translateModel(PowerSystems.Examples.Generic.Network.NetworkControlled,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.Generic.Network.NetworkControlled") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001125/0.001126, allocations: 179.9 kB / 17.4 MB, free: 4.293 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.575/1.575, allocations: 194.5 MB / 212.6 MB, free: 2.938 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001694/0.001694, allocations: 116.5 kB / 257.9 MB, free: 4.258 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.2067/0.2067, allocations: 38.01 MB / 341.1 MB, free: 1.195 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003609/0.0003609, allocations: 8 kB / 405 MB, free: 68.49 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1005/0.1009, allocations: 53.23 MB / 458.3 MB, free: 15.25 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3563/0.4572, allocations: 98.28 MB / 0.5435 GB, free: 13.32 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002292/0.4575, allocations: 91.88 kB / 0.5436 GB, free: 13.28 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1623/0.6198, allocations: 66.96 MB / 0.609 GB, free: 1 MB / 410.7 MB Notification: Performance of FrontEnd: time 6.222e-06/0.6199, allocations: 0 / 0.609 GB, free: 1 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0001539/0.6201, allocations: 23.98 kB / 0.609 GB, free: 0.9766 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 292 * Number of variables: 292 Notification: Performance of Generate backend data structure: time 0.005232/0.6253, allocations: 1.457 MB / 0.6104 GB, free: 15.45 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.146e-05/0.6254, allocations: 16.03 kB / 0.6104 GB, free: 15.44 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00414/0.6295, allocations: 486.8 kB / 0.6109 GB, free: 14.96 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001825/0.6314, allocations: 0.6882 MB / 0.6116 GB, free: 14.23 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.948e-05/0.6315, allocations: 82.47 kB / 0.6116 GB, free: 14.14 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004278/0.6319, allocations: 120.2 kB / 0.6118 GB, free: 14.03 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003564/0.6355, allocations: 1.547 MB / 0.6133 GB, free: 12.43 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.314e-05/0.6356, allocations: 12.11 kB / 0.6133 GB, free: 12.41 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001576/0.6357, allocations: 43.92 kB / 0.6133 GB, free: 12.37 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000311/0.6361, allocations: 114.1 kB / 0.6134 GB, free: 12.26 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003082/0.6391, allocations: 1.59 MB / 0.615 GB, free: 10.66 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008542/0.6477, allocations: 4.722 MB / 0.6196 GB, free: 5.812 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002298/0.65, allocations: 1.346 MB / 0.6209 GB, free: 4.449 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001253/0.6513, allocations: 0.7939 MB / 0.6217 GB, free: 3.648 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.85e-05/0.6514, allocations: 24.97 kB / 0.6217 GB, free: 3.625 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001399/0.6528, allocations: 0.8256 MB / 0.6225 GB, free: 2.777 MB / 426.7 MB Notification: Performance of pre-optimization done (n=125): time 4.428e-06/0.6528, allocations: 0 / 0.6225 GB, free: 2.777 MB / 426.7 MB Notification: Performance of matching and sorting (n=136): time 0.01239/0.6652, allocations: 5.898 MB / 0.6283 GB, free: 12.77 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001016/0.6654, allocations: 128 kB / 0.6284 GB, free: 12.62 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007922/0.6662, allocations: 0.5303 MB / 0.6289 GB, free: 12.08 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001045/0.6663, allocations: 49.7 kB / 0.629 GB, free: 12.02 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004194/0.6667, allocations: 460.3 kB / 0.6294 GB, free: 11.57 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004458/0.6672, allocations: 465.3 kB / 0.6298 GB, free: 11.11 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.341e-05/0.6673, allocations: 24 kB / 0.6299 GB, free: 11.08 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0002305/0.6675, allocations: 402.8 kB / 0.6303 GB, free: 10.68 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001174/0.6687, allocations: 0.5959 MB / 0.6308 GB, free: 10.08 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001199/0.6699, allocations: 0.7507 MB / 0.6316 GB, free: 9.297 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002462/0.6724, allocations: 1.462 MB / 0.633 GB, free: 7.797 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.54e-06/0.6724, allocations: 0 / 0.633 GB, free: 7.797 MB / 442.7 MB Notification: Performance of matching and sorting (n=159) (initialization): time 0.00405/0.6764, allocations: 2.037 MB / 0.635 GB, free: 5.738 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001828/0.6766, allocations: 192.7 kB / 0.6352 GB, free: 5.508 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.279e-05/0.6767, allocations: 4 kB / 0.6352 GB, free: 5.504 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001326/0.678, allocations: 465.3 kB / 0.6356 GB, free: 5.043 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001072/0.6791, allocations: 271.5 kB / 0.6359 GB, free: 4.777 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008441/0.6875, allocations: 6.242 MB / 0.642 GB, free: 14.25 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001111/0.6887, allocations: 107.9 kB / 0.6421 GB, free: 14.14 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001817/0.6889, allocations: 43.98 kB / 0.6421 GB, free: 14.1 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.498e-06/0.6889, allocations: 4 kB / 0.6421 GB, free: 14.1 MB / 458.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003632/0.6925, allocations: 1.845 MB / 0.6439 GB, free: 12.24 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.508e-06/0.6926, allocations: 4 kB / 0.6439 GB, free: 12.23 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001115/0.6937, allocations: 425.7 kB / 0.6443 GB, free: 11.81 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001064/0.6948, allocations: 275.6 kB / 0.6446 GB, free: 11.54 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007529/0.7023, allocations: 6.021 MB / 0.6505 GB, free: 5.234 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009249/0.7033, allocations: 91.89 kB / 0.6506 GB, free: 5.145 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001372/0.7034, allocations: 43.98 kB / 0.6506 GB, free: 5.102 MB / 458.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 7 (system.initime,$whenCondition2,$whenCondition1,$PRE.disturbance.T_start,disturbance.T_start,$PRE.disturbance.count,disturbance.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (120): * Single equations (assignments): 117 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 8,2 29} Notification: Performance of prepare postOptimizeDAE: time 0.0008355/0.7042, allocations: 428.8 kB / 0.651 GB, free: 4.672 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002027/0.7045, allocations: 98.81 kB / 0.6511 GB, free: 4.574 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004262/0.7087, allocations: 2.141 MB / 0.6532 GB, free: 2.418 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.301e-05/0.7088, allocations: 20 kB / 0.6532 GB, free: 2.398 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.7088, allocations: 0 / 0.6532 GB, free: 2.398 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.673e-05/0.7088, allocations: 11.97 kB / 0.6532 GB, free: 2.387 MB / 458.7 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007548/0.7163, allocations: 3.92 MB / 0.6571 GB, free: 14.34 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.899e-06/0.7164, allocations: 4.281 kB / 0.6571 GB, free: 14.34 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009054/0.7173, allocations: 219.7 kB / 0.6573 GB, free: 14.12 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001554/0.7189, allocations: 0.5167 MB / 0.6578 GB, free: 13.6 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001069/0.719, allocations: 24 kB / 0.6578 GB, free: 13.58 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009317/0.7283, allocations: 6.543 MB / 0.6642 GB, free: 6.738 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.145e-05/0.7284, allocations: 15.88 kB / 0.6642 GB, free: 6.723 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006179/0.7345, allocations: 3.065 MB / 0.6672 GB, free: 3.609 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007232/0.7353, allocations: 279.8 kB / 0.6675 GB, free: 3.316 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002213/0.7355, allocations: 31.98 kB / 0.6675 GB, free: 3.285 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009261/0.7365, allocations: 91.91 kB / 0.6676 GB, free: 3.195 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003309/0.7368, allocations: 125.1 kB / 0.6677 GB, free: 3.07 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.49e-05/0.7369, allocations: 36 kB / 0.6677 GB, free: 3.035 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.000595/0.7375, allocations: 374.8 kB / 0.6681 GB, free: 2.668 MB / 474.7 MB Notification: Performance of sort global known variables: time 8e-08/0.7375, allocations: 192 / 0.6681 GB, free: 2.668 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.002891/0.7404, allocations: 0.6758 MB / 0.6688 GB, free: 1.992 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 4 (inertia1.phi,inertia1.w,frequencyPowerControl.I.y,system.theta) * Number of discrete variables: 5 (system.initime,$whenCondition2,$whenCondition1,disturbance.T_start,disturbance.count) * Number of discrete states: 1 (disturbance.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (102): * Single equations (assignments): 97 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {3 40,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003633/0.7408, allocations: 162.9 kB / 0.6689 GB, free: 1.824 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.2162/0.957, allocations: 3.255 MB / 0.6721 GB, free: 123.6 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.387e-05/0.957, allocations: 4.188 kB / 0.6721 GB, free: 123.6 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002129/0.9592, allocations: 1.306 MB / 0.6734 GB, free: 123.3 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001345/0.9605, allocations: 171 kB / 0.6735 GB, free: 123.3 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00503/0.9656, allocations: 3.138 MB / 0.6766 GB, free: 122.1 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001204/0.9668, allocations: 1.247 MB / 0.6778 GB, free: 121.4 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.001207/0.968, allocations: 292 kB / 0.6781 GB, free: 121.3 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003128/0.9684, allocations: 79.78 kB / 0.6782 GB, free: 121.3 MB / 474.7 MB Notification: Performance of SimCode: time 1.893e-06/0.9684, allocations: 3.172 kB / 0.6782 GB, free: 121.3 MB / 474.7 MB Notification: Performance of Templates: time 0.03172/1, allocations: 19.76 MB / 0.6975 GB, free: 120.5 MB / 474.7 MB make -j1 -f PowerSystems_PowerSystems.Examples.Generic.Network.NetworkControlled.makefile (rm -f PowerSystems_PowerSystems.Examples.Generic.Network.NetworkControlled.pipe ; mkfifo PowerSystems_PowerSystems.Examples.Generic.Network.NetworkControlled.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.Generic.Network.NetworkControlled.pipe >> ../files/PowerSystems_PowerSystems.Examples.Generic.Network.NetworkControlled.sim & ./PowerSystems_PowerSystems.Examples.Generic.Network.NetworkControlled -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.Generic.Network.NetworkControlled.pipe 2>&1)