Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Generation.PowerAngle.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.AC3ph.Generation.PowerAngle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Generation.PowerAngle") translateModel(PowerSystems.Examples.AC3ph.Generation.PowerAngle,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Generation.PowerAngle") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001526/0.001526, allocations: 108.9 kB / 17.28 MB, free: 6.059 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.001808/0.001808, allocations: 197.3 kB / 18.21 MB, free: 5.145 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.553/1.553, allocations: 222.9 MB / 241.9 MB, free: 15.43 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1826/0.1826, allocations: 38.02 MB / 330.1 MB, free: 8.98 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001553/0.001553, allocations: 63.64 kB / 398.9 MB, free: 34.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1206/0.1222, allocations: 58.05 MB / 457 MB, free: 8.434 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.PowerAngle): time 0.01086/0.1331, allocations: 8.686 MB / 465.7 MB, free: 15.7 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005903/0.139, allocations: 3.35 MB / 469 MB, free: 12.34 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001099/0.1401, allocations: 51.69 kB / 469.1 MB, free: 12.29 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00231/0.1425, allocations: 0.7453 MB / 469.8 MB, free: 11.55 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002005/0.1445, allocations: 0.6225 MB / 470.4 MB, free: 10.92 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00104/0.1456, allocations: 347.1 kB / 470.8 MB, free: 10.59 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00191/0.1475, allocations: 1.325 MB / 472.1 MB, free: 9.254 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001149/0.1487, allocations: 0.8033 MB / 472.9 MB, free: 8.441 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009939/0.1497, allocations: 0.5564 MB / 473.5 MB, free: 7.883 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001079/0.1508, allocations: 0.6697 MB / 474.1 MB, free: 7.211 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001898/0.151, allocations: 76 kB / 474.2 MB, free: 7.137 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009782/0.1519, allocations: 471.2 kB / 474.7 MB, free: 6.676 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005787/0.1525, allocations: 466.8 kB / 475.1 MB, free: 6.219 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000836/0.1534, allocations: 0.5015 MB / 475.6 MB, free: 5.715 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001438/0.1548, allocations: 1.084 MB / 476.7 MB, free: 4.629 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.711e-06/0.1548, allocations: 4 kB / 476.7 MB, free: 4.625 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1549, allocations: 0 / 476.7 MB, free: 4.625 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.604e-05/0.1549, allocations: 4 kB / 476.7 MB, free: 4.621 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 223 * Number of variables: 223 Notification: Performance of Generate backend data structure: time 0.003028/0.158, allocations: 1.262 MB / 478 MB, free: 3.309 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.775e-05/0.158, allocations: 15.89 kB / 478 MB, free: 3.293 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001396/0.1594, allocations: 203.6 kB / 478.2 MB, free: 3.094 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00147/0.1609, allocations: 0.6865 MB / 478.9 MB, free: 2.367 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.115e-05/0.161, allocations: 58.38 kB / 478.9 MB, free: 2.312 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002729/0.1612, allocations: 107.8 kB / 479 MB, free: 2.207 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001907/0.1632, allocations: 1.107 MB / 480.2 MB, free: 1.051 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.919e-05/0.1632, allocations: 0 / 480.2 MB, free: 1.051 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001009/0.1633, allocations: 35.98 kB / 480.2 MB, free: 1.016 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001769/0.1635, allocations: 81.89 kB / 480.3 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001479/0.165, allocations: 0.886 MB / 481.2 MB, free: 52 kB / 350.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 preOpt removeSimpleEquations (simulation): time 0.0058/0.1708, allocations: 4.085 MB / 485.2 MB, free: 11.75 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006605/0.1715, allocations: 410.1 kB / 485.6 MB, free: 11.32 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000376/0.1719, allocations: 276.3 kB / 485.9 MB, free: 11.04 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.935e-05/0.1719, allocations: 15.92 kB / 485.9 MB, free: 11.03 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.325e-05/0.172, allocations: 42.56 kB / 486 MB, free: 10.98 MB / 366.1 MB Notification: Performance of pre-optimization done (n=45): time 4.238e-06/0.172, allocations: 0 / 486 MB, free: 10.98 MB / 366.1 MB Notification: Performance of matching and sorting (n=52): time 0.004466/0.1765, allocations: 1.977 MB / 487.9 MB, free: 8.938 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.714e-05/0.1765, allocations: 85.53 kB / 488 MB, free: 8.836 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007063/0.1772, allocations: 0.5654 MB / 488.6 MB, free: 8.262 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.775e-05/0.1773, allocations: 37.7 kB / 488.6 MB, free: 8.219 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003337/0.1776, allocations: 478.3 kB / 489.1 MB, free: 7.742 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001667/0.1778, allocations: 189.3 kB / 489.3 MB, free: 7.555 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002182/0.178, allocations: 138.6 kB / 489.4 MB, free: 7.41 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001796/0.1782, allocations: 390.7 kB / 489.8 MB, free: 7.02 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004258/0.1787, allocations: 265.8 kB / 490.1 MB, free: 6.762 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005883/0.1792, allocations: 0.5004 MB / 490.6 MB, free: 6.152 MB / 366.1 MB Notification: It was not possible to check the given initialization system for consistency symbolically, because the relevant equations are part of an algebraic loop. This is not supported yet. Notification: Performance of analyzeInitialSystem (initialization): time 0.003164/0.1824, allocations: 1.419 MB / 492 MB, free: 4.633 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.955e-06/0.1824, allocations: 4 kB / 492 MB, free: 4.629 MB / 366.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001999/0.1844, allocations: 1.091 MB / 493.1 MB, free: 3.5 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.295e-05/0.1845, allocations: 8 kB / 493.1 MB, free: 3.492 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001247/0.1857, allocations: 0.7606 MB / 493.8 MB, free: 2.703 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005411/0.1863, allocations: 154.6 kB / 494 MB, free: 2.543 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006251/0.1869, allocations: 175.7 kB / 494.2 MB, free: 2.371 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004242/0.1912, allocations: 4.853 MB / 499 MB, free: 13.1 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006052/0.1918, allocations: 39.97 kB / 499.1 MB, free: 13.06 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.122e-05/0.1919, allocations: 32 kB / 499.1 MB, free: 13.03 MB / 382.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: generator.w_el = generator.omega[1] + generator.omega[2]. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (87): * Single equations (assignments): 84 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,3,100.0%), (1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005251/0.1924, allocations: 319.2 kB / 499.4 MB, free: 12.71 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001515/0.1926, allocations: 71.09 kB / 499.5 MB, free: 12.64 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001115/0.1937, allocations: 0.6472 MB / 0.4884 GB, free: 11.98 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.861e-06/0.1937, allocations: 4 kB / 0.4884 GB, free: 11.97 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.142e-06/0.1937, allocations: 4 kB / 0.4884 GB, free: 11.97 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.461e-06/0.1937, allocations: 3.938 kB / 0.4884 GB, free: 11.96 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002622/0.1964, allocations: 1.518 MB / 0.4899 GB, free: 10.37 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.202e-06/0.1964, allocations: 4.188 kB / 0.4899 GB, free: 10.37 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006295/0.197, allocations: 127.9 kB / 0.49 GB, free: 10.24 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.009e-05/0.1971, allocations: 7.938 kB / 0.49 GB, free: 10.23 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.632e-05/0.1971, allocations: 16.03 kB / 0.49 GB, free: 10.22 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.581e-05/0.1971, allocations: 7.984 kB / 0.49 GB, free: 10.21 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/0.1971, allocations: 4 kB / 0.49 GB, free: 10.21 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001328/0.1985, allocations: 0.9473 MB / 0.491 GB, free: 9.227 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002927/0.1988, allocations: 184.2 kB / 0.4911 GB, free: 9.027 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001197/0.1989, allocations: 19.98 kB / 0.4912 GB, free: 9.008 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003662/0.1993, allocations: 19.98 kB / 0.4912 GB, free: 8.988 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.334e-05/0.1994, allocations: 40.33 kB / 0.4912 GB, free: 8.945 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.469e-05/0.1994, allocations: 16 kB / 0.4912 GB, free: 8.93 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0005027/0.1999, allocations: 411 kB / 0.4916 GB, free: 8.527 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.1999, allocations: 0 / 0.4916 GB, free: 8.527 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.000907/0.2008, allocations: 236 kB / 0.4919 GB, free: 8.297 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 6 (generator.i_s[1],generator.i_s[2],generator.i_s[3],RLgen1.i[1],RLgen1.i[2],RLgen1.i[3]) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003282/0.2012, allocations: 134.2 kB / 0.492 GB, free: 8.16 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001935/0.2031, allocations: 1.147 MB / 0.4931 GB, free: 6.977 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.208e-06/0.2031, allocations: 0 / 0.4931 GB, free: 6.977 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000417/0.2036, allocations: 271.8 kB / 0.4934 GB, free: 6.707 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008399/0.2044, allocations: 153.6 kB / 0.4935 GB, free: 6.559 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003666/0.2081, allocations: 2.405 MB / 0.4959 GB, free: 4.098 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008052/0.2089, allocations: 1.078 MB / 0.4969 GB, free: 2.992 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002213/0.2092, allocations: 59.42 kB / 0.497 GB, free: 2.934 MB / 382.1 MB Notification: Performance of SimCode: time 6.82e-07/0.2092, allocations: 0 / 0.497 GB, free: 2.934 MB / 382.1 MB Notification: Performance of Templates: time 0.02146/0.2306, allocations: 15.28 MB / 0.5119 GB, free: 3.66 MB / 398.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Generation.PowerAngle.makefile (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Generation.PowerAngle.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Generation.PowerAngle.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Generation.PowerAngle.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Generation.PowerAngle.sim & ./PowerSystems_PowerSystems.Examples.AC3ph.Generation.PowerAngle -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Generation.PowerAngle.pipe 2>&1)