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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.001248/0.001249, allocations: 108.2 kB / 16.92 MB, free: 5.766 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.001183/0.001183, allocations: 191.5 kB / 17.85 MB, free: 5.172 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.477/1.477, allocations: 222.9 MB / 241.5 MB, free: 15.03 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.21/0.21, allocations: 38.02 MB / 329.7 MB, free: 8.777 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001545/0.001545, allocations: 67.06 kB / 398.8 MB, free: 34.03 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1365/0.138, allocations: 58.05 MB / 456.8 MB, free: 8.062 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Network.NetworkControlled): time 0.01241/0.1505, allocations: 9.494 MB / 466.3 MB, free: 14.53 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008937/0.1595, allocations: 5.421 MB / 471.8 MB, free: 9.086 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00132/0.1608, allocations: 31.88 kB / 471.8 MB, free: 9.055 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003294/0.1641, allocations: 1.112 MB / 472.9 MB, free: 7.941 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004581/0.1687, allocations: 1.362 MB / 474.3 MB, free: 6.574 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002058/0.1708, allocations: 0.6152 MB / 474.9 MB, free: 5.961 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003313/0.1742, allocations: 2.011 MB / 476.9 MB, free: 3.941 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002078/0.1763, allocations: 1.048 MB / 477.9 MB, free: 2.871 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00201/0.1783, allocations: 0.8364 MB / 478.8 MB, free: 2.031 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001734/0.18, allocations: 0.9186 MB / 479.7 MB, free: 1.109 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004234/0.1805, allocations: 108 kB / 479.8 MB, free: 1.004 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003377/0.1839, allocations: 1.555 MB / 481.4 MB, free: 15.45 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001065/0.185, allocations: 0.5766 MB / 481.9 MB, free: 14.87 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002458/0.1874, allocations: 0.6608 MB / 482.6 MB, free: 14.2 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007107/0.1946, allocations: 2.029 MB / 484.6 MB, free: 12.17 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.272e-06/0.1946, allocations: 0 / 484.6 MB, free: 12.17 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.1946, allocations: 7.938 kB / 484.6 MB, free: 12.16 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000105/0.1947, allocations: 0 / 484.6 MB, free: 12.16 MB / 366.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.006139/0.2009, allocations: 1.649 MB / 486.3 MB, free: 10.45 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.507e-05/0.2009, allocations: 11.89 kB / 486.3 MB, free: 10.44 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005536/0.2065, allocations: 482.7 kB / 486.8 MB, free: 9.965 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002031/0.2085, allocations: 0.6705 MB / 487.4 MB, free: 9.254 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001065/0.2087, allocations: 78.53 kB / 487.5 MB, free: 9.176 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005484/0.2092, allocations: 116.3 kB / 487.6 MB, free: 9.062 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0054/0.2146, allocations: 1.6 MB / 489.2 MB, free: 7.402 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.772e-05/0.2147, allocations: 15.83 kB / 489.2 MB, free: 7.387 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002377/0.215, allocations: 47.98 kB / 489.3 MB, free: 7.34 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001895/0.2152, allocations: 82.22 kB / 489.4 MB, free: 7.258 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004702/0.2199, allocations: 1.629 MB / 491 MB, free: 5.621 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01216/0.2321, allocations: 4.945 MB / 495.9 MB, free: 0.5469 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003033/0.2351, allocations: 1.327 MB / 497.3 MB, free: 15.2 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001807/0.237, allocations: 0.794 MB / 498.1 MB, free: 14.39 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.12e-05/0.2371, allocations: 16.91 kB / 498.1 MB, free: 14.38 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001966/0.2391, allocations: 0.8372 MB / 498.9 MB, free: 13.52 MB / 382.1 MB Notification: Performance of pre-optimization done (n=126): time 4.649e-06/0.2391, allocations: 0 / 498.9 MB, free: 13.52 MB / 382.1 MB Notification: Performance of matching and sorting (n=137): time 0.01724/0.2563, allocations: 6.338 MB / 0.4934 GB, free: 7.062 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001067/0.2565, allocations: 120.1 kB / 0.4935 GB, free: 6.922 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000918/0.2574, allocations: 0.5742 MB / 0.4941 GB, free: 6.336 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.135e-05/0.2575, allocations: 49.69 kB / 0.4941 GB, free: 6.281 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004221/0.258, allocations: 476.3 kB / 0.4946 GB, free: 5.809 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004708/0.2584, allocations: 473.1 kB / 0.495 GB, free: 5.34 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003788/0.2588, allocations: 230.8 kB / 0.4953 GB, free: 5.109 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000204/0.259, allocations: 406.7 kB / 0.4956 GB, free: 4.703 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001147/0.2602, allocations: 0.6189 MB / 0.4963 GB, free: 4.078 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00126/0.2615, allocations: 0.7754 MB / 0.497 GB, free: 3.262 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002655/0.2641, allocations: 1.494 MB / 0.4985 GB, free: 1.719 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.428e-06/0.2641, allocations: 0 / 0.4985 GB, free: 1.719 MB / 382.1 MB Notification: Performance of matching and sorting (n=162) (initialization): time 0.2352/0.4994, allocations: 2.065 MB / 0.5005 GB, free: 55.29 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.382e-05/0.4995, allocations: 42.14 kB / 0.5005 GB, free: 55.25 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.592e-05/0.4995, allocations: 6.125 kB / 0.5005 GB, free: 55.25 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001425/0.5009, allocations: 451.2 kB / 0.501 GB, free: 55.23 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001335/0.5023, allocations: 253.8 kB / 0.5012 GB, free: 55.23 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008569/0.5109, allocations: 6.764 MB / 0.5078 GB, free: 51.29 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001101/0.512, allocations: 78.28 kB / 0.5079 GB, free: 51.27 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002304/0.5122, allocations: 55.36 kB / 0.5079 GB, free: 51.26 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001723/0.514, allocations: 0.8718 MB / 0.5088 GB, free: 50.9 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.001148/0.5151, allocations: 0.7678 MB / 0.5095 GB, free: 50.57 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.002256/0.5174, allocations: 1.469 MB / 0.511 GB, free: 49.89 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 5.099e-06/0.5174, allocations: 1.281 kB / 0.511 GB, free: 49.89 MB / 382.1 MB Notification: Performance of matching and sorting (n=162) (initialization_lambda0): time 0.004267/0.5217, allocations: 1.995 MB / 0.5129 GB, free: 49.18 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.894e-05/0.5218, allocations: 33.42 kB / 0.513 GB, free: 49.15 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.018e-05/0.5218, allocations: 3.531 kB / 0.513 GB, free: 49.15 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001268/0.523, allocations: 454.2 kB / 0.5134 GB, free: 49.03 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001106/0.5242, allocations: 259.9 kB / 0.5136 GB, free: 49 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007928/0.5321, allocations: 6.584 MB / 0.5201 GB, free: 44.48 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001074/0.5332, allocations: 78.16 kB / 0.5201 GB, free: 44.46 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001965/0.5334, allocations: 51.8 kB / 0.5202 GB, free: 44.45 MB / 382.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.0003959/0.5338, allocations: 249.6 kB / 0.5204 GB, free: 44.21 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002611/0.5341, allocations: 104 kB / 0.5205 GB, free: 44.16 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004504/0.5386, allocations: 2.159 MB / 0.5226 GB, free: 43.33 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.45e-05/0.5386, allocations: 19.78 kB / 0.5227 GB, free: 43.32 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.527e-06/0.5387, allocations: 0 / 0.5227 GB, free: 43.32 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.794e-05/0.5387, allocations: 7.219 kB / 0.5227 GB, free: 43.32 MB / 382.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.006654/0.5453, allocations: 3.94 MB / 0.5265 GB, free: 41.56 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.716e-06/0.5454, allocations: 0 / 0.5265 GB, free: 41.56 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008089/0.5462, allocations: 212.6 kB / 0.5267 GB, free: 41.5 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001441/0.5476, allocations: 0.5101 MB / 0.5272 GB, free: 41.26 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.832e-05/0.5478, allocations: 35.31 kB / 0.5272 GB, free: 41.24 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007441/0.5552, allocations: 7.132 MB / 0.5342 GB, free: 35.69 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.298e-06/0.5552, allocations: 6.219 kB / 0.5342 GB, free: 35.69 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004635/0.5599, allocations: 3.076 MB / 0.5372 GB, free: 32.79 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005447/0.5604, allocations: 284.9 kB / 0.5375 GB, free: 32.49 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001737/0.5606, allocations: 32 kB / 0.5375 GB, free: 32.46 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007824/0.5614, allocations: 79.91 kB / 0.5376 GB, free: 32.38 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00026/0.5617, allocations: 117.1 kB / 0.5377 GB, free: 32.27 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.396e-05/0.5618, allocations: 51.92 kB / 0.5378 GB, free: 32.21 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000407/0.5622, allocations: 399.1 kB / 0.5381 GB, free: 31.82 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5622, allocations: 0 / 0.5381 GB, free: 31.82 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002081/0.5643, allocations: 0.6602 MB / 0.5388 GB, free: 31.16 MB / 382.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.0002277/0.5645, allocations: 142.5 kB / 0.5389 GB, free: 31.02 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006227/0.5708, allocations: 3.714 MB / 0.5425 GB, free: 27.25 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.125e-05/0.5708, allocations: 0 / 0.5425 GB, free: 27.25 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002015/0.5728, allocations: 1.32 MB / 0.5438 GB, free: 25.9 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001308/0.5742, allocations: 193.3 kB / 0.544 GB, free: 25.72 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005119/0.5793, allocations: 2.69 MB / 0.5466 GB, free: 23 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008788/0.5802, allocations: 1.26 MB / 0.5479 GB, free: 21.71 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0009031/0.5811, allocations: 302.6 kB / 0.5482 GB, free: 21.42 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002855/0.5814, allocations: 79.41 kB / 0.5482 GB, free: 21.34 MB / 382.1 MB Notification: Performance of SimCode: time 8.22e-07/0.5814, allocations: 0 / 0.5482 GB, free: 21.34 MB / 382.1 MB Notification: Performance of Templates: time 0.03307/0.6145, allocations: 22.62 MB / 0.5703 GB, free: 14.81 MB / 398.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)