Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_master_PowerSystems.Examples.Generic.Network.NetworkControlled.conf.json Using package PowerSystems with version 1.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0-master/package.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.Generic.Network.NetworkControlled,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_master_PowerSystems.Examples.Generic.Network.NetworkControlled") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001362/0.001366, allocations: 183.1 kB / 16.38 MB, free: 5.598 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.828/1.828, allocations: 194.5 MB / 211.6 MB, free: 7.625 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001878/0.001877, allocations: 116.6 kB / 256.9 MB, free: 10.26 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0-master/package.mo): time 0.2356/0.2356, allocations: 38.01 MB / 340.1 MB, free: 13.42 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004556/0.0004558, allocations: 12.59 kB / 403.8 MB, free: 55.01 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06933/0.06981, allocations: 53.23 MB / 457 MB, free: 10.38 MB / 298.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Network.NetworkControlled): time 0.007837/0.07769, allocations: 8.3 MB / 465.3 MB, free: 2.043 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.008344/0.08608, allocations: 4.982 MB / 470.3 MB, free: 13.05 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000895/0.08701, allocations: 31.88 kB / 470.3 MB, free: 13.02 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004972/0.08752, allocations: 186.7 kB / 470.5 MB, free: 12.84 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002609/0.09015, allocations: 0.8176 MB / 471.3 MB, free: 12.02 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001582/0.09174, allocations: 457.1 kB / 471.8 MB, free: 11.57 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.00141/0.09317, allocations: 0.929 MB / 472.7 MB, free: 10.64 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002969/0.09615, allocations: 1.392 MB / 474.1 MB, free: 9.203 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009924/0.09717, allocations: 0.5525 MB / 474.7 MB, free: 8.648 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007772/0.09796, allocations: 0.5059 MB / 475.2 MB, free: 8.141 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001351/0.09811, allocations: 48 kB / 475.2 MB, free: 8.094 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002118/0.1002, allocations: 0.8069 MB / 476 MB, free: 7.285 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005529/0.1008, allocations: 462.9 kB / 476.5 MB, free: 6.832 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003252/0.1012, allocations: 241.1 kB / 476.7 MB, free: 6.59 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002119/0.1033, allocations: 1.411 MB / 478.1 MB, free: 5.176 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.723e-06/0.1033, allocations: 0 / 478.1 MB, free: 5.176 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.308e-06/0.1033, allocations: 0 / 478.1 MB, free: 5.176 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.936e-05/0.1033, allocations: 0 / 478.1 MB, free: 5.176 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 292 * Number of variables: 292 Notification: Performance of Generate backend data structure: time 0.002804/0.1062, allocations: 1.43 MB / 479.5 MB, free: 3.688 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.146e-05/0.1062, allocations: 8.031 kB / 479.6 MB, free: 3.68 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004891/0.1111, allocations: 0.5213 MB / 480.1 MB, free: 3.156 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001333/0.1125, allocations: 0.6346 MB / 480.7 MB, free: 2.477 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.891e-05/0.1126, allocations: 82.09 kB / 480.8 MB, free: 2.395 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002592/0.1129, allocations: 104 kB / 480.9 MB, free: 2.293 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003546/0.1164, allocations: 1.57 MB / 482.5 MB, free: 0.668 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.623e-05/0.1165, allocations: 7.891 kB / 482.5 MB, free: 0.6602 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001581/0.1167, allocations: 47.98 kB / 482.5 MB, free: 0.6133 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001413/0.1168, allocations: 86.19 kB / 482.6 MB, free: 0.5273 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003891/0.1207, allocations: 1.633 MB / 484.2 MB, free: 14.89 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01029/0.131, allocations: 4.753 MB / 489 MB, free: 10.01 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003084/0.1342, allocations: 1.358 MB / 490.3 MB, free: 8.633 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.246e-05/0.1343, allocations: 28.84 kB / 490.4 MB, free: 8.605 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001895/0.1362, allocations: 0.8295 MB / 491.2 MB, free: 7.758 MB / 330.7 MB Notification: Performance of pre-optimization done (n=125): time 7.018e-06/0.1362, allocations: 3.984 kB / 491.2 MB, free: 7.754 MB / 330.7 MB Notification: Performance of matching and sorting (n=136): time 0.01799/0.1542, allocations: 6.335 MB / 497.5 MB, free: 1.297 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.61e-05/0.1543, allocations: 124.1 kB / 497.7 MB, free: 1.152 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008819/0.1552, allocations: 0.5341 MB / 498.2 MB, free: 0.6094 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001232/0.1554, allocations: 49.7 kB / 498.2 MB, free: 0.5547 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004483/0.1558, allocations: 460.3 kB / 498.7 MB, free: 100 kB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000552/0.1564, allocations: 457.5 kB / 499.1 MB, free: 15.64 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000103/0.1565, allocations: 28 kB / 499.2 MB, free: 15.61 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002592/0.1568, allocations: 394.7 kB / 499.6 MB, free: 15.22 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001538/0.1583, allocations: 0.6233 MB / 0.4885 GB, free: 14.59 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001708/0.1601, allocations: 0.7659 MB / 0.4892 GB, free: 13.8 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001753/0.1618, allocations: 0.7381 MB / 0.4899 GB, free: 13.05 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.059e-06/0.1619, allocations: 4 kB / 0.4899 GB, free: 13.05 MB / 346.7 MB Notification: Performance of matching and sorting (n=159) (initialization): time 0.005384/0.1673, allocations: 2.08 MB / 0.492 GB, free: 10.95 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005867/0.1679, allocations: 0.9981 MB / 0.4929 GB, free: 9.871 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.583e-05/0.1679, allocations: 4 kB / 0.4929 GB, free: 9.867 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001761/0.1697, allocations: 461.2 kB / 0.4934 GB, free: 9.41 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001412/0.1711, allocations: 259.6 kB / 0.4936 GB, free: 9.156 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01176/0.1829, allocations: 6.343 MB / 0.4998 GB, free: 2.535 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001111/0.184, allocations: 83.92 kB / 0.4999 GB, free: 2.453 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001508/0.1842, allocations: 64.33 kB / 0.5 GB, free: 2.391 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.788e-05/0.1842, allocations: 4 kB / 0.5 GB, free: 2.387 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004757/0.189, allocations: 1.888 MB / 0.5018 GB, free: 496 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.496e-06/0.189, allocations: 4 kB / 0.5018 GB, free: 492 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001598/0.1906, allocations: 421.6 kB / 0.5022 GB, free: 64 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001432/0.1921, allocations: 255.6 kB / 0.5025 GB, free: 15.81 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0105/0.2026, allocations: 6.094 MB / 0.5084 GB, free: 9.434 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001051/0.2037, allocations: 79.91 kB / 0.5085 GB, free: 9.355 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001428/0.2039, allocations: 51.97 kB / 0.5085 GB, free: 9.305 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 7 (system.initime,$whenCondition2,$whenCondition1,$PRE.disturbance.T_start,disturbance.T_start,$PRE.disturbance.count,disturbance.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (120): * Single equations (assignments): 117 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 8,2 29} Notification: Performance of prepare postOptimizeDAE: time 0.0008413/0.2047, allocations: 432.4 kB / 0.5089 GB, free: 8.871 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002176/0.205, allocations: 94.86 kB / 0.509 GB, free: 8.777 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005689/0.2107, allocations: 2.18 MB / 0.5112 GB, free: 6.582 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.019e-05/0.2107, allocations: 16.28 kB / 0.5112 GB, free: 6.566 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.228e-06/0.2107, allocations: 4 kB / 0.5112 GB, free: 6.562 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.466e-05/0.2108, allocations: 7.969 kB / 0.5112 GB, free: 6.555 MB / 362.7 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.009751/0.2205, allocations: 3.932 MB / 0.515 GB, free: 2.508 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.243e-05/0.2206, allocations: 8.031 kB / 0.515 GB, free: 2.5 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001193/0.2218, allocations: 215.7 kB / 0.5152 GB, free: 2.289 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002247/0.224, allocations: 0.5129 MB / 0.5157 GB, free: 1.77 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001232/0.2242, allocations: 31.98 kB / 0.5158 GB, free: 1.738 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01254/0.2367, allocations: 6.696 MB / 0.5223 GB, free: 10.74 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.087e-06/0.2368, allocations: 4 kB / 0.5223 GB, free: 10.74 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007644/0.2444, allocations: 3.216 MB / 0.5255 GB, free: 7.402 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006914/0.2452, allocations: 280 kB / 0.5257 GB, free: 7.109 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001799/0.2454, allocations: 31.98 kB / 0.5258 GB, free: 7.078 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009386/0.2463, allocations: 87.91 kB / 0.5258 GB, free: 6.992 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003739/0.2467, allocations: 121 kB / 0.526 GB, free: 6.871 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001373/0.2469, allocations: 47.97 kB / 0.526 GB, free: 6.824 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0006221/0.2475, allocations: 366.8 kB / 0.5264 GB, free: 6.465 MB / 378.7 MB Notification: Performance of sort global known variables: time 7.05e-07/0.2475, allocations: 0 / 0.5264 GB, free: 6.465 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002477/0.25, allocations: 0.6523 MB / 0.527 GB, free: 5.812 MB / 378.7 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 (102): * Single equations (assignments): 97 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {3 40,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002604/0.2503, allocations: 143 kB / 0.5271 GB, free: 5.664 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.007227/0.2575, allocations: 3.315 MB / 0.5304 GB, free: 2.277 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.046e-06/0.2575, allocations: 0 / 0.5304 GB, free: 2.277 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00305/0.2606, allocations: 1.315 MB / 0.5317 GB, free: 0.9375 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009794/0.2616, allocations: 149.5 kB / 0.5318 GB, free: 0.793 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2402/0.5018, allocations: 3.102 MB / 0.5348 GB, free: 76.09 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001145/0.503, allocations: 1.273 MB / 0.5361 GB, free: 75.38 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001242/0.5042, allocations: 296 kB / 0.5363 GB, free: 75.37 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003683/0.5046, allocations: 83.45 kB / 0.5364 GB, free: 75.36 MB / 378.7 MB Notification: Performance of SimCode: time 1.609e-06/0.5046, allocations: 3.094 kB / 0.5364 GB, free: 75.36 MB / 378.7 MB Notification: Performance of Templates: time 0.03992/0.5446, allocations: 19.7 MB / 0.5557 GB, free: 66.65 MB / 378.7 MB