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.001698/0.001698, allocations: 112.1 kB / 17.29 MB, free: 6.219 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.002134/0.002134, allocations: 197.3 kB / 18.21 MB, free: 5.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.732/2.732, allocations: 222.9 MB / 241.9 MB, free: 15.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.2742/0.2742, allocations: 38.02 MB / 330 MB, free: 9.008 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003107/0.003107, allocations: 56.94 kB / 398.9 MB, free: 34.44 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2523/0.2555, allocations: 58.07 MB / 457 MB, free: 8.453 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Network.NetworkControlled): time 0.02551/0.2811, allocations: 9.881 MB / 466.9 MB, free: 14.53 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01958/0.3007, allocations: 5.495 MB / 472.4 MB, free: 9.016 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002045/0.3028, allocations: 39.81 kB / 472.4 MB, free: 8.977 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009175/0.3121, allocations: 1.046 MB / 473.5 MB, free: 7.93 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006633/0.3187, allocations: 1.277 MB / 474.7 MB, free: 6.648 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003637/0.3224, allocations: 0.5485 MB / 475.3 MB, free: 6.102 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.009737/0.3322, allocations: 2.011 MB / 477.3 MB, free: 4.082 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003559/0.3358, allocations: 1.13 MB / 478.4 MB, free: 2.93 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003006/0.3388, allocations: 0.8519 MB / 479.3 MB, free: 2.074 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002835/0.3417, allocations: 0.9771 MB / 480.2 MB, free: 1.094 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006061/0.3423, allocations: 108 kB / 480.4 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009322/0.3517, allocations: 1.555 MB / 481.9 MB, free: 15.43 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001549/0.3533, allocations: 0.5884 MB / 482.5 MB, free: 14.84 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002394/0.3557, allocations: 0.6646 MB / 483.2 MB, free: 14.17 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005031/0.3608, allocations: 1.544 MB / 484.7 MB, free: 12.62 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.814e-06/0.3608, allocations: 4 kB / 484.7 MB, free: 12.62 MB / 366.1 MB Notification: Performance of FrontEnd: time 6.182e-06/0.3609, allocations: 0 / 484.7 MB, free: 12.62 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.411e-05/0.3609, allocations: 3.938 kB / 484.7 MB, free: 12.62 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.006193/0.3672, allocations: 1.653 MB / 486.4 MB, free: 10.9 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.858e-05/0.3672, allocations: 15.89 kB / 486.4 MB, free: 10.89 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007/0.3743, allocations: 474.7 kB / 486.8 MB, free: 10.42 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007094/0.3814, allocations: 0.6744 MB / 487.5 MB, free: 9.707 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001941/0.3817, allocations: 82.53 kB / 487.6 MB, free: 9.625 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007333/0.3824, allocations: 116.4 kB / 487.7 MB, free: 9.512 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00682/0.3893, allocations: 1.604 MB / 489.3 MB, free: 7.848 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001016/0.3894, allocations: 3.906 kB / 489.3 MB, free: 7.844 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004411/0.3899, allocations: 47.98 kB / 489.4 MB, free: 7.797 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000213/0.3901, allocations: 90.2 kB / 489.5 MB, free: 7.707 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01433/0.4045, allocations: 1.629 MB / 491.1 MB, free: 6.07 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01737/0.4219, allocations: 4.945 MB / 496 MB, free: 0.9961 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00881/0.4308, allocations: 1.327 MB / 497.4 MB, free: 15.64 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002577/0.4335, allocations: 0.7901 MB / 498.1 MB, free: 14.85 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001805/0.4337, allocations: 24.97 kB / 498.2 MB, free: 14.82 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002968/0.4367, allocations: 0.8416 MB / 499 MB, free: 13.96 MB / 382.1 MB Notification: Performance of pre-optimization done (n=126): time 7.003e-06/0.4367, allocations: 0 / 499 MB, free: 13.96 MB / 382.1 MB Notification: Performance of matching and sorting (n=137): time 0.03779/0.4745, allocations: 6.33 MB / 0.4935 GB, free: 7.512 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001471/0.4747, allocations: 124.1 kB / 0.4936 GB, free: 7.367 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00566/0.4804, allocations: 0.5627 MB / 0.4942 GB, free: 6.793 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004269/0.4809, allocations: 49.73 kB / 0.4942 GB, free: 6.738 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00077/0.4817, allocations: 480.2 kB / 0.4947 GB, free: 6.262 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001229/0.4829, allocations: 465.2 kB / 0.4951 GB, free: 5.801 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009691/0.484, allocations: 226.8 kB / 0.4953 GB, free: 5.574 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0003221/0.4843, allocations: 402.7 kB / 0.4957 GB, free: 5.172 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002109/0.4864, allocations: 0.6267 MB / 0.4963 GB, free: 4.539 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002366/0.4888, allocations: 0.7753 MB / 0.4971 GB, free: 3.723 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00515/0.494, allocations: 1.494 MB / 0.4985 GB, free: 2.184 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.746e-05/0.4941, allocations: 7.938 kB / 0.4986 GB, free: 2.176 MB / 382.1 MB Notification: Performance of matching and sorting (n=162) (initialization): time 0.01182/0.5059, allocations: 2.068 MB / 0.5006 GB, free: 88 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001011/0.5061, allocations: 41.62 kB / 0.5006 GB, free: 40 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.996e-05/0.5061, allocations: 3.938 kB / 0.5006 GB, free: 36 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.4749/0.9811, allocations: 446.5 kB / 0.501 GB, free: 55.98 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002751/0.9839, allocations: 256.2 kB / 0.5013 GB, free: 55.98 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0335/1.017, allocations: 6.763 MB / 0.5079 GB, free: 52.07 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002268/1.02, allocations: 81.77 kB / 0.508 GB, free: 52.05 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004918/1.02, allocations: 47.98 kB / 0.508 GB, free: 52.04 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.003559/1.024, allocations: 0.8798 MB / 0.5089 GB, free: 51.68 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002532/1.026, allocations: 0.7614 MB / 0.5096 GB, free: 51.36 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.02504/1.052, allocations: 1.476 MB / 0.5111 GB, free: 50.68 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.456e-05/1.052, allocations: 1.344 kB / 0.5111 GB, free: 50.68 MB / 382.1 MB Notification: Performance of matching and sorting (n=162) (initialization_lambda0): time 0.01143/1.063, allocations: 1.995 MB / 0.513 GB, free: 49.96 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.503e-05/1.063, allocations: 37.08 kB / 0.513 GB, free: 49.93 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.779e-05/1.063, allocations: 5.125 kB / 0.513 GB, free: 49.93 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002035/1.065, allocations: 441 kB / 0.5135 GB, free: 49.83 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006078/1.071, allocations: 254.5 kB / 0.5137 GB, free: 49.81 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02401/1.095, allocations: 6.59 MB / 0.5201 GB, free: 45.29 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00211/1.098, allocations: 76.16 kB / 0.5202 GB, free: 45.27 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005585/1.098, allocations: 48.33 kB / 0.5203 GB, free: 45.26 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.005289/1.104, allocations: 253.5 kB / 0.5205 GB, free: 45.02 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007973/1.104, allocations: 98.41 kB / 0.5206 GB, free: 44.97 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01378/1.118, allocations: 2.164 MB / 0.5227 GB, free: 44.14 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.884e-05/1.118, allocations: 15.66 kB / 0.5227 GB, free: 44.14 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.487e-05/1.118, allocations: 0 / 0.5227 GB, free: 44.14 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.212e-05/1.118, allocations: 9.328 kB / 0.5227 GB, free: 44.14 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.01939/1.138, allocations: 3.94 MB / 0.5266 GB, free: 42.45 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.758e-05/1.138, allocations: 3.969 kB / 0.5266 GB, free: 42.45 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001846/1.14, allocations: 212.4 kB / 0.5268 GB, free: 42.43 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003012/1.143, allocations: 0.5077 MB / 0.5273 GB, free: 42.29 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003069/1.143, allocations: 35.83 kB / 0.5273 GB, free: 42.27 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01818/1.161, allocations: 7.127 MB / 0.5343 GB, free: 36.62 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.722e-06/1.161, allocations: 7.984 kB / 0.5343 GB, free: 36.62 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01219/1.174, allocations: 3.086 MB / 0.5373 GB, free: 33.48 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001013/1.175, allocations: 287.8 kB / 0.5376 GB, free: 33.18 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004265/1.175, allocations: 28 kB / 0.5376 GB, free: 33.16 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001684/1.177, allocations: 71.92 kB / 0.5377 GB, free: 33.09 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005283/1.177, allocations: 130.3 kB / 0.5378 GB, free: 32.96 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002036/1.178, allocations: 43.98 kB / 0.5378 GB, free: 32.91 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0008991/1.179, allocations: 403 kB / 0.5382 GB, free: 32.52 MB / 382.1 MB Notification: Performance of sort global known variables: time 4.81e-07/1.179, allocations: 0 / 0.5382 GB, free: 32.52 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.004404/1.183, allocations: 0.6602 MB / 0.5389 GB, free: 31.86 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.0003801/1.183, allocations: 143 kB / 0.539 GB, free: 31.71 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.01438/1.198, allocations: 3.709 MB / 0.5426 GB, free: 27.95 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.144e-05/1.198, allocations: 4 kB / 0.5426 GB, free: 27.94 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003499/1.201, allocations: 1.308 MB / 0.5439 GB, free: 26.61 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00227/1.204, allocations: 185.6 kB / 0.5441 GB, free: 26.44 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01266/1.216, allocations: 3.319 MB / 0.5473 GB, free: 23.08 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001775/1.218, allocations: 1.26 MB / 0.5486 GB, free: 21.79 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009086/1.219, allocations: 95.39 kB / 0.5486 GB, free: 21.7 MB / 382.1 MB Notification: Performance of SimCode: time 1.472e-06/1.219, allocations: 0 / 0.5486 GB, free: 21.7 MB / 382.1 MB Notification: Performance of Templates: time 0.05536/1.275, allocations: 23.33 MB / 0.5714 GB, free: 14.35 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)