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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001356/0.001356, allocations: 108.1 kB / 17.74 MB, free: 5.23 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.001368/0.001368, allocations: 191 kB / 18.66 MB, free: 4.312 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.383/1.383, allocations: 205.1 MB / 224.5 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.1788/0.1788, allocations: 37.98 MB / 309.9 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.001568/0.001568, allocations: 63.91 kB / 432.5 MB, free: 15.65 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1035/0.1051, allocations: 55.24 MB / 487.8 MB, free: 8.348 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Network.NetworkControlled): time 0.01061/0.1157, allocations: 9.53 MB / 497.3 MB, free: 14.77 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.008498/0.1243, allocations: 5.457 MB / 0.491 GB, free: 9.293 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001272/0.1256, allocations: 31.88 kB / 0.491 GB, free: 9.262 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003255/0.1289, allocations: 1.132 MB / 0.4921 GB, free: 8.125 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003662/0.1326, allocations: 1.362 MB / 0.4934 GB, free: 6.758 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001849/0.1344, allocations: 0.6118 MB / 0.494 GB, free: 6.145 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003018/0.1375, allocations: 2.003 MB / 0.496 GB, free: 4.137 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001757/0.1393, allocations: 1.048 MB / 0.497 GB, free: 3.062 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00161/0.1409, allocations: 0.8403 MB / 0.4978 GB, free: 2.219 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001577/0.1425, allocations: 0.9185 MB / 0.4987 GB, free: 1.297 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003592/0.1429, allocations: 112 kB / 0.4988 GB, free: 1.188 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003732/0.1466, allocations: 1.551 MB / 0.5004 GB, free: 15.63 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009749/0.1476, allocations: 0.5767 MB / 0.5009 GB, free: 15.05 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001489/0.1491, allocations: 0.6646 MB / 0.5016 GB, free: 14.39 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004126/0.1532, allocations: 2.056 MB / 0.5036 GB, free: 12.32 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.63e-06/0.1533, allocations: 0 / 0.5036 GB, free: 12.32 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1533, allocations: 4 kB / 0.5036 GB, free: 12.32 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.348e-05/0.1534, allocations: 0 / 0.5036 GB, free: 12.32 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 299 * Number of variables: 299 Notification: Performance of Generate backend data structure: time 0.003832/0.1572, allocations: 1.649 MB / 0.5052 GB, free: 10.61 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.018e-05/0.1573, allocations: 15.83 kB / 0.5052 GB, free: 10.6 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00385/0.1611, allocations: 482.7 kB / 0.5057 GB, free: 10.12 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001527/0.1627, allocations: 0.6939 MB / 0.5064 GB, free: 9.387 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.745e-05/0.1628, allocations: 82.53 kB / 0.5064 GB, free: 9.305 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003435/0.1631, allocations: 120.2 kB / 0.5065 GB, free: 9.188 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003444/0.1666, allocations: 1.604 MB / 0.5081 GB, free: 7.523 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.025e-05/0.1667, allocations: 7.938 kB / 0.5081 GB, free: 7.516 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001271/0.1668, allocations: 44 kB / 0.5082 GB, free: 7.473 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001176/0.1669, allocations: 90.22 kB / 0.5082 GB, free: 7.383 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003169/0.1701, allocations: 1.625 MB / 0.5098 GB, free: 5.75 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00854/0.1787, allocations: 4.921 MB / 0.5146 GB, free: 0.6992 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002282/0.181, allocations: 1.315 MB / 0.5159 GB, free: 15.37 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001276/0.1823, allocations: 0.7976 MB / 0.5167 GB, free: 14.57 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.706e-05/0.1824, allocations: 24.97 kB / 0.5167 GB, free: 14.54 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001434/0.1839, allocations: 0.8333 MB / 0.5175 GB, free: 13.69 MB / 414.1 MB Notification: Performance of pre-optimization done (n=126): time 3.757e-06/0.1839, allocations: 0 / 0.5175 GB, free: 13.69 MB / 414.1 MB Notification: Performance of matching and sorting (n=137): time 0.01443/0.1983, allocations: 6.338 MB / 0.5237 GB, free: 7.227 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.451e-05/0.1985, allocations: 124.1 kB / 0.5238 GB, free: 7.082 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007581/0.1992, allocations: 0.5744 MB / 0.5244 GB, free: 6.496 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001156/0.1994, allocations: 49.7 kB / 0.5245 GB, free: 6.441 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003904/0.1998, allocations: 472.3 kB / 0.5249 GB, free: 5.973 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004906/0.2003, allocations: 469.2 kB / 0.5254 GB, free: 5.508 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003712/0.2006, allocations: 230.8 kB / 0.5256 GB, free: 5.277 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001759/0.2008, allocations: 406.7 kB / 0.526 GB, free: 4.871 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001132/0.202, allocations: 0.6266 MB / 0.5266 GB, free: 4.238 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001186/0.2032, allocations: 0.7715 MB / 0.5273 GB, free: 3.43 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002575/0.2058, allocations: 1.498 MB / 0.5288 GB, free: 1.883 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.993e-06/0.2058, allocations: 0 / 0.5288 GB, free: 1.883 MB / 414.1 MB Notification: Performance of matching and sorting (n=162) (initialization): time 0.2275/0.4333, allocations: 2.07 MB / 0.5308 GB, free: 50.4 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.225e-05/0.4334, allocations: 40.98 kB / 0.5309 GB, free: 50.36 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.456e-05/0.4334, allocations: 4.344 kB / 0.5309 GB, free: 50.36 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001435/0.4349, allocations: 447.5 kB / 0.5313 GB, free: 50.34 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001295/0.4362, allocations: 256.8 kB / 0.5315 GB, free: 50.34 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008262/0.4445, allocations: 6.763 MB / 0.5381 GB, free: 46.65 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001021/0.4455, allocations: 81.3 kB / 0.5382 GB, free: 46.62 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001206/0.4457, allocations: 51.75 kB / 0.5383 GB, free: 46.62 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001457/0.4471, allocations: 0.8757 MB / 0.5391 GB, free: 46.26 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001245/0.4484, allocations: 0.7611 MB / 0.5399 GB, free: 45.93 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002512/0.4509, allocations: 1.467 MB / 0.5413 GB, free: 45.26 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.2e-06/0.4509, allocations: 0.9688 kB / 0.5413 GB, free: 45.26 MB / 414.1 MB Notification: Performance of matching and sorting (n=162) (initialization_lambda0): time 0.003939/0.4549, allocations: 2.001 MB / 0.5432 GB, free: 44.54 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.008e-05/0.4549, allocations: 34.64 kB / 0.5433 GB, free: 44.51 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.092e-05/0.4549, allocations: 3.25 kB / 0.5433 GB, free: 44.51 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001131/0.4561, allocations: 444 kB / 0.5437 GB, free: 44.41 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001046/0.4571, allocations: 257.4 kB / 0.544 GB, free: 44.39 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007277/0.4644, allocations: 6.575 MB / 0.5504 GB, free: 39.87 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009865/0.4655, allocations: 78.44 kB / 0.5504 GB, free: 39.84 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001067/0.4656, allocations: 52.27 kB / 0.5505 GB, free: 39.83 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 8 (system.initime,disturbance.count,$PRE.disturbance.count,disturbance.T_start,$PRE.disturbance.T_start,$whenCondition1,$whenCondition2,frequencyPowerControl.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (122): * Single equations (assignments): 119 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,9), (2,29)} Notification: Performance of prepare postOptimizeDAE: time 0.0003143/0.4659, allocations: 244.1 kB / 0.5507 GB, free: 39.6 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001511/0.4661, allocations: 105.2 kB / 0.5508 GB, free: 39.55 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004109/0.4702, allocations: 2.152 MB / 0.5529 GB, free: 38.72 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.91e-05/0.4702, allocations: 16.3 kB / 0.5529 GB, free: 38.72 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.4702, allocations: 5.156 kB / 0.553 GB, free: 38.72 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.251e-05/0.4703, allocations: 7.031 kB / 0.553 GB, free: 38.72 MB / 414.1 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.006146/0.4764, allocations: 3.943 MB / 0.5568 GB, free: 37.02 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.969e-06/0.4764, allocations: 2.094 kB / 0.5568 GB, free: 37.02 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009043/0.4774, allocations: 206 kB / 0.557 GB, free: 37.01 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001542/0.4789, allocations: 0.5046 MB / 0.5575 GB, free: 36.89 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001102/0.479, allocations: 35.02 kB / 0.5575 GB, free: 36.87 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007671/0.4867, allocations: 7.13 MB / 0.5645 GB, free: 31.47 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.439e-06/0.4868, allocations: 7.75 kB / 0.5645 GB, free: 31.46 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004874/0.4916, allocations: 3.078 MB / 0.5675 GB, free: 29.29 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005239/0.4922, allocations: 290.3 kB / 0.5678 GB, free: 28.99 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001844/0.4924, allocations: 28 kB / 0.5678 GB, free: 28.96 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008171/0.4932, allocations: 79.91 kB / 0.5679 GB, free: 28.89 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002668/0.4935, allocations: 117.1 kB / 0.568 GB, free: 28.77 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.319e-05/0.4936, allocations: 51.98 kB / 0.5681 GB, free: 28.72 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.000412/0.494, allocations: 399.1 kB / 0.5684 GB, free: 28.34 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.494, allocations: 0 / 0.5684 GB, free: 28.34 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001994/0.496, allocations: 0.6602 MB / 0.5691 GB, free: 27.68 MB / 414.1 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 (103): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(3,40), (1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001948/0.4962, allocations: 143 kB / 0.5692 GB, free: 27.53 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004688/0.5009, allocations: 3.329 MB / 0.5725 GB, free: 24.13 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.863e-06/0.501, allocations: 0 / 0.5725 GB, free: 24.13 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001929/0.5029, allocations: 1.313 MB / 0.5737 GB, free: 22.79 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001216/0.5041, allocations: 194.2 kB / 0.5739 GB, free: 22.6 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004294/0.5085, allocations: 2.762 MB / 0.5766 GB, free: 19.8 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000744/0.5092, allocations: 1.259 MB / 0.5779 GB, free: 18.52 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003712/0.5096, allocations: 95.39 kB / 0.5779 GB, free: 18.42 MB / 414.1 MB Notification: Performance of SimCode: time 6.21e-07/0.5096, allocations: 0 / 0.5779 GB, free: 18.42 MB / 414.1 MB Notification: Performance of Templates: time 0.02494/0.5346, allocations: 23.41 MB / 0.6008 GB, free: 10.95 MB / 430.1 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)