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.001014/0.001014, allocations: 179.8 kB / 16.38 MB, free: 5.762 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.172/1.172, allocations: 194.5 MB / 211.6 MB, free: 3.035 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.001509/0.001509, allocations: 117 kB / 256.9 MB, free: 4.363 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1595/0.1595, allocations: 37.99 MB / 340 MB, free: 1.359 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003513/0.0003514, allocations: 16 kB / 403.8 MB, free: 68.8 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07236/0.07273, allocations: 53.23 MB / 457 MB, free: 15.57 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2908/0.3636, allocations: 98.23 MB / 0.5422 GB, free: 13.73 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002497/0.3639, allocations: 88.33 kB / 0.5423 GB, free: 13.68 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1495/0.5135, allocations: 66.89 MB / 0.6076 GB, free: 1.512 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.5135, allocations: 0 / 0.6076 GB, free: 1.512 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.52e-05/0.5136, allocations: 27.94 kB / 0.6077 GB, free: 1.484 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.002616/0.5162, allocations: 1.468 MB / 0.6091 GB, free: 15.95 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.466e-05/0.5162, allocations: 16.02 kB / 0.6091 GB, free: 15.93 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003494/0.5197, allocations: 485.8 kB / 0.6096 GB, free: 15.46 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001247/0.521, allocations: 0.6717 MB / 0.6102 GB, free: 14.75 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.2e-05/0.5211, allocations: 82.09 kB / 0.6103 GB, free: 14.66 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001788/0.5212, allocations: 111.9 kB / 0.6104 GB, free: 14.55 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002424/0.5237, allocations: 1.55 MB / 0.6119 GB, free: 12.95 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.065e-05/0.5237, allocations: 4 kB / 0.6119 GB, free: 12.95 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001131/0.5238, allocations: 43.98 kB / 0.612 GB, free: 12.9 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002686/0.5241, allocations: 114.1 kB / 0.6121 GB, free: 12.79 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002521/0.5266, allocations: 1.586 MB / 0.6136 GB, free: 11.2 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007207/0.5339, allocations: 4.729 MB / 0.6182 GB, free: 6.344 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002036/0.5359, allocations: 1.346 MB / 0.6196 GB, free: 4.98 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.847e-05/0.536, allocations: 28.97 kB / 0.6196 GB, free: 4.953 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001262/0.5373, allocations: 0.8217 MB / 0.6204 GB, free: 4.117 MB / 426.7 MB Notification: Performance of pre-optimization done (n=125): time 2.886e-06/0.5373, allocations: 0 / 0.6204 GB, free: 4.117 MB / 426.7 MB Notification: Performance of matching and sorting (n=136): time 0.01148/0.5488, allocations: 5.891 MB / 0.6261 GB, free: 14.11 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.311e-05/0.5489, allocations: 120.1 kB / 0.6263 GB, free: 13.96 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006412/0.5495, allocations: 478.2 kB / 0.6267 GB, free: 13.49 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001012/0.5497, allocations: 53.64 kB / 0.6268 GB, free: 13.43 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003658/0.55, allocations: 456.3 kB / 0.6272 GB, free: 12.98 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003747/0.5504, allocations: 473.2 kB / 0.6277 GB, free: 12.51 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.797e-05/0.5505, allocations: 24 kB / 0.6277 GB, free: 12.48 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001744/0.5507, allocations: 402.7 kB / 0.6281 GB, free: 12.08 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001052/0.5517, allocations: 0.5959 MB / 0.6286 GB, free: 11.49 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001169/0.5529, allocations: 0.7386 MB / 0.6294 GB, free: 10.71 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001195/0.5541, allocations: 0.7225 MB / 0.6301 GB, free: 9.988 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.148e-06/0.5541, allocations: 0 / 0.6301 GB, free: 9.988 MB / 442.7 MB Notification: Performance of matching and sorting (n=159) (initialization): time 0.003644/0.5578, allocations: 2.013 MB / 0.632 GB, free: 7.953 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000474/0.5583, allocations: 1.005 MB / 0.633 GB, free: 6.875 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.226e-05/0.5583, allocations: 4 kB / 0.633 GB, free: 6.871 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001302/0.5596, allocations: 457.3 kB / 0.6335 GB, free: 6.418 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001107/0.5607, allocations: 271.6 kB / 0.6337 GB, free: 6.152 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006632/0.5674, allocations: 5.049 MB / 0.6386 GB, free: 0.9219 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001012/0.5684, allocations: 103.9 kB / 0.6387 GB, free: 0.8203 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001444/0.5686, allocations: 51.98 kB / 0.6388 GB, free: 0.7695 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.292e-05/0.5686, allocations: 7.906 kB / 0.6388 GB, free: 0.7617 MB / 442.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003413/0.572, allocations: 1.841 MB / 0.6406 GB, free: 14.9 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.628e-06/0.572, allocations: 4 kB / 0.6406 GB, free: 14.9 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001135/0.5732, allocations: 429.5 kB / 0.641 GB, free: 14.47 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001091/0.5743, allocations: 267.6 kB / 0.6413 GB, free: 14.21 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00732/0.5816, allocations: 6.132 MB / 0.6473 GB, free: 7.793 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009965/0.5826, allocations: 99.94 kB / 0.6474 GB, free: 7.695 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001318/0.5828, allocations: 43.98 kB / 0.6474 GB, free: 7.652 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.0007574/0.5835, allocations: 428.7 kB / 0.6478 GB, free: 7.223 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001897/0.5837, allocations: 94.83 kB / 0.6479 GB, free: 7.129 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004291/0.588, allocations: 2.145 MB / 0.65 GB, free: 4.965 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.215e-05/0.5881, allocations: 12 kB / 0.65 GB, free: 4.953 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.699e-06/0.5881, allocations: 8 kB / 0.65 GB, free: 4.945 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.622e-05/0.5881, allocations: 11.92 kB / 0.65 GB, free: 4.934 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.007206/0.5953, allocations: 3.908 MB / 0.6538 GB, free: 0.9062 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.998e-06/0.5953, allocations: 4 kB / 0.6538 GB, free: 0.9023 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009435/0.5963, allocations: 223.9 kB / 0.6541 GB, free: 0.6836 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001604/0.5979, allocations: 0.509 MB / 0.6545 GB, free: 172 kB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.326e-05/0.598, allocations: 35.94 kB / 0.6546 GB, free: 136 kB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008401/0.6064, allocations: 6.704 MB / 0.6611 GB, free: 9.129 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.278e-06/0.6064, allocations: 4 kB / 0.6611 GB, free: 9.125 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005134/0.6116, allocations: 3.177 MB / 0.6642 GB, free: 5.836 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005904/0.6122, allocations: 295.7 kB / 0.6645 GB, free: 5.527 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001418/0.6123, allocations: 24 kB / 0.6645 GB, free: 5.504 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007563/0.6131, allocations: 95.89 kB / 0.6646 GB, free: 5.41 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002393/0.6134, allocations: 125 kB / 0.6648 GB, free: 5.285 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.485e-05/0.6134, allocations: 43.98 kB / 0.6648 GB, free: 5.242 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0004222/0.6139, allocations: 366.8 kB / 0.6651 GB, free: 4.883 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.6139, allocations: 0 / 0.6651 GB, free: 4.883 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.001759/0.6156, allocations: 0.672 MB / 0.6658 GB, free: 4.211 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.0002379/0.6159, allocations: 166.8 kB / 0.666 GB, free: 4.039 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.005084/0.621, allocations: 3.132 MB / 0.669 GB, free: 0.8477 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 4.729e-06/0.621, allocations: 0 / 0.669 GB, free: 0.8477 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.1648/0.7858, allocations: 1.302 MB / 0.6703 GB, free: 124.3 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00119/0.787, allocations: 141.2 kB / 0.6704 GB, free: 124.3 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004689/0.7917, allocations: 3.139 MB / 0.6735 GB, free: 123.1 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001034/0.7928, allocations: 1.263 MB / 0.6747 GB, free: 122.4 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.001013/0.7938, allocations: 294.9 kB / 0.675 GB, free: 122.3 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002956/0.7941, allocations: 75.33 kB / 0.6751 GB, free: 122.3 MB / 474.7 MB Notification: Performance of SimCode: time 1.102e-06/0.7941, allocations: 1.031 kB / 0.6751 GB, free: 122.3 MB / 474.7 MB Notification: Performance of Templates: time 0.02796/0.8221, allocations: 19.44 MB / 0.6941 GB, free: 121.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)