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.001354/0.001353, allocations: 115.8 kB / 17.04 MB, free: 6.055 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.001444/0.001444, allocations: 195 kB / 17.98 MB, free: 5.133 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.61/1.61, allocations: 205.1 MB / 223.8 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.1862/0.1862, allocations: 37.98 MB / 309.2 MB, free: 5.949 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.001474/0.001474, allocations: 63.91 kB / 431.8 MB, free: 15.66 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1562/0.1577, allocations: 55.24 MB / 487.1 MB, free: 8.352 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Network.NetworkControlled): time 0.01447/0.1722, allocations: 9.526 MB / 496.6 MB, free: 14.78 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01064/0.1829, allocations: 5.449 MB / 0.4903 GB, free: 9.309 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001394/0.1843, allocations: 31.88 kB / 0.4903 GB, free: 9.277 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003487/0.1878, allocations: 1.124 MB / 0.4914 GB, free: 8.148 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004876/0.1927, allocations: 1.373 MB / 0.4927 GB, free: 6.77 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003045/0.1958, allocations: 0.6079 MB / 0.4933 GB, free: 6.16 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.004554/0.2004, allocations: 2.003 MB / 0.4953 GB, free: 4.152 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00283/0.2032, allocations: 1.048 MB / 0.4963 GB, free: 3.078 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002752/0.206, allocations: 0.8403 MB / 0.4971 GB, free: 2.234 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00203/0.2081, allocations: 0.9185 MB / 0.498 GB, free: 1.312 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004464/0.2085, allocations: 112 kB / 0.4981 GB, free: 1.203 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004068/0.2126, allocations: 1.551 MB / 0.4997 GB, free: 15.65 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001042/0.2137, allocations: 0.5767 MB / 0.5002 GB, free: 15.07 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001741/0.2154, allocations: 0.6685 MB / 0.5009 GB, free: 14.4 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005121/0.2206, allocations: 2.053 MB / 0.5029 GB, free: 12.34 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.07e-05/0.2206, allocations: 0 / 0.5029 GB, free: 12.34 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.186e-06/0.2206, allocations: 3.938 kB / 0.5029 GB, free: 12.34 MB / 398.1 MB Notification: Performance of Transformations before backend: time 8.749e-05/0.2207, allocations: 0 / 0.5029 GB, free: 12.34 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.004292/0.225, allocations: 1.649 MB / 0.5045 GB, free: 10.63 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.352e-05/0.2251, allocations: 19.83 kB / 0.5045 GB, free: 10.61 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00377/0.2289, allocations: 478.7 kB / 0.505 GB, free: 10.14 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001286/0.2302, allocations: 0.6939 MB / 0.5056 GB, free: 9.402 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.978e-05/0.2303, allocations: 86.53 kB / 0.5057 GB, free: 9.316 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002012/0.2305, allocations: 112.3 kB / 0.5058 GB, free: 9.207 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002754/0.2332, allocations: 1.608 MB / 0.5074 GB, free: 7.539 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.735e-05/0.2333, allocations: 4 kB / 0.5074 GB, free: 7.535 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000123/0.2334, allocations: 43.98 kB / 0.5074 GB, free: 7.492 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001148/0.2335, allocations: 90.22 kB / 0.5075 GB, free: 7.402 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002796/0.2363, allocations: 1.629 MB / 0.5091 GB, free: 5.766 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008092/0.2444, allocations: 4.917 MB / 0.5139 GB, free: 0.7188 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002169/0.2466, allocations: 1.323 MB / 0.5152 GB, free: 15.38 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001204/0.2479, allocations: 0.8015 MB / 0.516 GB, free: 14.57 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.258e-05/0.248, allocations: 20.97 kB / 0.516 GB, free: 14.55 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001319/0.2493, allocations: 0.8333 MB / 0.5168 GB, free: 13.7 MB / 414.1 MB Notification: Performance of pre-optimization done (n=126): time 3.196e-06/0.2493, allocations: 0 / 0.5168 GB, free: 13.7 MB / 414.1 MB Notification: Performance of matching and sorting (n=137): time 0.014/0.2633, allocations: 6.33 MB / 0.523 GB, free: 7.246 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.023e-05/0.2634, allocations: 120.2 kB / 0.5231 GB, free: 7.105 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000769/0.2642, allocations: 0.5782 MB / 0.5237 GB, free: 6.516 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001007/0.2643, allocations: 49.7 kB / 0.5237 GB, free: 6.461 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004016/0.2647, allocations: 476.3 kB / 0.5242 GB, free: 5.988 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004307/0.2652, allocations: 469.2 kB / 0.5246 GB, free: 5.523 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003571/0.2655, allocations: 230.8 kB / 0.5249 GB, free: 5.293 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002141/0.2658, allocations: 406.7 kB / 0.5253 GB, free: 4.887 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001161/0.2669, allocations: 0.6189 MB / 0.5259 GB, free: 4.262 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001268/0.2682, allocations: 0.7832 MB / 0.5266 GB, free: 3.441 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002551/0.2708, allocations: 1.498 MB / 0.5281 GB, free: 1.895 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.879e-06/0.2708, allocations: 0 / 0.5281 GB, free: 1.895 MB / 414.1 MB Notification: Performance of matching and sorting (n=162) (initialization): time 0.3218/0.5926, allocations: 2.074 MB / 0.5301 GB, free: 50.39 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.102e-05/0.5927, allocations: 37.89 kB / 0.5301 GB, free: 50.36 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.415e-05/0.5927, allocations: 3.188 kB / 0.5301 GB, free: 50.36 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001805/0.5946, allocations: 451.7 kB / 0.5306 GB, free: 50.34 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001515/0.5961, allocations: 252.7 kB / 0.5308 GB, free: 50.34 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01384/0.61, allocations: 6.758 MB / 0.5374 GB, free: 46.65 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001891/0.6119, allocations: 81.81 kB / 0.5375 GB, free: 46.62 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001992/0.6121, allocations: 61.05 kB / 0.5376 GB, free: 46.61 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.002588/0.6147, allocations: 0.8746 MB / 0.5384 GB, free: 46.25 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001869/0.6166, allocations: 0.7631 MB / 0.5392 GB, free: 45.93 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.003633/0.6202, allocations: 1.468 MB / 0.5406 GB, free: 45.25 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 7.574e-06/0.6203, allocations: 1.781 kB / 0.5406 GB, free: 45.25 MB / 414.1 MB Notification: Performance of matching and sorting (n=162) (initialization_lambda0): time 0.005939/0.6262, allocations: 1.999 MB / 0.5425 GB, free: 44.54 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.196e-05/0.6263, allocations: 37.55 kB / 0.5426 GB, free: 44.51 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.449e-05/0.6263, allocations: 3.125 kB / 0.5426 GB, free: 44.51 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001737/0.6281, allocations: 437.6 kB / 0.543 GB, free: 44.4 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001733/0.6298, allocations: 254.1 kB / 0.5432 GB, free: 44.38 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01134/0.6412, allocations: 6.571 MB / 0.5497 GB, free: 39.86 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001494/0.6427, allocations: 75.81 kB / 0.5497 GB, free: 39.84 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001452/0.6429, allocations: 51.3 kB / 0.5498 GB, free: 39.82 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.0004266/0.6433, allocations: 253.5 kB / 0.55 GB, free: 39.59 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002405/0.6435, allocations: 99.19 kB / 0.5501 GB, free: 39.54 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006553/0.6501, allocations: 2.157 MB / 0.5522 GB, free: 38.71 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.169e-05/0.6502, allocations: 18.05 kB / 0.5522 GB, free: 38.71 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.092e-05/0.6502, allocations: 1.703 kB / 0.5522 GB, free: 38.71 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.165e-05/0.6502, allocations: 15.69 kB / 0.5523 GB, free: 38.7 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.009619/0.6599, allocations: 3.933 MB / 0.5561 GB, free: 37.02 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.478e-06/0.6599, allocations: 3.469 kB / 0.5561 GB, free: 37.02 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009553/0.6609, allocations: 207.3 kB / 0.5563 GB, free: 37 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002124/0.663, allocations: 0.5049 MB / 0.5568 GB, free: 36.88 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000146/0.6632, allocations: 33.61 kB / 0.5568 GB, free: 36.86 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01089/0.6741, allocations: 7.125 MB / 0.5638 GB, free: 31.44 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.72e-06/0.6742, allocations: 7.609 kB / 0.5638 GB, free: 31.43 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0071/0.6813, allocations: 3.077 MB / 0.5668 GB, free: 29.32 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008886/0.6822, allocations: 290.7 kB / 0.5671 GB, free: 29.02 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000163/0.6824, allocations: 32 kB / 0.5671 GB, free: 28.98 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00118/0.6836, allocations: 71.92 kB / 0.5672 GB, free: 28.91 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004652/0.6841, allocations: 121 kB / 0.5673 GB, free: 28.8 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000137/0.6842, allocations: 48.64 kB / 0.5673 GB, free: 28.75 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0006811/0.6849, allocations: 407 kB / 0.5677 GB, free: 28.36 MB / 414.1 MB Notification: Performance of sort global known variables: time 2e-07/0.6849, allocations: 4 kB / 0.5677 GB, free: 28.35 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002995/0.6879, allocations: 0.6602 MB / 0.5684 GB, free: 27.69 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.0002498/0.6882, allocations: 139.8 kB / 0.5685 GB, free: 27.55 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.006742/0.6949, allocations: 3.338 MB / 0.5718 GB, free: 24.14 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 7.885e-06/0.695, allocations: 0 / 0.5718 GB, free: 24.14 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002863/0.6979, allocations: 1.319 MB / 0.573 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.001794/0.6997, allocations: 200.6 kB / 0.5732 GB, free: 22.61 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006165/0.7059, allocations: 2.665 MB / 0.5758 GB, free: 19.91 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009455/0.7068, allocations: 1.256 MB / 0.5771 GB, free: 18.62 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.001188/0.708, allocations: 303 kB / 0.5774 GB, free: 18.32 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003756/0.7084, allocations: 79.41 kB / 0.5774 GB, free: 18.24 MB / 414.1 MB Notification: Performance of SimCode: time 9.71e-07/0.7084, allocations: 0 / 0.5774 GB, free: 18.24 MB / 414.1 MB Notification: Performance of Templates: time 0.04714/0.7556, allocations: 22.63 MB / 0.5995 GB, free: 11.6 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)