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 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.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.001357/0.001357, allocations: 110.6 kB / 17.68 MB, free: 5.332 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.00141/0.00141, allocations: 190.9 kB / 18.62 MB, free: 4.41 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.627/1.627, allocations: 205.1 MB / 224.5 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.1838/0.1838, allocations: 37.98 MB / 309.8 MB, free: 5.98 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.002106/0.002106, allocations: 67.89 kB / 376.8 MB, free: 2.91 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2807/0.2828, allocations: 55.24 MB / 432 MB, free: 19.51 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.PowerAngle): time 0.008231/0.2911, allocations: 7.46 MB / 439.5 MB, free: 12.02 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.004071/0.2952, allocations: 3.019 MB / 442.5 MB, free: 8.992 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003661/0.2956, allocations: 31.81 kB / 442.5 MB, free: 8.961 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00182/0.2974, allocations: 0.774 MB / 443.3 MB, free: 8.184 MB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:2829:3-2870:10:writable] Warning: Pure function 'Modelica.Math.Matrices.inv' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgetrf'. Notification: Performance of NFTyping.typeBindings: time 0.001368/0.2988, allocations: 0.6843 MB / 444 MB, free: 7.496 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007317/0.2996, allocations: 379.2 kB / 444.4 MB, free: 7.125 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001176/0.3008, allocations: 1.317 MB / 445.7 MB, free: 5.805 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007511/0.3015, allocations: 0.7486 MB / 446.4 MB, free: 5.043 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004586/0.302, allocations: 0.5604 MB / 447 MB, free: 4.48 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006413/0.3026, allocations: 0.619 MB / 447.6 MB, free: 3.859 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.78e-05/0.3027, allocations: 76 kB / 447.7 MB, free: 3.785 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006844/0.3034, allocations: 479.1 kB / 448.1 MB, free: 3.316 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003016/0.3037, allocations: 458.8 kB / 448.6 MB, free: 2.867 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003918/0.3041, allocations: 0.5092 MB / 449.1 MB, free: 2.355 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001024/0.3052, allocations: 1.418 MB / 450.5 MB, free: 0.9336 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.3052, allocations: 0 / 450.5 MB, free: 0.9336 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.674e-06/0.3052, allocations: 4 kB / 450.5 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.218e-05/0.3052, allocations: 0 / 450.5 MB, free: 0.9297 MB / 318.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.001915/0.3071, allocations: 1.263 MB / 451.8 MB, free: 15.62 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.994e-05/0.3072, allocations: 11.89 kB / 451.8 MB, free: 15.61 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001197/0.3084, allocations: 203.6 kB / 452 MB, free: 15.41 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001454/0.3099, allocations: 0.7254 MB / 452.7 MB, free: 14.64 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.199e-05/0.3099, allocations: 58.38 kB / 452.8 MB, free: 14.59 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002302/0.3102, allocations: 107.8 kB / 452.9 MB, free: 14.48 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001704/0.3119, allocations: 1.111 MB / 454 MB, free: 13.32 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.446e-05/0.312, allocations: 11.94 kB / 454 MB, free: 13.31 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.913e-05/0.3121, allocations: 35.98 kB / 454 MB, free: 13.27 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00021/0.3123, allocations: 73.95 kB / 454.1 MB, free: 13.2 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001454/0.3137, allocations: 0.8782 MB / 455 MB, free: 12.32 MB / 334.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.005558/0.3193, allocations: 4.058 MB / 459 MB, free: 8.059 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006655/0.32, allocations: 425.9 kB / 459.5 MB, free: 7.605 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003649/0.3204, allocations: 265.7 kB / 459.7 MB, free: 7.34 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.593e-05/0.3204, allocations: 19.91 kB / 459.7 MB, free: 7.32 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.642e-05/0.3205, allocations: 34.56 kB / 459.8 MB, free: 7.277 MB / 334.1 MB Notification: Performance of pre-optimization done (n=45): time 2.234e-06/0.3205, allocations: 0 / 459.8 MB, free: 7.277 MB / 334.1 MB Notification: Performance of matching and sorting (n=52): time 0.00437/0.3249, allocations: 1.97 MB / 461.7 MB, free: 5.258 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.557e-05/0.3249, allocations: 85.48 kB / 461.8 MB, free: 5.156 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006701/0.3256, allocations: 0.5731 MB / 462.4 MB, free: 4.574 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.621e-05/0.3257, allocations: 41.69 kB / 462.4 MB, free: 4.527 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003491/0.326, allocations: 462.5 kB / 462.9 MB, free: 4.066 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000169/0.3262, allocations: 197.3 kB / 463.1 MB, free: 3.871 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002266/0.3264, allocations: 146.5 kB / 463.2 MB, free: 3.719 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001832/0.3266, allocations: 382.6 kB / 463.6 MB, free: 3.336 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004028/0.327, allocations: 269.8 kB / 463.9 MB, free: 3.074 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005664/0.3276, allocations: 0.5081 MB / 464.4 MB, free: 2.465 MB / 334.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.003042/0.3307, allocations: 1.4 MB / 465.8 MB, free: 0.9609 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.304e-06/0.3307, allocations: 4 kB / 465.8 MB, free: 0.957 MB / 334.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.002001/0.3327, allocations: 1.091 MB / 466.9 MB, free: 15.83 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.17e-05/0.3327, allocations: 8.469 kB / 466.9 MB, free: 15.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001169/0.3339, allocations: 0.7599 MB / 467.6 MB, free: 15.03 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004958/0.3344, allocations: 158.4 kB / 467.8 MB, free: 14.87 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005899/0.335, allocations: 179.7 kB / 468 MB, free: 14.69 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004031/0.3391, allocations: 4.852 MB / 472.8 MB, free: 9.414 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006175/0.3397, allocations: 43.88 kB / 472.9 MB, free: 9.371 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.232e-05/0.3398, allocations: 35.98 kB / 472.9 MB, free: 9.336 MB / 350.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.0005564/0.3403, allocations: 325.5 kB / 473.2 MB, free: 9.008 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001122/0.3405, allocations: 67.19 kB / 473.3 MB, free: 8.941 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001036/0.3415, allocations: 0.6395 MB / 473.9 MB, free: 8.289 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.47e-06/0.3415, allocations: 4 kB / 473.9 MB, free: 8.285 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.983e-06/0.3415, allocations: 0 / 473.9 MB, free: 8.285 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.857e-06/0.3415, allocations: 7.984 kB / 473.9 MB, free: 8.277 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00244/0.344, allocations: 1.518 MB / 475.5 MB, free: 6.688 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.226e-06/0.344, allocations: 0 / 475.5 MB, free: 6.688 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006007/0.3446, allocations: 127.9 kB / 475.6 MB, free: 6.562 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.528e-06/0.3446, allocations: 8 kB / 475.6 MB, free: 6.555 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.873e-05/0.3447, allocations: 19.98 kB / 475.6 MB, free: 6.535 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.041e-06/0.3447, allocations: 7.984 kB / 475.6 MB, free: 6.527 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.456e-06/0.3447, allocations: 4 kB / 475.6 MB, free: 6.523 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001196/0.3459, allocations: 0.9445 MB / 476.6 MB, free: 5.535 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002911/0.3462, allocations: 184.3 kB / 476.7 MB, free: 5.336 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.405e-05/0.3463, allocations: 19.94 kB / 476.8 MB, free: 5.316 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003302/0.3466, allocations: 19.98 kB / 476.8 MB, free: 5.297 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.889e-05/0.3467, allocations: 40.33 kB / 476.8 MB, free: 5.258 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.81e-05/0.3467, allocations: 20.03 kB / 476.8 MB, free: 5.238 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004496/0.3472, allocations: 415 kB / 477.2 MB, free: 4.832 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.3472, allocations: 0 / 477.2 MB, free: 4.832 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008419/0.3481, allocations: 232 kB / 477.5 MB, free: 4.605 MB / 350.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.0003363/0.3484, allocations: 134 kB / 477.6 MB, free: 4.469 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001603/0.35, allocations: 1.027 MB / 478.6 MB, free: 3.406 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.449e-06/0.35, allocations: 0 / 478.6 MB, free: 3.406 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003719/0.3504, allocations: 266.3 kB / 478.9 MB, free: 3.145 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000794/0.3512, allocations: 150.8 kB / 479 MB, free: 2.996 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003107/0.3543, allocations: 1.938 MB / 481 MB, free: 1.008 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000729/0.3551, allocations: 1.075 MB / 482 MB, free: 15.91 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004808/0.3556, allocations: 205.8 kB / 482.2 MB, free: 15.7 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001642/0.3557, allocations: 63.42 kB / 482.3 MB, free: 15.64 MB / 366.1 MB Notification: Performance of SimCode: time 1.212e-06/0.3557, allocations: 0 / 482.3 MB, free: 15.64 MB / 366.1 MB Notification: Performance of Templates: time 0.01604/0.3718, allocations: 8.663 MB / 491 MB, free: 7 MB / 366.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 -s cvode -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Generation.PowerAngle.pipe 2>&1)