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.001064/0.001064, allocations: 114 kB / 17.7 MB, free: 5.309 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.00103/0.00103, allocations: 191 kB / 18.63 MB, free: 4.379 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.335/1.335, allocations: 205.1 MB / 224.5 MB, free: 12.27 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.172/0.172, allocations: 37.99 MB / 309.8 MB, free: 5.977 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.001454/0.001454, allocations: 63.91 kB / 376.8 MB, free: 2.934 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.223/0.2245, allocations: 55.25 MB / 432 MB, free: 19.52 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.PowerAngle): time 0.007339/0.2319, allocations: 7.459 MB / 439.5 MB, free: 12.04 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003885/0.2358, allocations: 3.026 MB / 442.5 MB, free: 8.996 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004644/0.2363, allocations: 31.81 kB / 442.5 MB, free: 8.965 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001973/0.2383, allocations: 0.7763 MB / 443.3 MB, free: 8.188 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.001816/0.2402, allocations: 0.6882 MB / 444 MB, free: 7.496 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009567/0.2411, allocations: 371.2 kB / 444.4 MB, free: 7.133 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001113/0.2423, allocations: 1.324 MB / 445.7 MB, free: 5.805 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006899/0.243, allocations: 0.7447 MB / 446.4 MB, free: 5.047 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004665/0.2435, allocations: 0.5525 MB / 447 MB, free: 4.492 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006822/0.2441, allocations: 0.6346 MB / 447.6 MB, free: 3.855 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.304e-05/0.2442, allocations: 72 kB / 447.7 MB, free: 3.785 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006996/0.245, allocations: 479.1 kB / 448.2 MB, free: 3.316 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003221/0.2453, allocations: 458.9 kB / 448.6 MB, free: 2.867 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003839/0.2457, allocations: 0.5015 MB / 449.1 MB, free: 2.363 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001058/0.2467, allocations: 1.421 MB / 450.5 MB, free: 0.9375 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.08e-06/0.2468, allocations: 0 / 450.5 MB, free: 0.9375 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.2468, allocations: 4 kB / 450.5 MB, free: 0.9336 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.179e-05/0.2468, allocations: 4 kB / 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.001886/0.2487, allocations: 1.262 MB / 451.8 MB, free: 15.62 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.209e-05/0.2487, allocations: 15.89 kB / 451.8 MB, free: 15.6 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001189/0.2499, allocations: 195.6 kB / 452 MB, free: 15.41 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001443/0.2514, allocations: 0.7255 MB / 452.7 MB, free: 14.64 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.977e-05/0.2514, allocations: 58.38 kB / 452.8 MB, free: 14.59 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002238/0.2517, allocations: 103.8 kB / 452.9 MB, free: 14.49 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001568/0.2533, allocations: 1.107 MB / 454 MB, free: 13.33 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.056e-05/0.2533, allocations: 11.94 kB / 454 MB, free: 13.32 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.117e-05/0.2534, allocations: 35.98 kB / 454 MB, free: 13.29 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001618/0.2535, allocations: 69.95 kB / 454.1 MB, free: 13.22 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001323/0.2549, allocations: 0.8899 MB / 455 MB, free: 12.33 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.0051/0.26, allocations: 4.054 MB / 459.1 MB, free: 8.066 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005857/0.2606, allocations: 421.9 kB / 459.5 MB, free: 7.617 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003629/0.261, allocations: 273.6 kB / 459.7 MB, free: 7.344 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.227e-05/0.261, allocations: 11.92 kB / 459.8 MB, free: 7.332 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.812e-05/0.2611, allocations: 38.56 kB / 459.8 MB, free: 7.285 MB / 334.1 MB Notification: Performance of pre-optimization done (n=45): time 3.377e-06/0.2611, allocations: 0 / 459.8 MB, free: 7.285 MB / 334.1 MB Notification: Performance of matching and sorting (n=52): time 0.004103/0.2652, allocations: 1.978 MB / 461.8 MB, free: 5.258 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.864e-05/0.2653, allocations: 81.55 kB / 461.8 MB, free: 5.16 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006093/0.2659, allocations: 0.5692 MB / 462.4 MB, free: 4.582 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.975e-05/0.2659, allocations: 37.7 kB / 462.5 MB, free: 4.539 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003079/0.2662, allocations: 478.4 kB / 462.9 MB, free: 4.062 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000147/0.2664, allocations: 189.4 kB / 463.1 MB, free: 3.875 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001951/0.2666, allocations: 138.6 kB / 463.2 MB, free: 3.73 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000167/0.2668, allocations: 386.7 kB / 463.6 MB, free: 3.344 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004024/0.2672, allocations: 265.8 kB / 463.9 MB, free: 3.086 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000538/0.2677, allocations: 0.5081 MB / 464.4 MB, free: 2.477 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.003022/0.2708, allocations: 1.404 MB / 465.8 MB, free: 0.9688 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.402e-06/0.2708, allocations: 4 kB / 465.8 MB, free: 0.9648 MB / 334.1 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001825/0.2726, allocations: 1.095 MB / 466.9 MB, free: 15.83 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.211e-05/0.2726, allocations: 8.438 kB / 466.9 MB, free: 15.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.001277/0.2739, allocations: 0.7599 MB / 467.7 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005388/0.2745, allocations: 158.4 kB / 467.8 MB, free: 14.87 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005939/0.2751, allocations: 179.8 kB / 468 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004046/0.2791, allocations: 4.848 MB / 472.8 MB, free: 9.422 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005561/0.2797, allocations: 43.88 kB / 472.9 MB, free: 9.379 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.244e-05/0.2798, allocations: 36 kB / 472.9 MB, free: 9.344 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.0004855/0.2803, allocations: 321.5 kB / 473.2 MB, free: 9.02 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001029/0.2804, allocations: 67.19 kB / 473.3 MB, free: 8.953 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001016/0.2814, allocations: 0.6356 MB / 473.9 MB, free: 8.305 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.149e-06/0.2815, allocations: 4 kB / 473.9 MB, free: 8.301 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.145e-06/0.2815, allocations: 11.98 kB / 473.9 MB, free: 8.289 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.491e-06/0.2815, allocations: 3.938 kB / 473.9 MB, free: 8.285 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002478/0.284, allocations: 1.518 MB / 475.5 MB, free: 6.695 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.831e-06/0.284, allocations: 4 kB / 475.5 MB, free: 6.691 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00059/0.2846, allocations: 128 kB / 475.6 MB, free: 6.566 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.793e-06/0.2846, allocations: 8 kB / 475.6 MB, free: 6.559 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.94e-05/0.2846, allocations: 12 kB / 475.6 MB, free: 6.547 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.059e-06/0.2846, allocations: 4 kB / 475.6 MB, free: 6.543 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.2847, allocations: 4 kB / 475.6 MB, free: 6.539 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001235/0.2859, allocations: 0.9562 MB / 476.6 MB, free: 5.539 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000287/0.2862, allocations: 176.3 kB / 476.7 MB, free: 5.348 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.585e-05/0.2863, allocations: 23.92 kB / 476.8 MB, free: 5.324 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003175/0.2866, allocations: 15.98 kB / 476.8 MB, free: 5.309 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.198e-05/0.2867, allocations: 44.27 kB / 476.8 MB, free: 5.266 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.411e-05/0.2867, allocations: 16 kB / 476.8 MB, free: 5.25 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0004474/0.2872, allocations: 411 kB / 477.2 MB, free: 4.848 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2872, allocations: 0 / 477.2 MB, free: 4.848 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000774/0.288, allocations: 232 kB / 477.5 MB, free: 4.621 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.0002705/0.2882, allocations: 126.9 kB / 477.6 MB, free: 4.492 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001483/0.2897, allocations: 1.035 MB / 478.6 MB, free: 3.422 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.667e-06/0.2898, allocations: 0 / 478.6 MB, free: 3.422 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003772/0.2901, allocations: 270.2 kB / 478.9 MB, free: 3.156 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007466/0.2909, allocations: 155.6 kB / 479 MB, free: 3 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002868/0.2938, allocations: 1.938 MB / 481 MB, free: 1.016 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006778/0.2945, allocations: 1.082 MB / 482.1 MB, free: 15.91 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004624/0.2949, allocations: 197.8 kB / 482.3 MB, free: 15.71 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001705/0.2951, allocations: 59.42 kB / 482.3 MB, free: 15.65 MB / 366.1 MB Notification: Performance of SimCode: time 6.21e-07/0.2951, allocations: 0 / 482.3 MB, free: 15.65 MB / 366.1 MB Notification: Performance of Templates: time 0.0159/0.311, allocations: 8.66 MB / 491 MB, free: 7.02 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 gbode -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Generation.PowerAngle.pipe 2>&1)