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.00109/0.00109, allocations: 114.8 kB / 17.74 MB, free: 5.344 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.00113/0.00113, allocations: 188.5 kB / 18.67 MB, free: 4.422 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.458/1.458, 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.1753/0.1753, allocations: 37.98 MB / 309.9 MB, free: 5.961 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.001627/0.001627, allocations: 63.91 kB / 432.5 MB, free: 15.66 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.112/0.1136, allocations: 55.25 MB / 487.8 MB, free: 8.34 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Network.NetworkControlled): time 0.01128/0.125, allocations: 9.518 MB / 497.3 MB, free: 14.78 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.008386/0.1334, allocations: 5.457 MB / 0.491 GB, free: 9.297 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00127/0.1347, allocations: 27.88 kB / 0.491 GB, free: 9.27 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003274/0.138, allocations: 1.132 MB / 0.4921 GB, free: 8.133 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004094/0.1421, allocations: 1.366 MB / 0.4934 GB, free: 6.762 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002046/0.1442, allocations: 0.6079 MB / 0.494 GB, free: 6.152 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002993/0.1472, allocations: 2.007 MB / 0.496 GB, free: 4.141 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001777/0.149, allocations: 1.044 MB / 0.497 GB, free: 3.07 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001718/0.1507, allocations: 0.852 MB / 0.4979 GB, free: 2.215 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001726/0.1525, allocations: 0.9185 MB / 0.4988 GB, free: 1.293 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003872/0.1529, allocations: 112 kB / 0.4989 GB, free: 1.184 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003327/0.1562, allocations: 1.551 MB / 0.5004 GB, free: 15.63 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008383/0.1571, allocations: 0.5728 MB / 0.5009 GB, free: 15.05 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001372/0.1585, allocations: 0.6685 MB / 0.5016 GB, free: 14.38 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00425/0.1627, allocations: 2.053 MB / 0.5036 GB, free: 12.32 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/0.1628, allocations: 0 / 0.5036 GB, free: 12.32 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.1628, allocations: 4 kB / 0.5036 GB, free: 12.32 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.343e-05/0.1629, 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.004113/0.167, allocations: 1.653 MB / 0.5052 GB, free: 10.61 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.683e-05/0.167, allocations: 15.83 kB / 0.5052 GB, free: 10.59 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003807/0.1709, allocations: 486.7 kB / 0.5057 GB, free: 10.12 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001428/0.1723, allocations: 0.6939 MB / 0.5064 GB, free: 9.379 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.192e-05/0.1724, allocations: 86.53 kB / 0.5064 GB, free: 9.293 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003309/0.1727, allocations: 112.3 kB / 0.5066 GB, free: 9.184 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00327/0.176, allocations: 1.6 MB / 0.5081 GB, free: 7.523 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.019e-05/0.1761, allocations: 7.938 kB / 0.5081 GB, free: 7.516 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001383/0.1762, allocations: 51.98 kB / 0.5082 GB, free: 7.465 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001257/0.1764, allocations: 86.22 kB / 0.5083 GB, free: 7.379 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003149/0.1795, allocations: 1.625 MB / 0.5098 GB, free: 5.746 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008535/0.1881, allocations: 4.921 MB / 0.5146 GB, free: 0.6953 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002242/0.1904, allocations: 1.319 MB / 0.5159 GB, free: 15.36 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001252/0.1916, allocations: 0.7937 MB / 0.5167 GB, free: 14.56 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.214e-05/0.1917, allocations: 24.89 kB / 0.5167 GB, free: 14.54 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001433/0.1932, allocations: 0.8333 MB / 0.5175 GB, free: 13.68 MB / 414.1 MB Notification: Performance of pre-optimization done (n=126): time 3.637e-06/0.1932, allocations: 0 / 0.5175 GB, free: 13.68 MB / 414.1 MB Notification: Performance of matching and sorting (n=137): time 0.01443/0.2077, allocations: 6.338 MB / 0.5237 GB, free: 7.223 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.222e-05/0.2078, allocations: 120.1 kB / 0.5239 GB, free: 7.082 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008868/0.2087, allocations: 0.5704 MB / 0.5244 GB, free: 6.5 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001063/0.2088, allocations: 57.64 kB / 0.5245 GB, free: 6.438 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004255/0.2092, allocations: 476.3 kB / 0.5249 GB, free: 5.965 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004622/0.2097, allocations: 469.2 kB / 0.5254 GB, free: 5.5 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003787/0.2101, allocations: 226.8 kB / 0.5256 GB, free: 5.273 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002728/0.2104, allocations: 410.7 kB / 0.526 GB, free: 4.863 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001166/0.2116, allocations: 0.6266 MB / 0.5266 GB, free: 4.23 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001242/0.2128, allocations: 0.7715 MB / 0.5273 GB, free: 3.422 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002501/0.2153, allocations: 1.491 MB / 0.5288 GB, free: 1.883 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.741e-06/0.2154, allocations: 0 / 0.5288 GB, free: 1.883 MB / 414.1 MB Notification: Performance of matching and sorting (n=162) (initialization): time 0.2587/0.4741, allocations: 2.073 MB / 0.5308 GB, free: 50.41 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.191e-05/0.4742, allocations: 38.34 kB / 0.5309 GB, free: 50.38 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.273e-05/0.4742, allocations: 4.344 kB / 0.5309 GB, free: 50.38 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001404/0.4756, allocations: 448.4 kB / 0.5313 GB, free: 50.36 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001306/0.4769, allocations: 256.5 kB / 0.5315 GB, free: 50.36 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00827/0.4852, allocations: 6.765 MB / 0.5381 GB, free: 46.67 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001076/0.4863, allocations: 83.91 kB / 0.5382 GB, free: 46.65 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001197/0.4865, allocations: 49.05 kB / 0.5383 GB, free: 46.64 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001646/0.4881, allocations: 0.8822 MB / 0.5391 GB, free: 46.28 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001226/0.4894, allocations: 0.7586 MB / 0.5399 GB, free: 45.95 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002612/0.492, allocations: 1.468 MB / 0.5413 GB, free: 45.28 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.883e-06/0.492, allocations: 4.609 kB / 0.5413 GB, free: 45.28 MB / 414.1 MB Notification: Performance of matching and sorting (n=162) (initialization_lambda0): time 0.004505/0.4965, allocations: 1.994 MB / 0.5433 GB, free: 44.57 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.688e-05/0.4966, allocations: 33.41 kB / 0.5433 GB, free: 44.54 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.11e-05/0.4966, allocations: 4.25 kB / 0.5433 GB, free: 44.54 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001171/0.4978, allocations: 447 kB / 0.5437 GB, free: 44.43 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001091/0.4989, allocations: 260 kB / 0.544 GB, free: 44.41 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007638/0.5065, allocations: 6.578 MB / 0.5504 GB, free: 39.89 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001109/0.5077, allocations: 74.66 kB / 0.5505 GB, free: 39.87 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001155/0.5078, allocations: 56.48 kB / 0.5505 GB, free: 39.85 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.0003583/0.5082, allocations: 243.9 kB / 0.5507 GB, free: 39.62 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001842/0.5084, allocations: 99.12 kB / 0.5508 GB, free: 39.57 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004779/0.5132, allocations: 2.161 MB / 0.553 GB, free: 38.74 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.812e-05/0.5132, allocations: 16.22 kB / 0.553 GB, free: 38.74 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.065e-06/0.5132, allocations: 1.312 kB / 0.553 GB, free: 38.74 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.289e-05/0.5132, allocations: 7.031 kB / 0.553 GB, free: 38.74 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.007154/0.5204, allocations: 3.933 MB / 0.5568 GB, free: 37.05 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-05/0.5204, allocations: 2.75 kB / 0.5568 GB, free: 37.05 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000901/0.5214, allocations: 211.4 kB / 0.557 GB, free: 37.04 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001529/0.5229, allocations: 0.5024 MB / 0.5575 GB, free: 36.92 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001144/0.523, allocations: 38 kB / 0.5575 GB, free: 36.89 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007729/0.5308, allocations: 7.131 MB / 0.5645 GB, free: 31.51 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/0.5308, allocations: 3.344 kB / 0.5645 GB, free: 31.51 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004901/0.5357, allocations: 3.074 MB / 0.5675 GB, free: 29.3 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005161/0.5363, allocations: 289.3 kB / 0.5678 GB, free: 29 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001834/0.5365, allocations: 28 kB / 0.5678 GB, free: 28.98 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008232/0.5373, allocations: 75.86 kB / 0.5679 GB, free: 28.9 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002728/0.5376, allocations: 128.2 kB / 0.568 GB, free: 28.78 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.933e-05/0.5377, allocations: 47.98 kB / 0.5681 GB, free: 28.73 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0004277/0.5381, allocations: 403.1 kB / 0.5684 GB, free: 28.34 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.5381, allocations: 0 / 0.5684 GB, free: 28.34 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002189/0.5403, 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.0002274/0.5405, allocations: 141.6 kB / 0.5692 GB, free: 27.54 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004926/0.5455, allocations: 3.329 MB / 0.5725 GB, free: 24.14 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.953e-06/0.5455, allocations: 0 / 0.5725 GB, free: 24.14 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00186/0.5474, allocations: 1.319 MB / 0.5738 GB, free: 22.8 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00118/0.5486, allocations: 195.2 kB / 0.5739 GB, free: 22.61 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004468/0.5531, allocations: 2.756 MB / 0.5766 GB, free: 19.8 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009023/0.554, allocations: 1.263 MB / 0.5779 GB, free: 18.52 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003763/0.5544, allocations: 95.39 kB / 0.578 GB, free: 18.42 MB / 414.1 MB Notification: Performance of SimCode: time 8.91e-07/0.5544, allocations: 480 / 0.578 GB, free: 18.42 MB / 414.1 MB Notification: Performance of Templates: time 0.02961/0.584, allocations: 23.5 MB / 0.6009 GB, free: 10.86 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)